Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 343423

Summary: sys-devel/crossdev-20100814: ld: cannot find -lc when building x86_64-pc-linux-uclibc
Product: Gentoo Linux Reporter: contact
Component: [OLD] DevelopmentAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: full build log

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,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc.map -o 32/libgcc_s.so.1.tmp -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/libgcc_s.so && if [ -f 32/libgcc_s.so.1 ]; then mv -f 32/libgcc_s.so.1 32/libgcc_s.so.1.backup; else true; fi && mv 32/libgcc_s.so.1.tmp 32/libgcc_s.so.1 && ln -s libgcc_s.so.1 32/libgcc_s.so
/usr/libexec/gcc/x86_64-pc-linux-uclibc/ld: skipping incompatible /usr/x86_64-pc-linux-uclibc/usr/lib/../lib/libc.so 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/libc.so 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/libc.so 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]: *** [libgcc_s.so] 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:
 *     ebuild.sh, 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:
 *       emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";



last part of buildlog: http://pastebin.com/0w7KUKU3

Portage 2.1.8.3 (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
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA @EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -pipe"
CHOST="x86_64-pc-linux-gnu"
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"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
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" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        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"
CXXFLAGS=""
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 ***