Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 561280 - sys-devel/gcc-4.9.3 fails to build on multilib
Summary: sys-devel/gcc-4.9.3 fails to build on multilib
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-23 15:48 UTC by Fatih
Modified: 2018-06-20 22:00 UTC (History)
1 user (show)

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


Attachments
Failed emerge build log for sys-devel:gcc-4.9.3 (sys-devel:gcc-4.9.3:20150923-141633.log.gz,105.22 KB, application/gzip)
2015-09-23 15:52 UTC, Fatih
Details
Failed emerge build log for sys-devel:gcc-4.8.5 (sys-devel:gcc-4.8.5:20150923-134319.log.gz,118.12 KB, application/gzip)
2015-09-23 15:52 UTC, Fatih
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fatih 2015-09-23 15:48:28 UTC
Since the install I have been ignoring to update gcc 4.8.4. Now that I decided to emerge -1 gcc keeps failing with the same error message (for both 4.8.5 and 4.9.3).

Makefile:497: recipe for target 'barrier.lo' failed

I have the following enabled for gcc under portage/env
MAKEOPTS="-j1"
PORTAGE_TMPDIR="/var/tmp/notmpfs"

I have seen in the forums compiling glibc with -sandbox fixes similar fail for someone but did not work for me. 

sys-libs/glibc-2.21-r1 also fails with this error message
{standard input}:76: Error: junk `@indntpoff' after expression


Switching to no-multilib profile emerges both glibc and gcc fine. however I have 32bit binaries and cannot afford to switch. 
I started to think this is machine specific because I could find the same failure message anywhere. Is there anything suspicious in emerge info that I am missing? 


Reproducible: Always

Steps to Reproduce:
1. emerge -1 gcc
Actual Results:  
exiting unsuccessfully with status '1'

Expected Results:  
exiting successfully.

Portage 2.2.20 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.8.4, glibc-2.21-r1, 4.0.4-gentoo x86_64)
=================================================================
System uname: Linux-4.0.4-gentoo-x86_64-Intel-R-_Core-TM-_i7-2640M_CPU_@_2.80GHz-with-gentoo-2.2
KiB Mem:     3920480 total,    642184 free
KiB Swap:    9169116 total,   7996172 free
Timestamp of repository gentoo: Wed, 23 Sep 2015 05:00:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25.1 p1.0) 2.25.1
ccache version 3.2.2 [disabled]
app-shells/bash:          4.3_p39::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.10::gentoo, 3.3.5-r1::gentoo
dev-util/ccache:          3.2.2::gentoo
dev-util/cmake:           3.3.0::gentoo
dev-util/pkgconfig:       0.28-r3::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1::gentoo
sys-devel/gcc:            4.8.4::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=corei7-avx -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=corei7-avx -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --quiet-build --load-average=4.0 --jobs=2 --autounmask-write"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="tr_TR.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="xz"
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"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi aes alsa amd64 avx berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode examples exif fam firefox flac fortran gdbm gif glamor gpm iconv ipv6 jpeg kde kipi lcms ldap libnotify lzma mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nepomuk networkmanager nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit popcnt ppds pulseaudio python qt3support qt4 readline sdl seccomp semantic-desktop session spell sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg tcpd thumbnail tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel intel8x0 intel8x0m" 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" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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="emu efi-32 efi-64 pc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="intel i915 nouveau nvidia nv i965" 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_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Fatih 2015-09-23 15:52:15 UTC
Created attachment 412662 [details]
Failed emerge build log for sys-devel:gcc-4.9.3
Comment 2 Fatih 2015-09-23 15:52:48 UTC
Created attachment 412664 [details]
Failed emerge build log for sys-devel:gcc-4.8.5
Comment 3 Rafał Mużyło 2015-09-23 16:51:49 UTC
...while initially I'd go on OOM angle, the fact that it goes there for both 4.9.3 *and* 4.8.5 makes it a bit doubtful.

Register exhaustion would be a good idea too...if we weren't talking about a 64bit cpu.

The important part seems to be that it happens without an error message...so:

1. go into /var/tmp/notmpfs/portage/sys-devel/gcc-4.8.5/work/build/x86_64-pc-linux-gnu/32/libgomp 
2. run '/var/tmp/notmpfs/portage/sys-devel/gcc-4.8.5/work/build/./gcc/xgcc -B/var/tmp/notmpfs/portage/sys-devel/gcc-4.8.5/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 -DHAVE_CONFIG_H -I. -I/var/tmp/notmpfs/portage/sys-devel/gcc-4.8.5/work/gcc-4.8.5/libgomp -I/var/tmp/notmpfs/portage/sys-devel/gcc-4.8.5/work/gcc-4.8.5/libgomp/config/linux/x86 -I/var/tmp/notmpfs/portage/sys-devel/gcc-4.8.5/work/gcc-4.8.5/libgomp/config/linux -I/var/tmp/notmpfs/portage/sys-devel/gcc-4.8.5/work/gcc-4.8.5/libgomp/config/posix -I/var/tmp/notmpfs/portage/sys-devel/gcc-4.8.5/work/gcc-4.8.5/libgomp -Wall -ftls-model=initial-exec -march=i486 -pthread -mtune=generic -g -O2 -pipe -march=corei7-avx -m32 -MT barrier.lo -MD -MP -MF .deps/barrier.Tpo -c /var/tmp/notmpfs/portage/sys-devel/gcc-4.8.5/work/gcc-4.8.5/libgomp/barrier.c -o barrier.o'

3. hope for a proper error from the compiler

On not quite related note: '-sandbox' is almost never a good idea.
Comment 4 Fatih 2015-09-23 20:15:49 UTC
Dear Rafel, thank you for your quick suggestion.

I had to reproduce the build dir with -fail-clean. It failed as usual. But here is surprise. 
I ran the below command which was failing during emerge:
/var/tmp/notmpfs/portage/sys-devel/gcc-4.8.5/work/build/./gcc/xgcc -B/var/tmp/notmpfs/portage/sys-devel/gcc-4.8.5/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 -DHAVE_CONFIG_H -I. -I/var/tmp/notmpfs/portage/sys-devel/gcc-4.8.5/work/gcc-4.8.5/libgomp -I/var/tmp/notmpfs/portage/sys-devel/gcc-4.8.5/work/gcc-4.8.5/libgomp/config/linux/x86 -I/var/tmp/notmpfs/portage/sys-devel/gcc-4.8.5/work/gcc-4.8.5/libgomp/config/linux -I/var/tmp/notmpfs/portage/sys-devel/gcc-4.8.5/work/gcc-4.8.5/libgomp/config/posix -I/var/tmp/notmpfs/portage/sys-devel/gcc-4.8.5/work/gcc-4.8.5/libgomp -Wall -ftls-model=initial-exec -march=i486 -pthread -mtune=generic -g -O2 -pipe -march=corei7-avx -m32 -MT barrier.lo -MD -MP -MF .deps/barrier.Tpo -c /var/tmp/notmpfs/portage/sys-devel/gcc-4.8.5/work/gcc-4.8.5/libgomp/barrier.c -o barrier.o

and got no errors! 
# file barrier.o
barrier.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not stripped
Where to go with this?
Comment 5 Fatih 2015-10-12 10:23:03 UTC
bump
Comment 6 Fatih 2015-10-29 19:18:21 UTC
Okay, I narrowed it down a bit. I hope it helps. In the Chrooted the latest stage3 and gcc-4.8.5 emerges gcc-4.9.3 as well as glibc just fine with the same CFLAGS 

  # grep CFLAGS /etc/portage/make.conf
  CFLAGS="-O2 -pipe -march=corei7-avx -fomit-frame-pointer"
  CXXFLAGS="${CFLAGS}

(march=native also did not help on host)

Using this binary package to build gcc-4.9.3 on the host gives the same error.

Does this give you any hint on the issue?
Comment 7 Andreas K. Hüttel archtester gentoo-dev 2018-06-20 22:00:53 UTC
This version is long gone. If you still have problems, please file a new bug.