Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 231665 - 'crossdev i686-mingw32' compiles nothing in stage 4
Summary: 'crossdev i686-mingw32' compiles nothing in stage 4
Status: RESOLVED DUPLICATE of bug 234239
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-13 09:08 UTC by Roberto Castagnola
Modified: 2008-10-27 04:57 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roberto Castagnola 2008-07-13 09:08:56 UTC
Using sys-devel/crossdev-0.9.18-r9

'crossdev i686-mingw32' doesn't compile i686-mingw32-g++ because of the missing of word 'cross_compile_bootstrap' in /var/db/pkg/cross-${CTARGET}/${pkg}-*/USE file:

After Emerging cross-gcc-stage1 ...
# cat /var/db/pkg/cross-i686-mingw32/gcc-4.3.1-r1/USE
amd64 elibc_glibc kernel_linux nls nocxx userland_GNU


PROPOSED PATCH

--- /usr/sbin/crossdev
+++ crossdev
@@ -631,7 +631,7 @@
        doemerge ${LPKG}

 is_s4 || exit 0
-set_eopts_on_pkg_status ${GPKG} crosscompile_opts_bootstrap
+set_eopts_on_pkg_status ${GPKG} nocxx
 USE="${GUSE} ${USE} ${GUSE_DISABLE_STAGE_2}" \
        doemerge ${GPKG} ${GPKG}-stage2


# emerge --info
Portage 2.2_rc1 (default-linux/amd64/2007.0/desktop, gcc-4.2.4, glibc-2.8_p20080602-r0, 2.6.24-tuxonice-r2 x86_64)
=================================================================
System uname: Linux-2.6.24-tuxonice-r2-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7300_@_2.00GHz-with-glibc2.2.5
Timestamp of tree: Sat, 12 Jul 2008 01:45:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r5
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.25-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -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/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/mnt/portage/distfiles"
FEATURES="collision-protect distlocks metadata-transfer parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://mirror.ing.unibo.it/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/"
LANG="en_US.utf8"
LDFLAGS=""
LINGUAS="en it"
MAKEOPTS="-j3"
PKGDIR="/mnt/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="/mnt/portage/overlays"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 acl acpi alsa amd64 arts bash-completion berkdb branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dvb dvd dvdr dvdread eds emboss encode esd fam ffmpeg firefox fortran gdbm gif gpm gstreamer hal htmlhandbook iconv ipv6 isdnlog jpeg kde kdeenablefinal kdehiddenvisibility kerberos ldap mad midi mikmod mmx mng mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline reflection samba sdl session spell spl sqlite3 sse sse2 ssl svg tcpd theora tiff truetype unicode usb vorbis x264 xcb xcomposite xml xorg xv 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 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 directory" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en it" USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 cyrillic 2008-07-21 18:07:13 UTC
I think if you remove the "-u" from the emerge options in line 589, it will work.
Comment 2 Dennis Schridde 2008-08-22 08:45:37 UTC
Experiencing this issue as well.
Is the fix already commited?
Comment 3 Dennis Schridde 2008-08-22 09:50:49 UTC
The abovementioned fix (s/crosscompile_opts_bootstrap/nocxx/) seems to work.
Comment 4 zsw 2008-10-12 10:13:48 UTC
#emerge --info
Portage 2.2_rc12 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.26-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.26-gentoo-r1-i686-Intel-R-_Pentium-R-_4_CPU_3.06GHz-with-glibc2.0
Timestamp of tree: Fri, 10 Oct 2008 10:01:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r8
dev-util/ccache:     2.4-r8
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 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.6a
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mtune=pentium4 -pipe -march=i686"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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="-O2 -mtune=pentium4 -pipe -march=i686"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirrors.tera-byte.com/pub/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="zh_CN en_US zh"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X a52 acl aiglx alsa apache2 apm berkdb bzip2 cairo cjk cli cracklib crypt ctype cups cxx dbus dga dio doc dri dvb dvd dvdr dvdread emacs encode firefox fltk fortran ftp gd gdbm gif glitz glut gnome gpm gtk gtk2 iconv imlib ipv6 isdnlog jpeg jpeg2k leim libtheora libwww lua midi mmx mp3 mplayer mudflap mysql mysqli nas ncurses nls nptl nptlonly openal opengl openmp pam pcre pdf pdo perl php png portaudio posix postgresql pppd profile python rdesktop readline reflection sdl session slang spl ssl svg sysfs tcpd tiff truetype unicode usb userlocales v4l vcd win32codecs x264 x86 xcomposite xml xorg xvid zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="zh_CN en_US zh" USERLAND="GNU" VIDEO_CARDS="i945 i915 i810 i830 nvidia vesa fbdev v4l vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


#crossdev -t i686-mingw32
-----------------------------------------------------------------------------------------------------------------------------
 * Host Portage ARCH:     x86
 * Target Portage ARCH:   x86
 * Target System:         i686-mingw32
 * Stage:                 4 (C/C++ compiler)

 * binutils:              binutils-[latest]
 * gcc:                   gcc-[latest]
 * headers:               w32api-[latest]
 * libc:                  mingw-runtime-[latest]

 * PORTDIR_OVERLAY:       /usr/local/portage
 * PORT_LOGDIR:           /var/log/portage
 * PKGDIR:                /usr/portage/packages/cross/i686-mingw32
 * PORTAGE_TMPDIR:        /var/tmp/cross/i686-mingw32
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  
 * Forcing the latest versions of {binutils,gcc}-config/gnuconfig ...                                                  [ ok ]
 * Log: /var/log/portage/cross-i686-mingw32-binutils.log
 * Emerging cross-binutils ...                                                                                         [ ok ]
 * Log: /var/log/portage/cross-i686-mingw32-w32api-quick.log
 * Emerging cross-w32api-quick ...                                                                                     [ ok ]
 * Log: /var/log/portage/cross-i686-mingw32-mingw-runtime-headers.log
 * Emerging cross-mingw-runtime-headers ...                                                                            [ ok ]
 * Log: /var/log/portage/cross-i686-mingw32-gcc-stage1.log
 * Emerging cross-gcc-stage1 ...                                                                                       [ ok ]
 * Log: /var/log/portage/cross-i686-mingw32-w32api.log
 * Emerging cross-w32api ...                                                                                           [ ok ]
 * Log: /var/log/portage/cross-i686-mingw32-mingw-runtime.log
 * Emerging cross-mingw-runtime ...                                                                                    [ ok ]
 * Log: /var/log/portage/cross-i686-mingw32-gcc-stage2.log
 * Emerging cross-gcc-stage2 ... 

compiles nothing in stage 4
Comment 5 SpanKY gentoo-dev 2008-10-27 04:57:51 UTC

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