Making all in qt4 make[5]: Entering directory `/var/tmp/portage/media-video/vlc-0.9.9a/work/vlc-0.9.9a/modules/gui/qt4' /usr/bin/moc -DHAVE_CONFIG_H -I../../../include -I../../../include -march=nocona -O2 -pipe -DSYS_LINUX -I../../.. `top_builddir="../../.." ../../../vlc-config --cppflags plugin qt4` -o main_interface.moc.cpp main_interface.hpp /usr/bin/moc -DHAVE_CONFIG_H -I../../../include -I../../../include -march=nocona -O2 -pipe -DSYS_LINUX -I../../.. `top_builddir="../../.." ../../../vlc-config --cppflags plugin qt4` -o menus.moc.cpp menus.hpp /usr/bin/moc -DHAVE_CONFIG_H -I../../../include -I../../../include -march=nocona -O2 -pipe -DSYS_LINUX -I../../.. `top_builddir="../../.." ../../../vlc-config --cppflags plugin qt4` -o dialogs_provider.moc.cpp dialogs_provider.hpp moc: Invalid argument moc: Invalid argument Usage: moc [options] <header-file> -o<file> write output to file rather than stdout -I<dir> add dir to the include path for header files -E preprocess only; do not generate meta object code -D<macro>[=<def>] define macro, with optional definition -U<macro> undefine macro -i do not generate an #include statement -p<path> path prefix for included file -f[<file>] force #include, optional file name -nw do not display warnings @<file> read additional options from file -v display version of moc make[5]: *** [menus.moc.cpp] Error 1 make[5]: *** Waiting for unfinished jobs.... Usage: moc [options] <header-file> -o<file> write output to file rather than stdout -I<dir> add dir to the include path for header files -E preprocess only; do not generate meta object code -D<macro>[=<def>] define macro, with optional definition -U<macro> undefine macro -i do not generate an #include statement -p<path> path prefix for included file -f[<file>] force #include, optional file name -nw do not display warnings @<file> read additional options from file -v display version of moc moc: Invalid argument Usage: moc [options] <header-file> -o<file> write output to file rather than stdout -I<dir> add dir to the include path for header files -E preprocess only; do not generate meta object code -D<macro>[=<def>] define macro, with optional definition -U<macro> undefine macro -i do not generate an #include statement -p<path> path prefix for included file -f[<file>] force #include, optional file name -nw do not display warnings @<file> read additional options from file -v display version of moc make[5]: *** [main_interface.moc.cpp] Error 1 make[5]: *** [dialogs_provider.moc.cpp] Error 1 make[5]: Leaving directory `/var/tmp/portage/media-video/vlc-0.9.9a/work/vlc-0.9.9a/modules/gui/qt4' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/var/tmp/portage/media-video/vlc-0.9.9a/work/vlc-0.9.9a/modules/gui' make[3]: *** [all] Error 2 make[3]: Leaving directory `/var/tmp/portage/media-video/vlc-0.9.9a/work/vlc-0.9.9a/modules/gui' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/media-video/vlc-0.9.9a/work/vlc-0.9.9a/modules' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/media-video/vlc-0.9.9a/work/vlc-0.9.9a' make: *** [all] Error 2 Reproducible: Always Steps to Reproduce: emerge --info: Portage 2.2_rc28 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.9_p20081201-r2, 2.6.29-gentoo x86_64) ================================================================= System uname: Linux-2.6.29-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7250_@_2.00GHz-with-gentoo-2.0.0 Timestamp of tree: Fri, 10 Apr 2009 11:45:01 +0000 app-shells/bash: 4.0_p17 dev-java/java-config: 2.1.7 dev-lang/python: 2.5.4-r2, 2.6.1-r1 dev-util/cmake: 2.6.3-r1 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.4.3-r1 sys-apps/sandbox: 1.9 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.19.1-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.28-r1 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/4.2/env /usr/kde/4.2/share/config /usr/kde/4.2/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/sandbox.d /etc/terminfo /etc/udev/rules.d" CPPFLAGS="-march=nocona -O2 -pipe" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp.df.lth.se/pub/gentoo/ " LDFLAGS="-Wl,-O1" MAKEOPTS="-j3" 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" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac acl alsa amd64 berkdb bzip2 cli cracklib crypt cups dbus dri dvd fortran gdbm gif gpm hal iconv ipv6 isdnlog jpeg kde kdeprefix matroska midi mmx mng mp3 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre perl png pppd python qt4 readline reflection session spl sse sse2 ssl sysfs tcpd theora unicode vorbis x264 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 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 dav dav_fs dav_lockdeflate 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontzcfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Please attach the build.log file of the failed emerge to this bug.
Created attachment 187909 [details] Build log
assigning to maintainer
I got it working now. When I posted the emerge --info I noticed that I was still running gcc 4.1.2, so I switched to 4.3.3 and did a emerge -e @system @world, and now vlc builds succesfully.
Actually, it was CPPFLAGS that did it. *** This bug has been marked as a duplicate of bug 237783 ***