Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 947607 - media-gfx/gimp-3.0.0_rc2 - fails building on musl systems: (script-fu:4722): LibGimp-WARNING **: 18:26:51.923: script-fu: gimp_flush(): error: Broken pipe; Segmentation fault
Summary: media-gfx/gimp-3.0.0_rc2 - fails building on musl systems: (script-fu:4722): ...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sergey Torokhov
URL: https://gitlab.gnome.org/GNOME/gimp/-...
Whiteboard:
Keywords:
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2025-01-06 12:54 UTC by ernsteiswuerfel
Modified: 2025-03-12 19:17 UTC (History)
3 users (show)

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


Attachments
build.log.xz (gimp-3.0.0_rc2:20250104-171353.log.xz,76.55 KB, application/x-xz)
2025-01-06 12:54 UTC, ernsteiswuerfel
Details
emerge --info (file_947607.txt,7.71 KB, text/plain)
2025-01-06 12:54 UTC, ernsteiswuerfel
Details
build.log.xz (3.0.0_rc3) (gimp-3.0.0_rc3:20250310-002359.log.xz,77.13 KB, application/x-xz)
2025-03-10 00:35 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2025-01-06 12:54:20 UTC
Created attachment 915984 [details]
build.log.xz

Builds fine on glibc but not on my musl-based systems:

[...]
[3680/3681] clang++  -o app/gimp-3.0 app/gimp-3.0.p/main.c.o -Wl,--as-needed -Wl,--no-undefined -O2 -march=znver2 -pipe -fuse-ld=bfd -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs '-Wl,-rpath,$ORIGIN/../libgimpbase:$ORIGIN/../libgimpcolor:$ORIGIN/../libgimpconfig:$ORIGIN/../libgimpmath:$ORIGIN/../libgimpmodule:$ORIGIN/../libgimpthumb:$ORIGIN/../libgimpwidgets' -Wl,-rpath-link,/var/tmp/portage/media-gfx/gimp-3.0.0_rc2/work/gimp-3.0.0_rc2-build/libgimpbase -Wl,-rpath-link,/var/tmp/portage/media-gfx/gimp-3.0.0_rc2/work/gimp-3.0.0_rc2-build/libgimpcolor -Wl,-rpath-link,/var/tmp/portage/media-gfx/gimp-3.0.0_rc2/work/gimp-3.0.0_rc2-build/libgimpconfig -Wl,-rpath-link,/var/tmp/portage/media-gfx/gimp-3.0.0_rc2/work/gimp-3.0.0_rc2-build/libgimpmath -Wl,-rpath-link,/var/tmp/portage/media-gfx/gimp-3.0.0_rc2/work/gimp-3.0.0_rc2-build/libgimpmodule -Wl,-rpath-link,/var/tmp/portage/media-gfx/gimp-3.0.0_rc2/work/gimp-3.0.0_rc2-build/libgimpthumb -Wl,-rpath-link,/var/tmp/portage/media-gfx/gimp-3.0.0_rc2/work/gimp-3.0.0_rc2-build/libgimpwidgets -Wl,--start-group libgimpbase/libgimpbase-3.0.so.0.0.0 libgimpcolor/libgimpcolor-3.0.so.0.0.0 libgimpconfig/libgimpconfig-3.0.so.0.0.0 libgimpmath/libgimpmath-3.0.so.0.0.0 libgimpmodule/libgimpmodule-3.0.so.0.0.0 libgimpthumb/libgimpthumb-3.0.so.0.0.0 app/core/libappcore.a app/file/libappfile.a app/file-data/libappfiledata.a app/gegl/libappgegl.a app/gegl/libgimp-gegl-loops-simd_sse2.a app/pdb/libappinternalprocs.a app/operations/layer-modes/libapplayermodes.a app/operations/layer-modes/libgimpoperationlayermode-composite-simd_sse2.a app/operations/layer-modes/libgimpoperationnormal-simd_sse2.a app/operations/layer-modes/libgimpoperationnormal-simd_sse41.a app/operations/layer-modes-legacy/libapplayermodeslegacy.a app/operations/libappoperations.a app/paint/libapppaint.a app/pdb/libapppdb.a app/plug-in/libappplug-in.a app/text/libapptext.a app/vectors/libappvectors.a app/xcf/libappxcf.a app/config/libappconfig.a app/actions/libappactions.a app/dialogs/libappdialogs.a app/display/libappdisplay.a app/gui/libappgui.a app/menus/libappmenus.a app/propgui/libapppropgui.a app/tools/libapptools.a app/widgets/libappwidgets.a libgimpwidgets/libgimpwidgets-3.0.so.0.0.0 app/libapp.a /usr/lib/libcairo.so /usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libgobject-2.0.so /usr/lib/libglib-2.0.so /usr/lib/libgegl-0.4.so /usr/lib/libgegl-npd-0.4.so -Wl,--export-dynamic /usr/lib/libgmodule-2.0.so -pthread /usr/lib/libjson-glib-1.0.so /usr/lib/libgio-2.0.so /usr/lib/libbabl-0.1.so /usr/lib/libgexiv2.so /usr/lib/liblcms2.so /usr/lib/liblcms2_fast_float.so /usr/lib/liblcms2_threaded.so /usr/lib/libpangocairo-1.0.so /usr/lib/libpango-1.0.so /usr/lib/libharfbuzz.so /usr/lib/libpangoft2-1.0.so /usr/lib/libfontconfig.so /usr/lib/libfreetype.so /usr/lib/libgtk-3.so /usr/lib/libgdk-3.so /usr/lib/libatk-1.0.so /usr/lib/libcairo-gobject.so /usr/lib/libmypaint.so -fopenmp /usr/lib/libjson-c.so /usr/lib/libappstream-glib.so -lm -ldl /usr/lib/libarchive.so -fopenmp /usr/lib/libz.so -Wl,--end-group -fopenmp
[3681/3681] /usr/lib/python-exec/python3.12/meson --internal exe --unpickle /var/tmp/portage/media-gfx/gimp-3.0.0_rc2/work/gimp-3.0.0_rc2-build/meson-private/meson_exe_in-build-gimp.sh_d8d0812f49d6bca471740b37e3408e1dea51f7ed.dat
FAILED: gimp-data/images/gimp-splash.png 
/usr/lib/python-exec/python3.12/meson --internal exe --unpickle /var/tmp/portage/media-gfx/gimp-3.0.0_rc2/work/gimp-3.0.0_rc2-build/meson-private/meson_exe_in-build-gimp.sh_d8d0812f49d6bca471740b37e3408e1dea51f7ed.dat
while executing ['/var/tmp/portage/media-gfx/gimp-3.0.0_rc2/work/gimp-3.0.0-RC2/tools/in-build-gimp.sh', '-nidfs', '../gimp-3.0.0-RC2/gimp-data/images/gimp-splash.xcf.xz', '--batch-interpreter', 'python-fu-eval', '-b', '-', '--quit']
--- stdout ---
INFO: temporary GIMP configuration directory: /var/tmp/portage/media-gfx/gimp-3.0.0_rc2/work/gimp-3.0.0_rc2-build/.GIMP3-build-config-UOpx14

--- stderr ---
GIMP-Warning: Illegal variable name in environment file /var/tmp/portage/media-gfx/gimp-3.0.0_rc2/work/gimp-3.0.0-RC2/data/environ/meson.build: 

GIMP-Warning: Illegal variable name in environment file /var/tmp/portage/media-gfx/gimp-3.0.0_rc2/work/gimp-3.0.0-RC2/data/environ/meson.build:  environ_config.set('BIN_PATH', 'PATH

Failed to parse tag cache: No such file or directory

(script-fu:4722): scriptfu-WARNING **: 18:26:49.538: Failed to load main initialization file
GIMP-Warning: Welcome to GIMP 3.0.0-RC2!

/var/tmp/portage/media-gfx/gimp-3.0.0_rc2/work/gimp-3.0.0_rc2-build/plug-ins/script-fu/script-fu: fatal error: GIMP crashed

(script-fu:4722): LibGimp-WARNING **: 18:26:51.923: script-fu: gimp_flush(): error: Broken pipe
Segmentation fault

ninja: build stopped: subcommand failed.
 * ERROR: media-gfx/gimp-3.0.0_rc2::gentoo failed (compile phase):
 *   ninja -v -j5 -l5 failed
Comment 1 ernsteiswuerfel archtester 2025-01-06 12:54:57 UTC
Created attachment 915985 [details]
emerge --info
Comment 2 Sergey Torokhov 2025-01-20 18:40:45 UTC
Looks similar to https://gitlab.gnome.org/GNOME/gimp/-/issues/11369

The solution was:

> It's fixed with GI_TYPELIB_PATH set correctly.  
> ninja still complains about gimp-splash.png, but gimp-splash.png gets build with ninja install, so I'm a happy camper.

Also there is a comment [1] that refer to "preparing to build instructions" [2]

[1] https://gitlab.gnome.org/GNOME/gimp/-/issues/11369#note_2088969
[2] https://testing.developer.gimp.org/core/setup/build/#preparing-for-building

But I have no idea how to quick fix it and need to read upstream issue discussion more accurate.
Comment 3 ernsteiswuerfel archtester 2025-01-20 19:53:51 UTC
(In reply to Sergey Torokhov from comment #2)
> Looks similar to https://gitlab.gnome.org/GNOME/gimp/-/issues/11369
> 
> [...]
> 
> But I have no idea how to quick fix it and need to read upstream issue
> discussion more accurate.
Thanks for looking into this! I am not in a hurry. ;)
Comment 4 ernsteiswuerfel archtester 2025-03-10 00:35:51 UTC
Created attachment 920451 [details]
build.log.xz (3.0.0_rc3)
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-12 19:17:35 UTC
Some hackery may be needed to run the failing command under gdb (as there's some indirection with a script too) to get a backtrace.