Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gcc-4.9.3 fails as does any other gcc version package
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
gcombe74
n00b
n00b


Joined: 27 Jan 2004
Posts: 47
Location: Ogden Utah

PostPosted: Wed Jul 13, 2016 7:21 pm    Post subject: gcc-4.9.3 fails as does any other gcc version package Reply with quote

I have researched this for a day now... so maybe someone can shed some light on this one..

Code:


checking for catalogs to be installed...  be ca da de el eo es fi fr id ja nl pt_BR ru sr sv tr uk vi zh_CN zh_TW be ca da de el eo es fi fr id ja nl pt_BR ru sr sv tr uk vi zh_CN zh_TW
checking for uchar...
checking for ld used by GCC... /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld
checking if the linker (/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for iconv... yes
checking for iconv declaration... install-shextern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
configure: updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depdir commands
mkdir -p -- .deps
make[2]: Leaving directory '/var/tmp/portage/sys-devel/gcc-4.9.3/work/build'
Makefile:18958: recipe for target 'stage1-bubble' failed
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory '/var/tmp/portage/sys-devel/gcc-4.9.3/work/build'
Makefile:19289: recipe for target 'bootstrap-lean' failed
make: *** [bootstrap-lean] Error 2
 * ERROR: sys-devel/gcc-4.9.3::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sys-devel/gcc-4.9.3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/gcc-4.9.3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.9.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.9.3/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-devel/gcc-4.9.3/work/build'
 * S: '/var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3'
 *
 * Please include /var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-build-logs.tar.bz2 in your bug report.
 *



emerge --info '=sys-devel/gcc-4.9.3::gentoo'
Portage 2.2.28 (python 3.4.3-final-0, default/linux/amd64/13.0, gcc-4.6.3, glibc-2.22-r4, 3.2.2 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.2.2-x86_64-AMD_Opteron-tm-_Processor_4162_EE-with-gentoo-2.2
KiB Mem:    32934980 total,  13457484 free
KiB Swap:    2104508 total,   2104508 free
Timestamp of repository gentoo: Wed, 13 Jul 2016 00:45:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r1::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::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.19.1::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.11.6::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.6.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: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
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"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/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"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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="/var/tmp"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx mmxext modules multilib ncurses nls nptl openmp pam pcre readline seccomp session sse sse2 ssl tcpd unicode xattr 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" CPU_FLAGS_X86="mmx mmxext sse sse2" 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" 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="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" 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, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON



_________________
Gentoo Linux go with the best ---- and forget the rest!
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7618
Location: almost Mile High in the USA

PostPosted: Wed Jul 13, 2016 11:38 pm    Post subject: Reply with quote

Need more of the build log:
Code:
  * The complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.9.3/temp/build.log'.

_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
gcombe74
n00b
n00b


Joined: 27 Jan 2004
Posts: 47
Location: Ogden Utah

PostPosted: Thu Jul 14, 2016 3:52 pm    Post subject: Reply with quote

here is the complete build log

http://coverandcushion.com/build.log
_________________
Gentoo Linux go with the best ---- and forget the rest!
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7618
Location: almost Mile High in the USA

PostPosted: Thu Jul 14, 2016 4:25 pm    Post subject: Reply with quote

Looks like an existing gcc problem, seems you're using gcc-4.6.3...

/var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/libiberty/fibheap.c:220:30: error: 'LONG_MIN' undeclared (first use in this function)

What versions of gcc do you have installed?

gcc-config -l

If you have a newer one, try setting to that one

gcc-config (option number)

and try merging again.

If you don't have a newer one, what versions did you try building? Try something older (4.7 before 4.8?) Not sure which ones you tried...

Other things to try: remove your CFLAGS from make.conf temporarily.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
gcombe74
n00b
n00b


Joined: 27 Jan 2004
Posts: 47
Location: Ogden Utah

PostPosted: Thu Jul 14, 2016 4:40 pm    Post subject: Reply with quote

only one version of gcc installed.

Code:
 gcc-config -l
 [1] x86_64-pc-linux-gnu-4.6.3 *



yeah tried 4.8 and 5.1. same result. even tried

emerge --nodeps gcc

no luck same message in log files. I will try removing the CF Flags now.
_________________
Gentoo Linux go with the best ---- and forget the rest!
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7618
Location: almost Mile High in the USA

PostPosted: Thu Jul 14, 2016 4:55 pm    Post subject: Reply with quote

Also try gcc-4.7.4 and might be worth to try gcc-4.6.4 as well.

I'm not sure how you got to latest glibc without upgrading gcc...weeeeeiiirrrd....
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 3921
Location: Germany

PostPosted: Fri Jul 15, 2016 10:22 am    Post subject: Reply with quote

Is probably Bug 580414
Back to top
View user's profile Send private message
c00l.wave
Apprentice
Apprentice


Joined: 24 Aug 2003
Posts: 245

PostPosted: Fri Jul 22, 2016 10:03 am    Post subject: Reply with quote

I got exactly the same issue. Updating a pretty old installation, building 4.9.3 fails from 4.6.3, attempting to update to 4.6.4 fails as well. Having updated almost the whole system (sys-devel/gcc and dev-libs/icu-57.1 fail compilation) I tried to build GCC 4.7.4, thinking one or two extra steps on the way to 4.9 may solve the issue, but I got the same errors again. Excluding the fortify patch as suggested in the bug report didn't help.

I "fixed" the issue on that machine by transferring a binary-packaged GCC 4.9.3 from another machine and then performing a local recompilation (the binary had -multislot and -vtv whereas my local machine enables both USE flags). Just in case, I recompiled GCC 4.9.3 twice.

Edit: Just noticed that I wasn't trying GCC 4.6.4 but that it failed to compile as well, so all attempts were made with 4.6.3.
_________________
nohup nice -n -20 cp /dev/urandom /dev/null &
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Sat Jul 23, 2016 2:23 pm    Post subject: Reply with quote

I came across this comment, I'm not sure where:
Quote:

The versions of C and C++ supported by gcc and g++ by default have
changed with recent releases. With the 4.8 version you're using,
the defaults are -std=gnu90 and -std=gnu++98. gcc release 5 (I
checked 5.3.0) changed the default for C to -std=gnu11, and release 6
(I checked 6.1.0) changed the default for C++ to -std=gnu++14.


It might be worth checking the C/C++ versions you are using for
the compilation.

Will
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum