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 10-20-2011, 07:32 AM
Nicolas Pinto
 
Default Prefix bootstrap fails at gcc-4.2 installation with "cannot find -lc"

Hello,

First of all: thanks a ton for developing and supporting Gentoo
Prefix, this project has been a great time saver (a true game changer)
in my day-to-day devops.

I've been able to bootstrap Gentoo Prefix successfully on a many
systems (Redhat and CentOS) but I'm getting some resistance on Ubuntu
Natty 11.04 (2.6.38-11-server x86_64).

I can't get gcc-4.2 to compile:

$ emerge --oneshot --nodeps "=gcc-4.2*"
fails with "/usr/include/linux/errno.h:4:23: error: asm/errno.h: No
such file or directory"

I tried a quick fix with:
$ emerge --oneshot linux-headers

But now I'm getting a glibc related error (see below): "cannot find -lc".

What am I missing?

Thanks again.

Regards,

Nicolas


(...)
/mnt/md1/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build/./gcc/xgcc
-B/mnt/md1/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build/./gcc/
-B/mnt/md1/home/pinto/gentoo/usr/x86_64-pc-linux-gnu/bin/
-B/mnt/md1/home/pinto/gentoo/usr/x86_64-pc-linux-gnu/lib/ -isystem
/mnt/md1/home/pinto/gentoo/usr/x86_64-pc-linux-gnu/include -isystem
/mnt/md1/home/pinto/gentoo/usr/x86_64-pc-linux-gnu/sys-include -O2
-O2 -O2 -pipe -DIN_GCC -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -shared -nodefaultlibs
-Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc/./libgcc.map -o
./libgcc_s.so.1.tmp libgcc/./_muldi3_s.o libgcc/./_negdi2_s.o
libgcc/./_lshrdi3_s.o libgcc/./_ashldi3_s.o libgcc/./_ashrdi3_s.o
libgcc/./_cmpdi2_s.o libgcc/./_ucmpdi2_s.o libgcc/./_clear_cache_s.o
libgcc/./_enable_execute_stack_s.o libgcc/./_trampoline_s.o
libgcc/./__main_s.o libgcc/./_absvsi2_s.o libgcc/./_absvdi2_s.o
libgcc/./_addvsi3_s.o libgcc/./_addvdi3_s.o libgcc/./_subvsi3_s.o
libgcc/./_subvdi3_s.o libgcc/./_mulvsi3_s.o libgcc/./_mulvdi3_s.o
libgcc/./_negvsi2_s.o libgcc/./_negvdi2_s.o libgcc/./_ctors_s.o
libgcc/./_ffssi2_s.o libgcc/./_ffsdi2_s.o libgcc/./_clz_s.o
libgcc/./_clzsi2_s.o libgcc/./_clzdi2_s.o libgcc/./_ctzsi2_s.o
libgcc/./_ctzdi2_s.o libgcc/./_popcount_tab_s.o
libgcc/./_popcountsi2_s.o libgcc/./_popcountdi2_s.o
libgcc/./_paritysi2_s.o libgcc/./_paritydi2_s.o libgcc/./_powisf2_s.o
libgcc/./_powidf2_s.o libgcc/./_powixf2_s.o libgcc/./_powitf2_s.o
libgcc/./_mulsc3_s.o libgcc/./_muldc3_s.o libgcc/./_mulxc3_s.o
libgcc/./_multc3_s.o libgcc/./_divsc3_s.o libgcc/./_divdc3_s.o
libgcc/./_divxc3_s.o libgcc/./_divtc3_s.o libgcc/./_fixunssfsi_s.o
libgcc/./_fixunsdfsi_s.o libgcc/./_fixunsxfsi_s.o
libgcc/./_fixsfdi_s.o libgcc/./_fixunssfdi_s.o libgcc/./_floatdisf_s.o
libgcc/./_floatundisf_s.o libgcc/./_fixdfdi_s.o
libgcc/./_fixunsdfdi_s.o libgcc/./_floatdidf_s.o
libgcc/./_floatundidf_s.o libgcc/./_fixxfdi_s.o
libgcc/./_fixunsxfdi_s.o libgcc/./_floatdixf_s.o
libgcc/./_floatundixf_s.o libgcc/./_fixtfdi_s.o
libgcc/./_fixunstfdi_s.o libgcc/./_floatditf_s.o
libgcc/./_floatunditf_s.o libgcc/./_divdi3_s.o libgcc/./_moddi3_s.o
libgcc/./_udivdi3_s.o libgcc/./_umoddi3_s.o libgcc/./_udiv_w_sdiv_s.o
libgcc/./_udivmoddi4_s.o libgcc/./unwind-dw2_s.o
libgcc/./unwind-dw2-fde-glibc_s.o libgcc/./unwind-sjlj_s.o
libgcc/./gthr-gnat_s.o libgcc/./unwind-c_s.o -lc && rm -f
./libgcc_s.so && if [ -f ./libgcc_s.so.1 ]; then mv -f ./libgcc_s.so.1
./libgcc_s.so.1.backup; else true; fi && mv ./libgcc_s.so.1.tmp
./libgcc_s.so.1 && ln -s libgcc_s.so.1 ./libgcc_s.so
/mnt/md1/home/pinto/gentoo/usr/x86_64-pc-linux-gnu/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make[4]: *** [libgcc_s.so] Error 1
make[4]: Leaving directory
`/mnt/md1/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build/gcc'
make[3]: *** [stmp-multilib] Error 2
make[3]: Leaving directory
`/mnt/md1/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory
`/mnt/md1/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory
`/mnt/md1/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build'
make: *** [bootstrap-lean] Error 2
emake failed
* ERROR: sys-devel/gcc-4.2.4-r01.4 failed (compile phase):
* emake failed with bootstrap-lean
*
* Call stack:
* ebuild.sh, line 98: Called src_compile
* environment, line 5042: Called gcc_src_compile
* environment, line 3177: Called gcc_do_make
* environment, line 2973: 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.2.4-r01.4',
* the complete build log and the output of 'emerge -pqv
=sys-devel/gcc-4.2.4-r01.4'.
* The complete build log is located at
'/mnt/md1/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/temp/build.log'.
* The ebuild environment file is located at
'/mnt/md1/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/temp/environment'.
* S: '/mnt/md1/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build'

>>> Failed to emerge sys-devel/gcc-4.2.4-r01.4, Log file:

>>> '/mnt/md1/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/temp/build.log'

* Messages for package sys-devel/gcc-4.2.4-r01.4:

* Your ${EPREFIX} contains one or more symlinks. GCC has a
* bug which prevents it from working properly when there are
* symlinks in your ${EPREFIX}.
* See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29831
* Continuing with your EPREFIX set to:
* /mnt/md1/home/pinto/gentoo
* Can't read /config.sub, skipping..
* Can't read /config.guess, skipping..
* ERROR: sys-devel/gcc-4.2.4-r01.4 failed (compile phase):
* emake failed with bootstrap-lean
*
* Call stack:
* ebuild.sh, line 98: Called src_compile
* environment, line 5042: Called gcc_src_compile
* environment, line 3177: Called gcc_do_make
* environment, line 2973: 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.2.4-r01.4',
* the complete build log and the output of 'emerge -pqv
=sys-devel/gcc-4.2.4-r01.4'.
* The complete build log is located at
'/mnt/md1/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/temp/build.log'.
* The ebuild environment file is located at
'/mnt/md1/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/temp/environment'.
* S: '/mnt/md1/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build'
 

Thread Tools




All times are GMT. The time now is 07:24 AM.

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