Bug#1101683: firefox: Please use alternative linker on ppc64 as lld is unsupported
Source: firefox
Version: 136.0.3-1
Severity: normal
User: debian-powerpc@lists.debian.org
Usertags: ppc64
X-Debbugs-Cc: debian-powerpc@lists.debian.org
Hi,
firefox currently fails to build from source on ppc64 since the linker
in use (lld) does not support ppc64 with ELF ABI version 1 [1]:
checking what kind of list files are supported by the linker...
DEBUG: Creating `/tmp/conftestj70e_oyy.c` with content:
DEBUG: | int main() {}
DEBUG: Executing: `/usr/bin/clang /tmp/conftestj70e_oyy.c -c -o /tmp/conftestvirsugve.o`
DEBUG: Executing: `/usr/bin/clang -fuse-ld=lld -o /tmp/conftestvjo35x09.out -Wl,@/tmp/conftestw9ckkapq.list`
DEBUG: The command returned non-zero exit status 1.
DEBUG: Its error output was:
DEBUG: | ld.lld: error: /lib/powerpc64-linux-gnu/Scrt1.o: ABI version 1 is not supported
DEBUG: | clang: error: linker command failed with exit code 1 (use -v to see invocation)
DEBUG: Executing: `/usr/bin/clang -fuse-ld=lld -o /tmp/conftestvjo35x09.out -Wl,@/tmp/conftestw9ckkapq.list`
DEBUG: The command returned non-zero exit status 1.
DEBUG: Its error output was:
DEBUG: | ld.lld: error: /lib/powerpc64-linux-gnu/Scrt1.o: ABI version 1 is not supported
DEBUG: | clang: error: linker command failed with exit code 1 (use -v to see invocation)
DEBUG: Executing: `/usr/bin/clang -fuse-ld=lld -o /tmp/conftestvjo35x09.out @/tmp/conftestw9ckkapq.list`
DEBUG: The command returned non-zero exit status 1.
DEBUG: Its error output was:
DEBUG: | ld.lld: error: /lib/powerpc64-linux-gnu/Scrt1.o: ABI version 1 is not supported
DEBUG: | clang: error: linker command failed with exit code 1 (use -v to see invocation)
ERROR: Couldn't find one that works
Switching to ld.bfd or mold with passing "-fusing-ld=" to clang should fix the problem.
Thanks,
Adrian
> [1] https://buildd.debian.org/status/fetch.php?pkg=firefox&arch=ppc64&ver=136.0.3-1&stamp=1743246355&raw=0
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Reply to: