Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 213275 - [cross/i586-pc-linux-gnu] gcc stage2 failed on amd64
Summary: [cross/i586-pc-linux-gnu] gcc stage2 failed on amd64
Status: RESOLVED DUPLICATE of bug 126032
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-13 14:36 UTC by Jochen Schlick
Modified: 2008-03-14 20:03 UTC (History)
0 users

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


Attachments
cross-i586-pc-linux-gnu-info.log (cross-i586-pc-linux-gnu-info.log,24.44 KB, text/plain)
2008-03-13 14:37 UTC, Jochen Schlick
Details
cross-i586-pc-linux-gnu-gcc-stage2 (cross-i586-pc-linux-gnu-gcc-stage2.log.gz,39.06 KB, application/octet-stream)
2008-03-13 14:39 UTC, Jochen Schlick
Details
fille from a new compile run (but same reproducable error) (libc.so,238 bytes, text/plain)
2008-03-14 01:07 UTC, Jochen Schlick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jochen Schlick 2008-03-13 14:36:38 UTC
I tried to use crossvc to create a i586-pc-linux-gnu toolchain on my amd64 host but it fails always unless I tried different options (binutils/gcc/libc - versions with crossvc, adding/removing toolchain overlay). The following result is the one where I was able to create at least a stage1 gcc (all others fail earlier :-( 


/var/tmp/portage/cross/i586-pc-linux-gnu/portage/cross-i586-pc-linux-gnu/gcc-4.2.0_alpha20080206/work/build/./gcc/xgcc -B/var/tmp/portage/cross/i586-pc-linux-gnu/portage/cross-i586-pc-linux-gnu/gcc-4.2.0_alpha20080206/work/build/./gcc/ -B/usr/i586-pc-linux-gnu/bin/ -B/usr/i586-pc-linux-gnu/lib/ -isystem /usr/i586-pc-linux-gnu/include -isystem /usr/i586-pc-linux-gnu/sys-include -O2  -O2 -O2 -pipe  -DIN_GCC -DCROSS_COMPILE   -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
/usr/libexec/gcc/i586-pc-linux-gnu/ld:/usr/i586-pc-linux-gnu/usr/lib/libc.so: file format not recognized; treating as linker script
/usr/libexec/gcc/i586-pc-linux-gnu/ld:/usr/i586-pc-linux-gnu/usr/lib/libc.so:5: syntax error
collect2: ld returned 1 exit status
make[3]: *** [libgcc_s.so] Error 1
make[3]: Leaving directory `/var/tmp/portage/cross/i586-pc-linux-gnu/portage/cross-i586-pc-linux-gnu/gcc-4.2.0_alpha20080206/work/build/gcc'
make[2]: *** [libgcc.a] Error 2




Reproducible: Always
Comment 1 Jochen Schlick 2008-03-13 14:37:52 UTC
Created attachment 146010 [details]
cross-i586-pc-linux-gnu-info.log
Comment 2 Jochen Schlick 2008-03-13 14:39:55 UTC
Created attachment 146011 [details]
cross-i586-pc-linux-gnu-gcc-stage2
Comment 3 Jochen Schlick 2008-03-13 19:02:26 UTC
Portage 2.1.4.4 (default-linux/amd64/2007.0/no-multilib, gcc-4.2.3, glibc-2.7-r1, 2.6.24-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.24-gentoo-r3 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Timestamp of tree: Thu, 13 Mar 2008 14:47:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.5
dev-lang/python:     2.5.1-r5
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -msse3 -ftree-vectorize "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/qmail/alias /var/qmail/control /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O2 -pipe -msse3 -ftree-vectorize "
DISTDIR="/DATA2/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ "
LANG="C"
LINGUAS="en de"
MAKEOPTS="-j3 "
PKGDIR="/DATA2/portage/packages"
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/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/sunrise /usr/portage/local/layman/toolchain /usr/portage/local/layman/sajinet /usr/portage/local/layman/science /usr/portage/local/layman/xemacs /usr/portage/local/layman/sabayon /usr/portage/local/layman/arcon"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 64bit X Xaw3d a52 aac aalib acct acl acpi aiglx aio alsa amarok amd amd64 amr ao apm arts asf audiofile autoreplace avi bash-completion berkdb binary-drivers boost branding cairo ccache cdb cdparanoia cdr cdrom cg chroot cli colordiff connectionstatus cpudetection cracklib crypt css cups curl cvs d dbase dbus debugger deprecated device-mapper dia diet directfb disk-partition dlloader dmi dnd dri dv dvd dvdnav dvdr dvdread dxr3 emboss encode exif extensions extrafilters fat fbdev ffmpeg fftw fortran gdbm gif gnome gnutls gpm graphviz gstreamer gtk gtk2 hal iconv imagemagick imap ipv6 jack john jpeg kde kdm keyring lcd lcms libcaca lm_sensors logrotate lzo mad maildir mhash midi mjpeg mmap mmx mmxext mng mozilla mp2 mp3 mp3rtp mp4 mpeg mplayer mudflap mysql nat ncurses network-cron nls nptl nptlonly nsplugin ntfs ntlm nvidia ogg opengl openmp openssl pam pam_chroot pam_timestamp pcre pdflib perl png portaudio postproc postscript ppds pppd prelude python qmail qt3 qt3support qt4 quicktime rar readline realmedia reflection rrdtool rss rtc scanner sdl seamonkey session sftp sftplogging sockets socks5 spell spl sql sqlite sqlite3 sse sse2 ssl subversion svg swig sysfs sysvipc taglib tagwriting tcpd tcpwrapper theora threads tidy tiff timestats tomsfastmath tordns transcode truetype udev unicode unix98 urandom usb utempter v4l v4l2 vcd vorbis vpopmail wifi wireshark wma wmf wmp wxwindows x264 xanim xattr xemacs xen xforms xfs xine xinetd xml xorg xosd xpm xulrunner xv xvid xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 SpanKY gentoo-dev 2008-03-13 22:24:53 UTC
post the file in question as an attachment:
/usr/i586-pc-linux-gnu/usr/lib/libc.so
Comment 5 Jochen Schlick 2008-03-14 01:07:13 UTC
Created attachment 146074 [details]
fille from a new compile run  (but same reproducable error)
Comment 6 SpanKY gentoo-dev 2008-03-14 01:39:47 UTC
what version of binutils is i586-pc-linux-gnu-ld ?
Comment 7 Jochen Schlick 2008-03-14 01:51:59 UTC
crossdev output says: latest

but from /var/log/portage/cross-i586-pc-linux-gnu-binutils.log:
cross-i586-pc-linux-gnu/binutils-2.15.92.0.2-r10
Comment 8 SpanKY gentoo-dev 2008-03-14 12:03:42 UTC
old versions are not supported

find out why you arent getting 2.18 on your system

*** This bug has been marked as a duplicate of bug 126032 ***
Comment 9 Jochen Schlick 2008-03-14 17:03:36 UTC
I don't know why I got this version of binutils because I thought I get the latest available version. I only specified the compiler (4.2.3) with crossvc but it builds gcc-4.2.0_alpha20080206 ??.... 

Do you have a combination of gcc, binutils and headers which should work or is known to work? because I've been trying to build a cross toolchain for more than 10 days now without any success. This toolchain here was the most successful one all other crossvc-toolchains fail in earlier stages (binutils ...).   
 
Comment 10 Jochen Schlick 2008-03-14 20:03:29 UTC
 the reason for the old version of binutils, gcc.... is that I had activated the toolchain overlay.