libtool: link: x86_64-pc-linux-gnu-gcc -shared -fPIC -DPIC ../glib/.libs/libmypaint_gegl_la-mypaint-gegl-glib.o .libs/libmypaint_gegl_la-mypaint-gegl-surface.o -Wl,-rpath -Wl,/var/tmp/portage/media-libs/libmypaint-1.6.1-r2/work/libmypaint-1.6.1/.libs ../.libs/libmypaint.so -lgegl-0.4 -lgegl-npd-0.4 -lgmodule-2.0 -ljson-glib-1.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lbabl-0.1 -lm -pthread -pthread -O2 -march=znver3 -g -ggdb3 -Wl,-O1 -Wl,--as-needed -Wl,--export-dynamic -pthread -pthread -fopenmp -Wl,-soname -Wl,libmypaint-gegl.so.0 -o .libs/libmypaint-gegl.so.0.0.0 libtool: link: (cd ".libs" && rm -f "libmypaint-gegl.so.0" && ln -s "libmypaint-gegl.so.0.0.0" "libmypaint-gegl.so.0") libtool: link: (cd ".libs" && rm -f "libmypaint-gegl.so" && ln -s "libmypaint-gegl.so.0.0.0" "libmypaint-gegl.so") libtool: link: ( cd ".libs" && rm -f "libmypaint-gegl.la" && ln -s "../libmypaint-gegl.la" "libmypaint-gegl.la" ) CPPFLAGS="" CFLAGS="-D_POSIX_C_SOURCE=200809L -O2 -march=znver3 -pipe -fomit-frame-pointer -g -ggdb3" LDFLAGS="-Wl,-O1 -Wl,--as-needed" CC="x86_64-pc-linux-gnu-gcc" PKG_CONFIG="/usr/bin/x86_64-pc-linux-gnu-pkg-config" GI_HOST_OS="" DLLTOOL="false" CFLAGS="-D_POSIX_C_SOURCE=200809L -O2 -march=znver3 -pipe -fomit-frame-pointer -g -ggdb3" LDFLAGS="-Wl,-O1 -Wl,--as-needed -lm" CPPFLAGS="" CXXFLAGS="-O2 -march=znver3 -pipe -fomit-frame-pointer -g -ggdb3" /usr/bin/g-ir-scanner --warn-all --pkg="gegl-0.4" --pkg="glib-2.0" --namespace="MyPaintGegl" --nsversion="1.6" --identifier-prefix="MyPaintGegl" --symbol-prefix="mypaint_gegl" --add-include-path="./.." --add-include-path="." --add-include-path="./.." --add-include-path="`/usr/bin/x86_64-pc-linux-gnu-pkg-config --define-variable=datadir="/usr/share" --variable=girdir gobject-introspection-1.0`" --namespace=MyPaintGegl --nsversion=1.6 --libtool="/bin/sh ../libtool" --include=GObject-2.0 --include=MyPaint-1.6 --include=Gegl-0.4 --library=libmypaint-gegl.la --library=../libmypaint.la --cflags-begin -I.. -I.. -I. -I.. --cflags-end ../glib/mypaint-gegl-glib.h mypaint-gegl-surface.h ../glib/mypaint-gegl-glib.c mypaint-gegl-surface.c libmypaint-gegl.la Makefile --output MyPaintGegl-1.6.gir Package babl-0.1 was not found in the pkg-config search path. Perhaps you should add the directory containing `babl-0.1.pc' to the PKG_CONFIG_PATH environment variable Package 'babl-0.1', required by 'virtual:world', not found In file included from /var/tmp/portage/media-libs/libmypaint-1.6.1-r2/work/libmypaint-1.6.1/gegl/g-ir-cpp-yxndcm4c.c:4: /var/tmp/portage/media-libs/libmypaint-1.6.1-r2/work/libmypaint-1.6.1/glib/mypaint-gegl-glib.h:6:10: fatal error: glib-object.h: No such file or directory 6 | #include <glib-object.h> | ^~~~~~~~~~~~~~~ compilation terminated. Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/setuptools/_distutils/unixccompiler.py", line 179, in preprocess self.spawn(pp_args) File "/usr/lib/python3.10/site-packages/setuptools/_distutils/ccompiler.py", line 1007, in spawn spawn(cmd, dry_run=self.dry_run, **kwargs) File "/usr/lib/python3.10/site-packages/setuptools/_distutils/spawn.py", line 70, in spawn raise DistutilsExecError( distutils.errors.DistutilsExecError: command '/usr/bin/x86_64-pc-linux-gnu-gcc' failed with exit code 1 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/bin/g-ir-scanner", line 99, in <module> sys.exit(scanner_main(sys.argv)) File "/usr/lib64/gobject-introspection/giscanner/scannermain.py", line 600, in scanner_main ss, filenames = create_source_scanner(options, args) File "/usr/lib64/gobject-introspection/giscanner/scannermain.py", line 471, in create_source_scanner ss.parse_files(filenames) File "/usr/lib64/gobject-introspection/giscanner/sourcescanner.py", line 265, in parse_files self._parse(headers) File "/usr/lib64/gobject-introspection/giscanner/sourcescanner.py", line 311, in _parse cc.preprocess(tmp_name_cpp, File "/usr/lib64/gobject-introspection/giscanner/ccompiler.py", line 309, in preprocess self.compiler.preprocess(source=source, File "/usr/lib/python3.10/site-packages/setuptools/_distutils/unixccompiler.py", line 181, in preprocess raise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/x86_64-pc-linux-gnu-gcc' failed with exit code 1 make[2]: *** [/usr/share/gobject-introspection-1.0/Makefile.introspection:156: MyPaintGegl-1.6.gir] Error 1 make[2]: Leaving directory '/var/tmp/portage/media-libs/libmypaint-1.6.1-r2/work/libmypaint-1.6.1/gegl' make[1]: *** [Makefile:840: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/media-libs/libmypaint-1.6.1-r2/work/libmypaint-1.6.1' make: *** [Makefile:597: all] Error 2 Reproducible: Always
Created attachment 812728 [details] build.log.gz
Created attachment 812731 [details] emerge-info.txt
same here
Same, building with -introspection works fine though.
Is this a duplicate of Bug 868774 ?
(In reply to jospezial from comment #5) > Is this a duplicate of Bug 868774 ? Not sure, it does compile with "old" babl/gegl (0.1.92-r1/0.4.36-r1)
*** Bug 868774 has been marked as a duplicate of this bug. ***
It's a bug in babl, it's missing its .pc file: https://gitlab.gnome.org/GNOME/babl/-/issues/80.
emerge media-libs/libmypaint-1.6.1-r2 succeeds, if I create a symlink: ln -vrs /usr/lib64/pkgconfig/babl.pc /usr/lib64/pkgconfig/babl-0.1.pc
Please, clarify what media-libs/babl version was installed before media-libs/libmypaint-1.6.1-r2 build attempt. Is it babl-9999.ebuild?
(In reply to Sergey Torokhov from comment #10) > Please, clarify what media-libs/babl version was installed before > media-libs/libmypaint-1.6.1-r2 build attempt. Is it babl-9999.ebuild? A grep babl /var/log/emerge.log begins with 1619705169 and media-libs/babl-9999 So I am using media-libs/babl-9999 and no other version at least since Apr 29 2021.
(In reply to Sergey Torokhov from comment #10) > Please, clarify what media-libs/babl version was installed before > media-libs/libmypaint-1.6.1-r2 build attempt. Is it babl-9999.ebuild? See https://bugs.gentoo.org/868774#c9
The issue is reproduced for me if media-libs/libmypaint-1.6.1-r2 is tried to build with USE="gegl introspection" enabled simultaneously. I'm not sure if babl.pc instead of babl-0.1.pc is required anywhere but the babl 0.1.96-r1 will add symlink to it instead of renaming.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0fc2f40702ebf41c1a3032733495ece334c768d commit e0fc2f40702ebf41c1a3032733495ece334c768d Author: Sergey Torokhov <torokhov-s-a@yandex.ru> AuthorDate: 2022-10-04 18:15:59 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-10-04 18:25:29 +0000 media-libs/babl: 0.1.96-r1 revbump. Fix absence of babl-0.1.pc The absence of babl-0.1.pc (instead of presented babl.pc) results in USE="gegl introspection" media-libs/libmypaint build error. This revbump adds babl-0.1.pc symlink to babl.pc file. Closes: https://bugs.gentoo.org/871690 Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru> Closes: https://github.com/gentoo/gentoo/pull/27623 Signed-off-by: Sam James <sam@gentoo.org> media-libs/babl/babl-0.1.96-r1.ebuild | 69 +++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+)