On 02.09.2011 14:11, cov...@ccs.covici.com wrote:
Blakawk <blak...@gentooist.com> wrote:

On 02.09.2011 12:16, cov...@ccs.covici.com wrote:
> Dale <rdalek1...@gmail.com> wrote:
>
>> cov...@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.

--
Blog: http://gentooist.com
Twitter: http://twitter.com/blakawk

Reply via email to