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

Julia 1.5.0 fails to build against musl when USE_BINARYBUILDER=0 #36943

Closed
non-Jedi opened this issue Aug 6, 2020 · 4 comments
Closed

Julia 1.5.0 fails to build against musl when USE_BINARYBUILDER=0 #36943

non-Jedi opened this issue Aug 6, 2020 · 4 comments

Comments

@non-Jedi
Copy link
Contributor

non-Jedi commented Aug 6, 2020

With no Make.user, invoking:

make -j3 prefix=/usr sysconfdir=/etc datarootdir=/usr/share \
 USE_LLVM_SHLIB=1 USE_BINARYBUILDER=0 \
 USE_SYSTEM_LIBUV=0 USE_SYSTEM_LIBUNWIND=0 USE_SYSTEM_PATCHELF=1 USE_SYSTEM_LIBM=0 \
 USE_SYSTEM_DSFMT=0 USE_SYSTEM_LLVM=0 USE_SYSTEM_PCRE=1 USE_SYSTEM_BLAS=0 \
 USE_SYSTEM_GMP=1 USE_SYSTEM_LIBGIT2=1 USE_SYSTEM_MBEDTLS=1 USE_SYSTEM_LIBSSH2=1 \
 USE_SYSTEM_CURL=1 USE_SYSTEM_MPFR=1 USE_SYSTEM_SUITESPARSE=0 USE_SYSTEM_UTF8PROC=0 \
 USE_SYSTEM_ZLIB=1 USE_SYSTEM_P7ZIP=1 USE_SYSTEM_LAPACK=0

results eventually in the error:

/usr/bin/ld: /builddir/julia-1.5.0/usr/lib/libunwind.a(Ltrace.o): relocation R_X86_64_TPOFF32 against `tls_cache_destroyed' can not be used when making a shared object; recompile with -fPIC`

I'm attempting to use the fat 1.5.0 release tarball with dependency sources bundled.

I don't know much about linking, but I don't think my make invocation is doing anything that should cause this error. Is BINARYBUILDER the only way to get musl-based julia to build?

Build log: https://gist.github.com/non-Jedi/ba54f6e8f4756da2e9f80e8ccd90b70b

@non-Jedi non-Jedi changed the title Failed to build against musl when not USE_BINARYBUILDER Failed to build against musl when USE_BINARYBUILDER=0 Aug 6, 2020
@vtjnash
Copy link
Member

vtjnash commented Aug 6, 2020

That seems like libunwind is not getting built correctly. I think this may be fixed as of #36697, but I'm not sure why the same error wouldn't have already shown up while trying to build that library.

@non-Jedi
Copy link
Contributor Author

non-Jedi commented Aug 6, 2020

Can confirm that applying #36697 (minus the portions updating libosxunwind) fixes this. Should that PR be backported?

@non-Jedi non-Jedi changed the title Failed to build against musl when USE_BINARYBUILDER=0 Julia 1.5.0 fails to build against musl when USE_BINARYBUILDER=0 Aug 7, 2020
@non-Jedi non-Jedi mentioned this issue Aug 12, 2020
25 tasks
@fingolfin
Copy link
Contributor

Is this still an issue in 1.5.2?

@non-Jedi
Copy link
Contributor Author

non-Jedi commented Nov 2, 2020

Nope!

@non-Jedi non-Jedi closed this as completed Nov 2, 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

3 participants