When I tried to compile crossdev and used it to compile CXX project i get error (i686-linux-gnu-g++ not found). Native is x86_64. Reproducible: Always Steps to Reproduce: emerge crossdev and try compile CXX project Actual Results: fails wit g++ not found Expected Results: project compiles When i tried recompiling of cross-i686-pc-linux-gnu/gcc i see from output that nocxx flag have changed from enabled to disabled and g++ is now working.
Yes, it seems cross-*/gcc isn't rebuilt with USE=-nocxx. Please post your `emerge --info' too.
(In reply to comment #1) > Yes, it seems cross-*/gcc isn't rebuilt with USE=-nocxx. Please post your > `emerge --info' too. > Same problem here. Is there any known workarround?
The crossdev script adds "-u" to the emerge options. This causes the first pass of cross-gcc to build, and the second pass to get skipped (leaving you without C++ support). My workaround is to edit the script, and remove the "-u" part.
I wonder if this is the proper solution: When asked to emerge -u <installed package>, portage doesn't consider changes in USE flags. So by specifically setting -Nu instead of -u, this should be detected properly. Index: files/crossdev =================================================================== RCS file: /var/cvsroot/gentoo-x86/sys-devel/crossdev/files/crossdev,v retrieving revision 1.104 diff -u -B -r1.104 crossdev --- files/crossdev 23 Jun 2008 01:46:04 -0000 1.104 +++ files/crossdev 15 Sep 2008 13:53:20 -0000 @@ -586,7 +586,7 @@ # we include the '-u' so that we don't re-emerge packages EOPTS_DEF="${UOPTS} --nodeps --oneshot" -EOPTS_UP="${EOPTS_DEF} -u" +EOPTS_UP="${EOPTS_DEF} -Nu" EOPTS=${EOPTS_UP} # keep things like --ask from screwing us up export EMERGE_DEFAULT_OPTS=""
Portage 2.2_rc8 (default/linux/amd64/2008.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.26-gentoo-r1 x86_64) ================================================================= System uname: Linux-2.6.26-gentoo-r1-x86_64-AMD_Phenom-tm-_9750_Quad-Core_Processor-with-glibc2.2.5 Timestamp of tree: Sat, 06 Sep 2008 17:45:05 +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_p39 dev-lang/python: 2.4.4-r13, 2.5.2-r7 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.5 sys-apps/sandbox: 1.2.18.1-r3 sys-devel/autoconf: 2.13, 2.62-r1 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.4 virtual/os-headers: 2.6.26 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=amdfam10 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/env /usr/share/config /usr/shutdown" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=amdfam10 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache collision-protect distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp.fi.muni.cz/pub/linux/gentoo/ ftp://ftp.fi.muni.cz/pub/linux/gentoo/ http://gentoo.mirror.dkm.cz/pub/gentoo/ ftp://gentoo.mirror.dkm.cz/pub/gentoo/ " LANG="cs_CZ.utf8" LDFLAGS="-Wl,-O1" LINGUAS="cs en" MAKEOPTS="-j5" PKGDIR="/usr/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" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/kde-test/kde /usr/local/portage/my" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="16bit 3dnow 3dnowext 7zip X aalib accessibility acl acpi acpi4linux alsa amd64 asf aspell avi bash-completion berkdb bindist bootsplash branding bzip bzip2 cdinstall chroot cli cracklib crypt css cups dbus divx4linux djvu dri dvd dvdr dvdread exif f77 fbcon flac flash glib gnutls gpm gtk2 hal iconv icq imagemagick imlib2 inotify isdnlog javascript jpeg jpeg2k kde kdeenablefinal lcd libcaca libg++ logitech-mouse midi mmx mmxext mp3 mpd mpeg mplayer multilib musicbrainz native ncurses nepomuk nls nocd nptl nptlonly ntfs ogg opengl openmp oss pam pcre plasma png pppd python qt4 quicktime rar readline recode reflection ruby samba session spell spl sqlite sqlite3 sse sse2 sse4a ssl subtitles subversion sysfs tcpd themes threads tidy tiff tokenizer truetype unicode usb userlocales v4l v4l2 vcd videos vim-syntax vim-with-x vorbis wifi xanim xcomposite xine xml2 xorg xvid 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 mmap_emul mulaw multi nullplug 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" FOO2ZJS_DEVICES="hp1018 hp1020" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="g15" LINGUAS="cs en" USERLAND="GNU" VIDEO_CARDS="fglrx radeon" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS It looks like that problem in passing -u
*** This bug has been marked as a duplicate of bug 234239 ***