After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 611385 - gobject-introspection 0.6.7 breaks on legal CXXFLAGS
gobject-introspection 0.6.7 breaks on legal CXXFLAGS
Status: RESOLVED NOTABUG
Product: gobject-introspection
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2010-02-28 11:26 UTC by victor.pelt
Modified: 2015-02-07 16:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description victor.pelt 2010-02-28 11:26:03 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
Comment 1 Johan (not receiving bugmail) Dahlin 2010-02-28 14:06:25 UTC
-march=native really doesn't make a lot of sense for introspection, so I can't see why it should be allowed.
Comment 2 victor.pelt 2010-02-28 16:19:03 UTC
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
Comment 3 Nirbheek Chauhan 2010-02-28 17:31:44 UTC
The primary question is why CXXFLAGS makes sense for introspection at all (and hence why is it using that value).
Comment 4 Marc Koschewski 2010-06-29 20:20:18 UTC
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.
Comment 5 André Klapper 2015-02-07 16:53:56 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]