Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to build #21

Closed
hasufell opened this issue Mar 25, 2020 · 2 comments
Closed

Fails to build #21

hasufell opened this issue Mar 25, 2020 · 2 comments

Comments

@hasufell
Copy link
Contributor

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
Copy link
Owner

psibi commented Mar 26, 2020

@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!

hasufell added a commit to hasufell/tldr-hs that referenced this issue Mar 26, 2020
hasufell added a commit to hasufell/tldr-hs that referenced this issue Mar 27, 2020
psibi added a commit that referenced this issue Mar 28, 2020
@psibi
Copy link
Owner

psibi commented Mar 28, 2020

New version has been release to hackage.

@psibi psibi closed this as completed Mar 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants