Summary: | media-libs/libprojectm-3.1.1_rc5-r1 - /usr/bin/moc -oqprojectm_mainwindow_moc.cpp -DHAVE_CONFIG_H -I. -I../.. -march=native -O2 -pipe qprojectm_mainwindow.hpp: Unknown options: march, O2. | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Mamadou Babaei <info> |
Component: | Current packages | Assignee: | Craig Andrews <candrews> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | sound |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | media-libs/libprojectm-3.1.1_rc5-r1 build.log |
Description
Mamadou Babaei
2019-11-01 00:26:03 UTC
(In reply to Mohammad S. Babaei from comment #0) > $ emerge --info > CPPFLAGS="-march=native -O2 -pipe" CPPFLAGS should be used to set C/C++ preprocessor flags: Preprocessor Options -Aquestion=answer -A-question[=answer] -C -CC -Dmacro[=defn] -dD -dI -dM -dN -dU -fdebug-cpp -fdirectives-only -fdollars-in-identifiers -fexec-charset=charset -fextended-identifiers -finput-charset=charset -fmacro-prefix-map=old=new -fno-canonical-system-headers -fpch-deps -fpch-preprocess -fpreprocessed -ftabstop=width -ftrack-macro-expansion -fwide-exec-charset=charset -fworking-directory -H -imacros file -include file -M -MD -MF -MG -MM -MMD -MP -MQ -MT -no-integrated-cpp -P -pthread -remap -traditional -traditional-cpp -trigraphs -Umacro -undef -Wp,option -Xpreprocessor option[1] so I am pretty sure this report is invalid. You should use CFLAGS (compiler flags for C programs) and CXXFLAGS (compiler flags for C++ programs) but not CPPFLAGS. [1] gcc(1). Thank you so much. Yes, indeed removing CPPFFLAGS fixed the issue. I learned a new thing today. Thank you! |