Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 344429 - media-video/vlc doesn't compile moc/CPPFLAGS problem
Summary: media-video/vlc doesn't compile moc/CPPFLAGS problem
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Alexis Ballier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-06 18:51 UTC by Sasha Medvedev
Modified: 2010-11-14 18:01 UTC (History)
1 user (show)

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


Attachments
My emerge --info vlc (emerge.info.vlc.txt,5.41 KB, text/plain)
2010-11-12 22:25 UTC, Sasha Medvedev
Details

Note You need to log in before you can comment on or make changes to this bug.
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...