Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 871117 - sci-mathematics/pari-2.13.4-r1 - make[1]: [Makefile:<snip>: libpari.so.2.13.4] Error 1
Summary: sci-mathematics/pari-2.13.4-r1 - make[1]: [Makefile:<snip>: libpari.so.2.13.4...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michael Orlitzky
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-17 21:21 UTC by Toralf Förster
Modified: 2022-09-21 01:00 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.77 KB, text/plain)
2022-09-17 21:21 UTC, Toralf Förster
Details
clang.tar.bz2 (clang.tar.bz2,781 bytes, application/x-bzip)
2022-09-17 21:21 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,89.52 KB, text/plain)
2022-09-17 21:21 UTC, Toralf Förster
Details
environment (environment,79.65 KB, text/plain)
2022-09-17 21:21 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,14.36 KB, application/x-bzip)
2022-09-17 21:21 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,993 bytes, application/x-bzip)
2022-09-17 21:21 UTC, Toralf Förster
Details
sci-mathematics:pari-2.13.4-r1:20220917-211703.log (sci-mathematics:pari-2.13.4-r1:20220917-211703.log,68.02 KB, text/plain)
2022-09-17 21:21 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,25.70 KB, application/x-bzip)
2022-09-17 21:21 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-09-17 21:21:26 UTC
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"
Comment 1 Toralf Förster gentoo-dev 2022-09-17 21:21:28 UTC
Created attachment 809941 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-09-17 21:21:28 UTC
Created attachment 809944 [details]
clang.tar.bz2
Comment 3 Toralf Förster gentoo-dev 2022-09-17 21:21:30 UTC
Created attachment 809947 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-09-17 21:21:31 UTC
Created attachment 809950 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-09-17 21:21:32 UTC
Created attachment 809953 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-09-17 21:21:33 UTC
Created attachment 809956 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-09-17 21:21:34 UTC
Created attachment 809959 [details]
sci-mathematics:pari-2.13.4-r1:20220917-211703.log
Comment 8 Toralf Förster gentoo-dev 2022-09-17 21:21:36 UTC
Created attachment 809962 [details]
temp.tar.bz2
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-17 21:41:18 UTC
Small chance of being bug 870412 related.
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-17 21:41:27 UTC
(In reply to Sam James from comment #9)
> Small chance of being bug 870412 related.

(likely the wrapper if anything...)
Comment 11 Michael Orlitzky gentoo-dev 2022-09-21 00:07:08 UTC
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.
Comment 12 Michael Orlitzky gentoo-dev 2022-09-21 00:29:47 UTC
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.
Comment 13 Michael Orlitzky gentoo-dev 2022-09-21 00:41:00 UTC
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.
Comment 14 Larry the Git Cow gentoo-dev 2022-09-21 01:00:20 UTC
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(-)