Skip to content

PowerPC binary build failure "relocation truncated to fit: R_PPC64_REL24" #9793

Open
@zanieb

Description

@zanieb

The build failed during linking with

libthread_local-14bdf71b2f8c428a.rlib(thread_local-14bdf71b2f8c428a.thread_local.9165f86b66b4614-cgu.0.rcgu.o): in function `thread_local::thread_id::get_slow':
          thread_local.9165f86b66b4614-cgu.0:(.text.unlikely._ZN12thread_local9thread_id8get_slow17h6b636cdf3f4cc69eE+0x250): relocation truncated to fit: R_PPC64_REL24 against symbol `__tls_get_addr' defined in .text.__tls_get_addr section in /usr/local/musl/bin/../lib/gcc/powerpc64le-unknown-linux-musl/11.2.0/../../../../powerpc64le-unknown-linux-musl/lib/libc.a(__tls_get_addr.lo)
          /home/runner/work/uv/uv/target/powerpc64le-unknown-linux-musl/release-no-lto/deps/libuv_installer-2b553695d2f31d2e.rlib(uv_installer-2b553695d2f31d2e.uv_installer.2988552f99df20af-cgu.04.rcgu.o): in function `std::sys::thread_local::native::lazy::Storage<T,D>::initialize':
          uv_installer.2988552f99df20af-cgu.04:(.text.unlikely._ZN3std3sys12thread_local6native4lazy20Storage$LT$T$C$D$GT$10initialize17hc81f5ebe44f2f56dE+0x34): relocation truncated to fit: R_PPC64_REL24 against symbol `__tls_get_addr' defined in .text.__tls_get_addr section in /usr/local/musl/bin/../lib/gcc/powerpc64le-unknown-linux-musl/11.2.0/../../../../powerpc64le-unknown-linux-musl/lib/libc.a(__tls_get_addr.lo)
          /home/runner/work/uv/uv/target/powerpc64le-unknown-linux-musl/release-no-lto/deps/libuv_installer-2b553695d2f31d2e.rlib(uv_installer-2b553695d2f31d2e.uv_installer.2988552f99df20af-cgu.10.rcgu.o): in function `rayon_core::registry::Registry::in_worker_cold':
          uv_installer.2988552f99df20af-cgu.10:(.text.unlikely._ZN10rayon_core8registry8Registry14in_worker_cold17h7266177902601b2eE+0x2c): relocation truncated to fit: R_PPC64_REL24 against symbol `__tls_get_addr' defined in .text.__tls_get_addr section in /usr/local/musl/bin/../lib/gcc/powerpc64le-unknown-linux-musl/11.2.0/../../../../powerpc64le-unknown-linux-musl/lib/libc.a(__tls_get_addr.lo)
          collect2: error: ld returned 1 exit status

ref https://github.com/astral-sh/uv/actions/runs/12265976138/job/34223179814?pr=9791

See https://stackoverflow.com/questions/10486116/what-does-this-gcc-error-relocation-truncated-to-fit-mean

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