BABL build errors

Pulled Babl, expected an error-free build, and I get:

ninja && ninja install
[184/291] Compiling C object bin/babl.p/babl.c.o
../bin/babl.c: In function ‘babl_cli_get_space’:
../bin/babl.c:590:3: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  590 |   fread (icc_data, icc_length, 1, f);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[290/291] Generating docs/index.html.tmp with a custom command (wrapped by meson to capture output)
FAILED: docs/index.html.tmp 
/usr/bin/meson --internal exe --capture docs/index.html.tmp -- /usr/bin/env BABL_PATH=/Gimp-dev/3.00/build/babl/_build/extensions /Gimp-dev/3.00/build/babl/_build/tools/babl-html-dump
--- stderr ---
../babl/babl-internal.h:210 babl_log()
        dlopen() failed:
        /Gimp-dev/3.00/build/babl/_build/extensions/x86-64-v3-CIE.so: file too short
../babl/babl-internal.h:210 babl_log()
        dlopen() failed:
        /Gimp-dev/3.00/build/babl/_build/extensions/x86-64-v3-cairo.so: file too short
../babl/babl-internal.h:210 babl_log()
        dlopen() failed:
        /Gimp-dev/3.00/build/babl/_build/extensions/x86-64-v3-gggl.so: file too short

ninja: build stopped: subcommand failed.

The culprit files:

-rwxrwxr-x 1 bd bd 45448 Apr 13 22:13 /Gimp-dev/3.00/build/babl/_build/extensions/x86-64-v3-cairo.so*
-rwxrwxr-x 1 bd bd 60536 Apr 13 22:13 /Gimp-dev/3.00/build/babl/_build/extensions/x86-64-v3-CIE.so*
-rwxrwxr-x 1 bd bd 58624 Apr 13 22:13 /Gimp-dev/3.00/build/babl/_build/extensions/x86-64-v3-gggl.so*

@Ofnuts Could you try building the fork indicated in this comment ('with-docs' fails in gcc based MSYS2 shells (#97) · Issues · GNOME / babl · GitLab) and tell me if it fixes the bug?

I don’t see that branch in the official repo?

It is a branch of a fork, the code isn’t merged yet.

Latest pull from master builds OK (after disabling the doc generation)

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.