Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 369875 - emerge sci-electronics/oregano-0.69.1-r1 fails due to strip of '--param' CFLAGS option
Summary: emerge sci-electronics/oregano-0.69.1-r1 fails due to strip of '--param' CFLA...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: The Soldering-Iron Brotherhood
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-03 11:04 UTC by Róbert Čerňanský
Modified: 2011-07-05 10:38 UTC (History)
0 users

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


Attachments
Build log of oregano-0.69.1-r1. (sci-electronics:oregano-0.69.1-r1:20110603-105346.log,7.98 KB, text/plain)
2011-06-03 11:04 UTC, Róbert Čerňanský
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Róbert Čerňanský 2011-06-03 11:04:13 UTC
Created attachment 275649 [details]
Build log of oregano-0.69.1-r1.

If CFLAGS contains multiple '--param' options, such as "--param l1-cache-size=64 --param l1-cache-line-size=64" then all but one are stripped.  It causes that invalid options are passed to gcc and the build of sci-electronics/oregano-0.69.1-r1 fails.

Older stable version (0.69.0) builds fine.

Running stable amd64 here.

...
gcc -o src/create-wire.o -c -O2 -march=k8 -msahf l1-cache-size=64 l1-cache-line-size=64 --param l2-cache-size=512 -fweb -pipe -fno-omit-frame-pointer -pthread -DPREFIX=\"/usr\" -DPACKAGE=\"oregano\" -DGETTEXT_PACKAGE=\"oregano\" -DDATADIR=\"/usr/share\" -DVERSION=\"0.69.0\" -DGNOMELOCALEDIR=\""/usr/share/locale"\" -DOREGANO_GLADEDIR=\""/usr/share/oregano/dialogs"\" -DOREGANO_LIBRARYDIR=\""/usr/share/oregano/libraries"\" -DOREGANO_MODELDIR=\""/usr/share/oregano/models"\" -DOREGANO_LANGDIR=\""/usr/share/oregano"/language-specs\" -I./src -I./src/model -I./src/sheet -I./src/gplot -I./data/dialogs -I./src/engines -DORBIT2=1 -D_REENTRANT -DQT_SHARED -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/libdrm -I/usr/include/qt4/QtCore -I/usr/include/libglade-2.0 -I/usr/include/libxml2 -I/usr/include/libgnomeui-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-keyring-1 -I/usr/include/libgnome-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib64/gnome-vfs-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/gail-1.0 -I/usr/include/gtksourceview-2.0 src/create-wire.c
scons: *** [src/clipboard.o] Error 1
gcc: l1-cache-size=64: No such file or directory
gcc: l1-cache-line-size=64: No such file or directory
scons: *** [src/create-wire.o] Error 1
scons: building terminated because of errors.
...
Comment 1 Thomas Beierlein gentoo-dev 2011-07-04 08:55:29 UTC
Well, I am looking into it.

Old version (0.69.0) build fine as it strips CFLAGS completely. What happened in 0.69.1 has to be determined yet.
Comment 2 Thomas Beierlein gentoo-dev 2011-07-05 10:38:08 UTC
Seems scons build system make the --param keywords unique, therefor dropping all but one of them.

Fixed ebuild strips all unsupported flags. 

+  05 Jul 2011; Thomas Beierlein <tomjbe@gentoo.org> oregano-0.69.1-r1.ebuild:
+  strip unsupported flags (bug 369875). Thanks for reporting to R. Cernansky
+