From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QzV1q-00038I-Dj for garchives@archives.gentoo.org; Fri, 02 Sep 2011 14:47:36 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 29C8121C086; Fri, 2 Sep 2011 14:47:22 +0000 (UTC) Received: from mail0101.smtp25.com (mail0101.smtp25.com [67.228.8.101]) by pigeon.gentoo.org (Postfix) with ESMTP id B429C21C02B for ; Fri, 2 Sep 2011 14:46:24 +0000 (UTC) Received: from ccs.covici.com (localhost [127.0.0.1]) by ccs.covici.com (8.14.5/8.14.4) with ESMTP id p82EkG5f013207; Fri, 2 Sep 2011 10:46:19 -0400 To: blakawk@gentooist.com cc: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] unable to compile gcc 4.5.3-r1 In-reply-to: <1c36f43d00d261089afebcce94019736@parizet.com> References: <7789.1314957193@ccs.covici.com> <4E60AA62.8010608@gmail.com> <30529.1314958583@ccs.covici.com> <13008.1314965505@ccs.covici.com> <1c36f43d00d261089afebcce94019736@parizet.com> Comments: In-reply-to Blakawk message dated "Fri, 02 Sep 2011 14:20:16 +0200." X-Mailer: MH-E 8.2; nmh 1.3; GNU Emacs 23.3.1 Date: Fri, 02 Sep 2011 10:46:16 -0400 Message-ID: <13206.1314974776@ccs.covici.com> From: covici@ccs.covici.com X-SpamH-Filter: y-out0.smtp25.com-p82EkKqF026505 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Archives-Salt: X-Archives-Hash: 1278d25e6fe3b1333486f0e6a21ae62b Blakawk wrote: > On 02.09.2011 14:11, covici@ccs.covici.com wrote: > > Blakawk wrote: > > > >> On 02.09.2011 12:16, covici@ccs.covici.com wrote: > >> > Dale wrote: > >> > > >> >> covici@ccs.covici.com wrote: > >> >> > Hi. I am unable to compile gcc 4.5.3-r1 -- I get the following > >> >> error > >> >> > when doing so: > >> >> > > >> >> > mkdir -p -- x86_64-pc-linux-gnu/libgomp > >> >> > Checking multilib configuration for libgomp... > >> >> > Configuring stage 1 in x86_64-pc-linux-gnu/libgomp > >> >> > configure: loading site script /usr/share/config.site > >> >> > configure: loading site script > >> >> /usr/share/crossdev/include/site/linux > >> >> > configure: loading site script > >> >> > /usr/share/crossdev/include/site/x86_64-linux-gnu > >> >> > configure: creating cache ./config.cache > >> >> > checking for --enable-version-specific-runtime-libs... no > >> >> > checking for --enable-generated-files-in-srcdir... no > >> >> > checking build system type... x86_64-pc-linux-gnu > >> >> > checking host system type... x86_64-pc-linux-gnu > >> >> > checking target system type... x86_64-pc-linux-gnu > >> >> > checking for a BSD-compatible install... /usr/bin/install -c > >> >> > checking whether build environment is sane... yes > >> >> > checking for a thread-safe mkdir -p... /bin/mkdir -p > >> >> > checking for gawk... gawk > >> >> > checking whether make sets $(MAKE)... yes > >> >> > checking for > >> >> > > >> >> > >> x86_64-pc-linux-gnu-gcc... /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/xgcc > >> >> > -B/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gc\c/ > >> >> > -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ > >> >> -isystem > >> >> > /usr/x86_64-pc-linux-gnu/include -isystem > >> >> > /usr/x86_64-pc-linux-gnu/sys-include > >> >> > checking for C compiler default output file name... > >> >> > configure: error: in > >> >> > > >> >> > >> `/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/x86_64-pc-linux-gnu/libgomp': > >> >> > configure: error: C compiler cannot create executables > >> >> > See `config.log' for more details. > >> >> > > >> >> > I have searched google and looked at bugs.gentoo.org, but no > >> joy. > >> >> > > >> >> > I am running unstable amd64 gentoo. > >> >> > > >> >> > Any assistance would be appreciated. > >> >> > > >> >> > >> >> Google worked here for me but usually when I have a problem, it > >> >> fails. > >> >> I guess Google treats you the same as me. lol I found this: > >> >> > >> >> http://forums.gentoo.org/viewtopic-t-294109.html > >> >> > >> >> That help any? > >> > Nope, this only happens in that specific situation, most things > >> > compile > >> > normally. I didn't see that post for that reason -- I was looking > >> > for > >> > something more specific. > >> > >> Please provide the so-called config.log to see what happened > >> (normally > >> located in > >> > >> /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/x86_64-pc-linux-gnu/libgomp/config.log). > > > > OK, here is a section of config.log -- I hope its not too much. > > > > > > COLLECT_GCC=/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/xgcc > > > > COLLECT_LTO_WRAPPER=/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/lto-wrapper > > Target: x86_64-pc-linux-gnu > > Configured with: > > /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/configure > > --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3 > > --includedir=/u\sr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include > > --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3 > > --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/man\ > > --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/info > > > > --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/g++-v4 > > --host=x86_64-pc-lin\ux-gnu --build=x86_64-pc-linux-gnu > > --disable-altivec --disable-fixed-point --without-ppl --without-cloog > > --disable-lto --enable-nls --without-included-gettext > > \--with-system-zlib --disable-werror --enable-secureplt > > --enable-multilib --enable-libmudflap --disable-libssp > > --enable-libgomp > > --with-python-dir=/share/gcc-dat\a/x86_64-pc-linux-gnu/4.5.3/python > > --enable-checking=release --disable-libgcj > > --enable-languages=c,c++,fortran --enable-shared > > --enable-threads=posix > > --enable-\__cxa_atexit --enable-clocale=gnu > > --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo > > 4.5.3-r1 > > p1.0, pie-0.4.5' > > Thread model: posix > > gcc version 4.5.3 (Gentoo 4.5.3-r1 p1.0, pie-0.4.5) > > configure:3638: $? = 0 > > configure:3627: > > /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/xgcc > > -B/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/ > > -B/usr/x86_64-pc-linu\x-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ > > -isystem /usr/x86_64-pc-linux-gnu/include -isystem > > /usr/x86_64-pc-linux-gnu/sys-include -V >&5 > > xgcc: '-V' must come at the start of the command line > > configure:3638: $? = 1 > > configure:3627: > > /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/xgcc > > -B/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/ > > -B/usr/x86_64-pc-linu\x-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ > > -isystem /usr/x86_64-pc-linux-gnu/include -isystem > > /usr/x86_64-pc-linux-gnu/sys-include -qversion >&5 > > xgcc: unrecognized option '-qversion' > > xgcc: no input files > > configure:3638: $? = 1 > > configure:3658: checking for C compiler default output file name > > configure:3680: > > /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/xgcc > > -B/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/ > > -B/usr/x86_64-pc-linu\x-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ > > -isystem /usr/x86_64-pc-linux-gnu/include -isystem > > /usr/x86_64-pc-linux-gnu/sys-include -g -O2 -mtune=core2 -pipe\ > > -ggdb > > conftest.c >&5 > > /usr/lib/../lib64/crt1.o: In function `_start': > > (.text+0x12): undefined reference to `__libc_csu_fini' > > /usr/lib/../lib64/crt1.o: In function `_start': > > (.text+0x19): undefined reference to `__libc_csu_init' > > collect2: ld returned 1 exit status > > configure:3684: $? = 1 > > configure:3721: result: > > configure: failed program was: > > | /* confdefs.h */ > > | #define PACKAGE_NAME "GNU OpenMP Runtime Library" > > | #define PACKAGE_TARNAME "libgomp" > > | #define PACKAGE_VERSION "1.0" > > | #define PACKAGE_STRING "GNU OpenMP Runtime Library 1.0" > > | #define PACKAGE_BUGREPORT "" > > | #define PACKAGE_URL "http://www.gnu.org/software/libgomp/" > > | #define PACKAGE "libgomp" > > | #define VERSION "1.0" > > | /* end confdefs.h. */ > > | > > | int > > | main () > > | { > > | > > | ; > > | return 0; > > | } > > configure:3727: error: in > > | > > > > `/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/x86_64-pc-linux-gnu/libgomp': > > configure:3731: error: C compiler cannot create executables > > Looking on Google for "undefined reference to __libc_csu_init" leads > to several gentoo forum threads which seems to indicate that removing > /lib/libc.so symlink may solve the problem. Yep, that did it -- thanks so much. I have software which needs that link to be there, so I have to put it back in normal use -- I hope I don't run into strange things like that anymore. Thanks again. -- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici covici@ccs.covici.com