Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 270764

Summary: [gnome overlay] dev-libs/gobject-introspection-0.6.2 build error with paludis
Product: Gentoo Linux Reporter: Stelian Ionescu <bugs>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal CC: loki_val
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: paludis build log
portage build log

Description Stelian Ionescu 2009-05-21 20:28:09 UTC
I only get this error when using paludis; portage compiles it fine:

make[2]: Entering directory `/var/mm/tmp/dev-libs-gobject-introspection-0.6.2/work/gobject-introspection-0.6.2/gir'
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" \
            --library=glib-2.0 \
            -O2 -ggdb -march=pentium-m -pipe \
            -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 \
            `pkg-config --variable=includedir glib-2.0`/glib-2.0/glib/*.h
../tools/g-ir-compiler --includedir=.  cairo-1.0.gir -o cairo-1.0.typelib
../tools/g-ir-compiler --includedir=.  fontconfig-2.0.gir -o fontconfig-2.0.typelib
../tools/g-ir-compiler --includedir=.  freetype2-2.0.gir -o freetype2-2.0.typelib
../tools/g-ir-compiler --includedir=.  GL-1.0.gir -o GL-1.0.typelib
Usage: g-ir-scanner [options] sources
              
g-ir-scanner: error: no such option: -O
../tools/g-ir-compiler --includedir=.  libxml2-2.0.gir -o libxml2-2.0.typelib
make[2]: *** [GLib-2.0.gir] Error 2
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/mm/tmp/dev-libs-gobject-introspection-0.6.2/work/gobject-introspection-0.6.2/gir'
make[1]: Leaving directory `/var/mm/tmp/dev-libs-gobject-introspection-0.6.2/work/gobject-introspection-0.6.2'
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Comment 1 Stelian Ionescu 2009-05-21 20:28:50 UTC
Created attachment 192069 [details]
paludis build log
Comment 2 Stelian Ionescu 2009-05-21 20:32:20 UTC
Portage 2.2_rc33 (default/linux/x86/2008.0/developer, gcc-4.3.3, glibc-2.10.1-r0, 2.6.29-tuxonice-r1 i686)
=================================================================
System uname: Linux-2.6.29-tuxonice-r1-i686-Intel-R-_Pentium-R-_M_processor_1.73GHz-with-gentoo-2.0.0
Timestamp of tree: Thu, 21 May 2009 17:15:01 +0000
app-shells/bash:     3.2_p48-r1
dev-java/java-config: 2.1.7
dev-lang/python:     2.6.2
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -ggdb -march=pentium-m -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev /etc/udev/rules.d /lib/modules"
CXXFLAGS="-O2 -ggdb -march=pentium-m -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps n"
FEATURES="candy collision-protect cvs digest distlocks fixpackages multilib-strict parallel-fetch prelink preserve-libs protect-owned sandbox severe sfperms sign splitdebug strict stricter unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="		http://mirror.switch.ch/ftp/mirror/gentoo 		http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo 		http://gentoo.osuosl.org"
INSTALL_MASK="/usr/lib/debug/*"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1,--hash-style=gnu,--sort-common,--as-needed"
LINGUAS="en ja"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--human-readable --progress"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/mm/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/layman/emacs /usr/local/overlays/layman/enlightenment /usr/local/overlays/layman/sunrise /usr/local/overlays/gnome /home/hechee/lisp/gentoo-lisp-overlay /usr/local/overlays/ste"
SYNC="rsync://rsync3.fr.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi adns afs alsa apache2 automount bash-completion berkdb bluetooth bzip2 cairo caps cdparanoia cdr cjk cli cracklib crypt cups curl dbus dga djvu dri dts dv dvb dvd dvdr dvdread dvi eds emacs emboss encode evo exif expat fam fbcon ffmpeg fftw flac fortran ftp fuse gd gdbm gif gmp gnome gnome-keyring gphoto2 gpm gps graphviz gs gtk gtkhtml guile hal iconv idn ieee1394 imagemagick imap imlib ipv6 irc isdnlog javascript jpeg jpeg2k kdeenablefinal kdehiddenvisibility latex lcms libffi libnotify live mad mailwrapper midi mmap mmx mng mp3 mp4 mpeg mudflap mysql nautilus ncurses network networkmanager nfs nls nptl nptlonly nsplugin offensive ogg openexr opengl openmp paludis_hooks_eselect pam pcmcia pcre pdf perl pic png postgres ppds pppd pulseaudio python qdbm qt3support qt4 quicktime readline reflection ruby samba sasl scanner sdl session slang sndfile snmp socks5 speex spell spl sqlite sse sse2 ssl startup-notification svg sysfs syslog tetex theora threads tiff truetype udev unicode urandom usb v4l v4l2 vcd vhosts vim-syntax vorbis webkit win32codecs wmf x86 xft xine xml xorg xpm xulrunner xv xvid zlib zsh-completion" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="asis proxy proxy_balancer proxy_connect proxy_http" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics ps2mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ja" LIRC_DEVICES="all" USERLAND="GNU" VIDEO_CARDS="radeon vesa"
Unset:  CPPFLAGS, CTARGET, FFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 3 Stelian Ionescu 2009-05-21 20:33:47 UTC
Created attachment 192072 [details]
portage build log
Comment 4 Peter Alfredsen (RETIRED) gentoo-dev 2009-05-21 20:54:07 UTC
Wild guess, from this snippet of Makefile.am:
GLib-2.0.gir: $(SCANNER_BIN) $(SCANNER_LIBS) Makefile glib-2.0.c
	$(SCANNER) \
	    --namespace GLib --nsversion=2.0 \
	    --noclosure \
	    --output $@ \
	    --strip-prefix=g \
            --libtool="$(LIBTOOL)" \
	    --library=$(GLIB_LIBRARY) \
	    $(CPPFLAGS) \
	    -I$(GLIB_INCLUDEDIR) \
	    -I$(GLIB_LIBDIR)/glib-2.0/include \
	    -DGETTEXT_PACKAGE=Dummy \
	    -D__G_I18N_LIB_H__ \
	    $(GLIB_LIBDIR)/glib-2.0/include/glibconfig.h \
	    $(srcdir)/glib-2.0.c \
	    $(GLIB_INCLUDEDIR)/glib/*.h
	$(SCANNER) $(SCANNER_ARGS) \
	    --xpath-assertions=$(srcdir)/GLib-2.0.xpath GLib-2.0.gir

You've got CPPFLAGS set in paludis, don't you?
Comment 5 Stelian Ionescu 2009-05-21 20:57:46 UTC
Oops, sorry. I had set CPPFLAGS to test for bug #267784 and forgot to unset it.
Comment 6 Stelian Ionescu 2009-05-21 20:58:21 UTC
I mean bug #257348