psibi / tldr-hs

Haskell tldr client
BSD 3-Clause "New" or "Revised" License
93 stars 14 forks source link

Fails to build #21

Closed hasufell closed 4 years ago

hasufell commented 4 years ago
Building executable 'tldr' for tldr-0.6.2..
[1 of 2] Compiling Paths_tldr       ( dist/build/tldr/autogen/Paths_tldr.hs, dist/build/tldr/tldr-tmp/Paths_tldr.o )
[2 of 2] Compiling Main             ( app/Main.hs, dist/build/tldr/tldr-tmp/Main.o )
Linking dist/build/tldr/tldr ...
/usr/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ld: /usr/x86_64-pc-linux-gnu/lib/ghc-8.8.3/rts/libHSrts_thr.a(Linker.thr_o): in function `internal_dlopen':

/var/tmp/paludis/build/dev-lang-GHC-8.8.3/work/ghc-8.8.3/rts/Linker.c:604:0: error:
     warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ld: cannot find -lffi
/usr/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ld: /usr/x86_64-pc-linux-gnu/lib/ghc-8.8.3/process-1.6.8.0/libHSprocess-1.6.8.0.a(runProcess.o): in function `runInteractiveProcess':
runProcess.c:(.text.runInteractiveProcess+0x67d): warning: Using 'initgroups' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ld: /usr/x86_64-pc-linux-gnu/lib/ghc-8.8.3/unix-2.7.2.2/libHSunix-2.7.2.2.a(User.o): in function `unixzm2zi7zi2zi2_SystemziPosixziUser_getAllGroupEntries5_info':
(.text.unixzm2zi7zi2zi2_SystemziPosixziUser_getAllGroupEntries5_info+0x177): warning: Using 'getgrent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ld: /usr/x86_64-pc-linux-gnu/lib/ghc-8.8.3/unix-2.7.2.2/libHSunix-2.7.2.2.a(User.o): in function `unixzm2zi7zi2zi2_SystemziPosixziUser_getAllGroupEntries6_info':
(.text.unixzm2zi7zi2zi2_SystemziPosixziUser_getAllGroupEntries6_info+0x28): warning: Using 'setgrent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ld: /usr/x86_64-pc-linux-gnu/lib/ghc-8.8.3/unix-2.7.2.2/libHSunix-2.7.2.2.a(User.o): in function `unixzm2zi7zi2zi2_SystemziPosixziUser_getAllGroupEntries7_info':
(.text.unixzm2zi7zi2zi2_SystemziPosixziUser_getAllGroupEntries7_info+0x1f): warning: Using 'endgrent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ld: /usr/x86_64-pc-linux-gnu/lib/ghc-8.8.3/unix-2.7.2.2/libHSunix-2.7.2.2.a(User.o): in function `ghczuwrapperZC6ZCunixzm2zi7zi2zi2ZCSystemziPosixziUserZCgetgrgidzur':
(.text+0x61): warning: Using 'getgrgid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ld: /usr/x86_64-pc-linux-gnu/lib/ghc-8.8.3/unix-2.7.2.2/libHSunix-2.7.2.2.a(User.o): in function `ghczuwrapperZC5ZCunixzm2zi7zi2zi2ZCSystemziPosixziUserZCgetgrnamzur':
(.text+0x51): warning: Using 'getgrnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ld: /usr/x86_64-pc-linux-gnu/lib/ghc-8.8.3/unix-2.7.2.2/libHSunix-2.7.2.2.a(User.o): in function `ghczuwrapperZC2ZCunixzm2zi7zi2zi2ZCSystemziPosixziUserZCgetpwent':
(.text+0x21): warning: Using 'getpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ld: /usr/x86_64-pc-linux-gnu/lib/ghc-8.8.3/unix-2.7.2.2/libHSunix-2.7.2.2.a(User.o): in function `ghczuwrapperZC1ZCunixzm2zi7zi2zi2ZCSystemziPosixziUserZCsetpwent':
(.text+0x11): warning: Using 'setpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ld: /usr/x86_64-pc-linux-gnu/lib/ghc-8.8.3/unix-2.7.2.2/libHSunix-2.7.2.2.a(User.o): in function `ghczuwrapperZC0ZCunixzm2zi7zi2zi2ZCSystemziPosixziUserZCendpwent':
(.text+0x1): warning: Using 'endpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ld: /usr/x86_64-pc-linux-gnu/lib/ghc-8.8.3/unix-2.7.2.2/libHSunix-2.7.2.2.a(User.o): in function `ghczuwrapperZC3ZCunixzm2zi7zi2zi2ZCSystemziPosixziUserZCgetpwnamzur':
(.text+0x31): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ld: /usr/x86_64-pc-linux-gnu/lib/ghc-8.8.3/process-1.6.8.0/libHSprocess-1.6.8.0.a(runProcess.o): in function `runInteractiveProcess':
runProcess.c:(.text.runInteractiveProcess+0x65c): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
collect2: error: ld returned 1 exit status
`x86_64-pc-linux-gnu-cc' failed in phase `Linker'. (Exit code: 1)
cabal: Failed to build exe:tldr from tldr-0.6.2.

I don't think -optl-static is something that should ever be in a .cabal file.

psibi commented 4 years ago

@hasufell Thanks for the report. I assumed it would work on the Linux distros (seemed to work on the CI and Stackage servers), that's why I added it as a condition compilation for Linux. Anyway, I will fix this the coming weekend (unless you want to send me a PR before!). Thanks!

psibi commented 4 years ago

New version has been release to hackage.