GNOME Bugzilla – Bug 611385
gobject-introspection 0.6.7 breaks on legal CXXFLAGS
Last modified: 2015-02-07 16:53:56 UTC
gobject-introspection breaks on any CXXFLAGS. if my CXXFLAGS are set to "-march=native" then i get an error env LPATH=.libs env PYTHONPATH=..:..:$PYTHONPATH UNINSTALLED_INTROSPECTION_SRCDIR=.. UNINSTALLED_INTROSPECTION_BUILDDIR=.. ../tools/g-ir-scanner -v --add-include-path=../gir --add-include-path=. \ --namespace GLib --nsversion=2.0 \ --noclosure \ --output GLib-2.0.gir \ --strip-prefix=g \ --libtool="/bin/sh ../libtool" \ --c-include="glib.h" \ --library=glib-2.0 \ --pkg glib-2.0 \ -march=native \ -I`pkg-config --variable=includedir glib-2.0`/glib-2.0 \ -I`pkg-config --variable=libdir glib-2.0`/glib-2.0/include \ -DGETTEXT_PACKAGE=Dummy \ -D__G_I18N_LIB_H__ \ `pkg-config --variable=libdir glib-2.0`/glib-2.0/include/glibconfig.h \ ./glib-2.0.c \ -DGLIB_COMPILATION \ `pkg-config --variable=includedir glib-2.0`/glib-2.0/glib/*.h Usage: g-ir-scanner [options] sources g-ir-scanner: error: no such option: -m make[2]: *** [GLib-2.0.gir] Error 2 make[2]: Leaving directory `/var/tmp/portage/dev-libs/gobject-introspection-0.6.5/work/gobject-introspection-0.6.5/gir' see also bug http://bugs.gentoo.org/show_bug.cgi?id=290639
-march=native really doesn't make a lot of sense for introspection, so I can't see why it should be allowed.
because it is a valid CXXFLAGS. if the build system doens't like CXXFLAGS it should just drop them, but breaking because it is set as an environmental variable is set is a bad idea. (or rather it is a bad idea if it breaks on the conventional use of CXXFLAGS. please reopen
The primary question is why CXXFLAGS makes sense for introspection at all (and hence why is it using that value).
Guys, what's the problem about fixing such crap? Where you don't need flags, just don't use them - don't blame people for having something set in their environments that breaks a build. Just ignore stuff you don't need.
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]