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

Linux release job fails building hls-wrapper for ubuntu-latest (now ubuntu-20.04) #1723

Closed
jneira opened this issue Apr 13, 2021 · 3 comments
Labels
can-workaround CI Continuous integration type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..

Comments

@jneira
Copy link
Member

jneira commented Apr 13, 2021

Linking /home/runner/work/haskell-language-server/haskell-language-server/dist-newstyle/build/x86_64-linux/ghc-8.10.4/hls-1.1.0.0/x/hls-wrapper/opt/build/hls-wrapper/hls-wrapper ...
/opt/ghc/8.10.4/lib/ghc-8.10.4/process-1.6.9.0/libHSprocess-1.6.9.0.a(runProcess.o):function runInteractiveProcess: warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/opt/ghc/8.10.4/lib/ghc-8.10.4/process-1.6.9.0/libHSprocess-1.6.9.0.a(runProcess.o):function runInteractiveProcess: warning: Using 'initgroups' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/opt/ghc/8.10.4/lib/ghc-8.10.4/unix-2.7.2.2/libHSunix-2.7.2.2.a(User.o):function ghczuwrapperZC0ZCunixzm2zi7zi2zi2ZCSystemziPosixziUserZCendpwent: warning: Using 'endpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/opt/ghc/8.10.4/lib/ghc-8.10.4/unix-2.7.2.2/libHSunix-2.7.2.2.a(User.o):function ghczuwrapperZC1ZCunixzm2zi7zi2zi2ZCSystemziPosixziUserZCsetpwent: warning: Using 'setpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/opt/ghc/8.10.4/lib/ghc-8.10.4/unix-2.7.2.2/libHSunix-2.7.2.2.a(User.o):function ghczuwrapperZC2ZCunixzm2zi7zi2zi2ZCSystemziPosixziUserZCgetpwent: warning: Using 'getpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/opt/ghc/8.10.4/lib/ghc-8.10.4/unix-2.7.2.2/libHSunix-2.7.2.2.a(User.o):function ghczuwrapperZC3ZCunixzm2zi7zi2zi2ZCSystemziPosixziUserZCgetpwnamzur: warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/opt/ghc/8.10.4/lib/ghc-8.10.4/unix-2.7.2.2/libHSunix-2.7.2.2.a(User.o):function ghczuwrapperZC4ZCunixzm2zi7zi2zi2ZCSystemziPosixziUserZCgetpwuidzur: warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/opt/ghc/8.10.4/lib/ghc-8.10.4/unix-2.7.2.2/libHSunix-2.7.2.2.a(User.o):function ghczuwrapperZC5ZCunixzm2zi7zi2zi2ZCSystemziPosixziUserZCgetgrnamzur: warning: Using 'getgrnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/opt/ghc/8.10.4/lib/ghc-8.10.4/unix-2.7.2.2/libHSunix-2.7.2.2.a(User.o):function ghczuwrapperZC6ZCunixzm2zi7zi2zi2ZCSystemziPosixziUserZCgetgrgidzur: warning: Using 'getgrgid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/x86_64-linux-gnu/libm-2.31.a(s_atan.o)(.note.stapsdt+0x14): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(s_atan.o)(.note.stapsdt+0x70): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(s_tan.o)(.note.stapsdt+0x14): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(sincos32.o)(.note.stapsdt+0x14): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(sincos32.o)(.note.stapsdt+0x5c): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(sincos32.o)(.note.stapsdt+0xa4): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(sincos32.o)(.note.stapsdt+0xf4): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(s_atan-fma.o)(.note.stapsdt+0x14): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(s_atan-fma.o)(.note.stapsdt+0x70): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(s_tan-fma.o)(.note.stapsdt+0x14): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(sincos32-fma.o)(.note.stapsdt+0x14): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(sincos32-fma.o)(.note.stapsdt+0x5c): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(sincos32-fma.o)(.note.stapsdt+0xa4): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(sincos32-fma.o)(.note.stapsdt+0xf4): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(s_atan-fma4.o)(.note.stapsdt+0x14): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(s_atan-fma4.o)(.note.stapsdt+0x70): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(s_tan-fma4.o)(.note.stapsdt+0x14): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(sincos32-fma4.o)(.note.stapsdt+0x14): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(sincos32-fma4.o)(.note.stapsdt+0x5c): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(sincos32-fma4.o)(.note.stapsdt+0xa4): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(sincos32-fma4.o)(.note.stapsdt+0xf4): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(s_atan-avx.o)(.note.stapsdt+0x14): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(s_atan-avx.o)(.note.stapsdt+0x70): error: relocation refers to local symbol "" [1], which is defined in a discarded section
/usr/lib/x86_64-linux-gnu/libm-2.31.a(s_tan-avx.o)(.note.stapsdt+0x14): error: relocation refers to local symbol "" [1], which is defined in a discarded section
collect2: error: ld returned 1 exit status
`cc' failed in phase `Linker'. (Exit code: 1)
Error: Process completed with exit code 1.
@jneira jneira added type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc.. CI Continuous integration os: linux labels Apr 13, 2021
@jneira
Copy link
Member Author

jneira commented Apr 13, 2021

I would run the build job periodically (once a week?) to catch those errores earlier and plan the release knowing its state

@jneira
Copy link
Member Author

jneira commented Apr 13, 2021

  • Here it is suggested to use ghc-option: -optl-fuse-ld=bfd
  • In the same issue the workaround was avoid creating a static binary to not iclude libm (i guess, not a linux expert)

@michaelpj
Copy link
Collaborator

Closing as old

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
can-workaround CI Continuous integration type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Projects
None yet
Development

No branches or pull requests

2 participants