Hi, I've been trying to emerge vlc 0.9 for some time, yesterday I was able to track down the error to Makefile in modules/gui/qt4. If I unpack the source from distdir and configure it with the same options as portage does and make it, everythink is fine. However, when I use portage to compile it it fails. The error appears to be in calling moc: /usr/bin/moc -DHAVE_CONFIG_H -I../../../include -I../../../include -DSYS_LINUX -I../../.. `top_builddir="../../.." ../../../vlc-config --cppflags plugin qt4` -o main_interface.moc.cpp main_interface.hpp (correct one) /usr/bin/moc -DHAVE_CONFIG_H -I../../../include -I../../../include -march=k8 -pipe -O2 -DSYS_LINUX -I../../.. `top_builddir="../../.." ../../../vlc-config --cppflags plugin qt4` -o main_interface.moc.cpp main_interface.hpp (incorrect one) part of diff /var/tmp/portage/media-video/vlc-0.9.8a/work/vlc-0.9.8a/modules/gui/Makefile /usr/src/vlc-0.9.8a/modules/gui/Makefile output ... 157c157 < CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include -march=k8 -pipe -O2 -DSYS_LINUX --- > CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include -DSYS_LINUX 163c163 < CXXFLAGS = -march=k8 -pipe -O2 --- > CXXFLAGS = -g -O2 ... as you can see, portage generates incorrect CPPFLAGS for this Makefile. My system is completly ~am64, no unmasked hardmasks. Reproducible: Always
Created attachment 176950 [details] output of building using portage
Update: if I comment out CPPFLAGS in my /etc/make.conf, it emegres successfully
(In reply to comment #2) > Update: if I comment out CPPFLAGS in my /etc/make.conf, it emegres successfully Maybe you shouldn't be setting CPPFLAGS (but CXXFLAGS instead, see make.conf(5)). Then again, maybe CPPFLAGS should be filtered.
emerge --info please I think you put -march & co stuff in cppflags where it should be cflags/cxxflags
(In reply to comment #4) > I think you put -march & co stuff in cppflags where it should be > cflags/cxxflags closing as invalid for that reason