Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 116561 - upgrading from gcc 3.3.5 to 3.4.4-r1
Summary: upgrading from gcc 3.3.5 to 3.4.4-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-23 17:18 UTC by John Kelly
Modified: 2005-12-24 15:39 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Kelly 2005-12-23 17:18:01 UTC
I Have spent a lot of time on upgrading gcc and i have failed with both attempts at upgrading gcc. i recently installed gentoo so i decided to do update my system using emerge --update --deep --newuse world, it failed on upgrading gcc 3.3.5 to gcc 3.4.4-r1. i follwed this gentoo guide http://www.gentoo.org/doc/en/gcc-upgrading.xml#doc_chap3

i used the emerge -e method which was the safe option.

everything went ok but i ran into some trouble when doing emerge -e system. emerge fails to compile gcc 3.4.4-r1, however when i do gcc -v, it tells me im running gcc 3.4.4-r1. which is very confusing.

gcc -v 
Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/specs
Configured with: /var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.4.4 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.4 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.4/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.4/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include/g++-v3 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libmudflap --disable-libgcj --enable-languages=c,c++,f77 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8)

here is the error with compiling gcc 3.4.4-r1

/var/tmp/portage/gcc-3.4.4-r1/work/build/i686-pc-linux-gnu/libstdc++-v3/include/bits/locale_facets.tcc: In member function `_InIter std::num_get<_CharT, _InIter>::_M_extract_int(_InIter, _InIter, std::ios_base&, std::_Ios_Iostate&, _ValueT&) const [with _ValueT = long long unsigned int, _CharT = char, _InIter = std::istreambuf_iterator<char, std::char_traits<char> >]':
/var/tmp/portage/gcc-3.4.4-r1/work/build/i686-pc-linux-gnu/libstdc++-v3/include/bits/locale_facets.tcc:455: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
make[4]: *** [locale-inst.lo] Error 1
make[4]: Leaving directory `/var/tmp/portage/gcc-3.4.4-r1/work/build/i686-pc-linux-gnu/libstdc++-v3/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/gcc-3.4.4-r1/work/build/i686-pc-linux-gnu/libstdc++-v3'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.4-r1/work/build/i686-pc-linux-gnu/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.4-r1/work/build'
make: *** [profiledbootstrap] Error 2

here is my /etc/make.conf

# These settings were set by the catalyst build script that automatically built #this stage
# Please consult /etc/make.conf.example for a more detailed example
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-tbird -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
USE="gtk gnome dvd jpeg ssl gif mp3 mozilla eds python nls alsa perl cdr mpeg quicktime dvdr X zlib"
Comment 1 Mark Loeser (RETIRED) gentoo-dev 2005-12-23 18:18:19 UTC
Does it always fail in the same spot?  If you `emerge --resume --skipfirst` do you get another error somewhere else in another package?
Comment 2 John Kelly 2005-12-24 14:59:21 UTC
the upgrade always failed on the same spot with the same error but it seems to work now as i followed the guide again and chose the fast option of upgrading gcc but i still have some problems with gcc 3.3.5. all my kernel modules look for gcc 3.3.5 and fail to load because gcc 3.3.5 isnt there. i have recompiled my kernel with the new gcc and it still fails. 
i am running emerge -eav system and emerge -eav world to see if the problem will be fixed. although it could try and compile gcc 3.4.4 again and fail eventhough gcc 3.4.4 is already installed. 

emerge --update --deep --newuse world didnt fail after i followed the guide. i also done emerge --depclean and revdep-rebuild but now im having a problem with the modules as it needs gcc 3.3.5. 
Comment 3 Mark Loeser (RETIRED) gentoo-dev 2005-12-24 15:39:19 UTC
Well, if you can reproduce it again, give us the error and the output of `emerge info' at that time.  Until then, i'll assume this is fixed.