Created attachment 472644 [details] gcc-build-logs.tar.bz2 /space/portage-tmp/portage/sys-devel/gcc-6.3.0/work/build/./prev-gcc/xgcc -B/space/portage-tmp/portage/sys-devel/gcc-6.3.0/wo rk/build/./prev-gcc/ -B/usr/alpha-unknown-linux-gnu/bin/ -B/usr/alpha-unknown-linux-gnu/bin/ -B/usr/alpha-unknown-linux-gnu/l ib/ -isystem /usr/alpha-unknown-linux-gnu/include -isystem /usr/alpha-unknown-linux-gnu/sys-include -c -DHAVE_CONFIG_H -mi eee -pipe -O2 -mcpu=ev67 -gtoggle -I. -I/space/portage-tmp/portage/sys-devel/gcc-6.3.0/work/gcc-6.3.0/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic -D_GNU_SOURCE /space/portage-tmp/portage/sys-devel/gcc-6 .3.0/work/gcc-6.3.0/libiberty/dyn-string.c -o dyn-string.o cc1: warning: -fstack-protector not supported for this target /space/portage-tmp/portage/sys-devel/gcc-6.3.0/work/gcc-6.3.0/libiberty/fibheap.c: In function ‘fibheap_replace_key_data’: /space/portage-tmp/portage/sys-devel/gcc-6.3.0/work/gcc-6.3.0/libiberty/fibheap.c:38:24: error: ‘LONG_MIN’ undeclared (first use in this function) #define FIBHEAPKEY_MIN LONG_MIN ^ /space/portage-tmp/portage/sys-devel/gcc-6.3.0/work/gcc-6.3.0/libiberty/fibheap.c:220:30: note: in expansion of macro ‘FIBHEA PKEY_MIN’ if (okey == key && okey != FIBHEAPKEY_MIN) ^~~~~~~~~~~~~~ /space/portage-tmp/portage/sys-devel/gcc-6.3.0/work/gcc-6.3.0/libiberty/fibheap.c:38:24: note: each undeclared identifier is reported only once for each function it appears in #define FIBHEAPKEY_MIN LONG_MIN ^ /space/portage-tmp/portage/sys-devel/gcc-6.3.0/work/gcc-6.3.0/libiberty/fibheap.c:220:30: note: in expansion of macro ‘FIBHEA PKEY_MIN’ if (okey == key && okey != FIBHEAPKEY_MIN) ^~~~~~~~~~~~~~ /space/portage-tmp/portage/sys-devel/gcc-6.3.0/work/gcc-6.3.0/libiberty/fibheap.c: In function ‘fibheap_delete_node’: /space/portage-tmp/portage/sys-devel/gcc-6.3.0/work/gcc-6.3.0/libiberty/fibheap.c:38:24: error: ‘LONG_MIN’ undeclared (first use in this function) #define FIBHEAPKEY_MIN LONG_MIN ^ /space/portage-tmp/portage/sys-devel/gcc-6.3.0/work/gcc-6.3.0/libiberty/fibheap.c:261:36: note: in expansion of macro ‘FIBHEA PKEY_MIN’ fibheap_replace_key (heap, node, FIBHEAPKEY_MIN); ^~~~~~~~~~~~~~ make[3]: *** [Makefile:752: fibheap.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory '/space/portage-tmp/portage/sys-devel/gcc-6.3.0/work/build/libiberty' make[2]: *** [Makefile:9629: all-stage2-libiberty] Error 2 make[2]: Leaving directory '/space/portage-tmp/portage/sys-devel/gcc-6.3.0/work/build' make[1]: *** [Makefile:19443: stage2-bubble] Error 2 make[1]: Leaving directory '/space/portage-tmp/portage/sys-devel/gcc-6.3.0/work/build' make: *** [Makefile:19658: bootstrap-lean] Error 2 * ERROR: sys-devel/gcc-6.3.0::gentoo failed (compile phase): Portage 2.3.5 (python 2.7.13-final-0, default/linux/alpha/13.0, gcc-5.4.0, glibc-2.24-r1, 4.10.9+ alpha) ================================================================= System uname: Linux-4.10.9+-alpha-EV68AL-with-gentoo-2.3 KiB Mem: 8301624 total, 1129056 free KiB Swap: 977912 total, 642512 free Timestamp of repository gentoo: Mon, 15 May 2017 07:22:13 +0000 sh bash 4.4_p12 ld GNU ld (Gentoo 2.27 p1.0) 2.27 ccache version 3.3.4 [disabled] app-shells/bash: 4.4_p12::gentoo dev-lang/perl: 5.24.1-r1::gentoo dev-lang/python: 2.7.13::gentoo, 3.4.6::gentoo dev-util/ccache: 3.3.4::gentoo dev-util/cmake: 3.8.1::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.3::gentoo sys-apps/openrc: 0.26.1::gentoo sys-apps/sandbox: 2.10-r4::gentoo sys-devel/autoconf: 2.69-r3::gentoo sys-devel/automake: 1.15-r2::gentoo sys-devel/binutils: 2.27::gentoo sys-devel/gcc: 5.4.0-r3::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r4::gentoo sys-devel/make: 4.2.1-r1::gentoo sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers) sys-libs/glibc: 2.24-r1::local Repositories: gentoo location: /usr/portage sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo priority: -1000 local location: /usr/local/portage masters: gentoo priority: 0 ACCEPT_KEYWORDS="alpha ~alpha" ACCEPT_LICENSE="* -@EULA" CBUILD="alpha-unknown-linux-gnu" CFLAGS="-mieee -pipe -O2 -mcpu=ev67" CHOST="alpha-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-mieee -pipe -O2 -mcpu=ev67" DISTDIR="/space/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs 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 xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LC_ALL="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j5" PKGDIR="/space/packages/system" 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="/space/portage-tmp" USE="acl alpha bash-completion berkdb bzip2 cli cracklib crypt cxx dri fortran ftp gdbm iconv ipv6 mmap modules ncurses nls nptl nptlonly offensive pam pcre readline recode session sharedmem sockets ssl unicode vim vim-pager xattr zlib" ALSA_CARDS="a li5451 als4000 bt87x ca0106 cmipci emu10k1 ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 maestro3 trident usb-audio via82xx ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon au thn_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 lo gio 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" COLLECTD_PLUGINS="df interface irq load memo ry rrdtool swap syslog" 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 t nt 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" OFFICE_IMPLEMENTATION="libreoffice" PHP_TAR GETS="php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
LONG_MIN is defined in limits.h. libiberty/fibheap.c contains: #ifdef HAVE_LIMITS_H #include <limits.h> #endif Your libiberty/config.log contains: configure:5220: checking for limits.h configure:5220: /space/portage-tmp/portage/sys-devel/gcc-6.3.0/work/build/./prev-gcc/xgcc -B/space/portage-tmp/portage/sys-devel/gcc-6.3.0/work/build/./prev-gcc/ -B/usr/alpha-unknown-linux-gnu/bin/ -B/usr/alpha-unknown-linux-gnu/bin/ -B/usr/alpha-unknown-linux-gnu/lib/ -isystem /usr/alpha-unknown-linux-gnu/include -isystem /usr/alpha-unknown-linux-gnu/sys-include -E conftest.c cc1: warning: -fstack-protector not supported for this target configure:5220: $? = 0 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | /* end confdefs.h. */ | #include <limits.h> configure:5220: result: no So limits.h was not detected. Due to "cc1: warning: -fstack-protector not supported for this target" maybe try to build sys-devel/gcc-6.3.0 with USE="-ssp".
Indeed it compiles without USE=ssp. What's your opinion on masking that flag for gcc on Alpha? Or do we lose other useful stuff if we do that?
Maybe check if stack protector is still not supported for Alpha in GCC 7.
Another data point is that I notice OOM killer messages on the machine in question, so I am not sure if the original failure wasn't (transitively) caused by running out of memory. Either way, SSP is not supported with gcc6, so w may consider masking the USE flag for (at least gcc 6). I'll see if gcc7 has alpha ssp support and will then decide what to do with the USE flag. Either way, this can (at least for now) be closed as INVALID.
If solution is to mask a flag, then a bug would still be valid...
(In reply to Arfrever Frehtes Taifersar Arahesis from comment #5) > If solution is to mask a flag, then a bug would still be valid... Sure, but it's not like reopening this bug will be difficult. For now the matter is on out (Alpha AT) team and we'll see how to deal with it if necessary.
sys-devel/gcc-7.1.0-r1 throws the same errors and then fails with USE=ssp. Without that flag, it compiles and tests fine. I will mask the flag for >=gcc-6 on alpha in a minute.
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b48dc3772af19e41c72d39d37e338d8e5a0aaddc