Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 398463 - dev-util/valgrind-3.6.1-r1 on AMD64 multilib fails to build asm for secondary target x86
Summary: dev-util/valgrind-3.6.1-r1 on AMD64 multilib fails to build asm for secondary...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-11 03:16 UTC by Oliver Freyermuth
Modified: 2012-01-11 21:39 UTC (History)
1 user (show)

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


Attachments
Complete build log (gzipped) (dev-util:valgrind-3.6.1-r1:20120111-030235.log.gz,17.66 KB, application/x-gzip)
2012-01-11 03:19 UTC, Oliver Freyermuth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Freyermuth 2012-01-11 03:16:22 UTC
I realized today all of my amd64 boxes fail to reemerge valgrind. 
As it worked before with similar versions, I might be at fault myself, but as all boxes are hit, I doubt so. 

Reproducible: Always

Steps to Reproduce:
1. emerge =valgrind-3.6.1-r1 on an amd64-multilib-system (so --enable-only64bit is not used as configure flag). 
2. 
3.
Actual Results:  
Build fails. 

Expected Results:  
Valgrind builds and installs successfully. 

If "--enable-only64bit" is forced in configuring, valgrind emerges perfectly fine for me! 


emerge --info =dev-util/valgrind-3.6.1-r1 :

Portage 2.2.0_alpha84 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.13-r4, 3.0.4-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.0.4-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600K_CPU_@_3.40GHz-with-gentoo-2.1
Timestamp of tree: Wed, 11 Jan 2012 01:30:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.3-r1, 3.2.2
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.7
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.4_p6-r1, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.2.4-r1, 4.4.6-r1, 4.5.3-r2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo crossdev x11 voyageur vmware vdr-testing ub0rlay tante xarthisius sunrise science pentoo pcsx2 mozilla multimedia matsuu lxde kvm emacs funroll-loops gamerlay-stable interactive-fiction enlightenment desktop-effects arcon armagetron kist tallica-overlay cryptelium-overlay lottanzb lordvan java-overlay mv bitcoin wavilen dberkholz mythtv g-ctan local_overlay
Installed sets: 
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=generic -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -mtune=generic -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg candy compress-build-logs distlocks ebuild-locks fixlafiles news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS=""
GENTOO_MIRRORS="/root/mnt/ http://de-mirror.org/distro/gentoo/ "
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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/crossdev /var/lib/layman/x11 /var/lib/layman/voyageur /var/lib/layman/vmware /var/lib/layman/vdr-testing /var/lib/layman/ub0rlay /var/lib/layman/tante /var/lib/layman/xarthisius /var/lib/layman/sunrise /var/lib/layman/science /var/lib/layman/pentoo /var/lib/layman/pcsx2 /var/lib/layman/mozilla /var/lib/layman/multimedia /var/lib/layman/matsuu /var/lib/layman/lxde /var/lib/layman/kvm /var/lib/layman/emacs /var/lib/layman/funroll-loops /var/lib/layman/gamerlay /var/lib/layman/interactive-fiction /var/lib/layman/enlightenment /var/lib/layman/desktop-effects /var/lib/layman/arcon /var/lib/layman/armagetron /var/lib/layman/kist-overlay /var/lib/layman/tallica-overlay /var/lib/layman/cryptelium /var/lib/layman/lottanzb /var/lib/layman/lordvan /var/lib/layman/java-overlay /var/lib/layman/mv /var/lib/layman/bitcoin /var/lib/layman/wavilen /var/lib/layman/dberkholz /usr/local/portage/mythtv/Gentoo /var/lib/g-ctan /usr/local/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="64bit X Xaw3d a52 aac aacs aalib accessibility acct acl acpi activefilter additions addns aff afterimage aida aio alisp all_sfx alltargets alsa amd64 amr animgif aotuv apache2 aplaymidi archive ares artist-screen artworkextra asf ass async athena atm atmo audacious audio audiofile audioscrobbler auto-completion autoipd autotrace avahi avfs avx bash-completion battery bazaar bbdb berkdb bigpatch binary-drivers bittorrent bl blender blender-game blksha1 bluetooth bluray bonjour bonusscripts bookmarks boost bootchart bracketcompletion branding bs2b btrfs bzip2 cairo canna canvas caps catalogs ccache cdb cdda cddax cddb cdio cdr cdrom cern cg cgi chappa charconv charmap chipcard chm cisco cjk clarens cleartype cli client clisp cmdctrl colordiff colorpicker colors common-lisp community compress compressed-lumas compression connection-sharing consolekit contentcache context contrast corefonts coverart cpio cracklib crypt css ctype cuda cue cups curl curlwrappers cursors cutterlimit cutterqueue cuttime cvs cvsgraph cwiid cxx d daap daemon darcs data dawn dbus ddepgentry declarative dedicated dell demosaic designer designer-plugin device-mapper devil dga dhclient dhcp dhcpcd dht dia dirac directfb djvu dlna dmi dmraid dmx docbook dovecot-sasl downloadorder drawing dri dts dv dvb dvbplayer dvd dvdarchive dvdchapjump dvdnav dvdr dvi dvi2tty eap-sim eap-tls ebook ecl editor eds elisp emacs embedded emboss emerald emf enca encode eolconv epiphany epydoc escreen espeak eu_epg evo ewf excel exif extensions extra extra-algorithms extra-ciphers extra-tools extraengine extras faac faad facedetect fam fat fbcon fbcondecor fbsplash fdt festival ffmpeg fftw filter finger firefox firefox3 flac flash fltk fluidsynth fmod fontconfig fontforge foomaticdb fortran fortran95 fortune fox fpx freetts frei0r ftd2xx ftdi ftp fts3 furigana fuse gadu gallium games garmin gcj gcl gconf gcrypt gd gdbm gdm gdml gdu gecko gensplash geoip ggi gif gimp git github gkrellm glade glib glibc-omitfp glitz glsl glut gnome gnome-keyring gnuplot gnus gnutls gopher gpac gpg gphoto2 gpm gps gpsd_user gpu grace graph graphics graphicsmagick graphite graphviz grub gs gsm gstreamer gtk gui gutenprint gyroscopic gzip gzip-el hacking hash hbci hddtemp hdri hepmc hesiod heterogeneous hfs hipe hotpixels hpn html htmltidy http httpd hub humanities hvm hybrid hybrid-auth i18n ibam ical icons iconv icotools icoutils icq icu id3 id3tag idea idn ieee1394 image image-cache imagemagick imap imlib infowidget injection inkjar inode inotify int64 ioctl iostats ipc iphone iplayer ipod ipp ipsec iptables iptv ipv6 ipython irc irda irrlicht isag iscsi iso14755 jabber jack java java5 java6 javascript jbig jfs jingle john joinlines joystick jpeg jpeg2k jsapi kde kdm kernel-patch kpathsea kpoll kqemu krb4 kvm ladspa lame laptop largefile largepages largeterminal lastfm lastfmradio latex latex3 lcms ldap ldb leim lensfun libass libcaca libffi libmms libnotify libsamplerate libsexy libsigsegv libssh2 libsysfs libvisual liemikuutio lightning lirc lircsettings live llvm llvm-gcc lm_sensors lock logrotate logviewer lua lua-cairo lua-imlib luatex lvm lyrics lyrics-screen lyx lzma lzo mac mad madwifi maildir managesieve mapnik maps math matroska mbox mbrola md md5sum mdadm mdbox mdnsresponder-compat meanwhile mediaplayer melt memlimit menubar mercurial metric midi mikmod mime mjpeg mkl mmx mmxext mng moc mod_irc mod_muc mod_pubsub modperl modplug modules mono monolithic-build moonlight motif mouse moviepack moviesounds mozdevelop mozdom mozembed mozilla mozsha1 mp2 mp3 mp3tunes mp4 mpd mpeg mpi mplayer mpx ms-bad-proposal msn mtp mudflap mule multilib multinetwork multiprocess multiuser musepack music musicbrainz mysql mysqli mythtv nagios-dns nagios-game nagios-ntp nagios-ping nagios-ssh nano-syntax nas nat nautilus nbd ncurses nelma nemesi net netboot netcdf netjack netpbm netserver network network-cron networking networkmanager new-login nfs nfsv3 nfsv4 nls nmap nntp normalize nowlistening nptl nptlonly nsplugin nss ntfs ntlm nut nvidia nvram nvtv obex objc objc++ objc-gc octave odbc ods offensive offlinehelp ofx ogg ogg123 ogm omega openal opencl opencore-amr openexr opengl openmcl openmp openssl opensslcrypt openstreetmap optimization optimize-cflags optimized-qmake oscar osdmenu otr outline-magic pam pam_ssh pango parcheck parentalrating parted passfile password passwordsave pastebin pcap pcf pci pcre pcsc-lite pda pdf pdfannotextractor perl pgf phonon php pic pidgin pinplugin pipe pipes pixmaps pl2303 planner player playlist plotutils plugins pm-utils pmu png pnm policykit pop poppler-data portaudio portmon postgres postproc postscript ppds pppd prediction prelude preview-latex private-headers profiler profiling projectm projectx ps psf pstoedit pstricks publishers pulseaudio pvr pythia6 pythia8 python qemu qmake qmax qos qq qt-faststart qt-webkit qt3support qt4 query-browser quesoglc quicktime quota quotas radio radvd ramfs rar raw raytracerx rc5 rdesktop rdesktop-vrdp readline recording rememberthemilk remote remoteosd replaygain resolvconf romio root rss rtf rtmp rtsp rubberband samba sasl sbcl scale0tilt scanner schroedinger science scintilla screen screenshot scrobbler sctp sdbox sdl sdl-image search secure-delete sendmail sensord serial server session setup setup-plugin sftp shaders shadow shine shm shmvideo shorten showlistmodes showtabbar sidebar sieve sift silc simplexml sip skins slp smartspaces smbclient smbsharemodes smime smp smtp sndfile snmp socks5 solver songs sound soundex soundextract sounds soundtouch sox speech speex spell spoof sql sqlite sqlite3 srt sse sse2 sse3 ssh ssl ssse3 startup-notification statistics stats stl stream stroke submenu subtitles subversion suid suidcheck svg svgz swat symlink sysfs syslog system-cxx-headers system-libCg system-libs system-libx264 system-sqlite t1lib talkfilters tcpd teletext templates terminal tesseract tex tex4ht texmacs texteffect tga tgif theme_avp theme_deepblue theme_deeppurple theme_poetter themes theora thesaurus thin-splines threads threadsafe thumbnail thumbnails tidy tiff timidity tint2conf tk tokenizer toolbar toolkit-scroll-bars tools tor tordns tpm tpmtok transcode translator transmitter transparency trash-plugin trayicon tre tremor truetype twinserial twolame type3 udev udis86 ugly ui umfpack uml underscores unicode unique unlock-notify unsupported upnp urlpicpreview usb utempter utils v4l v4l2 vaapi vala vamp vboxwebsrv vcd vda vde vdpau vdr verse vhook video videos virtualbox vix vlc vlm vmware-tools vmware_guest_freebsd vmware_guest_linux vmware_guest_netware vmware_guest_solaris vmware_guest_winPre2k vmware_guest_windows vnc volctrl vorbis vpx vrml vst vte wav wavpack wcwidth weather weather-metar weather-xoap web webcam webcheck webdav webinterface webkit webphoto webserver wicd wifi winbind windeco wineappdb winetools winetriks winpopup wma wma-fixed wmf wps wv2 wxwidgets x11vnc x264 xanim xattr xcb xcf xchatdccserver xchatnogtk xcomposite xemacs xetex xext xft xinerama xls xml xmlrpc xmp xorg xpm xrandr xrender xrootd xscreensaver xslt xterm xterm-color xulrunner xv xvid xvmc yaepg youtube zephyr zeroconf zip zlib zsh-completion zvbi" 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 mmap_emul 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="adc65 agfa_cl20 aox barbie canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 jl2005a kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung sierra sipix_blink sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 stv0674 stv0680 sx330z template topfield toshiba_pdrm11" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="btrfs gensplash iscsi lvm mdraid nfs syslog" DVB_CARDS="usb-wt220u" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="coreboot multiboot efi-64 pc qemu" INPUT_DEVICES="keyboard mouse evdev synaptics aiptek wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" LIRC_DEVICES="all" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="arm armeb i386 x86_64" QEMU_USER_TARGETS="arm armeb i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nouveau intel virtualbox" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Oliver Freyermuth 2012-01-11 03:19:19 UTC
Created attachment 298571 [details]
Complete build log (gzipped)
Comment 2 Anthony Basile gentoo-dev 2012-01-11 17:42:56 UTC
(In reply to comment #1)
> Created attachment 298571 [details]
> Complete build log (gzipped)

Hi thanks for the report.  You don't have to and should attach compressed files.

I haven't been able to reproduce this but let me see if we can narrow this down a bit more:

1) You have three versions of gcc: 4.2.4-r1, 4.4.6-r1, 4.5.3-r2.  Which did you use?  Does it even matter?  Just so we're on the same page.

2) Please do the following:

a) unpack valgrind-3.6.1

b) edit coregrind/m_cpuid.S and just remove the one #include "pub_core_basics_asm.h"

c) gcc -c coregrind/m_cpuid.S

Post any error messages.
Comment 3 Oliver Freyermuth 2012-01-11 20:02:38 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > Created attachment 298571 [details]
> > Complete build log (gzipped)
> 
> Hi thanks for the report.  You don't have to and should attach compressed
> files.
Thanks for your answer, will use a non-gzipped version next time :). 

> 
> I haven't been able to reproduce this but let me see if we can narrow this down
> a bit more:
> 
> 1) You have three versions of gcc: 4.2.4-r1, 4.4.6-r1, 4.5.3-r2.  Which did you
> use?  Does it even matter?  Just so we're on the same page.
I used 4.5.3-r2, but also had it with 4.5.3-r1 on the same machine before I updated gcc and can also reproduce it in 4.4.6-r1. 
I did not try 4.2.4-r1 yet, but it appears not to be gcc-version dependent. 
 
> 2) Please do the following:
> 
> a) unpack valgrind-3.6.1
> 
> b) edit coregrind/m_cpuid.S and just remove the one #include
> "pub_core_basics_asm.h"
> 
> c) gcc -c coregrind/m_cpuid.S
> Post any error messages.

Did that. Actually, it produced no output on the shell but generates the object file m_cpuid.o without any problems. It is ELF64, however. I then tried: 

gcc -c m_cpuid.S -m32

This also works fine. Just then, I realized the file will not really contain something after the preprocessor checked all the ifs / elifs. 
So I tried 

gcc -DVGA_x86=1 m_cpuid.S -m32

This 'works', only giving me the error messages: 
m_cpuid.S: Assembler messages:
m_cpuid.S:37: Error: junk at end of line, first unrecognized character is `('
m_cpuid.S:38: Error: invalid character '(' in mnemonic
m_cpuid.S:73: Error: junk at end of line, first unrecognized character is `('
m_cpuid.S:74: Error: invalid character '(' in mnemonic

I guess this is because of the removed include? At least, it accepts the lines which errored out in my emerge. 

As expected:
gcc -DVGA_amd64=1 m_cpuid.S -m32
throws a lot of 'bad register names' (I can post them if they help in any way) and 
gcc -DVGA_x86=1 m_cpuid.S
gives 'similar' errors to my emerge: 

m_cpuid.S: Assembler messages:
m_cpuid.S:37: Error: junk at end of line, first unrecognized character is `('
m_cpuid.S:38: Error: invalid character '(' in mnemonic
m_cpuid.S:39: Error: invalid instruction suffix for `push'
m_cpuid.S:41: Error: invalid instruction suffix for `push'
m_cpuid.S:42: Error: invalid instruction suffix for `pushf'
m_cpuid.S:43: Error: invalid instruction suffix for `pushf'
m_cpuid.S:44: Error: invalid instruction suffix for `pop'
m_cpuid.S:47: Error: invalid instruction suffix for `push'
m_cpuid.S:48: Error: invalid instruction suffix for `popf'
m_cpuid.S:49: Error: invalid instruction suffix for `pushf'
m_cpuid.S:50: Error: invalid instruction suffix for `pop'
m_cpuid.S:51: Error: invalid instruction suffix for `popf'
m_cpuid.S:55: Error: invalid instruction suffix for `pop'
m_cpuid.S:57: Error: invalid instruction suffix for `pop'
m_cpuid.S:73: Error: junk at end of line, first unrecognized character is `('
m_cpuid.S:74: Error: invalid character '(' in mnemonic
m_cpuid.S:75: Error: invalid instruction suffix for `push'
m_cpuid.S:77: Error: invalid instruction suffix for `push'
m_cpuid.S:78: Error: invalid instruction suffix for `push'
m_cpuid.S:79: Error: invalid instruction suffix for `push'
m_cpuid.S:80: Error: invalid instruction suffix for `push'
m_cpuid.S:81: Error: invalid instruction suffix for `push'
m_cpuid.S:104: Error: invalid instruction suffix for `pop'
m_cpuid.S:105: Error: invalid instruction suffix for `pop'
m_cpuid.S:106: Error: invalid instruction suffix for `pop'
m_cpuid.S:107: Error: invalid instruction suffix for `pop'
m_cpuid.S:108: Error: invalid instruction suffix for `pop'
m_cpuid.S:110: Error: invalid instruction suffix for `pop'

However, as you can see in the build log, gcc was called with 
"-DVGA_x86=1" (even passed twice?) and "-m32" in the failing step, so I am at a loss what's happening there.
Comment 4 Oliver Freyermuth 2012-01-11 20:23:13 UTC
WOW. 
I just found the culprit, although I do not understand why it happens. 
I have been using icecream / icecc for ages, it is in my prerootpath in make.conf and never caused any problems. 
I even stopped the icecream-daemon before compiling valgrind, as I thought it might have tried to send the job to another machine (although it is normally intelligent enough not to do so, and although even that should work as it copies the complete toolchain over) and nothing changed. 

Just now, I removed the line: 
PREROOTPATH="/usr/lib/icecc/bin"
from my make.conf, and valgrind, all versions of it, compile fine. This is very astonishing, as icecc should only be a wrapper for gcc in case it's daemon is not running... 

Furthermore, I also added "/usr/lib/icecc/bin" to the $PATH in /etc/profile, so it should also have affected the simplified tests you supposed and which worked. 
Maybe it hiccuped on something else in the parameters it was passed, but that 'should' not happen. 

What I totally do not get: 
I successfully emerged valgrind 3.7.0-r1 on one machine on 28.11.2011 with icecc active and in PATH. The latest icecc was emerged on 5.10.2011 on said machine. 
As of now, I can not compile valgrind 3.7.0-r1 on the said machine without taking icecc out of the prerootpath (similiar errors to the ones I had with the stable version). 
So icecream did not change, and according to the changelog of the valgrind-ebuilds, the last change to 3.7.0-r1 was on 23.11.2011. 
So both valgrind and icecream did not change, but emerging stopped working. 

This leaves me at a loss against which package the bug should be reported, but valgrind appears not to be responsible. 

I updated portage, has some behaviour concerning prerootpath / argument passing been changed here so icecc broke? I am at a loss on how to track this down. 

Should this one here be marked as Resolved, or rather as Invalid (at least against valgrind)?
Comment 5 Anthony Basile gentoo-dev 2012-01-11 21:39:54 UTC
(In reply to comment #4)
> Just now, I removed the line: 
> PREROOTPATH="/usr/lib/icecc/bin"
> from my make.conf, and valgrind, all versions of it, compile fine. 

That was going to be my next suggestion, given the -DVGA_x86=1.  Track down what's poluting your flags.  You got it.

> I updated portage, has some behaviour concerning prerootpath / argument passing
> been changed here so icecc broke? I am at a loss on how to track this down.

I can't help you there.

> Should this one here be marked as Resolved, or rather as Invalid (at least
> against valgrind)?

Invalid because there is nothing to fix in valgrind.