Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 301156 - sys-devel/gcc-3.4.6-r2 emerge fails: gcc-3.4.6-r2/work/build/gcc/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.2/libstdc++.so.6)
Summary: sys-devel/gcc-3.4.6-r2 emerge fails: gcc-3.4.6-r2/work/build/gcc/libgcc_s.so....
Status: RESOLVED DUPLICATE of bug 295480
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-16 00:10 UTC by Johannes Hirte
Modified: 2011-06-18 18:07 UTC (History)
0 users

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


Attachments
build log for gcc 3.4.6 compiled by gcc-4.4.4-r2 (build.log,392.83 KB, text/plain)
2010-12-15 19:32 UTC, Kevin O'Gorman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Hirte 2010-01-16 00:10:56 UTC
Emerging gcc-3.4.6-r2 fails with:
/usr/src/portage/portage/sys-devel/gcc-3.4.6-r2/work/build /usr/src/portage/portage/sys-devel/gcc-3.4.6-r2/work/gcc-3.4.6                                                             
 * Creating a hardenednopiessp gcc specs file ...                                                                                                                                     
make -j1 -s xgcc                                                                                                                                                                      
config.h is unchanged                                                                                                                                                                 
tm.h is unchanged                                                                                                                                                                     
bconfig.h is unchanged                                                                                                                                                                
gtyp-gen.h is unchanged                                                                                                                                                               
tm_p.h is unchanged                                                                                                                                                                   
gencheck.h is unchanged                                                                                                                                                               
multilib.h is unchanged                                                                                                                                                               
specs.h is unchanged 
usr/libexec/gcc/x86_64-pc-linux-gnu/4.4.2/cc1: /usr/src/portage/portage/sys-devel/gcc-3.4.6-r2/work/build/gcc/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.2/libstdc++.so.6)                                                                                                                                             
make: *** [gcc.o] Error 1
/usr/src/portage/portage/sys-devel/gcc-3.4.6-r2/temp/environment: line 528: /usr/src/portage/portage/sys-devel/gcc-3.4.6-r2/work/build/gcc/xgcc: No such file or directory      [ !! ]
 * ERROR: sys-devel/gcc-3.4.6-r2 failed:                                                                                                                                              
 *   failed to split out specs                                                                                                                                                        
 *                                                                                                                                                                                    
 * Call stack:                                                                                                                                                                        
 *     ebuild.sh, line   48:  Called src_compile                                                                                                                                      
 *   environment, line 5024:  Called toolchain_src_compile                                                                                                                            
 *   environment, line 5606:  Called gcc_src_compile                                                                                                                                  
 *   environment, line 3181:  Called die                                                                                                                                              
 * The specific snippet of code:                                                                                                                                                      
 *           split_out_specs_files || die "failed to split out specs";                                                                                                                
 *                                                                                                                                                                                    
 * If you need support, post the output of 'emerge --info =sys-devel/gcc-3.4.6-r2',                                                                                                   
 * the complete build log and the output of 'emerge -pqv =sys-devel/gcc-3.4.6-r2'.
 * The complete build log is located at '/usr/src/portage/portage/sys-devel/gcc-3.4.6-r2/temp/build.log'.
 * The ebuild environment file is located at '/usr/src/portage/portage/sys-devel/gcc-3.4.6-r2/temp/environment'.
 * S: '/usr/src/portage/portage/sys-devel/gcc-3.4.6-r2/work/build'

Reproducible: Always




emerge --info
Portage 2.2_rc61 (default/linux/amd64/10.0, gcc-4.4.2, glibc-2.11-r1, 2.6.33-rc3-00033-g03b7675 x86_64)
=================================================================                                      
System uname: Linux-2.6.33-rc3-00033-g03b7675-x86_64-AMD_Opteron-tm-_Processor_252-with-gentoo-2.0.1   
Timestamp of tree: Fri, 15 Jan 2010 18:00:01 +0000                                                     
app-shells/bash:     4.0_p35                                                                           
dev-java/java-config: 2.1.10                                                                           
dev-lang/python:     2.6.4, 3.1.1-r1                                                                   
dev-util/cmake:      2.8.0                                                                             
sys-apps/baselayout: 2.0.1                                                                             
sys-apps/openrc:     0.6.0                                                                             
sys-apps/sandbox:    2.2                                                                               
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/init.d /etc/initng/daemon /etc/initng/net /etc/initng/system /etc/pam.d /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="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="assume-digests collision-protect distlocks fixpackages metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,-z,combreloc"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/usr/src/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/kde /usr/local/portage/layman/x11 /usr/local/portage/layman/qting-edge /usr/local/portage/layman/mozilla /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X a52 aac accessibility acl acpi akonadi alsa amd64 amr amrnb amrwb aspell audiofile authfile avi ayatana bash-completion berkdb boost bzip2 bzlib cairo calendar caps cdda cdparanoia cdr chipcard chm cisco cleartype cli consolekit cracklib crypt css cups cvs cxx dbus dirac djvu dlloader dri dts dv dvd dvdr dvdread encode exif exiv2 ffmpeg fftw flac fortran gcc-libffi gcj gd gdbm gif gimp git glitz gmp gnuplot gpm graphite graphviz hal hbci htmlhandbook http iconv idl idle ieee1394 imagemagick inotify ipv6 java java5 java6 jikes jpeg kde kdehiddenvisibility kdepim kipi lame lapack latex lcms ldap lensfun libnotify libsamplerate live lm_sensors logrotate lucene lzma lzo mad managesieve matroska mjpeg mmap mmx mmxext mng modules mp2 mp3 mp3tunes mp4 mpeg mplayer mtp mudflap multilib musicbrainz ncurses nfs nls nolvm1 nptl nptlonly nsplugin obex ogg oggvorbis openal openexr opengl openmp optimized-qmake pam patch pcre pdf perl pic plasma png pnm podofo policykit posix postscript pppd profiledbootstrap python python3 pyx qt qt3 qt3support qt4 quicktime readline redeyes reflection rss rtc samba samplerate sasl scanner schroedinger sdl semantic-desktop sendfile session sftp sieve slang smime smp sndfile snmp soundtouch sox speex spell spl sqlite sse sse2 ssl subversion svg sysfs taglib tcpd theora threads thumbnail tiff tk trayicon truetype unicode usb userlocales v4l v4l2 virtuoso vorbis webkit x264 xattr xcb xcomposite xext xhtml xine xml xml2 xmp xorg xscreensaver xulrunner xv xvid yv12 zip zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Wonko 2010-11-19 00:18:46 UTC
Same problem here, with gcc-4.5.1 on ~amd64. It works with gcc-4.4.5 in my i686 chroot, so at least for me this is no showstopper.
Comment 2 Kevin O'Gorman 2010-12-14 01:06:37 UTC
I have the same problem with gcc-3.4.6-r2, but it's a showstopper because qemu refuses to emerge with gcc 4.  I'll try some gccs that are even older, but either qemu or old gcc should get fixed.
Comment 3 Ryan Hill (RETIRED) gentoo-dev 2010-12-14 04:23:05 UTC
No problem here with 4.5.1-r1.  Can you post the full build log?
Comment 4 Xake 2010-12-14 08:47:17 UTC
(In reply to comment #2)
> I have the same problem with gcc-3.4.6-r2, but it's a showstopper because qemu
> refuses to emerge with gcc 4. 

@toolchain

Time to push the qemu-people into stabilizing >=qemu-0.10.0 which both compiles and works with >=gcc-4
Comment 5 Kevin O'Gorman 2010-12-15 19:32:04 UTC
Created attachment 257240 [details]
build log for gcc 3.4.6 compiled by gcc-4.4.4-r2

I was originally using the 4.3 slot, but the build log was gone so I redid it with what should be the latest and greatest.
Comment 6 Ryan Hill (RETIRED) gentoo-dev 2010-12-15 23:02:41 UTC
Try again with a -march value that 3.4.6 supports.
Comment 7 Kevin O'Gorman 2010-12-16 17:14:07 UTC
(In reply to comment #6)
> Try again with a -march value that 3.4.6 supports.
> 

Thanks.  Somehow, I thought that only applied to the gcc that was doing the compiling.

used -march=pentium4 and all is well.

Please feel free to mark this one RESOLVED.  And thanks again.
Comment 8 Kevin O'Gorman 2010-12-16 17:16:18 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > Try again with a -march value that 3.4.6 supports.
> > 
> 
> Thanks.  Somehow, I thought that only applied to the gcc that was doing the
> compiling.
> 
> used -march=pentium4 and all is well.
> 
> Please feel free to mark this one RESOLVED.  And thanks again.
> 

Oops.  This isn't my bug and I shouldn't presume.  But my problem is resolved;
I don't know about the OP.
Comment 9 SpanKY gentoo-dev 2011-06-18 18:07:36 UTC

*** This bug has been marked as a duplicate of bug 295480 ***