Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 562690 - sys-devel/gcc-4.9.3[vanilla]: parallel build failure with config.h
Summary: sys-devel/gcc-4.9.3[vanilla]: parallel build failure with config.h
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-09 22:15 UTC by Gary E. Miller
Modified: 2015-10-13 19:07 UTC (History)
1 user (show)

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


Attachments
build.log (build.log.gz,229.68 KB, application/gzip)
2015-10-09 22:16 UTC, Gary E. Miller
Details
environment (environment,165.17 KB, text/plain)
2015-10-09 22:17 UTC, Gary E. Miller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gary E. Miller 2015-10-09 22:15:03 UTC
This is exactly the same bug as 545010.  Except for gcc-4.9.3 instead of gcc-4.9.2

Reproducible: Always

Steps to Reproduce:
1. set in make.conf: MAKEOPTS="-j8 -l4"
2. emerge -1a =sys-devel/gcc-4.9.3

Actual Results:  
/var/tmp/portage/sys-devel/gcc-4.9.3/work/build/./prev-gcc/xg++ -B/var/tmp/portage/sys-devel/gcc-4.9.3/work/build/./prev-gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -nostdinc++ -B/var/tmp/portage/sys-devel/gcc-4.9.3/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -B/var/tmp/portage/sys-devel/gcc-4.9.3/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs  -isystem /var/tmp/portage/sys-devel/gcc-4.9.3/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu  -isystem /var/tmp/portage/sys-devel/gcc-4.9.3/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/include  -isystem /var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/libstdc++-v3/libsupc++ -L/var/tmp/portage/sys-devel/gcc-4.9.3/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -L/var/tmp/portage/sys-devel/gcc-4.9.3/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -c  -DSTANDARD_STARTFILE_PREFIX=\"../../../\" -DSTANDARD_EXEC_PREFIX=\"/usr/lib/gcc/\" -DSTANDARD_LIBEXEC_PREFIX=\"/usr/libexec/gcc/\" -DDEFAULT_TARGET_VERSION=\"4.9.3\" -DDEFAULT_TARGET_MACHINE=\"x86_64-pc-linux-gnu\" -DSTANDARD_BINDIR_PREFIX=\"/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.3/\" -DTOOLDIR_BASE_PREFIX=\"../../../../\"  -DENABLE_SHARED_LIBGCC -DCONFIGURE_SPECS="\"\"" -DTARGET_MACHINE=\"x86_64-pc-linux-gnu\" -DPERSONALITY=\"ar\" -m64 -O2 -pipe -march=core-avx2 -DIN_GCC    -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/gcc -I/var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/gcc/. -I/var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/gcc/../libcpp/include  -I/var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/gcc/../libdecnumber/bid -I../libdecnumber -I/var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/gcc/../libbacktrace    -o gcc-ar.o -MT gcc-ar.o -MMD -MP -MF ./.deps/gcc-ar.TPo /var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/gcc/gcc-ar.c
In file included from /var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/gcc/gcc-ar.c:22:0:
/var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/gcc/system.h:506:34: error: conflicting declaration of C function 'const char* strsignal(int)'
 extern const char *strsignal (int);
                                  ^
In file included from /var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/libstdc++-v3/include/c_global/cstring:42:0,
                 from /var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/gcc/system.h:205,
                 from /var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/gcc/gcc-ar.c:22:
/usr/include/string.h:563:14: note: previous declaration 'char* strsignal(int)'
 extern char *strsignal (int __sig) __THROW;
              ^
In file included from /var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/gcc/../include/hashtab.h:40:0,
                 from /var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/gcc/../include/filenames.h:29,
                 from /var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/gcc/system.h:630,
                 from /var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/gcc/gcc-ar.c:22:
/var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/gcc/../include/ansidecl.h:171:64: error: ambiguating new declaration of 'char* basename(const char*)'
 #  define ATTRIBUTE_NONNULL(m) __attribute__ ((__nonnull__ (m)))
                                                                ^


Expected Results:  
gcc emerged.

USE="-cilk" and USE="cilk" make no difference.

Changing MAKEOPTS="-j8 -l4"
to: MAKEOPTS="-j2 -l4"

And it emerges fine.  Clearly a parallel make problem.

The exact formula to cause the parallel make to fail is different on different hosts.  As expected for a concurrency related problem.


backup ~ # emerge --info
Portage 2.2.20.1 (python 2.7.10-final-0, default/linux/amd64/13.0, gcc-4.9.3, glibc-2.20-r2, 4.0.5-gentoo x86_64)
=================================================================
System uname: Linux-4.0.5-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E3-1241_v3_@_3.50GHz-with-gentoo-2.2
KiB Mem:    16433180 total,   1198996 free
KiB Swap:   33554428 total,  33551612 free
Timestamp of repository gentoo: Fri, 09 Oct 2015 16:15:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc[20667] (dcc_trace_version) distcc 3.1 x86_64-pc-linux-gnu; built Oct  9 2015 12:24:44 [disabled]
app-shells/bash:          4.3_p39::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

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

javer
    location: /var/lib/layman/javer
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core-avx2 "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
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 -march=core-avx2 "
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs cgroup config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://mirror.usu.edu/mirrors/gentoo/ "
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8 -l4"
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"
PORTAGE_TMPDIR="/var/tmp"
USE="10bit X aac acl aio amd64 asyncdns avahi berkdb bzip2 caps cli cracklib crypt cxx dbus dri enca examples faac fontconfig fortran fpx gbm gcrypt gdbm gnutls gs gsm gtk hdri iconv ipv6 jbig jpeg jpeg2k lcms libnl lzma mmx mmxext modules mp3 multilib ncurses nfs nfsdcld nfsidmap nfsv4 nfsv41 nls nptl openexr openmp openssl pam pcre png python q32 q8 qt4 qt5 raw readline rpc sctp seccomp session sse sse2 ssh ssl svg tcpd threads tiff truetype unbound unicode vim-syntax vpx wmf x264 x265 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="apache conntrack cpu csv df disk exec filecount interface iptables irq load logfile match_empty_counter match_regex match_value memcached memory mysql network rrdtool sensors swap syslog table tail target_notification target_replace target_scale target_set tcpconns unixsock uptime users vmem write_http" CPU_FLAGS_X86="aes avx avx2 fma3 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 gentoo_platforms_efi-32 gentoo_platforms_efi-64 pc" 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 en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="nv nouveau vesa radeon" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Gary E. Miller 2015-10-09 22:16:33 UTC
Created attachment 414232 [details]
build.log
Comment 2 Gary E. Miller 2015-10-09 22:17:04 UTC
Created attachment 414234 [details]
environment
Comment 3 SpanKY gentoo-dev 2015-10-13 02:35:29 UTC
> * USE:        abi_x86_64 amd64 cxx elibc_glibc fortran kernel_linux multilib nls nptl openmp sanitize userland_GNU vanilla

if you enable USE=vanilla, it's your problem when things break
Comment 4 Gary E. Miller 2015-10-13 05:09:47 UTC
I have never used vanilla.  So an invalid reason to mark my bug invalid.
Comment 5 Gary E. Miller 2015-10-13 07:31:24 UTC
Ouch, to follow up on my follow up.  Yes, vanilla was set in my package.use.  No idea how that happened, and removing it did indeed solve the problem.

My apologies for the false alarm.

RGDS
GARY
Comment 6 SpanKY gentoo-dev 2015-10-13 19:07:42 UTC
(In reply to Gary E. Miller from comment #5)

i quoted a line from the header in your log ;)