Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 253235 - >=media-vide/vlc-0.9 - moc: Invalid argument
Summary: >=media-vide/vlc-0.9 - moc: Invalid argument
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Alexis Ballier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-31 12:07 UTC by Lukáš Ručka
Modified: 2009-01-12 12:05 UTC (History)
1 user (show)

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


Attachments
output of building using portage (vlc.emerge.log,689.29 KB, text/plain)
2008-12-31 12:29 UTC, Lukáš Ručka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukáš Ručka 2008-12-31 12:07:47 UTC
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
Comment 1 Lukáš Ručka 2008-12-31 12:29:02 UTC
Created attachment 176950 [details]
output of building using portage
Comment 2 Lukáš Ručka 2008-12-31 12:31:46 UTC
Update: if I comment out CPPFLAGS in my /etc/make.conf, it emegres successfully
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2009-01-03 03:36:26 UTC
(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.
Comment 4 Alexis Ballier gentoo-dev 2009-01-03 12:14:36 UTC
emerge --info please

I think you put -march & co stuff in cppflags where it should be cflags/cxxflags
Comment 5 Alexis Ballier gentoo-dev 2009-01-12 12:05:51 UTC
(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