Gentoo Archives: gentoo-alt

From: Moritz Schlarb <mail@××××××××××××××.de>
To: gentoo-alt@l.g.o
Cc: spurath@×××××××××.de
Subject: [gentoo-alt] Re: emerge gcc 4.4.x/4.5.x fails on CentOS 5.5
Date: Sat, 24 Sep 2011 10:31:42
Message-Id: 4E7DAEA2.3040607@moritz-schlarb.de
In Reply to: Re: [gentoo-alt] emerge gcc 4.4.x/4.5.x fails on CentOS 5.5 by Martin Luessi
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Hey,
5
6 same problem here on SLES 10.1. (glibc-2.4)
7 It seems like there is some kind of infinite loop, because the error
8 messages always repeat like this many many times.
9
10 But! (I want to bootstrap prefix on a high performance computing cluster
11 system, where I work and have made available GCC 4.4 and GCC 4.6 by
12 compiling my hand and integrating it to the base system) If I compile
13 GCC 4.4 (or 4.6) by hand (without doing any magic), It works fine!
14 So I'm sorry to say that, but there must be something caused by the
15 ebuild...
16 If my time allows it, I'll look into it in five minutes, this is just a
17 message to everyone having this issue that there may be a light on the
18 horizon! ;)
19
20 Regards,
21 Moritz
22
23
24 Am 22.09.2011 16:35, schrieb Martin Luessi:
25 > Hi,
26 >
27 > Did you ever figure out how to fix this? I have the same problem on
28 > CentOS 5.6. I was able to install 4.5.2-r00.1 using the "vanilla" use
29 > falg, but it seems like this creates trouble later on (things being
30 > linked to system libraries instead the ones in prefix).
31 >
32 > Thanks,
33 >
34 > Martin
35 >
36 >>
37 >> am seeing the following when bootstrapping on CentOS 5.5 and trying `emerge -u system`.
38 >>
39 >> ===
40 >> ...
41 >> /usr/include/bits/string3.h:160: multiple definition of `stpncpy'
42 >> .libs/backtrace.o:/usr/include/bits/string3.h:160: first defined here
43 >> .libs/in_unpack_generic.o: In function `wcstombs':
44 >> /usr/include/bits/stdlib.h:114: multiple definition of `wcstombs'
45 >> .libs/backtrace.o:/usr/include/bits/stdlib.h:114: first defined here
46 >> .libs/in_unpack_generic.o: In function `mbstowcs':
47 >> /usr/include/bits/stdlib.h:95: multiple definition of `mbstowcs'
48 >> .libs/backtrace.o:/usr/include/bits/stdlib.h:95: first defined here
49 >> .libs/in_unpack_generic.o: In function `wctomb':
50 >> /usr/include/bits/stdlib.h:74: multiple definition of `wctomb'
51 >> .libs/backtrace.o:/usr/include/bits/stdlib.h:74: first defined here
52 >> .libs/in_unpack_generic.o: In function `ptsname_r':
53 >> /usr/include/bits/stdlib.h:53: multiple definition of `ptsname_r'
54 >> .libs/backtrace.o:/usr/include/bits/stdlib.h:53: first defined here
55 >> .libs/in_unpack_generic.o: In function `realpath':
56 >> /usr/include/bits/stdlib.h:37: multiple definition of `realpath'
57 >> .libs/backtrace.o:/usr/include/bits/stdlib.h:37: first defined here
58 >> .libs/in_unpack_generic.o: In function `fgets_unlocked':
59 >> /usr/include/bits/stdio2.h:125: multiple definition of `fgets_unlocked'
60 >> .libs/backtrace.o:/usr/include/bits/stdio2.h:125: first defined here
61 >> .libs/in_unpack_generic.o: In function `fgets':
62 >> /usr/include/bits/stdio2.h:109: multiple definition of `fgets'
63 >> .libs/backtrace.o:/usr/include/bits/stdio2.h:109: first defined here
64 >> .libs/in_unpack_generic.o: In function `gets':
65 >> /usr/include/bits/stdio2.h:94: multiple definition of `gets'
66 >> .libs/backtrace.o:/usr/include/bits/stdio2.h:94: first defined here
67 >> collect2: ld returned 1 exit status
68 >> make[3]: *** [libgfortran.la] Error 1make[3]: Leaving directory `/home/egeland/gentoo-prefix/var/tmp/portage/sys-deve
69 >> l/gcc-4.4.4-r2/work/build/x86_64-pc-linux-gnu/libgfortran'
70 >> make[2]: *** [all] Error 2make[2]: Leaving directory `/home/egeland/gentoo-prefix/var/tmp/portage/sys-deve
71 >> l/gcc-4.4.4-r2/work/build/x86_64-pc-linux-gnu/libgfortran'
72 >> make[1]: *** [all-target-libgfortran] Error 2
73 >> make[1]: Leaving directory `/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/gcc-4.4.4-r2/work/build'
74 >> make: *** [bootstrap-lean] Error 2
75 >> emake failed
76 >> * ERROR: sys-devel/gcc-4.4.4-r2 failed (compile phase):
77 >> * emake failed with bootstrap-lean
78 >> *
79 >> * Call stack:
80 >> * ebuild.sh, line 62: Called call-ebuildshell 'src_compile'
81 >> * environment, line 766: Called src_compile
82 >> * environment, line 5048: Called gcc_src_compile
83 >> * environment, line 3159: Called gcc_do_make
84 >> * environment, line 2930: Called die
85 >> * The specific snippet of code:
86 >> * emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${EPREFIX}${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";
87 >> *
88 >> * If you need support, post the output of 'emerge --info =sys-devel/gcc-4.4.4-r2',
89 >> * the complete build log and the output of 'emerge -pqv =sys-devel/gcc-4.4.4-r2'.
90 >> * The complete build log is located at '/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/gcc-4.4.4-r2/temp/build.log'.
91 >> * The ebuild environment file is located at '/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/gcc-4.4.4-r2/temp/environment'.
92 >> * S: '/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/gcc-4.4.4-r2/work/build'
93 >> ===
94 >>
95 >> This appears to be a closed bug:
96 >>
97 >> https://bugs.gentoo.org/show_bug.cgi?id=289757
98 >>
99 >> Which was declared fixed with gcc-4.5.2-r00.1, but I observed the same thing with that gcc version on my system.
100 >>
101 >> My CentOS 5.5 base system does have multiple fortran-related packages already installed.
102 >>
103 >> Trying gcc-4.5.2-r00.1 again now with USE=vanilla to confirm the workaround. Compiling...
104 >>
105 >> See also http://archives.gentoo.org/gentoo-alt/msg_45fe4ddd90a35ee1fb9b6f91f745d249.xml
106 >>
107 >> ===
108 >> % emerge --info \=sys-devel/gcc-4.4.4-r2
109 >> 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"
110 >> CFLAGS="-O2 -pipe"CHOST="x86_64-pc-linux-gnu"CONFIG_PROTECT="/etc"
111 >> CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/portage /etc/terminfo"
112 >> CXXFLAGS="-O2 -pipe"DISTDIR="/home/egeland/gentoo-prefix/usr/portage/distfiles"FEATURES="assume-digests binpkg-logs collision-protect distlocks fixlafiles fixp
113 >> ackages news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"FFLAGS=""
114 >> GENTOO_MIRRORS="http://distfiles.gentoo.org"
115 >> LANG="en_US.UTF-8"
116 >> LDFLAGS="-Wl,-O1"
117 >> PKGDIR="/home/egeland/gentoo-prefix/usr/portage/packages"
118 >> PORTAGE_CONFIGROOT="/home/egeland/gentoo-prefix/"
119 >> PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
120 >> PORTAGE_TMPDIR="/home/egeland/gentoo-prefix/var/tmp"
121 >> PORTDIR="/home/egeland/gentoo-prefix/usr/portage"
122 >> PORTDIR_OVERLAY=""
123 >> SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
124 >> 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
125 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"
126 >> Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
127 >> ===
128 >>
129 >
130 >
131 -----BEGIN PGP SIGNATURE-----
132 Version: GnuPG v2.0.17 (GNU/Linux)
133 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
134
135 iQEcBAEBAgAGBQJOfa6iAAoJEEXT29373YiItP0IAJqsLBTKgzP16nmL84Nws2MT
136 mYCuuQPDUQ3/xQDB+Fa/BjLk1e09EPHr7YnUreLbrYvpqhjFowblbyBKi0Oj6nOY
137 97zocwzk79a/eAhhKEhqNIXoxPF/09pDaaX5AKHTrs5Htr6p+t1+38QELA5A1Vsf
138 sqpGg9h/OSFnHco/yhpKdnUh/DTrNbL6AM+1odAs/QFBlIas5Bmlm/XM9MECAj+x
139 0yR3MJatA5v/ogWmqEVshPRho9fNegzaPCzIQ7kU3bhtB5jlP4znfdd0zZpR+hkt
140 0DyWTWicyNs+8iEMjlTV6Axm57ZEVdEpo2xLImrBbvK9elbF6fDEHmUy7WMzDFI=
141 =DWpp
142 -----END PGP SIGNATURE-----

Replies

Subject Author
[gentoo-alt] Re: emerge gcc 4.4.x/4.5.x fails on CentOS 5.5 Fabian Groffen <grobian@g.o>