Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 343423 - sys-devel/crossdev-20100814: ld: cannot find -lc when building x86_64-pc-linux-uclibc
Summary: sys-devel/crossdev-20100814: ld: cannot find -lc when building x86_64-pc-linu...
Status: RESOLVED DUPLICATE of bug 244892
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
Depends on:
Reported: 2010-10-30 20:34 UTC by contact
Modified: 2010-11-09 13:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

full build log (build.log,1.47 MB, text/plain)
2010-11-05 20:04 UTC, contact

Note You need to log in before you can comment on or make changes to this bug.
Description contact 2010-10-30 20:34:48 UTC
Crossdev exits while emerging cross-gcc-stage2 when called with -t x86_64-pc-linux-uclibc. After searching for a compatible libc, ld exits.

Reproducible: Always

Steps to Reproduce:
1. run crossdev -t x86_64-pc-linux-uclibc

Actual Results:  
/var/tmp/cross/x86_64-pc-linux-uclibc/portage/cross-x86_64-pc-linux-uclibc/gcc-4.5.1/work/build/./gcc/xgcc -B/var/tmp/cross/x86_64-pc-linux-uclibc/portage/cross-x86_64-pc-linux-uclibc/gcc-4.5.1/work/build/./gcc/ -B/usr/x86_64-pc-linux-uclibc/bin/ -B/usr/x86_64-pc-linux-uclibc/lib/ -isystem /usr/x86_64-pc-linux-uclibc/include -isystem /usr/x86_64-pc-linux-uclibc/sys-include    -O2  -g -Os -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED   -shared -nodefaultlibs -Wl, -Wl, -o 32/ -g -Os -m32 -B./ _muldi3_s.o _negdi2_s.o _lshrdi3_s.o _ashldi3_s.o _ashrdi3_s.o _cmpdi2_s.o _ucmpdi2_s.o _clear_cache_s.o _enable_execute_stack_s.o _trampoline_s.o __main_s.o _absvsi2_s.o _absvdi2_s.o _addvsi3_s.o _addvdi3_s.o _subvsi3_s.o _subvdi3_s.o _mulvsi3_s.o _mulvdi3_s.o _negvsi2_s.o _negvdi2_s.o _ctors_s.o _ffssi2_s.o _ffsdi2_s.o _clz_s.o _clzsi2_s.o _clzdi2_s.o _ctzsi2_s.o _ctzdi2_s.o _popcount_tab_s.o _popcountsi2_s.o _popcountdi2_s.o _paritysi2_s.o _paritydi2_s.o _powisf2_s.o _powidf2_s.o _powixf2_s.o _powitf2_s.o _mulsc3_s.o _muldc3_s.o _mulxc3_s.o _multc3_s.o _divsc3_s.o _divdc3_s.o _divxc3_s.o _divtc3_s.o _bswapsi2_s.o _bswapdi2_s.o _fixunssfsi_s.o _fixunsdfsi_s.o _fixunsxfsi_s.o _fixsfdi_s.o _fixdfdi_s.o _fixxfdi_s.o _fixunssfdi_s.o _fixunsdfdi_s.o _fixunsxfdi_s.o _floatdisf_s.o _floatdidf_s.o _floatdixf_s.o _floatundisf_s.o _floatundidf_s.o _floatundixf_s.o _divdi3_s.o _moddi3_s.o _udivdi3_s.o _umoddi3_s.o _udiv_w_sdiv_s.o _udivmoddi4_s.o addtf3_s.o divtf3_s.o eqtf2_s.o getf2_s.o letf2_s.o multf3_s.o negtf2_s.o subtf3_s.o unordtf2_s.o fixtfsi_s.o fixunstfsi_s.o floatsitf_s.o floatunsitf_s.o fixtfdi_s.o fixunstfdi_s.o floatditf_s.o floatunditf_s.o extendsftf2_s.o extenddftf2_s.o extendxftf2_s.o trunctfsf2_s.o trunctfdf2_s.o trunctfxf2_s.o tf-signs_s.o unwind-dw2_s.o unwind-dw2-fde-glibc_s.o unwind-sjlj_s.o gthr-gnat_s.o unwind-c_s.o emutls_s.o -lc && rm -f 32/ && if [ -f 32/ ]; then mv -f 32/ 32/; else true; fi && mv 32/ 32/ && ln -s 32/
/usr/libexec/gcc/x86_64-pc-linux-uclibc/ld: skipping incompatible /usr/x86_64-pc-linux-uclibc/usr/lib/../lib/ when searching for -lc
/usr/libexec/gcc/x86_64-pc-linux-uclibc/ld: skipping incompatible /usr/x86_64-pc-linux-uclibc/usr/lib/../lib/libc.a when searching for -lc
/usr/libexec/gcc/x86_64-pc-linux-uclibc/ld: skipping incompatible /usr/x86_64-pc-linux-uclibc/usr/lib/ when searching for -lc
/usr/libexec/gcc/x86_64-pc-linux-uclibc/ld: skipping incompatible /usr/x86_64-pc-linux-uclibc/usr/lib/libc.a when searching for -lc
/usr/libexec/gcc/x86_64-pc-linux-uclibc/ld: skipping incompatible /usr/x86_64-pc-linux-uclibc/usr/lib/ when searching for -lc
/usr/libexec/gcc/x86_64-pc-linux-uclibc/ld: skipping incompatible /usr/x86_64-pc-linux-uclibc/usr/lib/libc.a when searching for -lc
/usr/libexec/gcc/x86_64-pc-linux-uclibc/ld: cannot find -lc
collect2: ld returned 1 exit status
make[4]: *** [] Error 1
make[4]: Leaving directory `/var/tmp/cross/x86_64-pc-linux-uclibc/portage/cross-x86_64-pc-linux-uclibc/gcc-4.5.1/work/build/x86_64-pc-linux-uclibc/32/libgcc'
make[3]: *** [multi-do] Error 1
make[3]: Leaving directory `/var/tmp/cross/x86_64-pc-linux-uclibc/portage/cross-x86_64-pc-linux-uclibc/gcc-4.5.1/work/build/x86_64-pc-linux-uclibc/libgcc'
make[2]: *** [all-multi] Error 2
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/cross/x86_64-pc-linux-uclibc/portage/cross-x86_64-pc-linux-uclibc/gcc-4.5.1/work/build/x86_64-pc-linux-uclibc/libgcc'
make[1]: *** [all-target-libgcc] Error 2
make[1]: Leaving directory `/var/tmp/cross/x86_64-pc-linux-uclibc/portage/cross-x86_64-pc-linux-uclibc/gcc-4.5.1/work/build'
make: *** [all] Error 2
 * ERROR: cross-x86_64-pc-linux-uclibc/gcc-4.5.1 failed:
 *   emake failed with all
 * Call stack:
 *, line   54:  Called src_compile
 *   environment, line 5006:  Called toolchain_src_compile
 *   environment, line 5601:  Called gcc_src_compile
 *   environment, line 3165:  Called gcc_do_make
 *   environment, line 2952:  Called die
 * The specific snippet of code:

last part of buildlog:

Portage (default/linux/amd64/10.0/desktop/gnome, gcc-4.4.4, glibc-2.11.2-r2, 2.6.34-gentoo-r6 x86_64)
                        System Settings
System uname: Linux-2.6.34-gentoo-r6-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_6400+-with-gentoo-1.12.13
Timestamp of tree: Sat, 30 Oct 2010 14:45:02 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1
CFLAGS="-O2 -march=athlon64 -pipe"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=athlon64 -pipe"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran gdbm gdu gif gnome gnome-keyring gpm gstreamer gtk hal iconv ipv6 jabber jpeg lcms ldap libnotify mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt3support readline sdl session spell sqlite sse sse2 ssl startup-notification svg sysfs tcpd threads tiff truetype unicode usb vorbis x264 xcb xml xorg xulrunner xv xvid 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" 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-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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" 

                        Package Settings

cross-x86_64-pc-linux-uclibc/gcc-4.5.1 was built with the following:
USE="(multilib) nls nocxx nptl (-altivec) -bootstrap -build -doc (-fixed-point) -fortran -gcj -graphite -gtk -hardened -libffi -lto -mudflap -multislot (-n32) (-n64) -nopie -nossp -objc -objc++ -objc-gc -openmp -test -vanilla" 
CFLAGS="-O2 -pipe"
Comment 1 Wormo (RETIRED) gentoo-dev 2010-11-05 20:00:29 UTC
Please post full build log as an attachment to this bug (rather than using external pastebin links, which will disappear after a while)
Comment 2 contact 2010-11-05 20:04:36 UTC
Created attachment 253341 [details]
full build log
Comment 3 contact 2010-11-05 20:07:44 UTC
(In reply to comment #1)
> Please post full build log as an attachment to this bug (rather than using
> external pastebin links, which will disappear after a while)
Done, didn't find way to remove the pastebin link though... 
Comment 4 Wormo (RETIRED) gentoo-dev 2010-11-06 04:42:36 UTC
Don't worry about taking out the link, you've added what's needed. Assigning to maintainers.
Comment 5 SpanKY gentoo-dev 2010-11-09 13:14:07 UTC

*** This bug has been marked as a duplicate of bug 244892 ***