Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 610786 - sys-devel/gcc-5.4.0: xgcc: error: libatomic.so.1: No such file or directory; xgcc: error: unrecognized command line option '--version-script'; xgcc: error: unrecognized command line option '-soname'
Summary: sys-devel/gcc-5.4.0: xgcc: error: libatomic.so.1: No such file or directory; ...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-24 10:20 UTC by dE
Modified: 2017-10-03 21:25 UTC (History)
1 user (show)

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


Attachments
Failed build log. (build.log.xz,111.90 KB, application/x-xz)
2017-02-24 10:20 UTC, dE
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dE 2017-02-24 10:20:53 UTC
Created attachment 464982 [details]
Failed build log.

The build fails with this. This library is not present on the system.

Attaching build log.

Portage 2.3.3 (python 2.7.12-final-0, default/linux/amd64/13.0/desktop/plasma/systemd, gcc-5.4.0, glibc-2.23-r3, 4.3.5-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.3.5-gentoo-x86_64-Intel-R-_Core-TM-_i3-2120_CPU_@_3.30GHz-with-gentoo-2.3
KiB Mem:    16362476 total,   3141972 free
KiB Swap:   18874364 total,  18868684 free
Timestamp of repository gentoo: Thu, 23 Feb 2017 00:45:01 +0000
sh bash 4.3_p48-r1
ld GNU gold (Gentoo 2.25.1 p1.1 2.25.1) 1.11
ccache version 3.2.4 [enabled]
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.3_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.23.2::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.4.0-r2::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
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="-march=native -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=n --complete-graph --binpkg-respect-use=y --binpkg-changed-deps n --changed-deps n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs binpkg-multi-instance candy ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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 --exclude=/.git"
PORTAGE_TMPDIR="/tmp"
USE="X a52 a53 aac aalib acc acpi adns aio alsa amd64 amr atm audiofile bash-completion branding bzip2 cdda cdr cli cracklib css custom-cflags custom-optimization dbus dbx declarative dga dirac dri dri3 dts dv dvd dvdr emboss encode enscript exif faad ffmpeg firefox flac fortran gdu gif glamor glut gmp gsm gstreamer gzip http2 iconv imlib ipc jemalloc jit jpeg jpeg2k kde ladspa lame libedit libnotify libsamplerate libwww lzma lzo mad matroska matrox mikmod mime minimal mmap mmx mng modules mozilla mp3 mp4 mpeg mplayer mudflap multilib musepack networkmanager nntp nocd nptl nptlonly nsplugin offensive ogg openal openexr opengl openmp optimization orc osc pam pango pdf pgo phonon pie plasma png policykit posix ppds pppd qml qt5 quicktime raw readline schroedinger sharedmem shorten smp sndfile sockets socks5 speex spell sse sse2 sse3 sse4 sse4_1 sse4_2 ssse3 startup-notification strong-optimization svg symlink sysfs systemd taglib tcmalloc theora threads tiff toolame truetype twolame udev udisks unicode unixd upower usb vaapi vcd vhosts vorbis wavpack widgets win32codecs wmf wxwidgets x264 x265 xcb xcomposite xine xinerama xml xorg xpm xv xvid 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="unixd authn_core authz_core authz_host access_compat alias auth_basic authn_file log_config mime log_config proxy proxy_http rewrite proxy_balancer lbmethod_bybusyness lbmethod_byrequests lbmethod_bytraffic lbmethod_heartbeat slotmem_shm env cache dir cgid headers" APACHE2_MPMS="event" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="ssse3 sse3 sse4_1 sse4_2 mmx sse avx mmx sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver pdfimport" NGINX_MODULES_HTTP="access fastcgi gzip gzip_static limit_req rewrite upstream_check" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="x86_64" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="intel i965 i915" 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"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

sys-devel/gcc-5.4.0-r2::gentoo was built with the following:
USE="cxx graphite (multilib) nptl openmp (policykit) vtv (-altivec) (-awt) -cilk -debug -doc (-fixed-point) -fortran -gcj -go (-hardened) (-jit) (-libssp) -mpx -nls -nopie -nossp -objc -objc++ -objc-gc -regression-test -sanitize -vanilla" ABI_X86="64"
CFLAGS="-march=native -pipe -O2"
CXXFLAGS="-march=native -pipe -O2"
Comment 1 SpanKY gentoo-dev 2017-03-13 04:23:21 UTC
the error is while creating the library, not trying to find it.  here's the full error message:

libtool: link: /tmp/portage/sys-devel/gcc-5.4.0-r3/work/build/./gcc/xgcc -B/tmp/portage/sys-devel/gcc-5.4.0-r3/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include  -m32 -shared  -DPIC  .libs/gload.o .libs/gstore.o .libs/gcas.o .libs/gexch.o .libs/glfree.o .libs/lock.o .libs/init.o .libs/fenv.o .libs/load_1_.o .libs/store_1_.o .libs/cas_1_.o .libs/exch_1_.o .libs/fadd_1_.o .libs/fsub_1_.o .libs/fand_1_.o .libs/fior_1_.o .libs/fxor_1_.o .libs/fnand_1_.o .libs/tas_1_.o .libs/load_2_.o .libs/store_2_.o .libs/cas_2_.o .libs/exch_2_.o .libs/fadd_2_.o .libs/fsub_2_.o .libs/fand_2_.o .libs/fior_2_.o .libs/fxor_2_.o .libs/fnand_2_.o .libs/tas_2_.o .libs/load_4_.o .libs/store_4_.o .libs/cas_4_.o .libs/exch_4_.o .libs/fadd_4_.o .libs/fsub_4_.o .libs/fand_4_.o .libs/fior_4_.o .libs/fxor_4_.o .libs/fnand_4_.o .libs/tas_4_.o .libs/load_8_.o .libs/store_8_.o .libs/cas_8_.o .libs/exch_8_.o .libs/fadd_8_.o .libs/fsub_8_.o .libs/fand_8_.o .libs/fior_8_.o .libs/fxor_8_.o .libs/fnand_8_.o .libs/tas_8_.o .libs/load_8_1_.o .libs/store_8_1_.o .libs/cas_8_1_.o .libs/exch_8_1_.o .libs/fadd_8_1_.o .libs/fsub_8_1_.o .libs/fand_8_1_.o .libs/fior_8_1_.o .libs/fxor_8_1_.o .libs/fnand_8_1_.o .libs/tas_8_1_.o   -lc  -march=i486 -mtune=generic -pthread -march=native -m32 --version-script /tmp/portage/sys-devel/gcc-5.4.0-r3/work/gcc-5.4.0/libatomic/libatomic.map -m32   -pthread -soname libatomic.so.1 -o .libs/libatomic.so.1.1.0
xgcc: error: libatomic.so.1: No such file or directory
xgcc: error: unrecognized command line option '--version-script'
xgcc: error: unrecognized command line option '-soname'
make[8]: *** [Makefile:450: libatomic.la] Error 1

it's supposed to be more like:
... -pthread -Wl,-soname -Wl,libatomic.so.1 -o .libs/libatomic.so.1.1.0

try using binutils-2.26 or newer instead of 2.25, and try using bfd instead of gold
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2017-08-30 14:40:43 UTC
(In reply to SpanKY from comment #1)
> .libs/exch_8_1_.o .libs/fadd_8_1_.o .libs/fsub_8_1_.o .libs/fand_8_1_.o
> .libs/fior_8_1_.o .libs/fxor_8_1_.o .libs/fnand_8_1_.o .libs/tas_8_1_.o  
> -lc  -march=i486 -mtune=generic -pthread -march=native -m32 --version-script
> /tmp/portage/sys-devel/gcc-5.4.0-r3/work/gcc-5.4.0/libatomic/libatomic.map
> -m32   -pthread -soname libatomic.so.1 -o .libs/libatomic.so.1.1.0
> xgcc: error: libatomic.so.1: No such file or directory
> xgcc: error: unrecognized command line option '--version-script'
> xgcc: error: unrecognized command line option '-soname'
> make[8]: *** [Makefile:450: libatomic.la] Error 1
> 
> it's supposed to be more like:
> ... -pthread -Wl,-soname -Wl,libatomic.so.1 -o .libs/libatomic.so.1.1.0
> 
> try using binutils-2.26 or newer instead of 2.25, and try using bfd instead
> of gold

Any luck?
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2017-10-03 21:25:29 UTC
(In reply to Andreas K. Hüttel from comment #2)
> (In reply to SpanKY from comment #1)
> > .libs/exch_8_1_.o .libs/fadd_8_1_.o .libs/fsub_8_1_.o .libs/fand_8_1_.o
> > .libs/fior_8_1_.o .libs/fxor_8_1_.o .libs/fnand_8_1_.o .libs/tas_8_1_.o  
> > -lc  -march=i486 -mtune=generic -pthread -march=native -m32 --version-script
> > /tmp/portage/sys-devel/gcc-5.4.0-r3/work/gcc-5.4.0/libatomic/libatomic.map
> > -m32   -pthread -soname libatomic.so.1 -o .libs/libatomic.so.1.1.0
> > xgcc: error: libatomic.so.1: No such file or directory
> > xgcc: error: unrecognized command line option '--version-script'
> > xgcc: error: unrecognized command line option '-soname'
> > make[8]: *** [Makefile:450: libatomic.la] Error 1
> > 
> > it's supposed to be more like:
> > ... -pthread -Wl,-soname -Wl,libatomic.so.1 -o .libs/libatomic.so.1.1.0
> > 
> > try using binutils-2.26 or newer instead of 2.25, and try using bfd instead
> > of gold
> 
> Any luck?

No reply.