Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 312327 - cross-x86_64-pc-linux-uclibc/gcc stage2 fails to build on multilib profiles
Summary: cross-x86_64-pc-linux-uclibc/gcc stage2 fails to build on multilib profiles
Status: RESOLVED DUPLICATE of bug 244892
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-31 03:52 UTC by Nick Bowler
Modified: 2010-04-11 21:40 UTC (History)
2 users (show)

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


Attachments
Complete build log of failed build. (cross-x86_64-pc-linux-uclibc:gcc-4.4.3:20100331-031838.log,1.51 MB, text/plain)
2010-03-31 03:53 UTC, Nick Bowler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Bowler 2010-03-31 03:52:03 UTC
Once cross-x86_64-pc-linux-uclibc/uclibc is installed, subsequent builds of gcc fail on multilib since it tries to link a 32-bit libgcc_s.so against a non-existent 32-bit C library.  Relevant snippet of the build log:

/var/tmp/portage/cross-x86_64-pc-linux-uclibc/gcc-4.4.3/work/build/./gcc/xgcc -B/var/tmp/portage/cross-x86_64-pc-linux-uclibc/gcc-4.4.3/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 -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -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

Prior to installing uclibc, the build proceeds normally, ostensibly because it does not make any attempt to build a 32 bit libgcc_s.so at this time (it does build a static version, which is presumably useless).  This effectively prevents one from installing a C++ cross compiler.

The issue can be worked around by temporarily switching to a no-multilib profile.

Portage 2.1.7.17 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.10.1-r1, 2.6.34-rc2-00390-g9623e5a x86_64)
=================================================================
System uname: Linux-2.6.34-rc2-00390-g9623e5a-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8800_@_2.66GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 30 Mar 2010 23:00:01 +0000
app-shells/bash:     4.0_p35
dev-lang/python:     2.6.4-r1
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.7.9-r2, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.1.2, 4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -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/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=core2 -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://artemis/ ftp://mirror.datapipe.net/gentoo/"
LANG="en_CA.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 berkdb bzip2 cairo cdparanoia cjk cli cracklib crypt cups curl cxx doc dri exif fbcon flac fontconfig fontforge fortran gdbm gif gimp gpm gtk iconv idn imagemagick ipv6 jack jadetex jpeg kpathsea latex lcms libsamplerate mikmod mmx modules mp3 mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre perl png pppd pulseaudio python readline reflection sdl session smp speex spl sse sse2 ssl svg sysfs tcpd threads tiff truetype unicode vim-syntax vorbis xcb xft xorg xv 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 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" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Nick Bowler 2010-03-31 03:53:14 UTC
Created attachment 225911 [details]
Complete build log of failed build.
Comment 2 SpanKY gentoo-dev 2010-04-11 21:40:04 UTC

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