Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 225433 - architecture-dependent masked USE-Flags apply for sys-devel/crossdev
Summary: architecture-dependent masked USE-Flags apply for sys-devel/crossdev
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: PMS/EAPI (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-08 19:31 UTC by Robert W.
Modified: 2008-06-09 13:03 UTC (History)
0 users

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 Robert W. 2008-06-08 19:31:35 UTC
sys-devel/crossdev applies host-specific masked use-flags to cross-building toolchain.
Scenario: We want cross-compiling toolchain with target powerpc-unknown-linux-gnu, which runs on x86. For the target of the cross-compiler, we also want use-flag altivec.
Problem: altivec cannot be enabled for cross-powerpc-unknown-linux-gnu/gcc
Result: Compiler-errors because of invalid values for gcc-arguments -march=G4, -mtune=G4 and -maltivec.

This breaks distcc, which I definitely want for an iBook G4

Reproducible: Always

Steps to Reproduce:
1.USE="altivec" crossdev --g 4.1.2 --b 2.18-r1 --l 2.6.1 -k 2.6.23-r3 -s4 -t powerpc-linux-unknown-gnu # executed on x86
2.compile a package, e.g net-misc/x11-ssh-askpass-1.2.4-r1 on powerpc with USE="altivec" and distcc on the powerpc
--



Actual Results:  
The actual error looks like:
---
distcc[4762] ERROR: compile /var/tmp/ccache/drawing.tmp.belle-gunness.4758.i on 192.168.0.4/10 failed
cc1: error: unrecognized command line option "-maltivec"
drawing.c:1: error: bad value (G4) for -mtune= switch
---
192.168.0.4 is x86,
System, ermerge runs on is powerpc-unknown-linux-gnu (iBook G4, 2005)

Actually not all packages fail, but the one noted above and some others do. If you need more examples, let me know.

Expected Results:  
Independent of host-arch, the compiler should be able to create altivec-enabled binaries for the target-arch.

(x86) emerge --info
---
Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25.4-1 i686)
=================================================================
System uname: 2.6.25.4-1 i686 AMD Athlon(tm) MP 2200+
Timestamp of tree: Wed, 04 Jun 2008 16:00: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_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
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.4_p6, 1.5, 1.6.3, 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.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-mp -O3 -fomit-frame-pointer -pipe"
CHOST="i686-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/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon-mp -O3 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mneisen.org/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-z,now"
LINGUAS="de en_GB"
MAKEOPTS="-j3"
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/portage/local/crossdev /usr/portage/local/layman/java-overlay /usr/portage/local/layman/postgresql-testing /usr/portage/local/layman/haskell /usr/portage/local/layman/kde /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex X a52 aac aalib acl acpi akode alsa arts bash-completion berkdb bitmap-fonts blas bzip2 cairo caps cddb cdparanoia cdr cli cracklib crypt cscope cups curl dbus doc dri dts dvd dvdr dvdread eds emacs emboss encode evo examples fam ffmpeg fftw firefox flac fortran ftp gdbm ggi gif gpm graphviz hal hdf5 htmlhandbook iconv idn imap ipv6 isdnlog java java5 jpeg kde latex lcms leim lm_sensors logitech-mouse mad mailwrapper mbox midi mikmod mmx mmxext modplug motif mp3 mpeg mplayer mudflap musepack musicbrainz ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pda pdf perl plotutils png postgres pppd python qt qt3 qt3support qt4 quicktime readline reflection rtsp samba sasl scanner session smp socks5 speex spell spl sse ssl svg sysfs tcpd theora threads tiff truetype truetype-fonts type1-fonts unicode usb uudeview vcd vim-syntax vorbis wavpack win32codecs wma x264 x86 xattr xcomposite xine xinerama xml xorg xrandr xscreensaver xv xvid zeroconf zlib" ALSA_CARDS="emu10k1" 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en_GB" USERLAND="GNU" VIDEO_CARDS="mga vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
---

(ppc) emerge --info
---
Portage 2.1.4.4 (default-linux/ppc/ppc32/2007.0/desktop/G4, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25.4-1 ppc)
=================================================================
System uname: 2.6.25.4-1 ppc 7447A, altivec supported
Timestamp of tree: Sat, 07 Jun 2008 13:06:01 +0000
distcc 2.18.3 powerpc-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
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.4_p6, 1.5, 1.6.3, 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.23-r3
ACCEPT_KEYWORDS="ppc"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mtune=G4 -mcpu=G4 -maltivec -fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-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/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -mtune=G4 -mcpu=G4 -maltivec -fno-strict-aliasing -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.gentoo.bg/ http://de-mirror.org/distro/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ http://ftp.ntua.gr/pub/linux/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LINGUAS="de en"
MAKEOPTS="-j11"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa altivec apm arts bash-completion berkdb bzip2 cairo caps cddb cdr cli cracklib crypt cscope cups dbus doc dri dvd dvdr dvdread eds emacs emboss encode esd evo fam fftw firefox fortran gdbm gif gpm graphviz gtk hal htmlhandbook iconv idn ipv6 isdnlog java jpeg jpg kde latex ldap mad midi mikmod mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre pda pdf perl plotutils png ppc pppd python qt3 qt3support qt4 quicktime readline reflection samba sdl session socks5 spell spl ssl svg tcpd threads tiff truetype unicode usb vim-syntax vorbis wifi xattr xine xml xorg xv zeroconf zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" 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="synaptics mouse evdev keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="fbdev radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
---
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-06-09 04:51:58 UTC
Are you aware of the functions of these files?
 /etc/portage/profile/use.mask
 /etc/portage/package.use
Comment 2 Robert W. 2008-06-09 13:03:55 UTC
(In reply to comment #1)
> Are you aware of the functions of these files?
>  /etc/portage/profile/use.mask
>  /etc/portage/package.use
> 

Now, I do. Sorry for bothering and thanks for the hint.

Changed state to FIXED.