Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 199924 - sys-devel/gcc fails to cross-compile with treelang
Summary: sys-devel/gcc fails to cross-compile with treelang
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 200249 200345 200971 201142 201527 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-11-21 21:53 UTC by Angelo Arrifano (RETIRED)
Modified: 2014-05-18 20:28 UTC (History)
6 users (show)

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


Attachments
Workaround (toolchain.eclass.patch,533 bytes, patch)
2007-11-22 21:32 UTC, Staale Aakermann
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Angelo Arrifano (RETIRED) gentoo-dev 2007-11-21 21:53:24 UTC
I was using crossdev to build a toolchain to use with distcc.

but sys-devel/gcc-4.2.2 failed to emerge with this error:

/usr/libexec/gcc/i686-pc-linux-gnu/ar  rc ./libgcov.a libgcc/./_gcov.o libgcc/./_gcov_merge_add.o libgcc/./_gcov_merge_single.o libgcc/./_gcov_merge_delta.o libgcc/./_gcov_fork.o libgcc/./_gcov_execl.o libgcc/./_gcov_execlp.o libgcc/./_gcov_execle.o libgcc/./_gcov_execv.o libgcc/./_gcov_execvp.o libgcc/./_gcov_execve.o libgcc/./_gcov_interval_profiler.o libgcc/./_gcov_pow2_profiler.o libgcc/./_gcov_one_value_profiler.o
/usr/libexec/gcc/i686-pc-linux-gnu/ranlib ./libgcov.a
make[3]: Leaving directory `/var/tmp/cross/i686-pc-linux-gnu/portage/cross-i686-pc-linux-gnu/gcc-4.2.2/work/build/gcc'
_error_not_here_yet - havent even thought about it - it may even work
make[2]: _error_not_here_yet: Command not found
make[2]: *** [treelang.all.cross] Error 127
make[2]: Leaving directory `/var/tmp/cross/i686-pc-linux-gnu/portage/cross-i686-pc-linux-gnu/gcc-4.2.2/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.2.2/work/build'
make: *** [all] Error 2

This error is raised by gcc/treelang/Make-lang, where we can find:

treelang.all.cross:
 	_error_not_here_yet - havent even thought about it - it may even work

I could bypass this error by removing all build traces of gcc/treelang from Makefiles.

Portage 2.1.3.19 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-gentoo-r9 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r9 x86_64 AMD Turion(tm) 64 X2 Mobile Technology TL-56
Timestamp of tree: Tue, 20 Nov 2007 11:00: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.0.33-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
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.18-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 -Os -msse3 -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"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /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 -Os -msse3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distlocks metadata-transfer multilib-strict parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_EN@euro"
LC_ALL="en_EN@euro"
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/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi alsa amd64 amr bash-completion berkdb bitmap-fonts branding bzip2 cairo cli cracklib crypt cups dbus divx dvd dvdr emerald ffmpeg firefox flac fortran gd gdbm gif glade glib glitz gtk gtkspell hal iconv insecure-savers isdnlog javascript jpeg jpeg2k kqemu libnotify midi mmx mmxext mp2 mp3 mpeg mplayer mudflap musicbrainz mysql ncurses nls nptl nptlonly offensive ogg opengl openmp pam pcre png pppd python readline reflection samba sdl session smp spell spl sse sse2 ssl stream svg syslog taglib tcpd threads truetype truetype-fonts type1 type1-fonts unicode v4l v4l2 vhosts vim-syntax vorbis xcomposite xorg xosd xpm xscreensaver 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="xosd" USERLAND="GNU" VIDEO_CARDS="nv nvidia none"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Alon Bar-Lev (RETIRED) gentoo-dev 2007-11-22 21:19:50 UTC
I get the same issue with cross-i586-pc-linux-uclibc/gcc-4.1.2, and cross-i586-pc-linux-uclibc/gcc-4.2.2
Has something changed?
Comment 2 Staale Aakermann 2007-11-22 21:32:19 UTC
Created attachment 136718 [details, diff]
Workaround

Had the same problem. It seems that the new portage has included treelang in the /usr/portage/eclass/toolchain.eclass file, which wasn't there in earlier portages. 

The problem is occur if trying to emerge new gcc's with crossdev. It also occur if trying to build a side-by-side gcc from a new fresh install from current portage.

A quick hack is to comment out the line [ is_treelang && GCC_LANG="${GCC_LANG},treelang" ] from /usr/portage/eclass/toolchain.eclass.

Maintainers of portage, please leave this treelang language out of default config.
Comment 3 Alon Bar-Lev (RETIRED) gentoo-dev 2007-11-22 22:25:03 UTC
Thanks!
It worked!
Comment 4 SpanKY gentoo-dev 2007-11-29 05:49:25 UTC
*** Bug 200345 has been marked as a duplicate of this bug. ***
Comment 5 SpanKY gentoo-dev 2007-11-29 05:49:32 UTC
*** Bug 200249 has been marked as a duplicate of this bug. ***
Comment 6 SpanKY gentoo-dev 2007-12-01 18:33:20 UTC
fixed in cvs
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2007-12-02 09:09:14 UTC
*** Bug 200971 has been marked as a duplicate of this bug. ***
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2007-12-03 20:45:50 UTC
*** Bug 201142 has been marked as a duplicate of this bug. ***
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2007-12-06 22:03:35 UTC
*** Bug 201527 has been marked as a duplicate of this bug. ***