FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Alt

 
 
LinkBack Thread Tools
 
Old 05-13-2011, 01:50 PM
Ricky Egeland
 
Default emerge gcc 4.4.x/4.5.x fails on CentOS 5.5

On May 12, 2011, at 12:29 PM, Ricky Egeland wrote:

> Trying gcc-4.5.2-r00.1 again now with USE=vanilla to confirm the workaround. Compiling...

This fails for a different reason. It seems that mpc.h was found, and then later on lost...

===
* Package: sys-devel/gcc-4.5.2-r00.1
[ ... ]
checking for the correct version of mpc.h... yes
[ ... ]
/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/gcc-4.5.2-r00.1/work/build/./prev-gcc/xgcc -B/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/gcc-4.5
.2-r00.1/work/build/./prev-gcc/ -B/home/egeland/gentoo-prefix/usr/x86_64-pc-linux-gnu/bin/ -B/home/egeland/gentoo-prefix/usr/x86_64-pc-linux-gnu/bin/ -B/home/eg
eland/gentoo-prefix/usr/x86_64-pc-linux-gnu/lib/ -isystem /home/egeland/gentoo-prefix/usr/x86_64-pc-linux-gnu/include -isystem /home/egeland/gentoo-prefix/usr/x
86_64-pc-linux-gnu/sys-include -c -O2 -pipe -gtoggle -DIN_GCC -W -Wall -Ww
rite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-form
at-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strin
gs -Wold-style-definition -Wc++-compat -DHAVE_CONFIG_H -I. -I. -I/home/egeland
/gentoo-prefix/var/tmp/portage/sys-devel/gcc-4.5.2-r00.1/work/gcc-4.5.2/gcc -I/h
ome/egeland/gentoo-prefix/var/tmp/portage/sys-devel/gcc-4.5.2-r00.1/work/gcc-4.5.2/gcc/. -I/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/gcc-4.5.2-r00.1
/work/gcc-4.5.2/gcc/../include -I/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/gcc-4.5.2-r00.1/work/gcc-4.5.2/gcc/../libcpp/include -I/home/egeland/gen
too-prefix/var/tmp/portage/sys-devel/gcc-4.5.2-r00.1/work/gcc-4.5.2/gcc/../libdecnumber -I/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/gcc-4.5.2-r00.1/
work/gcc-4.5.2/gcc/../libdecnumber/bid -I../libdecnumber
/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/gcc-4.5.2-r00.1/wo
rk/gcc-4.5.2/gcc/c-opts.c -o c-opts.o In file included from /home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/gcc-
4.5.2-r00.1/work/gcc-4.5.2/gcc/rtl.h:28:0, from /home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/gcc-
4.5.2-r00.1/work/gcc-4.5.2/gcc/c-pragma.c:25:/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/gcc-4.5.2-r00.1/work/gcc-4
.5.2/gcc/real.h:28:17: fatal error: mpc.h: No such file or directory
4.5.2-r00.1/work/gcc-4.5.2/gcc/c-lex.c:27:0:
/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/gcc-4.5.2-r00.1/work/gcc-4.5.2/gcc/real.h:28:17: fatal error: mpc.h: No such file or directory
compilation terminated.
In file included from /home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/gcc-4.5.2-r00.1/work/gcc-4.5.2/gcc/rtl.h:28:0,
from /home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/gcc-4.5.2-r00.1/work/gcc-4.5.2/gcc/c-typeck.c:32:
/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/gcc-4.5.2-r00.1/work/gcc-4.5.2/gcc/real.h:28:17: fatal error: mpc.h: No such file or directory
compilation terminated.
make[3]: *** [c-lex.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [c-pragma.o] Error 1
make[3]: *** [c-typeck.o] Error 1
[...]
===

===
% emerge --info =sys-devel/gcc-4.5.2-r00.1Portage 2.2.01.18252-prefix (prefix/linux/amd64, gcc-4.2.4, unavailable, 2.6.18-194.32.1.el5 x86_64)=========================================== ====================== System Settings========================================== =======================System uname: Linux-2.6.18-194.32.1.el5-x86_64-AMD_Phenom-tm-_II_X2_B55_Processor-with-redhat-5.5-FinalTimestamp of tree: Fri, 13 May 2011 13:09:51 +0000app-shells/bash: 4.2_p8
dev-lang/python: 2.7.1-r1sys-devel/autoconf: 2.68sys-devel/automake: 1.11.1sys-devel/binutils: 2.21.51.0.7sys-devel/gcc: 4.2.4-r01.2, 4.5.2-r00.1sys-devel/gcc-config: 1.4.1-r00.2sys-devel/libtool: 2.4-r1sys-devel/make: 3.82virtual/os-headers: 0Repositories: gentoo_prefixInstalled sets:ACCEPT_KEYWORDS="~amd64-linux"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/gconf /etc/portage /etc/terminfo"CXXFLAGS="-O2 -pipe"
DISTDIR="/home/egeland/gentoo-prefix/usr/portage/distfiles"FEATURES="assume-digests binpkg-logs collision-protect distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j17"
PKGDIR="/home/egeland/gentoo-prefix/usr/portage/packages"PORTAGE_CONFIGROOT="/home/egeland/gentoo-prefix/"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="/home/egeland/gentoo-prefix/var/tmp"
PORTDIR="/home/egeland/gentoo-prefix/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx modules mudflap ncurses nls nptl nptlonly openmp pcre perl pppd prefix python readline session sse sse2 ssl sysfs tcpd unicode xorg 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 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware 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: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

================================================== ===============
Package Settings
================================================== ===============

sys-devel/gcc-4.5.2-r00.1 was built with the following:
USE="fortran mudflap nls nptl openmp (prefix) vanilla (-altivec) -bootstrap -build -doc (-fixed-point) -gcj -graphite -gtk (-hardened) (-libffi) -lto (-multilib) -multislot (-n32) (-n64) -nocxx -nopie -nossp -objc -objc++ -objc-gc -test"
 
Old 09-22-2011, 02:35 PM
Martin Luessi
 
Default emerge gcc 4.4.x/4.5.x fails on CentOS 5.5

Hi,

Did you ever figure out how to fix this? I have the same problem on
CentOS 5.6. I was able to install 4.5.2-r00.1 using the "vanilla" use
falg, but it seems like this creates trouble later on (things being
linked to system libraries instead the ones in prefix).

Thanks,

Martin

>
> am seeing the following when bootstrapping on CentOS 5.5 and trying `emerge -u system`.
>
> ===
> ...
> /usr/include/bits/string3.h:160: multiple definition of `stpncpy'
> .libs/backtrace.o:/usr/include/bits/string3.h:160: first defined here
> .libs/in_unpack_generic.o: In function `wcstombs':
> /usr/include/bits/stdlib.h:114: multiple definition of `wcstombs'
> .libs/backtrace.o:/usr/include/bits/stdlib.h:114: first defined here
> .libs/in_unpack_generic.o: In function `mbstowcs':
> /usr/include/bits/stdlib.h:95: multiple definition of `mbstowcs'
> .libs/backtrace.o:/usr/include/bits/stdlib.h:95: first defined here
> .libs/in_unpack_generic.o: In function `wctomb':
> /usr/include/bits/stdlib.h:74: multiple definition of `wctomb'
> .libs/backtrace.o:/usr/include/bits/stdlib.h:74: first defined here
> .libs/in_unpack_generic.o: In function `ptsname_r':
> /usr/include/bits/stdlib.h:53: multiple definition of `ptsname_r'
> .libs/backtrace.o:/usr/include/bits/stdlib.h:53: first defined here
> .libs/in_unpack_generic.o: In function `realpath':
> /usr/include/bits/stdlib.h:37: multiple definition of `realpath'
> .libs/backtrace.o:/usr/include/bits/stdlib.h:37: first defined here
> .libs/in_unpack_generic.o: In function `fgets_unlocked':
> /usr/include/bits/stdio2.h:125: multiple definition of `fgets_unlocked'
> .libs/backtrace.o:/usr/include/bits/stdio2.h:125: first defined here
> .libs/in_unpack_generic.o: In function `fgets':
> /usr/include/bits/stdio2.h:109: multiple definition of `fgets'
> .libs/backtrace.o:/usr/include/bits/stdio2.h:109: first defined here
> .libs/in_unpack_generic.o: In function `gets':
> /usr/include/bits/stdio2.h:94: multiple definition of `gets'
> .libs/backtrace.o:/usr/include/bits/stdio2.h:94: first defined here
> collect2: ld returned 1 exit status
> make[3]: *** [libgfortran.la] Error 1make[3]: Leaving directory `/home/egeland/gentoo-prefix/var/tmp/portage/sys-deve
> l/gcc-4.4.4-r2/work/build/x86_64-pc-linux-gnu/libgfortran'
> make[2]: *** [all] Error 2make[2]: Leaving directory `/home/egeland/gentoo-prefix/var/tmp/portage/sys-deve
> l/gcc-4.4.4-r2/work/build/x86_64-pc-linux-gnu/libgfortran'
> make[1]: *** [all-target-libgfortran] Error 2
> make[1]: Leaving directory `/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/gcc-4.4.4-r2/work/build'
> make: *** [bootstrap-lean] Error 2
> emake failed
> * ERROR: sys-devel/gcc-4.4.4-r2 failed (compile phase):
> * emake failed with bootstrap-lean
> *
> * Call stack:
> * ebuild.sh, line 62: Called call-ebuildshell 'src_compile'
> * environment, line 766: Called src_compile
> * environment, line 5048: Called gcc_src_compile
> * environment, line 3159: Called gcc_do_make
> * environment, line 2930: Called die
> * The specific snippet of code:
> * emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${EPREFIX}${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";
> *
> * If you need support, post the output of 'emerge --info =sys-devel/gcc-4.4.4-r2',
> * the complete build log and the output of 'emerge -pqv =sys-devel/gcc-4.4.4-r2'.
> * The complete build log is located at '/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/gcc-4.4.4-r2/temp/build.log'.
> * The ebuild environment file is located at '/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/gcc-4.4.4-r2/temp/environment'.
> * S: '/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/gcc-4.4.4-r2/work/build'
> ===
>
> This appears to be a closed bug:
>
> https://bugs.gentoo.org/show_bug.cgi?id=289757
>
> Which was declared fixed with gcc-4.5.2-r00.1, but I observed the same thing with that gcc version on my system.
>
> My CentOS 5.5 base system does have multiple fortran-related packages already installed.
>
> Trying gcc-4.5.2-r00.1 again now with USE=vanilla to confirm the workaround. Compiling...
>
> See also http://archives.gentoo.org/gentoo-alt/msg_45fe4ddd90a35ee1fb9b6f91f745d249.xml
>
> ===
> % emerge --info =sys-devel/gcc-4.4.4-r2
> Portage 2.2.01.18252-prefix (prefix/linux/amd64, gcc-4.2.4, unavailable, 2.6.18-194.32.1.el5 x86_64)=========================================== ====================== System Settings========================================== =======================System uname: Linux-2.6.18-194.32.1.el5-x86_64-AMD_Phenom-tm-_II_X2_B55_Processor-with-redhat-5.5-FinalTimestamp of tree: Thu, 12 May 2011 13:39:52 +0000app-shells/bash: 4.2_p8dev-lang/python: 2.7.1-r1sys-devel/autoconf: 2.68sys-devel/automake: 1.11.1sys-devel/binutils: 2.21.51.0.7 sys-devel/gcc: 4.2.4-r01.2 sys-devel/gcc-config: 1.4.1-r00.2sys-devel/libtool: 2.4-r1sys-devel/make: 3.82virtual/os-headers: 0Repositories: gentoo_prefixInstalled sets:ACCEPT_KEYWORDS="~amd64-linux" 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/env.d /etc/gconf /etc/portage /etc/terminfo"
> CXXFLAGS="-O2 -pipe"DISTDIR="/home/egeland/gentoo-prefix/usr/portage/distfiles"FEATURES="assume-digests binpkg-logs collision-protect distlocks fixlafiles fixp
> ackages news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"FFLAGS=""
> GENTOO_MIRRORS="http://distfiles.gentoo.org"
> LANG="en_US.UTF-8"
> LDFLAGS="-Wl,-O1"
> PKGDIR="/home/egeland/gentoo-prefix/usr/portage/packages"
> PORTAGE_CONFIGROOT="/home/egeland/gentoo-prefix/"
> 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="/home/egeland/gentoo-prefix/var/tmp"
> PORTDIR="/home/egeland/gentoo-prefix/usr/portage"
> PORTDIR_OVERLAY=""
> SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
> USE="amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx modules mudflap ncurses nls nptl nptlonly openmp pcre perl pppd prefix python readline session sse sse2 ssl sysfs tcpd unicode xorg 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 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware 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: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
> ===
>
 
Old 09-22-2011, 02:45 PM
Ricky Egeland
 
Default emerge gcc 4.4.x/4.5.x fails on CentOS 5.5

On Sep 22, 2011, at 8:35 AM, Martin Luessi wrote:

> Hi,
>
> Did you ever figure out how to fix this? I have the same problem on
> CentOS 5.6. I was able to install 4.5.2-r00.1 using the "vanilla" use
> falg, but it seems like this creates trouble later on (things being
> linked to system libraries instead the ones in prefix).

No, I never got it working. I had to give up and move on.

-- Ricky




> Thanks,
>
> Martin
>
>>
>> am seeing the following when bootstrapping on CentOS 5.5 and trying `emerge -u system`.
>>
>> ===
>> ...
>> /usr/include/bits/string3.h:160: multiple definition of `stpncpy'
>> .libs/backtrace.o:/usr/include/bits/string3.h:160: first defined here
>> .libs/in_unpack_generic.o: In function `wcstombs':
>> /usr/include/bits/stdlib.h:114: multiple definition of `wcstombs'
>> .libs/backtrace.o:/usr/include/bits/stdlib.h:114: first defined here
>> .libs/in_unpack_generic.o: In function `mbstowcs':
>> /usr/include/bits/stdlib.h:95: multiple definition of `mbstowcs'
>> .libs/backtrace.o:/usr/include/bits/stdlib.h:95: first defined here
>> .libs/in_unpack_generic.o: In function `wctomb':
>> /usr/include/bits/stdlib.h:74: multiple definition of `wctomb'
>> .libs/backtrace.o:/usr/include/bits/stdlib.h:74: first defined here
>> .libs/in_unpack_generic.o: In function `ptsname_r':
>> /usr/include/bits/stdlib.h:53: multiple definition of `ptsname_r'
>> .libs/backtrace.o:/usr/include/bits/stdlib.h:53: first defined here
>> .libs/in_unpack_generic.o: In function `realpath':
>> /usr/include/bits/stdlib.h:37: multiple definition of `realpath'
>> .libs/backtrace.o:/usr/include/bits/stdlib.h:37: first defined here
>> .libs/in_unpack_generic.o: In function `fgets_unlocked':
>> /usr/include/bits/stdio2.h:125: multiple definition of `fgets_unlocked'
>> .libs/backtrace.o:/usr/include/bits/stdio2.h:125: first defined here
>> .libs/in_unpack_generic.o: In function `fgets':
>> /usr/include/bits/stdio2.h:109: multiple definition of `fgets'
>> .libs/backtrace.o:/usr/include/bits/stdio2.h:109: first defined here
>> .libs/in_unpack_generic.o: In function `gets':
>> /usr/include/bits/stdio2.h:94: multiple definition of `gets'
>> .libs/backtrace.o:/usr/include/bits/stdio2.h:94: first defined here
>> collect2: ld returned 1 exit status
>> make[3]: *** [libgfortran.la] Error 1make[3]: Leaving directory `/home/egeland/gentoo-prefix/var/tmp/portage/sys-deve
>> l/gcc-4.4.4-r2/work/build/x86_64-pc-linux-gnu/libgfortran'
>> make[2]: *** [all] Error 2make[2]: Leaving directory `/home/egeland/gentoo-prefix/var/tmp/portage/sys-deve
>> l/gcc-4.4.4-r2/work/build/x86_64-pc-linux-gnu/libgfortran'
>> make[1]: *** [all-target-libgfortran] Error 2
>> make[1]: Leaving directory `/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/gcc-4.4.4-r2/work/build'
>> make: *** [bootstrap-lean] Error 2
>> emake failed
>> * ERROR: sys-devel/gcc-4.4.4-r2 failed (compile phase):
>> * emake failed with bootstrap-lean
>> *
>> * Call stack:
>> * ebuild.sh, line 62: Called call-ebuildshell 'src_compile'
>> * environment, line 766: Called src_compile
>> * environment, line 5048: Called gcc_src_compile
>> * environment, line 3159: Called gcc_do_make
>> * environment, line 2930: Called die
>> * The specific snippet of code:
>> * emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${EPREFIX}${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";
>> *
>> * If you need support, post the output of 'emerge --info =sys-devel/gcc-4.4.4-r2',
>> * the complete build log and the output of 'emerge -pqv =sys-devel/gcc-4.4.4-r2'.
>> * The complete build log is located at '/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/gcc-4.4.4-r2/temp/build.log'.
>> * The ebuild environment file is located at '/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/gcc-4.4.4-r2/temp/environment'.
>> * S: '/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/gcc-4.4.4-r2/work/build'
>> ===
>>
>> This appears to be a closed bug:
>>
>> https://bugs.gentoo.org/show_bug.cgi?id=289757
>>
>> Which was declared fixed with gcc-4.5.2-r00.1, but I observed the same thing with that gcc version on my system.
>>
>> My CentOS 5.5 base system does have multiple fortran-related packages already installed.
>>
>> Trying gcc-4.5.2-r00.1 again now with USE=vanilla to confirm the workaround. Compiling...
>>
>> See also http://archives.gentoo.org/gentoo-alt/msg_45fe4ddd90a35ee1fb9b6f91f745d249.xml
>>
>> ===
>> % emerge --info =sys-devel/gcc-4.4.4-r2
>> Portage 2.2.01.18252-prefix (prefix/linux/amd64, gcc-4.2.4, unavailable, 2.6.18-194.32.1.el5 x86_64)=========================================== ====================== System Settings========================================== =======================System uname: Linux-2.6.18-194.32.1.el5-x86_64-AMD_Phenom-tm-_II_X2_B55_Processor-with-redhat-5.5-FinalTimestamp of tree: Thu, 12 May 2011 13:39:52 +0000app-shells/bash: 4.2_p8dev-lang/python: 2.7.1-r1sys-devel/autoconf: 2.68sys-devel/automake: 1.11.1sys-devel/binutils: 2.21.51.0.7 sys-devel/gcc: 4.2.4-r01.2 sys-devel/gcc-config: 1.4.1-r00.2sys-devel/libtool: 2.4-r1sys-devel/make: 3.82virtual/os-headers: 0Repositories: gentoo_prefixInstalled sets:ACCEPT_KEYWORDS="~amd64-linux" 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/env.d /etc/gconf /etc/portage /etc/terminfo"
>> CXXFLAGS="-O2 -pipe"DISTDIR="/home/egeland/gentoo-prefix/usr/portage/distfiles"FEATURES="assume-digests binpkg-logs collision-protect distlocks fixlafiles fixp
>> ackages news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"FFLAGS=""
>> GENTOO_MIRRORS="http://distfiles.gentoo.org"
>> LANG="en_US.UTF-8"
>> LDFLAGS="-Wl,-O1"
>> PKGDIR="/home/egeland/gentoo-prefix/usr/portage/packages"
>> PORTAGE_CONFIGROOT="/home/egeland/gentoo-prefix/"
>> 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="/home/egeland/gentoo-prefix/var/tmp"
>> PORTDIR="/home/egeland/gentoo-prefix/usr/portage"
>> PORTDIR_OVERLAY=""
>> SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
>> USE="amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx modules mudflap ncurses nls nptl nptlonly openmp pcre perl pppd prefix python readline session sse sse2 ssl sysfs tcpd unicode xorg 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 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware 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: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
>> ===
>>
 
Old 09-22-2011, 07:32 PM
Martin Luessi
 
Default emerge gcc 4.4.x/4.5.x fails on CentOS 5.5

On Thu, Sep 22, 2011 at 10:45 AM, Ricky Egeland <ricky.egeland@gmail.com> wrote:
>
> On Sep 22, 2011, at 8:35 AM, Martin Luessi wrote:
>
>> Hi,
>>
>> Did you ever figure out how to fix this? I have the same problem on
>> CentOS 5.6. I was able to install 4.5.2-r00.1 using the "vanilla" use
>> falg, but it seems like this creates trouble later on (things being
>> linked to system libraries instead the ones in prefix).
>
> No, I never got it working. *I had to give up and move on.
>
> -- Ricky

Ricky,

I am sorry to hear that. I belive the problem is that CentOS uses a
very old glibc version (2.5), which isn't compatible with newer gcc
versions. By adding ">sys-devel/gcc-4.2.4-r01.4" to package.mask I was
able to sucessfully compile everything (using gcc-4.2.4-r01.4).

Best,

Martin

>
>
>
>
>> Thanks,
>>
>> Martin
>>
>>>
>>> am seeing the following when bootstrapping on CentOS 5.5 and trying `emerge -u system`.
>>>
>>> ===
>>> ...
>>> /usr/include/bits/string3.h:160: multiple definition of `stpncpy'
>>> .libs/backtrace.o:/usr/include/bits/string3.h:160: first defined here
>>> .libs/in_unpack_generic.o: In function `wcstombs':
>>> /usr/include/bits/stdlib.h:114: multiple definition of `wcstombs'
>>> .libs/backtrace.o:/usr/include/bits/stdlib.h:114: first defined here
>>> .libs/in_unpack_generic.o: In function `mbstowcs':
>>> /usr/include/bits/stdlib.h:95: multiple definition of `mbstowcs'
>>> .libs/backtrace.o:/usr/include/bits/stdlib.h:95: first defined here
>>> .libs/in_unpack_generic.o: In function `wctomb':
>>> /usr/include/bits/stdlib.h:74: multiple definition of `wctomb'
>>> .libs/backtrace.o:/usr/include/bits/stdlib.h:74: first defined here
>>> .libs/in_unpack_generic.o: In function `ptsname_r':
>>> /usr/include/bits/stdlib.h:53: multiple definition of `ptsname_r'
>>> .libs/backtrace.o:/usr/include/bits/stdlib.h:53: first defined here
>>> .libs/in_unpack_generic.o: In function `realpath':
>>> /usr/include/bits/stdlib.h:37: multiple definition of `realpath'
>>> .libs/backtrace.o:/usr/include/bits/stdlib.h:37: first defined here
>>> .libs/in_unpack_generic.o: In function `fgets_unlocked':
>>> /usr/include/bits/stdio2.h:125: multiple definition of `fgets_unlocked'
>>> .libs/backtrace.o:/usr/include/bits/stdio2.h:125: first defined here
>>> .libs/in_unpack_generic.o: In function `fgets':
>>> /usr/include/bits/stdio2.h:109: multiple definition of `fgets'
>>> .libs/backtrace.o:/usr/include/bits/stdio2.h:109: first defined here
>>> .libs/in_unpack_generic.o: In function `gets':
>>> /usr/include/bits/stdio2.h:94: multiple definition of `gets'
>>> .libs/backtrace.o:/usr/include/bits/stdio2.h:94: first defined here
>>> collect2: ld returned 1 exit status
>>> make[3]: *** [libgfortran.la] Error 1make[3]: Leaving directory `/home/egeland/gentoo-prefix/var/tmp/portage/sys-deve
>>> l/gcc-4.4.4-r2/work/build/x86_64-pc-linux-gnu/libgfortran'
>>> make[2]: *** [all] Error 2make[2]: Leaving directory `/home/egeland/gentoo-prefix/var/tmp/portage/sys-deve
>>> l/gcc-4.4.4-r2/work/build/x86_64-pc-linux-gnu/libgfortran'
>>> make[1]: *** [all-target-libgfortran] Error 2
>>> make[1]: Leaving directory `/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/gcc-4.4.4-r2/work/build'
>>> make: *** [bootstrap-lean] Error 2
>>> emake failed
>>> * ERROR: sys-devel/gcc-4.4.4-r2 failed (compile phase):
>>> * * emake failed with bootstrap-lean
>>> *
>>> * Call stack:
>>> * * * ebuild.sh, line * 62: *Called call-ebuildshell 'src_compile'
>>> * * environment, line *766: *Called src_compile
>>> * * environment, line 5048: *Called gcc_src_compile
>>> * * environment, line 3159: *Called gcc_do_make
>>> * * environment, line 2930: *Called die
>>> * The specific snippet of code:
>>> * * * * emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${EPREFIX}${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";
>>> *
>>> * If you need support, post the output of 'emerge --info =sys-devel/gcc-4.4.4-r2',
>>> * the complete build log and the output of 'emerge -pqv =sys-devel/gcc-4.4.4-r2'.
>>> * The complete build log is located at '/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/gcc-4.4.4-r2/temp/build.log'.
>>> * The ebuild environment file is located at '/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/gcc-4.4.4-r2/temp/environment'.
>>> * S: '/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/gcc-4.4.4-r2/work/build'
>>> ===
>>>
>>> This appears to be a closed bug:
>>>
>>> * *https://bugs.gentoo.org/show_bug.cgi?id=289757
>>>
>>> Which was declared fixed with gcc-4.5.2-r00.1, but I observed the same thing with that gcc version on my system.
>>>
>>> My CentOS 5.5 base system does have multiple fortran-related packages already installed.
>>>
>>> Trying gcc-4.5.2-r00.1 again now with USE=vanilla to confirm the workaround. *Compiling...
>>>
>>> See also http://archives.gentoo.org/gentoo-alt/msg_45fe4ddd90a35ee1fb9b6f91f745d249.xml
>>>
>>> ===
>>> % emerge --info =sys-devel/gcc-4.4.4-r2
>>> Portage 2.2.01.18252-prefix (prefix/linux/amd64, gcc-4.2.4, unavailable, 2.6.18-194.32.1.el5 x86_64)=========================================== ====================== * * * * * * * * * * * *System Settings========================================== =======================System uname: Linux-2.6.18-194.32.1.el5-x86_64-AMD_Phenom-tm-_II_X2_B55_Processor-with-redhat-5.5-FinalTimestamp of tree: Thu, 12 May 2011 13:39:52 +0000app-shells/bash: * * 4.2_p8dev-lang/python: * * 2.7.1-r1sys-devel/autoconf: *2.68sys-devel/automake: *1.11.1sys-devel/binutils: *2.21.51.0.7 sys-devel/gcc: * * * 4.2.4-r01.2 sys-devel/gcc-config: 1.4.1-r00.2sys-devel/libtool: * 2.4-r1sys-devel/make: * * *3.82virtual/os-headers: *0Repositories: gentoo_prefixInstalled sets:ACCEPT_KEYWORDS="~amd64-linux" * 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/env.d /etc/gconf /etc/portage /etc/terminfo"
>>> CXXFLAGS="-O2 -pipe"DISTDIR="/home/egeland/gentoo-prefix/usr/portage/distfiles"FEATURES="assume-digests binpkg-logs collision-protect distlocks fixlafiles fixp
>>> ackages news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"FFLAGS=""
>>> GENTOO_MIRRORS="http://distfiles.gentoo.org"
>>> LANG="en_US.UTF-8"
>>> LDFLAGS="-Wl,-O1"
>>> PKGDIR="/home/egeland/gentoo-prefix/usr/portage/packages"
>>> PORTAGE_CONFIGROOT="/home/egeland/gentoo-prefix/"
>>> 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="/home/egeland/gentoo-prefix/var/tmp"
>>> PORTDIR="/home/egeland/gentoo-prefix/usr/portage"
>>> PORTDIR_OVERLAY=""
>>> SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
>>> USE="amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx modules mudflap ncurses nls nptl nptlonly openmp pcre perl pppd prefix python readline session sse sse2 ssl sysfs tcpd unicode xorg 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 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware 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: *CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
>>> ===
>>>
>
>
 
Old 09-22-2011, 07:35 PM
Konstantin Tokarev
 
Default emerge gcc 4.4.x/4.5.x fails on CentOS 5.5

22.09.2011, 23:32, "Martin Luessi" <mluessi@gmail.com>:
> On Thu, Sep 22, 2011 at 10:45 AM, Ricky Egeland <ricky.egeland@gmail.com> wrote:
>
>> *On Sep 22, 2011, at 8:35 AM, Martin Luessi wrote:
>>> *Hi,
>>>
>>> *Did you ever figure out how to fix this? I have the same problem on
>>> *CentOS 5.6. I was able to install 4.5.2-r00.1 using the "vanilla" use
>>> *falg, but it seems like this creates trouble later on (things being
>>> *linked to system libraries instead the ones in prefix).
>> *No, I never got it working. *I had to give up and move on.
>>
>> *-- Ricky
>
> Ricky,
>
> I am sorry to hear that. I belive the problem is that CentOS uses a
> very old glibc version (2.5), which isn't compatible with newer gcc
> versions.

How can it be incompatible with gcc 4.4 if CentOS has 4.4.0 in repositories which
works perfectly.

--
Regards,
Konstantin
 
Old 09-22-2011, 07:39 PM
Martin Luessi
 
Default emerge gcc 4.4.x/4.5.x fails on CentOS 5.5

2011/9/22 Konstantin Tokarev <annulen@yandex.ru>:
>
>
> 22.09.2011, 23:32, "Martin Luessi" <mluessi@gmail.com>:
>> On Thu, Sep 22, 2011 at 10:45 AM, Ricky Egeland <ricky.egeland@gmail.com> wrote:
>>
>>> *On Sep 22, 2011, at 8:35 AM, Martin Luessi wrote:
>>>> *Hi,
>>>>
>>>> *Did you ever figure out how to fix this? I have the same problem on
>>>> *CentOS 5.6. I was able to install 4.5.2-r00.1 using the "vanilla" use
>>>> *falg, but it seems like this creates trouble later on (things being
>>>> *linked to system libraries instead the ones in prefix).
>>> *No, I never got it working. *I had to give up and move on.
>>>
>>> *-- Ricky
>>
>> Ricky,
>>
>> I am sorry to hear that. I belive the problem is that CentOS uses a
>> very old glibc version (2.5), which isn't compatible with newer gcc
>> versions.
>
> How can it be incompatible with gcc 4.4 if CentOS has 4.4.0 in repositories which
> works perfectly.

I don't know.. all I know is that my workstation at work uses CentOS
5.6 with gcc 4.1.2 and glibc 2.5, which is consistent with
http://distrowatch.com/table.php?distribution=centos

Best,
Martin

> --
> Regards,
> Konstantin
>
>
 
Old 09-22-2011, 07:46 PM
Konstantin Tokarev
 
Default emerge gcc 4.4.x/4.5.x fails on CentOS 5.5

22.09.2011, 23:39, "Martin Luessi" <mluessi@gmail.com>:
> 2011/9/22 Konstantin Tokarev <annulen@yandex.ru>:
>
>> *22.09.2011, 23:32, "Martin Luessi" <mluessi@gmail.com>:
>>> *On Thu, Sep 22, 2011 at 10:45 AM, Ricky Egeland <ricky.egeland@gmail.com> wrote:
>>>> **On Sep 22, 2011, at 8:35 AM, Martin Luessi wrote:
>>>>> **Hi,
>>>>>
>>>>> **Did you ever figure out how to fix this? I have the same problem on
>>>>> **CentOS 5.6. I was able to install 4.5.2-r00.1 using the "vanilla" use
>>>>> **falg, but it seems like this creates trouble later on (things being
>>>>> **linked to system libraries instead the ones in prefix).
>>>> **No, I never got it working. *I had to give up and move on.
>>>>
>>>> **-- Ricky
>>> *Ricky,
>>>
>>> *I am sorry to hear that. I belive the problem is that CentOS uses a
>>> *very old glibc version (2.5), which isn't compatible with newer gcc
>>> *versions.
>> *How can it be incompatible with gcc 4.4 if CentOS has 4.4.0 in repositories which
>> *works perfectly.
>
> I don't know.. all I know is that my workstation at work uses CentOS
> 5.6 with gcc 4.1.2 and glibc 2.5, which is consistent with
> http://distrowatch.com/table.php?distribution=centos

Maybe you should try RedHat branch of GCC (or just deceive portage and use binary
4.4.0 from CentOS repositories to build prefix)

--
Regards,
Konstantin
 
Old 09-24-2011, 10:19 AM
Moritz Schlarb
 
Default emerge gcc 4.4.x/4.5.x fails on CentOS 5.5

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey,

same problem here on SLES 10.1. (glibc-2.4)
It seems like there is some kind of infinite loop, because the error
messages always repeat like this many many times.

But! (I want to bootstrap prefix on a high performance computing cluster
system, where I work and have made available GCC 4.4 and GCC 4.6 by
compiling my hand and integrating it to the base system) If I compile
GCC 4.4 (or 4.6) by hand (without doing any magic), It works fine!
So I'm sorry to say that, but there must be something caused by the
ebuild...
If my time allows it, I'll look into it in five minutes, this is just a
message to everyone having this issue that there may be a light on the
horizon!

Regards,
Moritz


Am 22.09.2011 16:35, schrieb Martin Luessi:
> Hi,
>
> Did you ever figure out how to fix this? I have the same problem on
> CentOS 5.6. I was able to install 4.5.2-r00.1 using the "vanilla" use
> falg, but it seems like this creates trouble later on (things being
> linked to system libraries instead the ones in prefix).
>
> Thanks,
>
> Martin
>
>>
>> am seeing the following when bootstrapping on CentOS 5.5 and trying `emerge -u system`.
>>
>> ===
>> ...
>> /usr/include/bits/string3.h:160: multiple definition of `stpncpy'
>> .libs/backtrace.o:/usr/include/bits/string3.h:160: first defined here
>> .libs/in_unpack_generic.o: In function `wcstombs':
>> /usr/include/bits/stdlib.h:114: multiple definition of `wcstombs'
>> .libs/backtrace.o:/usr/include/bits/stdlib.h:114: first defined here
>> .libs/in_unpack_generic.o: In function `mbstowcs':
>> /usr/include/bits/stdlib.h:95: multiple definition of `mbstowcs'
>> .libs/backtrace.o:/usr/include/bits/stdlib.h:95: first defined here
>> .libs/in_unpack_generic.o: In function `wctomb':
>> /usr/include/bits/stdlib.h:74: multiple definition of `wctomb'
>> .libs/backtrace.o:/usr/include/bits/stdlib.h:74: first defined here
>> .libs/in_unpack_generic.o: In function `ptsname_r':
>> /usr/include/bits/stdlib.h:53: multiple definition of `ptsname_r'
>> .libs/backtrace.o:/usr/include/bits/stdlib.h:53: first defined here
>> .libs/in_unpack_generic.o: In function `realpath':
>> /usr/include/bits/stdlib.h:37: multiple definition of `realpath'
>> .libs/backtrace.o:/usr/include/bits/stdlib.h:37: first defined here
>> .libs/in_unpack_generic.o: In function `fgets_unlocked':
>> /usr/include/bits/stdio2.h:125: multiple definition of `fgets_unlocked'
>> .libs/backtrace.o:/usr/include/bits/stdio2.h:125: first defined here
>> .libs/in_unpack_generic.o: In function `fgets':
>> /usr/include/bits/stdio2.h:109: multiple definition of `fgets'
>> .libs/backtrace.o:/usr/include/bits/stdio2.h:109: first defined here
>> .libs/in_unpack_generic.o: In function `gets':
>> /usr/include/bits/stdio2.h:94: multiple definition of `gets'
>> .libs/backtrace.o:/usr/include/bits/stdio2.h:94: first defined here
>> collect2: ld returned 1 exit status
>> make[3]: *** [libgfortran.la] Error 1make[3]: Leaving directory `/home/egeland/gentoo-prefix/var/tmp/portage/sys-deve
>> l/gcc-4.4.4-r2/work/build/x86_64-pc-linux-gnu/libgfortran'
>> make[2]: *** [all] Error 2make[2]: Leaving directory `/home/egeland/gentoo-prefix/var/tmp/portage/sys-deve
>> l/gcc-4.4.4-r2/work/build/x86_64-pc-linux-gnu/libgfortran'
>> make[1]: *** [all-target-libgfortran] Error 2
>> make[1]: Leaving directory `/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/gcc-4.4.4-r2/work/build'
>> make: *** [bootstrap-lean] Error 2
>> emake failed
>> * ERROR: sys-devel/gcc-4.4.4-r2 failed (compile phase):
>> * emake failed with bootstrap-lean
>> *
>> * Call stack:
>> * ebuild.sh, line 62: Called call-ebuildshell 'src_compile'
>> * environment, line 766: Called src_compile
>> * environment, line 5048: Called gcc_src_compile
>> * environment, line 3159: Called gcc_do_make
>> * environment, line 2930: Called die
>> * The specific snippet of code:
>> * emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${EPREFIX}${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";
>> *
>> * If you need support, post the output of 'emerge --info =sys-devel/gcc-4.4.4-r2',
>> * the complete build log and the output of 'emerge -pqv =sys-devel/gcc-4.4.4-r2'.
>> * The complete build log is located at '/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/gcc-4.4.4-r2/temp/build.log'.
>> * The ebuild environment file is located at '/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/gcc-4.4.4-r2/temp/environment'.
>> * S: '/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/gcc-4.4.4-r2/work/build'
>> ===
>>
>> This appears to be a closed bug:
>>
>> https://bugs.gentoo.org/show_bug.cgi?id=289757
>>
>> Which was declared fixed with gcc-4.5.2-r00.1, but I observed the same thing with that gcc version on my system.
>>
>> My CentOS 5.5 base system does have multiple fortran-related packages already installed.
>>
>> Trying gcc-4.5.2-r00.1 again now with USE=vanilla to confirm the workaround. Compiling...
>>
>> See also http://archives.gentoo.org/gentoo-alt/msg_45fe4ddd90a35ee1fb9b6f91f745d249.xml
>>
>> ===
>> % emerge --info =sys-devel/gcc-4.4.4-r2
>> Portage 2.2.01.18252-prefix (prefix/linux/amd64, gcc-4.2.4, unavailable, 2.6.18-194.32.1.el5 x86_64)=========================================== ====================== System Settings========================================== =======================System uname: Linux-2.6.18-194.32.1.el5-x86_64-AMD_Phenom-tm-_II_X2_B55_Processor-with-redhat-5.5-FinalTimestamp of tree: Thu, 12 May 2011 13:39:52 +0000app-shells/bash: 4.2_p8dev-lang/python: 2.7.1-r1sys-devel/autoconf: 2.68sys-devel/automake: 1.11.1sys-devel/binutils: 2.21.51.0.7 sys-devel/gcc: 4.2.4-r01.2 sys-devel/gcc-config: 1.4.1-r00.2sys-devel/libtool: 2.4-r1sys-devel/make: 3.82virtual/os-headers: 0Repositories: gentoo_prefixInstalled sets:ACCEPT_KEYWORDS="~amd64-linux" 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/env.d /etc/gconf /etc/portage /etc/terminfo"
>> CXXFLAGS="-O2 -pipe"DISTDIR="/home/egeland/gentoo-prefix/usr/portage/distfiles"FEATURES="assume-digests binpkg-logs collision-protect distlocks fixlafiles fixp
>> ackages news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"FFLAGS=""
>> GENTOO_MIRRORS="http://distfiles.gentoo.org"
>> LANG="en_US.UTF-8"
>> LDFLAGS="-Wl,-O1"
>> PKGDIR="/home/egeland/gentoo-prefix/usr/portage/packages"
>> PORTAGE_CONFIGROOT="/home/egeland/gentoo-prefix/"
>> 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="/home/egeland/gentoo-prefix/var/tmp"
>> PORTDIR="/home/egeland/gentoo-prefix/usr/portage"
>> PORTDIR_OVERLAY=""
>> SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
>> USE="amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx modules mudflap ncurses nls nptl nptlonly openmp pcre perl pppd prefix python readline session sse sse2 ssl sysfs tcpd unicode xorg 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 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 s
tatus unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware 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: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
>> ===
>>
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJOfa6iAAoJEEXT29373YiItP0IAJqsLBTKgz P16nmL84Nws2MT
mYCuuQPDUQ3/xQDB+Fa/BjLk1e09EPHr7YnUreLbrYvpqhjFowblbyBKi0Oj6nOY
97zocwzk79a/eAhhKEhqNIXoxPF/09pDaaX5AKHTrs5Htr6p+t1+38QELA5A1Vsf
sqpGg9h/OSFnHco/yhpKdnUh/DTrNbL6AM+1odAs/QFBlIas5Bmlm/XM9MECAj+x
0yR3MJatA5v/ogWmqEVshPRho9fNegzaPCzIQ7kU3bhtB5jlP4znfdd0zZpR+h kt
0DyWTWicyNs+8iEMjlTV6Axm57ZEVdEpo2xLImrBbvK9elbF6f DEHmUy7WMzDFI=
=DWpp
-----END PGP SIGNATURE-----
 
Old 09-24-2011, 10:34 AM
Fabian Groffen
 
Default emerge gcc 4.4.x/4.5.x fails on CentOS 5.5

On 24-09-2011 12:19:14 +0200, Moritz Schlarb wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hey,
>
> same problem here on SLES 10.1. (glibc-2.4)
> It seems like there is some kind of infinite loop, because the error
> messages always repeat like this many many times.
>
> But! (I want to bootstrap prefix on a high performance computing cluster
> system, where I work and have made available GCC 4.4 and GCC 4.6 by
> compiling my hand and integrating it to the base system) If I compile
> GCC 4.4 (or 4.6) by hand (without doing any magic), It works fine!
> So I'm sorry to say that, but there must be something caused by the
> ebuild...
> If my time allows it, I'll look into it in five minutes, this is just a
> message to everyone having this issue that there may be a light on the
> horizon!

try USE=vanilla, see if that works


--
Fabian Groffen
Gentoo on a different level
 
Old 09-24-2011, 12:58 PM
Martin Luessi
 
Default emerge gcc 4.4.x/4.5.x fails on CentOS 5.5

On Sat, Sep 24, 2011 at 6:34 AM, Fabian Groffen <grobian@gentoo.org> wrote:
> On 24-09-2011 12:19:14 +0200, Moritz Schlarb wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Hey,
>>
>> same problem here on SLES 10.1. (glibc-2.4)
>> It seems like there is some kind of infinite loop, because the error
>> messages always repeat like this many many times.
>>
>> But! (I want to bootstrap prefix on a high performance computing cluster
>> system, where I work and have made available GCC 4.4 and GCC 4.6 by
>> compiling my hand and integrating it to the base system) If I compile
>> GCC 4.4 (or 4.6) by hand (without doing any magic), It works fine!
>> So I'm sorry to say that, but there must be something caused by the
>> ebuild...
>> If my time allows it, I'll look into it in five minutes, this is just a
>> message to everyone having this issue that there may be a light on the
>> horizon!
>
> try USE=vanilla, see if that works

Be careful with that. I was able to install gcc 4.5 using -vanilla bit
then later on random packages would fail to compile. In particular I
had a problem with libxml2, which seemed to get linked to system
libraries instead of the ones in prefix. I'm not sure if this is
related, all I know is that the problem goes away when using gcc 4.2.

Also, have a look at the gcc ebuild the regular portage tree, gcc
4.5.2 requires >=glibc.2.8, I assume there is a reason for that.

Best,

Martin

>
> --
> Fabian Groffen
> Gentoo on a different level
>
 

Thread Tools




All times are GMT. The time now is 04:39 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org