Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 344429

Summary: media-video/vlc doesn't compile moc/CPPFLAGS problem
Product: Gentoo Linux Reporter: Sasha Medvedev <Sasha.Medvedev>
Component: Current packagesAssignee: Alexis Ballier <aballier>
Status: RESOLVED INVALID    
Severity: normal CC: media-video
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: My emerge --info vlc

Description Sasha Medvedev 2010-11-06 18:51:19 UTC
media-video/vlc doesn't compile when CPPFLAGS is set up. The problem is that CPPFLAGS is arguments of moc programm. Unsetting CPPFLAGS solve the proble. 
Here is short log

/usr/bin/moc -DHAVE_CONFIG_H -I../../../include -I../../../include -O2 -march=prescott -pipe -fomit-frame-pointer -DSYS_LINUX -I../../.. `top_srcdir="../../.." top_builddir="../../.." ../../../vlc-config --cppflags plugin qt4` -o main_interface.moc.cpp main_interface.hpp
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] Ошибка 1



Reproducible: Always
Comment 1 Wormo (RETIRED) gentoo-dev 2010-11-12 22:16:25 UTC
Thanks for reporting this compile problem & workaround -- could you also post 'emerge --info vlc' to provide further details for vlc maintainers?
Comment 2 Sasha Medvedev 2010-11-12 22:25:43 UTC
Created attachment 254139 [details]
My emerge --info vlc
Comment 3 Wormo (RETIRED) gentoo-dev 2010-11-14 04:15:32 UTC
Thanks, assigning to vlc maintainers
Comment 4 Alexis Ballier gentoo-dev 2010-11-14 18:01:36 UTC
the problem is your CPPFLAGS are invalid:
CPPFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"

these are flags for the pre-processor so -O2, -march & friends have nothing to do here...