too long lines were shrinked: rm -f libpari.so.2.13.4 /usr/bin/ld -o "/var/tmp/portage/sci-mathematics/pari-2.13.4-r1/work/pari-2.13.4/Olinux-x86_64"/libpari.so.2.13.4 -shared -soname=libpari.so.7 -O -pipe -march=native -fno-diagnostics-color -O2 -D_GLIBCXX_ASSERTIONS -Werror=implicit-function-declaration -Werror=implicit-int -Wl,-O1 -Wl,--as-neede /usr/bin/ld: unrecognised emulation mode: arch=native Supported emulations: aix5ppc aix5rs6 aixppc aixrs6 alpha alphavms arcelf arclinux arclinux_nps arcv2elf arcv2elfx arm_wince_pe armelf armelf_fbsd armelf_fuchsia armelf_haiku armelf_linux armelf_linux_eabi armelf_linux_fdpiceabi armelf_nacl armelf_nbsd armelf_phoenix armelf_vxworks armelfb armelfb_f make[1]: *** [Makefile:1080: libpari.so.2.13.4] Error 1 make[1]: Leaving directory '/var/tmp/portage/sci-mathematics/pari-2.13.4-r1/work/pari-2.13.4/Olinux-x86_64' make: *** [Makefile:34: gp] Error 2 ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_no_multilib_hardened-j4-20220916-220004 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-9.3.1 [2] x86_64-pc-linux-gnu-12.2.1 * clang/llvm (if any): clang version 15.0.0 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/15/bin /usr/lib/llvm/15 15.0.0 Python 3.10.7 Available Ruby profiles: (none found) Available Rust versions: [1] rust-bin-1.63.0 * The following VMs are available for generation-2: *) Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17] 2) Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8] Available Java Virtual Machines: [1] openjdk-bin-8 [2] openjdk-bin-17 system-vm The Glorious Glasgow Haskell Compilation System, version 9.0.2 php cli (if any): GNU Make 4.3.90 HEAD of ::gentoo commit 1432d3faf6166f3856590c5b877925ddd87c268d Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Sat Sep 17 20:46:50 2022 +0000 2022-09-17 20:46:49 UTC emerge -qpvO sci-mathematics/pari [ebuild N ] sci-mathematics/pari-2.13.4-r1 USE="-X -data -doc -fltk -gmp -test -threads"
Created attachment 809941 [details] emerge-info.txt
Created attachment 809944 [details] clang.tar.bz2
Created attachment 809947 [details] emerge-history.txt
Created attachment 809950 [details] environment
Created attachment 809953 [details] etc.portage.tar.bz2
Created attachment 809956 [details] logs.tar.bz2
Created attachment 809959 [details] sci-mathematics:pari-2.13.4-r1:20220917-211703.log
Created attachment 809962 [details] temp.tar.bz2
Small chance of being bug 870412 related.
(In reply to Sam James from comment #9) > Small chance of being bug 870412 related. (likely the wrapper if anything...)
Well, both pari-2.13.4-r1 and pari-2.15.0 do have clang-16 issues, but it looks like *this* problem involves the compiler flag "-march=native" being passed to linker.
Oh, we've seen this before. From the build log, Dynamic Lib linker is /usr/bin/ld -shared -soname=$(LIBPARI_SONAME) That should be clang and not ld. I think what's gone wrong is, ./get_cc: line 74: ./linux-x86_64-gnu46: Text file busy which normally confirms that clang is a gcc-compatible compiler. On my machine, for example, that line is instead, GNU compatible compiler: clang version 14.0.6 Without that, this test in config/get_dlld chooses /usr/bin/ld instead of clang: if test -n "$__gnuc__" -o "$osname" = "solaris"; then DLLD="$CC" else DLLD=$ld # don't take risks fi So... that test on line 74 of config/get_cc is likely failing somehow.
I'd like to be able to reproduce this first (I haven't yet), but we can probably fix it by exporting DLLD=$CC ourselves to override the detection.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b38e0a0b22acc859251d038b55ee73c676fcf8e6 commit b38e0a0b22acc859251d038b55ee73c676fcf8e6 Author: Michael Orlitzky <mjo@gentoo.org> AuthorDate: 2022-09-21 00:47:49 +0000 Commit: Michael Orlitzky <mjo@gentoo.org> CommitDate: 2022-09-21 00:59:34 +0000 sci-mathematics/pari: bullet-proof DLLD detection. We have another DLLD (compiler driver for shared libraries) detection issue in bug 871117. We now force DLLD=$CC during ./Configure, which should override the detection with the correct value more reliably. Closes: https://bugs.gentoo.org/871117 Signed-off-by: Michael Orlitzky <mjo@gentoo.org> sci-mathematics/pari/pari-2.15.0.ebuild | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)