build/genmodes.o build/errors.o ../build-x86_64-pc-linux-gnu/libiberty/libiberty.a /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: warning: i386 architecture of input file `build/genmodes.o' is incompatible with i386:x86-64 output /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: warning: i386 architecture of input file `build/errors.o' is incompatible with i386:x86-64 output /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: warning: i386 architecture of input file `../build-x86_64-pc-linux-gnu/libiberty/libiberty.a(hashtab.o)' is incompatible with i386:x86-64 output /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: warning: i386 architecture of input file `../build-x86_64-pc-linux-gnu/libiberty/libiberty.a(xmalloc.o)' is incompatible with i386:x86-64 output /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: warning: i386 architecture of input file `../build-x86_64-pc-linux-gnu/libiberty/libiberty.a(xstrdup.o)' is incompatible with i386:x86-64 output /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: warning: i386 architecture of input file `../build-x86_64-pc-linux-gnu/libiberty/libiberty.a(xexit.o)' is incompatible with i386:x86-64 output build/genmodes -h > tmp-modes.h /bin/sh: line 1: 16297 Segmentation fault build/genmodes -h > tmp-modes.h make[2]: *** [s-modes] Error 139 make[2]: Leaving directory `/var/tmp/cross/i686-pc-linux-gnu/portage/cross-i686-pc-linux-gnu/gcc-4.1.1-r3/work/build/gcc' make[1]: *** [all-gcc] Error 2 make[1]: Leaving directory `/var/tmp/cross/i686-pc-linux-gnu/portage/cross-i686-pc-linux-gnu/gcc-4.1.1-r3/work/build' make: *** [all] Error 2 * * ERROR: cross-i686-pc-linux-gnu/gcc-4.1.1-r3 failed. * Call stack: * ebuild.sh, line 1654: Called dyn_compile * ebuild.sh, line 990: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * ebuild.sh, line 1334: Called toolchain_src_compile * toolchain.eclass, line 26: Called gcc_src_compile * toolchain.eclass, line 1546: Called gcc_do_make * toolchain.eclass, line 1420: Called die * * emake failed with all * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/cross/i686-pc-linux-gnu/portage/cross-i686-pc-linux-gnu/gcc-4.1.1-r3/temp/build.log'. * Reproducible: Always Steps to Reproduce: 1.Run MAKEOPTS="V=1" crossdev -t i686-pc-linux-gnu --g 4.1.1-r3 2. 3. Actual Results: It failed Expected Results: It should have built a complete i686 toolchain. Portage 2.1.3.9 (default-linux/amd64/2006.1/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.22-cm x86_64) ================================================================= System uname: 2.6.22-cm x86_64 AMD Athlon(tm) 64 Processor 3500+ Timestamp of tree: Sun, 14 Oct 2007 06:30:01 +0000 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] app-shells/bash: 3.2_p17 dev-java/java-config: 1.3.7, 2.1.2 dev-lang/python: 2.4.4-r5, 2.5.1-r2 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.9-r2 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe" 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/X11/xkb /usr/share/config /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/initng/daemon /etc/initng/net /etc/initng/system /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=k8 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="buildpkg distcc distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo ftp://ftp.ndlug.nd.edu/pub/gentoo/ " MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/initng /usr/portage/local/layman/enlightenment /usr/portage/local/layman/mpd /usr/portage/local/layman/springlobby /usr/portage/local/layman/n4g /usr/portage/local/layman/sunrise /usr/local/portage /usr/local/initng-portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="7zip X a52 aac aalib acpi aim alsa amd64 aotuv audiofile bash-completion berkdb binary-drivers binfilter bitmap-fonts branding cairo cdparanoia cdr cli cracklib crypt css cups dbus dmi doc dri dvb dvd dvdr dvdread eds effects emboss encode fam fastcgi ffmpeg firefox flac flood fortran gdbm gif gimpprint glitz gmail gmailtimestamps gpm grammar gtalk gtk gtk2 hal iconv ieee1394 ipod isdnlog jabber java jpeg kde lame ldap libao lirc mad matroska midi mikmod mp3 mpeg mudflap mysql mythtv ncurses nls nptl nptlonly nvidia ogg openal opengl openmp oscar pam pcre pdf perl php png ppds pppd python qt3 qt4 quicktime readline reflection samba sdl session shout spell spl ssl svg tcpd tiff truetype truetype-fonts type1-fonts unicode vorbis wma wmf wxwindows x264 xinerama xml xorg xv xvid xvmc yahoo 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INITNG_PLUGINS="also bash_launcher chdir chroot conflict cpout critical ctrlaltdel daemon_clean debug_commands envparser find fmon fstat history idleprobe initctl interactive iparser last limit lockfile logfile netdev netprobe ngc4 ngcs nge pause pidfiletest provide reload renice rlparser simple_launcher splash stcmd stdout suid syncron syslog sysreq unneeded usplash" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
tux profiles # MAKEOPTS="V=1" crossdev -t i686-pc-linux-gnu --g 4.1.1-r3 ------------------------------------------------------------------------------------------------------------------------------------------------------------- * Host Portage ARCH: amd64 * Target Portage ARCH: x86 * Target System: i686-pc-linux-gnu * Stage: 4 (C/C++ compiler) * binutils: binutils-[latest] * gcc: gcc-4.1.1-r3 * headers: linux-headers-[latest] * libc: glibc-[latest] * PORTDIR_OVERLAY: /usr/portage/local/layman/initng * PORT_LOGDIR: /var/log/portage * PKGDIR: /usr/portage/packages/cross/i686-pc-linux-gnu * PORTAGE_TMPDIR: /var/tmp/cross/i686-pc-linux-gnu _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - * Forcing the latest versions of {binutils,gcc}-config/gnuconfig ... [ ok ] * Log: /var/log/portage/cross-i686-pc-linux-gnu-binutils.log * Emerging cross-binutils ... [ ok ] * Log: /var/log/portage/cross-i686-pc-linux-gnu-gcc-stage1.log * Emerging cross-gcc-stage1 ... * gcc failed :( * If you file a bug, please attach the following logfiles: * /var/log/portage/cross-i686-pc-linux-gnu-info.log * /var/log/portage/cross-i686-pc-linux-gnu-gcc-stage1.log
gcc-4.2.2 works fine for me only the latest versions are support (4.1.2 / 4.2.2)
GCC 4.1.2 yields the same issues.
(In reply to comment #3) > GCC 4.1.2 yields the same issues. > Well it appears GCC 4.2.2 breaks when I try and update it. I must have broken my toolchain somehow/somewhere.
gcc-4.1.2 works fine for me too post the actual log files as attachments like the error message told you to: * If you file a bug, please attach the following logfiles: * /var/log/portage/cross-i686-pc-linux-gnu-info.log * /var/log/portage/cross-i686-pc-linux-gnu-gcc-stage1.log
I have similar problems, trying crossdev --portage v -t i686 -S Attaching emerge --info and the logs.
Created attachment 136632 [details] cross-i686-pc-linux-gnu-gcc-stage1.log
Created attachment 136634 [details] cross-i686-pc-linux-gnu-info.log
Created attachment 136635 [details] emerge --info
(In reply to comment #5) > gcc-4.1.2 works fine for me too > Same problem here about treelang. Also i won't spam you with my log files. The messages are similar with the ones produced here but in french ;). It looks as if Debian package has the same issue. See below, http://www.mail-archive.com/debian-gcc@lists.debian.org/msg09008.html Is it easy to disable the treelang language for gcc ? There is no compile_src() function in the ebuild as it calls gcc_src_compile directly. Thanks, Jj
It was definitely treelang that has generate the issue. I resolved it by modifying toolchain.eclass see attachement. Hope the patch doesn't affect anything. Jj
Created attachment 136941 [details, diff] treelang compromises crosscompiling
this bug has nothing to do with treelang
(In reply to comment #13) > this bug has nothing to do with treelang > Are you Sure? From the log file TARGET_CPU_DEFAULT="" \ HEADERS="auto-host.h ansidecl.h" DEFINES="USED_FOR_TARGET " \ /bin/sh /var/tmp/cross/i686-pc-linux-gnu/portage/cross-i686-pc-linux-gnu/gcc-4.1.2/work/gcc-4.1.2/gcc/mkconfig.sh tconfig.h echo "\"/var/tmp/cross/i686-pc-linux-gnu/portage/cross-i686-pc-linux-gnu/gcc-4.1.2/work/gcc-4.1.2/gcc/tree.h\", " >> tmp-gtyp.h _error_not_here_yet - havent even thought about it - it may even work make[2]: _error_not_here_yet: Kommandot hittades inte make[2]: *** [treelang.all.cross] Fel 127 make[2]: *** Inväntar oavslutade jobb... What is _error_not_here_yet? _error_not_here_yet - havent even thought about it - it may even work make[2]: _error_not_here_yet: Kommandot hittades inte "Kommandot hittades inte" = "Command not found" "Inväntar oavslutade jobb" = "Waiting for unfinished jobs" bender gcc-4.1.2 # grep _error_not_here_yet * -R gcc/treelang/Make-lang.in: _error_not_here_yet - havent even thought about it - it may even work So it might suggest that it has something to do with treelang. I might be wrong, but to me it looks like there is some problem with treelang. However, the real cause is probably elsewhere.
Created attachment 137258 [details] Problem has reapeared, patch missing I have been tracking down this problem and have found that the patch that was summited hasnt made it into portage. can this be fixed so that i can one again get my crossdev to work? ( currently applied manualy but it will disapear on the next sync)
this bug was filed long before treelang was added so stop spamming your unrelated stuff here
(In reply to comment #15) > Created an attachment (id=137258) [edit] > Problem has reapeared, patch missing > > I have been tracking down this problem and have found that the patch that was > summited hasnt made it into portage. can this be fixed so that i can one again > get my crossdev to work? ( currently applied manualy but it will disapear on > the next sync) > Thanks. This has been bugging me for months now. The eclass patch worked and I can crosscompile again!
(In reply to comment #16) > this bug was filed long before treelang was added so stop spamming your > unrelated stuff here > Hi Spanky, be reassured, i'm able to make the difference between "/bin/sh: line 1: 16297 Segmentation fault build/genmodes -h > tmp-modes.h" and "_error_not_here_yet - havent even thought about it - it may even work" In that case, you should change the summary of the bug report with something more precise. Actually, i didn't open a new bug report, to avoid extra work to Jakub. He should have certainly marked it as a duplicate of this one :) Anyway, the treelang "bug" affects the portage toolchain and is imo painful enough to be related here. Jj