Skip to content

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

@non-Jedi

Description

@non-Jedi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions