| Summary: | sys-devel/binutils 2.23.2 vs 2.24-r2 different linking products for sci-libs/amd-2.3.1: /usr/lib64/libamdf77.so.0.0.0 | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Justin Lecher (RETIRED) <jlec> |
| Component: | Current packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
| Status: | RESOLVED NEEDINFO | ||
| Severity: | normal | CC: | dschridde+gentoobugs, patrick, sci, vapier |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
build.log
amd-2.3.1:20140204-104621.log linking.log binutils-2.23.2:20140217-082017.log binutils-2.24-r2:20140217-082017.log |
||
Created attachment 368224 [details]
build.log
build.log
What's the output of "scanelf -ByF '%n %p' /usr/lib64/libamdf77.so.0.0.0"? For me it prints: libc.so.6 /usr/lib64/libamdf77.so.0.0.0 (In reply to Sebastian Luther (few) from comment #2) > What's the output of "scanelf -ByF '%n %p' /usr/lib64/libamdf77.so.0.0.0"? > > For me it prints: > libc.so.6 /usr/lib64/libamdf77.so.0.0.0 same here, and nothing wrong with that since it does not need more. so why does it trigger a qa of lack of as-needed? run `readelf -d /usr/lib64/libamdf77.so.0.0.0` and post the log from emerge while using the --debug flag Created attachment 369518 [details]
amd-2.3.1:20140204-104621.log
build.log
Dynamic section at offset 0x2a10 contains 21 entries: Tag Type Name/Value 0x0000000000000003 (PLTGOT) 0x3bd8 0x0000000000000002 (PLTRELSZ) 48 (bytes) 0x0000000000000017 (JMPREL) 0x478 0x0000000000000014 (PLTREL) RELA 0x0000000000000007 (RELA) 0x3b8 0x0000000000000008 (RELASZ) 192 (bytes) 0x0000000000000009 (RELAENT) 24 (bytes) 0x000000006ffffff9 (RELACOUNT) 3 0x0000000000000006 (SYMTAB) 0x190 0x000000000000000b (SYMENT) 24 (bytes) 0x0000000000000005 (STRTAB) 0x2c8 0x000000000000000a (STRSZ) 169 (bytes) 0x000000006ffffef5 (GNU_HASH) 0x378 0x000000000000000e (SONAME) Library soname: [libamdf77.so.0] 0x000000000000000c (INIT) 0x4a8 0x000000000000000d (FINI) 0x28f8 0x000000000000001a (FINI_ARRAY) 0x3c10 0x000000000000001c (FINI_ARRAYSZ) 8 (bytes) 0x0000000000000019 (INIT_ARRAY) 0x3c18 0x000000000000001b (INIT_ARRAYSZ) 8 (bytes) 0x0000000000000000 (NULL) 0x0 (In reply to Justin Lecher from comment #6) looks to me like the lib is broken and is correctly triggering the warning. it isn't linking against any library at all. on my system, the lib uses at least funcs from libc if not more. so, nothing wrong with portage here. $ readelf -d /usr/lib64/libamdf77.so.0.0.0 Dynamic section at offset 0x2db8 contains 30 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libgfortran.so.3] 0x0000000000000001 (NEEDED) Shared library: [libm.so.6] 0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1] 0x0000000000000001 (NEEDED) Shared library: [libquadmath.so.0] 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x000000000000000e (SONAME) Library soname: [libamdf77.so.0] 0x000000000000000c (INIT) 0x638 0x000000000000000d (FINI) 0x27cc 0x0000000000000019 (INIT_ARRAY) 0x202da0 0x000000000000001b (INIT_ARRAYSZ) 8 (bytes) 0x000000000000001a (FINI_ARRAY) 0x202da8 0x000000000000001c (FINI_ARRAYSZ) 8 (bytes) 0x0000000000000004 (HASH) 0x1c8 0x000000006ffffef5 (GNU_HASH) 0x258 0x0000000000000005 (STRTAB) 0x410 0x0000000000000006 (SYMTAB) 0x2c0 0x000000000000000a (STRSZ) 249 (bytes) 0x000000000000000b (SYMENT) 24 (bytes) 0x0000000000000003 (PLTGOT) 0x203000 0x0000000000000002 (PLTRELSZ) 48 (bytes) 0x0000000000000014 (PLTREL) RELA 0x0000000000000017 (JMPREL) 0x608 0x0000000000000007 (RELA) 0x548 0x0000000000000008 (RELASZ) 192 (bytes) 0x0000000000000009 (RELAENT) 24 (bytes) 0x000000006ffffffe (VERNEED) 0x528 0x000000006fffffff (VERNEEDNUM) 1 0x000000006ffffff0 (VERSYM) 0x50a 0x000000006ffffff9 (RELACOUNT) 3 0x0000000000000000 (NULL) 0x0 i see needed info in mine. a toolchain ld issue, or may be ld.gold? Makefile.am is mine and simple: https://github.com/sfabbro/suitesparse/blob/master/addons/AMD/Source/Makefile.am $ emerge --info amd Portage 2.2.7 (default/linux/amd64/13.0, gcc-4.7.3-asneeded, glibc-2.17, 3.10.25-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.10.25-gentoo-x86_64-Quad-Core_AMD_Opteron-tm-_Processor_8354-with-gentoo-2.2 KiB Mem: 132363224 total, 25129428 free KiB Swap: 0 total, 0 free Timestamp of tree: Tue, 04 Feb 2014 02:45:01 +0000 ld GNU ld (GNU Binutils) 2.23.2 ccache version 3.1.9 [enabled] app-shells/bash: 4.2_p45 dev-java/java-config: 2.1.12-r1 dev-lang/python: 2.7.5-r3, 3.3.3 dev-util/ccache: 3.1.9-r3 dev-util/cmake: 2.8.11.2 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.12.4 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.69 sys-devel/automake: 1.11.6, 1.13.4 sys-devel/binutils: 2.23.2 sys-devel/gcc: 3.4.6-r2, 4.7.3-r1 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.9 (virtual/os-headers) sys-libs/glibc: 2.17 Repositories: gentoo science Installed sets: @system ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -march=native" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--jobs=5 --load-average=10 -t --keep-going --autounmask-write y --autounmask-unrestricted-atoms y" FCFLAGS="-O2 -pipe -march=native" FEATURES="assume-digests binpkg-logs ccache clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe -march=native" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-O1" MAKEOPTS="-j30" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--exclude ChangeLog --delete-excluded" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/science" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow 3dnowext R X acl amd64 bash-completion berkdb blas boost bzip2 cairo cli cracklib crypt cups curl cxx dri emacs fftw fits fontconfig fortran gd gdbm gif glitz gmp gnuplot gnutls gs gsl gtk gzip hdf5 iconv imagemagick ipv6 java jpeg lapack latex libffi logrotate lua lzma lzo matplotlib metis mmx modules mpi multilib ncurses netcdf nls nptl octave offensive opengl openmp openssl pam pcre pdf perl plotutils png postscript proj ps python qhull qt3support qt4 readline session smp sparse sse sse2 ssl svg szip tcpd threads tiff tk truetype unicode vim-syntax webp wxwidgets wxwindows xcb xft xml zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en pt" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="nv" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" USE_PYTHON="2.7 3.3" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS ================================================================= Package Settings ================================================================= sci-libs/amd-2.3.1 was built with the following: USE="fortran -doc -static-libs" (In reply to Sébastien Fabbro from comment #8) > 0x0000000000000001 (NEEDED) Shared library: [libgfortran.so.3] > 0x0000000000000001 (NEEDED) Shared library: [libm.so.6] > 0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1] > 0x0000000000000001 (NEEDED) Shared library: [libquadmath.so.0] > 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] I don't see this. even not with ld.bfd. > > > i see needed info in mine. a toolchain ld issue, or may be ld.gold? > Makefile.am is mine and simple: > https://github.com/sfabbro/suitesparse/blob/master/addons/AMD/Source/ > Makefile.am # ldd -r /usr/lib64/libamdf77.so.0.0.0 statically linked This is how I came up with this bug in the beginning. (In reply to Justin Lecher from comment #10) run something like: FEATURES=noclean emerge amd then go into the build dir and re-run the link command by hand but add like -Wl,-M and -Wl,--verbose and attach the output here Created attachment 369690 [details]
linking.log
the output
This static problem is reproducible on two different boxes. But other fortran libs are nicely shared objects. you're using binutils-2.24-r1. from the ChangeLog: *binutils-2.24-r2 (19 Jan 2014) 19 Jan 2014; Mike Frysinger <vapier@gentoo.org> +binutils-2.24-r2.ebuild, -binutils-2.24-r1.ebuild: Add fix from upstream for --as-needed handling #497976 by Lars Wendler. No, I am using -r2. This is what I see with sys-devel/binutils-2.23.2 # ldd -r /usr/lib64/libamdf77.so.0.0.0 linux-vdso.so.1 (0x00007fffa15df000) libc.so.6 => /lib64/libc.so.6 (0x00002ba0f42a8000) /lib64/ld-linux-x86-64.so.2 (0x00002ba0f3e81000) So this is a problem with binutils-2.24 (In reply to Justin Lecher from comment #15) that isn't what your emerge info says: sys-devel/binutils: 2.24-r1 (In reply to SpanKY from comment #17) > (In reply to Justin Lecher from comment #15) > > that isn't what your emerge info says: > sys-devel/binutils: 2.24-r1 I emerged binutils again using ld.bfd after I pasted the emerge --info. So I reproduced it on another box, binutils.2.24-r2 produced the "static" libamdf77.so.0.0.0 binutils-2.23.2 produced a "shared" libamdf77.so.0.0.0 @toolchain, what is this about? attach the full build log of your binutils Created attachment 370612 [details]
binutils-2.23.2:20140217-082017.log
binutils-2.23.2 build.log
Created attachment 370614 [details]
binutils-2.24-r2:20140217-082017.log
binutils-2.24-r2 build.log
*** Bug 515940 has been marked as a duplicate of this bug. *** *** Bug 515934 has been marked as a duplicate of this bug. *** *** Bug 515932 has been marked as a duplicate of this bug. *** *** Bug 515928 has been marked as a duplicate of this bug. *** *** Bug 515924 has been marked as a duplicate of this bug. *** Is this still reproducible with current stable binutils-2.28.1 ? (In reply to Andreas K. Hüttel from comment #28) > Is this still reproducible with current stable binutils-2.28.1 ? No response. |
I don't have anyclue why this happens. Perhaps someone else could look into that. $ einfo sci-libs/amd Portage 2.2.8 (default/linux/amd64/13.0, gcc-4.8.2-asneeded, glibc-2.17, 3.12.8-lh x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.12.8-lh-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.2 KiB Mem: 16468052 total, 1176016 free KiB Swap: 4194300 total, 4186596 free Timestamp of tree: Mon, 20 Jan 2014 07:00:01 +0000 ld GNU gold (GNU Binutils 2.24) 1.11 ccache version 3.1.9 [enabled] app-shells/bash: 4.2_p45-r1 dev-java/java-config: 2.2.0 dev-lang/python: 2.7.6, 3.3.3 dev-util/ccache: 3.1.9-r3 dev-util/cmake: 2.8.12.1-r3 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.12.4 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.10.3, 1.11.6, 1.12.6, 1.13.4, 1.14.1 sys-devel/binutils: 2.24-r1 sys-devel/gcc: 4.1.2, 4.7.3-r1, 4.8.2 sys-devel/gcc-config: 1.8 sys-devel/libtool: 2.4.2 sys-devel/make: 4.0-r1 sys-kernel/linux-headers: 3.12 (virtual/os-headers) sys-libs/glibc: 2.17 Repositories: gentoo sunrise bicatali betagarden dummy Neurogeek science last-hope ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -ftracer -march=native -frecord-gcc-switches -g -Wimplicit-function-declaration" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/eselect/ /usr/share/gnupg/qualified.txt /usr/share/nano/ /var/lib/hsqldb /var/spool/munin-async/.ssh /var/spool/torque" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -ftracer -march=native -frecord-gcc-switches -g -Wenum-compare" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS=" -vt --keep-going --autounmask-write --autounmask --quiet-build=n" FCFLAGS="-O2 -pipe -ftracer -march=native -frecord-gcc-switches -g" FEATURES="assume-digests binpkg-logs buildsyspkg ccache cgroup collision-protect compressdebug distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news noinfo parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms sign split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe -ftracer -march=native -frecord-gcc-switches -g" GENTOO_MIRRORS=" /mnt/tmpfs/ http://gentoo.j-schmitz.net/mirror/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/" LANG="en_GB.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common" MAKEOPTS="-j4 -l8" PKGDIR="/usr/portage/packages" PORTAGE_COMPRESS="xz" PORTAGE_COMPRESS_FLAGS="-z -e -9 -v" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--omit-dir-times" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/local/overlays/sunrise-reviewed /local/overlays/bicatali /local/overlays/betagarden /local/overlays/dummy /local/overlays/neurogeek /local/overlays/sci /local/overlays/lh-overlay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl alsa amd64 avx bash-completion berkdb branding bzip2 cairo caps cli cracklib crypt cups cxx dbus dri fortran gdbm gif gmp gstreamer gtk iconv icu ipv6 jpeg jpeg2k ldap logrotate mmx mmxext modules mudflap multilib ncurses network-cron nls nptl nsplugin numa opengl openmp pam pcre pgo png pulseaudio qt3support readline session smp sse sse2 sse2_4way sse2check sse3 sse4 sse41 sse4_1 sse4a sse5 ssl ssse3 startup-notification tcpd threads tiff truetype unicode vaapi vdpau xattr xinerama zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="plymouth" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-32 efi-64" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer pdfimport scripting-javascript wiki-publisher nlpsolver" LINGUAS="en" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gzip limit_conn limit_req map memcached proxy referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi stub_status" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386 x86_64 arm armeb" QEMU_USER_TARGETS="i386 x86_64 arm armeb" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" USE_PYTHON="2.7 3.3" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND ================================================================= Package Settings ================================================================= sci-libs/amd-2.3.1 was built with the following: USE="fortran -doc -static-libs"