Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 617618 - media-libs/gegl-0.3.14 USE=introspection - .../work/gegl-0.3.14/gegl/tmp-introspectnn6avnbq/Gegl-0.3.c: In function ‘escaped_printf’: <command-line>:0:14: error: ‘GEGL’ undeclared (first use in this function)
Summary: media-libs/gegl-0.3.14 USE=introspection - .../work/gegl-0.3.14/gegl/tmp-intr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sebastian Pipping
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-06 00:44 UTC by Jura
Modified: 2018-12-09 21:47 UTC (History)
0 users

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


Attachments
build.log (build.log,224.56 KB, text/plain)
2017-05-06 00:44 UTC, Jura
Details
gegl-0.3.14-build.log (gegl-0.3.14-build.log,220.28 KB, text/plain)
2017-05-10 09:00 UTC, iGentoo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jura 2017-05-06 00:44:03 UTC
Created attachment 471770 [details]
build.log

can't emerge gegl-0.3.14
Comment 1 Cănărău Constantin 2017-05-06 09:54:41 UTC
Try without introspection use flag, if it is not mandatory.
Comment 2 Jura 2017-05-06 13:03:42 UTC
Thanks.
Without introspection build successful
Comment 3 iGentoo 2017-05-10 09:00:05 UTC
Created attachment 472258 [details]
gegl-0.3.14-build.log

CPPFLAGS="" CFLAGS="-Wall -march=native -O2 -pipe -frecord-gcc-switches -mmmx -msse -ftree-vectorize -ffast-math -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -Wold-style-definition -DG_LOG_DOMAIN=\"GEGL\"" LDFLAGS="-Wl,-O1 -Wl,--as-needed" CC="x86_64-pc-linux-gnu-gcc" PKG_CONFIG="/usr/bin/x86_64-pc-linux-gnu-pkg-config" DLLTOOL="false" CFLAGS="-Wall -march=native -O2 -pipe -frecord-gcc-switches -mmmx -msse -ftree-vectorize -ffast-math -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -Wold-style-definition -DG_LOG_DOMAIN=\"GEGL\"" LDFLAGS="-Wl,-O1 -Wl,--as-needed" CPPFLAGS="" CXXFLAGS="-Wall -march=native -O2 -pipe -frecord-gcc-switches" /usr/bin/g-ir-scanner  --warn-all --add-include-path="." --add-include-path="/usr/share/gir-1.0" --namespace=Gegl --nsversion=0.3 --libtool="/bin/bash ../libtool"  --include=GObject-2.0 --include=GLib-2.0    --library=libgegl-0.3.la  --cflags-begin -pthread -I/usr/include/json-glib-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/babl-0.1 -I.. -I../gegl -I../gegl -I../gegl/buffer -I../gegl/buffer -I../gegl/graph -I../gegl/graph -I../gegl/operation -I../gegl/operation -I../gegl/opencl -I../gegl/opencl -I../gegl/process -I../gegl/process -I../gegl/property-types -I../gegl/property-types -DLIBDIR=\""/usr/lib64"\" -DGEGL_LOCALEDIR=\""/usr/share/locale"\" --cflags-end  gegl.h gegl-types.h gegl-apply.h gegl-enums.h gegl-operations-util.h gegl-utils.h gegl-matrix.h gegl-lookup.h gegl-random.h gegl-init.h gegl-version.h buffer/gegl-buffer.h buffer/gegl-buffer-iterator.h buffer/gegl-buffer-backend.h buffer/gegl-tile-backend.h buffer/gegl-tile-handler.h buffer/gegl-tile-source.h graph/gegl-node.h process/gegl-graph-debug.h process/gegl-processor.h property-types/gegl-paramspecs.h property-types/gegl-color.h property-types/gegl-audio-fragment.h property-types/gegl-path.h property-types/gegl-curve.h gegl-introspection-support.h opencl/gegl-cl-introspection-support.h libgegl-0.3.la Makefile --output Gegl-0.3.gir
/var/tmp/portage/media-libs/gegl-0.3.14/work/gegl-0.3.14/gegl/tmp-introspect3vzrs7eu/Gegl-0.3.c: In function ‘escaped_printf’:
<command-line>:0:14: error: ‘GEGL’ undeclared (first use in this function)
/usr/include/glib-2.0/glib/gmessages.h:331:32: note: in expansion of macro ‘G_LOG_DOMAIN’
 #define g_critical(...) g_log (G_LOG_DOMAIN,         \
                                ^~~~~~~~~~~~
/var/tmp/portage/media-libs/gegl-0.3.14/work/gegl-0.3.14/gegl/tmp-introspect3vzrs7eu/Gegl-0.3.c:61:7: note: in expansion of macro ‘g_critical’
       g_critical ("failed to write to iochannel: %s", error->message);
       ^~~~~~~~~~
<command-line>:0:14: note: each undeclared identifier is reported only once for each function it appears in
/usr/include/glib-2.0/glib/gmessages.h:331:32: note: in expansion of macro ‘G_LOG_DOMAIN’
 #define g_critical(...) g_log (G_LOG_DOMAIN,         \
                                ^~~~~~~~~~~~
/var/tmp/portage/media-libs/gegl-0.3.14/work/gegl-0.3.14/gegl/tmp-introspect3vzrs7eu/Gegl-0.3.c:61:7: note: in expansion of macro ‘g_critical’
       g_critical ("failed to write to iochannel: %s", error->message);
       ^~~~~~~~~~
/var/tmp/portage/media-libs/gegl-0.3.14/work/gegl-0.3.14/gegl/tmp-introspect3vzrs7eu/Gegl-0.3.c: In function ‘goutput_write’:
<command-line>:0:14: error: ‘GEGL’ undeclared (first use in this function)
/usr/include/glib-2.0/glib/gmessages.h:331:32: note: in expansion of macro ‘G_LOG_DOMAIN’
 #define g_critical(...) g_log (G_LOG_DOMAIN,         \
                                ^~~~~~~~~~~~
/var/tmp/portage/media-libs/gegl-0.3.14/work/gegl-0.3.14/gegl/tmp-introspect3vzrs7eu/Gegl-0.3.c:76:7: note: in expansion of macro ‘g_critical’
       g_critical ("failed to write to iochannel: %s", error->message);
       ^~~~~~~~~~
Traceback (most recent call last):
  File "/usr/lib64/python3.6/distutils/unixccompiler.py", line 128, in _compile
    extra_postargs)
  File "/usr/lib64/python3.6/distutils/ccompiler.py", line 909, in spawn
    spawn(cmd, dry_run=self.dry_run)
  File "/usr/lib64/python3.6/distutils/spawn.py", line 36, in spawn
    _spawn_posix(cmd, search_path, dry_run=dry_run)
  File "/usr/lib64/python3.6/distutils/spawn.py", line 159, in _spawn_posix
    % (cmd, exit_status))
distutils.errors.DistutilsExecError: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1





# emerge --info gegl glib
Portage 2.3.5 (python 3.6.1-final-0, default/linux/amd64/13.0, gcc-7.1.0, glibc-2.25, 4.11.0-gentoo.x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.11.0-gentoo.x86_64-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9300_@_2.50GHz-with-gentoo-2.3
KiB Mem:     6118136 total,   1499928 free
KiB Swap:    6291452 total,   5653040 free
sh dash 0.5.9.1-r1
ld GNU gold (Gentoo 2.28 p1.0 2.28) 1.14
ccache version 3.3.4 [disabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r1::gentoo
dev-lang/python:          2.7.13::gentoo, 3.6.1-r1::gentoo
dev-util/ccache:          3.3.4::gentoo
dev-util/cmake:           3.8.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/sandbox:         2.11-r5::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r3::gentoo
sys-devel/automake:       1.15-r2::gentoo
sys-devel/binutils:       2.28::gentoo
sys-devel/gcc:            7.1.0-r1::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: git://anongit.gentoo.org/repo/gentoo.git
    sync-user: portage
    priority: -1000
    eclass-overrides: local-repo

local-repo
    location: /usr/local/portage
    masters: gentoo

Installed sets: @local
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Wall -march=native -O2 -pipe -frecord-gcc-switches"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-Wall -march=native -O2 -pipe -frecord-gcc-switches"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--color=n --keep-going --oneshot"
FCFLAGS="-Wall -march=native -O2 -pipe -frecord-gcc-switches"
FEATURES="assume-digests binpkg-logs buildpkg collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms split-log strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-Wall -march=native -O2 -pipe -frecord-gcc-switches"
GENTOO_MIRRORS="http://mirrors.163.com/gentoo http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="V=1 -j6"
PKGDIR="/var/portage/packages"
PORTAGE_BZIP2_COMMAND="lbzip2"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-9T0"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl amd64 audit berkdb bzip2 cli cracklib crypt cxx dbus dri egl fortran gdbm gles2 iconv icu ipv6 jpeg modules multilib ncurses nls nptl opengl openmp pam pax_kernel pcre pic png policykit pulseaudio readline seccomp session ssl systemd tcpd unicode vdpau vim-syntax wayland xattr zlib" ABI_X86="64 32 x32" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev libinput" KERNEL="linux" L10N="zh-CN" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="zh_CN" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

media-libs/gegl-0.3.14::gentoo was built with the following:
USE="cairo introspection -debug -ffmpeg -jpeg2k -lcms -lensfun -openexr -raw -sdl -svg -test -tiff -umfpack -v4l -vala -webp" ABI_X86="64" CPU_FLAGS_X86="mmx sse"


dev-libs/glib-2.52.2::gentoo was built with the following:
USE="dbus mime xattr -debug (-fam) (-selinux) -static-libs -systemtap -test -utils" ABI_X86="32 64 x32" PYTHON_TARGETS="python2_7"


See also:

https://git.gnome.org/browse/gegl/commit/?id=81fb956b221e4b1f919788d8a5f6a3a5462b86ae
Comment 4 Jura 2017-05-10 16:03:02 UTC
(In reply to iGentoo from comment #3) 
> See also:
> 
> https://git.gnome.org/browse/gegl/commit/
> ?id=81fb956b221e4b1f919788d8a5f6a3a5462b86ae

After apply this patch, build successful with introspection use flag
Comment 5 Sebastian Pipping gentoo-dev 2017-05-20 22:25:31 UTC
(In reply to Jura from comment #4)
> > https://git.gnome.org/browse/gegl/commit/
> > ?id=81fb956b221e4b1f919788d8a5f6a3a5462b86ae
> 
> After apply this patch, build successful with introspection use flag

Excellent, thanks.


It did not fail for me with GCC 4.9.3 .  Please comment what compile it was for you for the record.  Thanks!


commit 3980d9be8a48e5aa8c5b47416f9c31ab171a981b
Author: Sebastian Pipping <sping@g.o>
Date:   Sun May 21 00:21:02 2017 +0200

    media-libs/gegl: Fix USE=introspection compilation (bug #617618)
    
    Package-Manager: Portage-2.3.6, Repoman-2.3.2

 .../gegl/files/gegl-0.3.14-g_log_domain.patch      | 47 ++++++++++++++++++++++
 media-libs/gegl/gegl-0.3.14.ebuild                 |  3 +-
 2 files changed, 49 insertions(+), 1 deletion(-)

https://github.com/gentoo/gentoo/commit/3980d9be8a48e5aa8c5b47416f9c31ab171a981b