Closed luss closed 1 year ago
It's possible that the linker fails to find "libpq", which is a part of any postgres distribution.
hasql-pool > /usr/bin/ld.gold: error: cannot find -lpq
Thanks, I missed that line in the error messages. That is likely it.
On Fri, Apr 28, 2023 at 4:17 PM Nikita Volkov @.***> wrote:
It's possible that the linker fails to find "libpq", which is a part of any postgres distribution.
hasql-pool > /usr/bin/ld.gold: error: cannot find -lpq
— Reply to this email directly, view it on GitHub https://github.com/nikita-volkov/hasql-pool/issues/36#issuecomment-1528046038, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMWOHUHACK444DDVQ745WTXDQQVLANCNFSM6AAAAAAXPT5O2M . You are receiving this because you authored the thread.Message ID: @.***>
I've been compilng and building POSTGREST for a few months on ARM64. From versions 11.0.0 on it now longer builds on ARM64 and throws this error. Any thoughts?
HEAD is now at 4197d2f7 bump version to 11.0.1 hasql-pool > configure hasql-pool > Configuring hasql-pool-0.9... hasql-pool > /home/rocky/.stack/programs/aarch64-linux/ghc-tinfo6-9.2.5/lib/ghc-9.2.5/bin/ghc: /lib64/libtinfo.so.6: no version information available (required by /home/rocky/.stack/programs/aarch64-linux/ghc-tinfo6-9.2.5/lib/ghc-9.2.5/bin/../haskeline-0.8.2/libHShaskeline-0.8.2-ghc9.2.5.so) hasql-pool > /home/rocky/.stack/programs/aarch64-linux/ghc-tinfo6-9.2.5/lib/ghc-9.2.5/bin/ghc: /lib64/libtinfo.so.6: no version information available (required by /home/rocky/.stack/programs/aarch64-linux/ghc-tinfo6-9.2.5/lib/ghc-9.2.5/bin/../ghc-9.2.5/libHSghc-9.2.5-ghc9.2.5.so) hasql-pool > /home/rocky/.stack/programs/aarch64-linux/ghc-tinfo6-9.2.5/lib/ghc-9.2.5/bin/ghc: /lib64/libtinfo.so.6: no version information available (required by /home/rocky/.stack/programs/aarch64-linux/ghc-tinfo6-9.2.5/lib/ghc-9.2.5/bin/../terminfo-0.4.1.5/libHSterminfo-0.4.1.5-ghc9.2.5.so) hasql-pool > build hasql-pool > /home/rocky/.stack/programs/aarch64-linux/ghc-tinfo6-9.2.5/lib/ghc-9.2.5/bin/ghc-pkg: /lib64/libtinfo.so.6: no version information available (required by /home/rocky/.stack/programs/aarch64-linux/ghc-tinfo6-9.2.5/lib/ghc-9.2.5/bin/ghc-pkg) hasql-pool > /home/rocky/.stack/programs/aarch64-linux/ghc-tinfo6-9.2.5/lib/ghc-9.2.5/bin/ghc-pkg: /lib64/libtinfo.so.6: no version information available (required by /home/rocky/.stack/programs/aarch64-linux/ghc-tinfo6-9.2.5/lib/ghc-9.2.5/bin/../terminfo-0.4.1.5/libHSterminfo-0.4.1.5-ghc9.2.5.so) hasql-pool > Preprocessing library for hasql-pool-0.9.. hasql-pool > Building library for hasql-pool-0.9.. hasql-pool > /home/rocky/.stack/programs/aarch64-linux/ghc-tinfo6-9.2.5/lib/ghc-9.2.5/bin/ghc: /lib64/libtinfo.so.6: no version information available (required by /home/rocky/.stack/programs/aarch64-linux/ghc-tinfo6-9.2.5/lib/ghc-9.2.5/bin/../haskeline-0.8.2/libHShaskeline-0.8.2-ghc9.2.5.so) hasql-pool > /home/rocky/.stack/programs/aarch64-linux/ghc-tinfo6-9.2.5/lib/ghc-9.2.5/bin/ghc: /lib64/libtinfo.so.6: no version information available (required by /home/rocky/.stack/programs/aarch64-linux/ghc-tinfo6-9.2.5/lib/ghc-9.2.5/bin/../ghc-9.2.5/libHSghc-9.2.5-ghc9.2.5.so) hasql-pool > /home/rocky/.stack/programs/aarch64-linux/ghc-tinfo6-9.2.5/lib/ghc-9.2.5/bin/ghc: /lib64/libtinfo.so.6: no version information available (required by /home/rocky/.stack/programs/aarch64-linux/ghc-tinfo6-9.2.5/lib/ghc-9.2.5/bin/../terminfo-0.4.1.5/libHSterminfo-0.4.1.5-ghc9.2.5.so) hasql-pool > [1 of 2] Compiling Hasql.Pool.Prelude hasql-pool > [2 of 2] Compiling Hasql.Pool hasql-pool > /home/rocky/.stack/programs/aarch64-linux/ghc-tinfo6-9.2.5/lib/ghc-9.2.5/bin/ghc: /lib64/libtinfo.so.6: no version information available (required by /home/rocky/.stack/programs/aarch64-linux/ghc-tinfo6-9.2.5/lib/ghc-9.2.5/bin/../haskeline-0.8.2/libHShaskeline-0.8.2-ghc9.2.5.so) hasql-pool > /home/rocky/.stack/programs/aarch64-linux/ghc-tinfo6-9.2.5/lib/ghc-9.2.5/bin/ghc: /lib64/libtinfo.so.6: no version information available (required by /home/rocky/.stack/programs/aarch64-linux/ghc-tinfo6-9.2.5/lib/ghc-9.2.5/bin/../ghc-9.2.5/libHSghc-9.2.5-ghc9.2.5.so) hasql-pool > /home/rocky/.stack/programs/aarch64-linux/ghc-tinfo6-9.2.5/lib/ghc-9.2.5/bin/ghc: /lib64/libtinfo.so.6: no version information available (required by /home/rocky/.stack/programs/aarch64-linux/ghc-tinfo6-9.2.5/lib/ghc-9.2.5/bin/../terminfo-0.4.1.5/libHSterminfo-0.4.1.5-ghc9.2.5.so) hasql-pool > /usr/bin/ld.gold: error: cannot find -lpq hasql-pool > collect2: error: ld returned 1 exit status hasql-pool >
gcc' failed in phase
Linker'. (Exit code: 1) Progress 1/3Error: [S-7282] Stack failed to execute the build plan.