GNOME Bugzilla – Bug 792497
GTK master/3.93.x compiling fails
Last modified: 2018-02-14 20:47:17 UTC
Output: [I] ╭─vistaus@solus /run/media/vistaus/MicroSD/Apps/gtk+/build ‹system› <master*> ╰─$ ninja -j3 [1/479] Compiling C object 'gtk/gtk-4@sha/language-names.c.o'. FAILED: gtk/gtk-4@sha/language-names.c.o cc -Igtk/gtk-4@sha -Igtk -I../gtk -I. -I../ -Igdk -I../gdk -Igsk -I../gsk -Igdk/x11 -I../gdk/x11 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng15 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/atk-1.0 -I/usr/include/graphene-1.0 -I/usr/lib64/graphene-1.0/include -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu99 -O2 -g -DG_LOG_USE_STRUCTURED=1 -DGLIB_MIN_REQUIRED_VERSION=GLIB_VERSION_2_52 -DGLIB_MAX_ALLOWED_VERSION=GLIB_VERSION_2_54 '-DGTK_VERSION="3.93.0"' -D_GNU_SOURCE -DG_ENABLE_DEBUG -DG_DISABLE_CAST_CHECKS -fPIC -pthread -mfpmath=sse -msse -msse2 -DGTK_COMPILATION '-DG_LOG_DOMAIN="Gtk"' -DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED '-DGTK_BINARY_VERSION="4.0.0"' '-DGTK_HOST="linux"' '-DGTK_DATA_PREFIX="/usr"' '-DX11_DATA_PREFIX="/usr"' -fno-strict-aliasing -Wpointer-arith -Wmissing-declarations -Wimplicit-function-declaration -Wformat=2 -Wformat-nonliteral -Wformat-security -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wundef -Wunused -Wcast-align -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-include-dirs -Wlogical-op -Wswitch-default -Wswitch-enum -Wignored-qualifiers -Werror=redundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=empty-body -Werror=write-strings -fvisibility=hidden -MD -MQ 'gtk/gtk-4@sha/language-names.c.o' -MF 'gtk/gtk-4@sha/language-names.c.o.d' -o 'gtk/gtk-4@sha/language-names.c.o' -c ../gtk/language-names.c ../gtk/language-names.c: In function 'languages_variant_init': ../gtk/language-names.c:21:30: error: 'ISO_CODES_PREFIX' undeclared (first use in this function); did you mean 'ISO_CODES_DATADIR'? #define ISO_CODES_LOCALESDIR ISO_CODES_PREFIX "/share/locale" ^ ../gtk/language-names.c:180:28: note: in expansion of macro 'ISO_CODES_LOCALESDIR' bindtextdomain (variant, ISO_CODES_LOCALESDIR); ^~~~~~~~~~~~~~~~~~~~ ../gtk/language-names.c:21:30: note: each undeclared identifier is reported only once for each function it appears in #define ISO_CODES_LOCALESDIR ISO_CODES_PREFIX "/share/locale" ^ ../gtk/language-names.c:180:28: note: in expansion of macro 'ISO_CODES_LOCALESDIR' bindtextdomain (variant, ISO_CODES_LOCALESDIR); ^~~~~~~~~~~~~~~~~~~~ ../gtk/language-names.c:21:47: error: expected ')' before string constant #define ISO_CODES_LOCALESDIR ISO_CODES_PREFIX "/share/locale" ^ ../gtk/language-names.c:180:28: note: in expansion of macro 'ISO_CODES_LOCALESDIR' bindtextdomain (variant, ISO_CODES_LOCALESDIR); ^~~~~~~~~~~~~~~~~~~~ ../gtk/language-names.c:20:44: error: expected ')' before string constant #define ISO_CODES_DATADIR ISO_CODES_PREFIX "/share/xml/iso-codes" ^ ../gtk/language-names.c:184:27: note: in expansion of macro 'ISO_CODES_DATADIR' filename = g_strconcat (ISO_CODES_DATADIR, "/", variant, ".xml", NULL); ^~~~~~~~~~~~~~~~~ [3/479] Compiling C object 'gtk/gtk-4@sha/gtkcssarrayvalue.c.o'. ninja: build stopped: subcommand failed. [I] ╭─vistaus@solus /run/media/vistaus/MicroSD/Apps/gtk+/build ‹system› <master*> ╰─$ OS: Solus (Linux) DE: Budgie Pango: latest git master (but also gtk+ master compiling also fails with latest stable Pango) If you need more info, let me know. I hope this issue can be solved.
ISO_CODES_PREFIX is defined in the `config.h` file, and it's populated by this bit in the `meson.build` file: ``` iso_codes_dep = dependency('iso-codes', required: false) if iso_codes_dep.found() cdata.set_quoted('ISO_CODES_PREFIX', iso_codes_dep.get_pkgconfig_variable('prefix')) else cdata.set_quoted('ISO_CODES_PREFIX', '/usr') endif ``` Could you please check the iso-codes.pc file in /usr/share/pkgconfig to verify that the prefix is correct?
Thanks for the quick reply. /usr/share/pkgconfig/iso-codes.pc contains this: prefix=/usr domains=iso_639-2 iso_639-3 iso_639-5 iso_3166-1 iso_3166-2 iso_3166-3 iso_4217 iso_15924 Name: iso-codes Description: ISO country, language, script and currency codes and translations Version: 3.75
Can you look at the `config.h` file that is generated in your build, and check for the `ISO_CODES_PREFIX` definition? Additionally, is there any mention in the `meson-log.txt` for iso-codes?
config.h contains: https://pastebin.com/nr71QNZe The meson log contains: https://pastebin.com/vnSgBYpF
It seems you have a broken clone of the gtk+ repo, or some mixed state: the log does not even look for an iso-codes dependency. You need commit 14b181ebd4c5851dc51cb468721c502addaec36c on the master branch.
Alright, I've removed the clone now and checked out a new clone (of the master branch, of course) but it still fails: [I] ╭─vistaus@solus /run/media/vistaus/MicroSD/Apps/gtk+/build ‹system› <master> ╰─$ meson .. --prefix=/usr The Meson build system Version: 0.45.0.dev1 Source dir: /run/media/vistaus/MicroSD/Apps/gtk+ Build dir: /run/media/vistaus/MicroSD/Apps/gtk+/build Build type: native build Project name: gtk+ Native C compiler: cc (gcc 7.2.0 "cc (Solus) 7.2.0") Build machine cpu family: x86_64 Build machine cpu: x86_64 Has header "crt/externs.h": NO Has header "dlfcn.h": YES Has header "ftw.h": YES Has header "inttypes.h": YES Has header "linux/memfd.h": YES Has header "locale.h": YES Has header "memory.h": YES Has header "stdint.h": YES Has header "stdlib.h": YES Has header "strings.h": YES Has header "string.h": YES Has header "sys/mman.h": YES Has header "sys/param.h": YES Has header "sys/stat.h": YES Has header "sys/sysinfo.h": YES Has header "sys/systeminfo.h": NO Has header "sys/time.h": YES Has header "sys/types.h": YES Has header "unistd.h": YES Library m found: YES Checking for function "dcgettext": YES Checking for function "getpagesize": YES Checking for function "getresuid": YES Checking for function "lstat": YES Checking for function "mmap": YES Checking for function "nearbyint": YES Checking for function "posix_fallocate": YES Checking for function "_lock_file": NO Checking for function "flockfile": YES Checking for function "mkstemp": YES Checking for function "mallinfo": YES Checking for function "round": YES Checking for function "rint": YES Checking for function "log2": YES Checking for function "exp2": YES Checking for function "sincos": YES Header <math.h> has symbol "isinf": YES Header <math.h> has symbol "isnan": YES Compiler for C supports argument -fno-strict-aliasing: YES Compiler for C supports argument -Wpointer-arith: YES Compiler for C supports argument -Wmissing-declarations: YES Compiler for C supports argument -Wimplicit-function-declaration: YES Compiler for C supports argument -Wformat=2: YES Compiler for C supports argument -Wformat-nonliteral: YES Compiler for C supports argument -Wformat-security: YES Compiler for C supports argument -Wstrict-prototypes: YES Compiler for C supports argument -Wmissing-prototypes: YES Compiler for C supports argument -Wnested-externs: YES Compiler for C supports argument -Wold-style-definition: YES Compiler for C supports argument -Wundef: YES Compiler for C supports argument -Wunused: YES Compiler for C supports argument -Wcast-align: YES Compiler for C supports argument -Wmissing-noreturn: YES Compiler for C supports argument -Wmissing-format-attribute: YES Compiler for C supports argument -Wmissing-include-dirs: YES Compiler for C supports argument -Wlogical-op: YES Compiler for C supports argument -Wswitch-default: YES Compiler for C supports argument -Wswitch-enum: YES Compiler for C supports argument -Wignored-qualifiers: YES Compiler for C supports argument -Werror=redundant-decls: YES Compiler for C supports argument -Werror=implicit: YES Compiler for C supports argument -Werror=nonnull: YES Compiler for C supports argument -Werror=init-self: YES Compiler for C supports argument -Werror=main: YES Compiler for C supports argument -Werror=missing-braces: YES Compiler for C supports argument -Werror=sequence-point: YES Compiler for C supports argument -Werror=return-type: YES Compiler for C supports argument -Werror=trigraphs: YES Compiler for C supports argument -Werror=array-bounds: YES Compiler for C supports argument -Werror=write-strings: YES Compiler for C supports argument -Werror=address: YES Compiler for C supports argument -Werror=int-to-pointer-cast: YES Compiler for C supports argument -Werror=pointer-to-int-cast: YES Compiler for C supports argument -Werror=empty-body: YES Compiler for C supports argument -Werror=write-strings: YES Compiler for C supports argument -Wl,-Bsymbolic: YES Compiler for C supports argument -Wl,-z,relro: YES Compiler for C supports argument -Wl,-z,now: YES Found pkg-config: /usr/bin/pkg-config (0.29.2) Native dependency glib-2.0 found: YES 2.54.3 Native dependency gobject-2.0 found: YES 2.54.3 Native dependency gio-unix-2.0 found: YES 2.54.3 Native dependency gmodule-2.0 found: YES 2.54.3 Native dependency cairo found: YES 1.14.10 Native dependency cairo-gobject found: YES 1.14.10 Native dependency pango found: YES 1.41.0 Native dependency pangoft2 found: YES 1.41.0 Native dependency pangocairo found: YES 1.41.0 Native dependency gdk-pixbuf-2.0 found: YES 2.36.10 Native dependency epoxy found: YES 1.4.3 Native dependency atk found: YES 2.26.0 Native dependency harfbuzz found: YES 1.5.1 Native dependency xkbcommon found: YES 0.7.1 Native dependency graphene-gobject-1.0 found: YES 1.7.1 Native dependency iso-codes found: YES 3.75 Native dependency cairo-xlib found: YES 1.14.10 Dependency cairo found: YES (cached) Native dependency wayland-client found: YES 1.14.0 Native dependency wayland-protocols found: YES 1.12 Native dependency wayland-cursor found: YES 1.14.0 Native dependency wayland-egl found: YES 17.3.1 Native dependency xrandr found: YES 1.5.1 Native dependency x11 found: YES 1.6.5 Native dependency xrender found: YES 0.9.10 Native dependency xi found: YES 1.7.9 Native dependency xext found: YES 1.3.3 Native dependency xcursor found: YES 1.1.15 Native dependency xdamage found: YES 1.1.4 Native dependency xfixes found: YES 5.0.3 Native dependency xcomposite found: YES 0.4.4 Native dependency fontconfig found: YES 2.12.1 Native dependency atk-bridge-2.0 found: YES 2.26.1 Checking for function "XkbQueryExtension": YES Checking for function "XSyncQueryExtension": YES Checking for function "XGetEventData": YES Has header "X11/extensions/XInput2.h": YES Checking for function "XIAllowTouchEvents": YES Checking whether type "XIScrollClassInfo" has member "number": YES Native dependency xinerama found: YES 1.1.3 Header <X11/extensions/Xinerama.h> has symbol "XineramaQueryExtension": YES Library intl found: NO Checking for function "bind_textdomain_codeset": YES Library vulkan found: YES Checking for function "vkCreateInstance": YES Has header "vulkan/vulkan.h": YES Native dependency gmodule-no-export-2.0 found: YES 2.54.3 Program gen-gdk-gresources-xml.py found: YES (/usr/bin/env python3 /run/media/vistaus/MicroSD/Apps/gtk+/gdk/gen-gdk-gresources-xml.py) Configuring gdk.gresource.xml with command Native dependency glib-2.0 found: YES 2.54.3 Program glib-mkenums found: YES (/usr/bin/glib-mkenums) Program glib-genmarshal found: YES (/usr/bin/glib-genmarshal) Configuring gdkconfig.h using configuration Configuring gdkversionmacros.h using configuration Checking for function "shm_open": NO Checking for function "shm_open": YES Library rt found: YES Program wayland-scanner found: YES (/usr/bin/wayland-scanner) Program genprotocolfiles.py found: YES (/run/media/vistaus/MicroSD/Apps/gtk+/gdk/wayland/genprotocolfiles.py) Program glslc found: NO Program gen-gsk-gresources-xml.py found: YES (/usr/bin/env python3 /run/media/vistaus/MicroSD/Apps/gtk+/gsk/gen-gsk-gresources-xml.py) Configuring gsk.resources.xml with command Program gen-gtk-gresources-xml.py found: YES (/usr/bin/env python3 /run/media/vistaus/MicroSD/Apps/gtk+/gtk/gen-gtk-gresources-xml.py) Configuring gtk.gresources.xml with command Program sassc found: YES (/usr/bin/sassc) Program gdbus-codegen found: YES (/usr/bin/gdbus-codegen) Program gentypefuncs.py found: YES (/usr/bin/env python3 /run/media/vistaus/MicroSD/Apps/gtk+/gtk/gentypefuncs.py) Configuring gtkversion.h using configuration Dependency x11 found: YES (cached) Program glib-compile-schemas found: YES (/usr/bin/glib-compile-schemas) Has header "langinfo.h": YES Header <langinfo.h> has symbol "_NL_MEASUREMENT_MEASUREMENT": YES Header <langinfo.h> has symbol "_NL_PAPER_HEIGHT": YES Header <langinfo.h> has symbol "_NL_PAPER_WIDTH": YES Header <langinfo.h> has symbol "_NL_TIME_FIRST_WEEKDAY": YES Program g-ir-scanner found: YES (/usr/bin/g-ir-scanner) Program g-ir-compiler found: YES (/usr/bin/g-ir-compiler) Native dependency gobject-introspection-1.0 found: YES 1.54.1 Has header "cups/cups.h": NO Library libpapi found: NO Native dependency rest-0.7 found: YES 0.8.0 Native dependency json-glib-1.0 found: YES 1.4.2 Has header "cairo-pdf.h": YES Has header "cairo-ps.h": YES Has header "cairo-svg.h": YES Message: Print backends: file cloudprint lpr Native C++ compiler: c++ (gcc 7.2.0 "c++ (Solus) 7.2.0") Program bash found: YES (/bin/bash) Configuring simplify using configuration Configuring settings using configuration Program geninclude.py found: YES (/run/media/vistaus/MicroSD/Apps/gtk+/demos/gtk-demo/geninclude.py) Configuring config.h using configuration Configuring gtk+-4.0.pc using configuration Configuring gtk+-wayland-4.0.pc using configuration Configuring gtk+-x11-4.0.pc using configuration Configuring gtk+-unix-print-4.0.pc using configuration Message: ------ GTK+ 3.93.0 (4.0) Enabled backends: wayland x11 Vulkan support: true Tests: true Documentation: false Demos: true Directories: prefix: /usr includedir: /usr/include libdir: /usr/lib64 datadir: /usr/share ------ Program build-aux/meson/post-install.sh found: YES (/run/media/vistaus/MicroSD/Apps/gtk+/build-aux/meson/post-install.sh) Build targets in project: 335 Found ninja-1.8.2.git at /usr/bin/ninja [I] ╭─vistaus@solus /run/media/vistaus/MicroSD/Apps/gtk+/build ‹system› <master*> ╰─$ ninja -j3 [3/1322] Generating gdkmarshalers_c with a custom command. INFO: Reading ../gdk/gdkmarshalers.list... [5/1322] Generating gdkmarshalers_h with a custom command. INFO: Reading ../gdk/gdkmarshalers.list... [7/1322] Generating gtk-primary-selection source with a custom command. FAILED: gdk/wayland/gtk-primary-selection-protocol.c /run/media/vistaus/MicroSD/Apps/gtk+/gdk/wayland/genprotocolfiles.py /usr/bin/wayland-scanner ../gdk/wayland/protocol/gtk-primary-selection.xml gdk/wayland/gtk-primary-selection-protocol.c code Traceback (most recent call last):
+ Trace 238332
content = content_file.read()
return codecs.ascii_decode(input, self.errors)[0]
[8/1322] Generating gtk-primary-selection client header with a custom command. FAILED: gdk/wayland/gtk-primary-selection-client-protocol.h /run/media/vistaus/MicroSD/Apps/gtk+/gdk/wayland/genprotocolfiles.py /usr/bin/wayland-scanner ../gdk/wayland/protocol/gtk-primary-selection.xml gdk/wayland/gtk-primary-selection-client-protocol.h client-header Traceback (most recent call last): File "/run/media/vistaus/MicroSD/Apps/gtk+/gdk/wayland/genprotocolfiles.py", line 23, in <module> content = content_file.read() File "/usr/lib/python3.5/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 3274: ordinal not in range(128) [9/1322] Generating gdkenumtypes.h with a meson_exe.py custom command. ninja: build stopped: subcommand failed. [I] ╭─vistaus@solus /run/media/vistaus/MicroSD/Apps/gtk+/build ‹system› <master*> ╰─$
Anyone?
Looks like you are trying to build the Wayland backend on Windows ? I don't know if this is very likely to work, tbh.
(In reply to Matthias Clasen from comment #8) > Looks like you are trying to build the Wayland backend on Windows ? > I don't know if this is very likely to work, tbh. Windows????? As I said in the OP, I'm using Solus Linux.
Also, I'm not sure Wayland is the only problem as it also fails to compile when I disable the Wayland backend in meson.build Program build-aux/meson/post-install.sh found: YES (/run/media/vistaus/MicroSD/Apps/gtk+/build-aux/meson/post-install.sh) Build targets in project: 318 Found ninja-1.8.2.git at /usr/bin/ninja [2/1282] Generating gdkmarshalers_h with a custom command. INFO: Reading ../gdk/gdkmarshalers.list... [3/1282] Generating gdkmarshalers_c with a custom command. INFO: Reading ../gdk/gdkmarshalers.list... [131/1282] Generating gtkmarshalers_c with a custom command. INFO: Reading ../gtk/gtkmarshalers.list... [133/1282] Generating gtkmarshalers_h with a custom command. INFO: Reading ../gtk/gtkmarshalers.list... [141/1282] Generating gtk4 demo header with a custom command. FAILED: demos/gtk-demo/demos.h /run/media/vistaus/MicroSD/Apps/gtk+/demos/gtk-demo/geninclude.py demos/gtk-demo/demos.h ../demos/gtk-demo/application_demo.c ../demos/gtk-demo/assistant.c ../demos/gtk-demo/builder.c ../demos/gtk-demo/button_box.c ../demos/gtk-demo/changedisplay.c ../demos/gtk-demo/clipboard.c ../demos/gtk-demo/colorsel.c ../demos/gtk-demo/combobox.c ../demos/gtk-demo/css_accordion.c ../demos/gtk-demo/css_basics.c ../demos/gtk-demo/css_blendmodes.c ../demos/gtk-demo/css_multiplebgs.c ../demos/gtk-demo/css_pixbufs.c ../demos/gtk-demo/css_shadows.c ../demos/gtk-demo/cursors.c ../demos/gtk-demo/dialog.c ../demos/gtk-demo/drawingarea.c ../demos/gtk-demo/dnd.c ../demos/gtk-demo/editable_cells.c ../demos/gtk-demo/entry_buffer.c ../demos/gtk-demo/entry_completion.c ../demos/gtk-demo/event_axes.c ../demos/gtk-demo/expander.c ../demos/gtk-demo/filtermodel.c ../demos/gtk-demo/fishbowl.c ../demos/gtk-demo/widgetbowl.c ../demos/gtk-demo/foreigndrawing.c ../demos/gtk-demo/gestures.c ../demos/gtk-demo/glarea.c ../demos/gtk-demo/headerbar.c ../demos/gtk-demo/hypertext.c ../demos/gtk-demo/iconview.c ../demos/gtk-demo/iconview_edit.c ../demos/gtk-demo/images.c ../demos/gtk-demo/infobar.c ../demos/gtk-demo/links.c ../demos/gtk-demo/listbox.c ../demos/gtk-demo/flowbox.c ../demos/gtk-demo/list_store.c ../demos/gtk-demo/markup.c ../demos/gtk-demo/menus.c ../demos/gtk-demo/modelbutton.c ../demos/gtk-demo/overlay.c ../demos/gtk-demo/overlay2.c ../demos/gtk-demo/panes.c ../demos/gtk-demo/pickers.c ../demos/gtk-demo/pixbufs.c ../demos/gtk-demo/popover.c ../demos/gtk-demo/printing.c ../demos/gtk-demo/revealer.c ../demos/gtk-demo/rotated_text.c ../demos/gtk-demo/scale.c ../demos/gtk-demo/search_entry.c ../demos/gtk-demo/search_entry2.c ../demos/gtk-demo/shortcuts.c ../demos/gtk-demo/sidebar.c ../demos/gtk-demo/sizegroup.c ../demos/gtk-demo/spinbutton.c ../demos/gtk-demo/spinner.c ../demos/gtk-demo/stack.c ../demos/gtk-demo/tabs.c ../demos/gtk-demo/textmask.c ../demos/gtk-demo/textview.c ../demos/gtk-demo/textscroll.c ../demos/gtk-demo/theming_style_classes.c ../demos/gtk-demo/toolpalette.c ../demos/gtk-demo/transparent.c ../demos/gtk-demo/tree_store.c ../demos/gtk-demo/font_features.c ../demos/gtk-demo/pagesetup.c Traceback (most recent call last):
+ Trace 238340
title = f.readline().replace("/*", "").strip()
[143/1282] Generating gtktypebuiltins.h with a meson_exe.py custom command. ninja: build stopped: subcommand failed. [I] ╭─vistaus@solus /run/media/vistaus/MicroSD/Apps/gtk+/build ‹system› <master*> ╰─$
I guess my brain mis-expanded MicroSD to MicroSoft, sorry
In any case, it works here, so I am not sure how much we can help. There appears to a problem with encodings on your system - whats the locale ?
It's okay :) My locale is en_US.
Can you try again with en_US.UTF-8, instead of an ASCII-only locale?
I'm sorry if I'm asking a dumb question, but how do I do that?
Btw, I also disabled demos now in meson.build So both Wayland and demos are disabled in meson.build and now compiling succeeds.
(In reply to Heimen Stoffels from comment #15) > I'm sorry if I'm asking a dumb question, but how do I do that? Typically, your distribution should come with locales pregenerated — as shipping only non-Unicode locales in 2018 is something of a niche scenario. You should try with: export LANG=en_US.UTF-8 and re-run the build. If you don't have the en_US.UTF-8 locale available on your machine, you'll have to ask on an help forum for your Linux distribution. Both the build failures happen because Python scripts are parsing files that contain UTF-8 characters, and Python uses the current locale to determine the default encoding to be used — in your case, ASCII.
Created attachment 367034 [details] [review] Enforce UTF-8 encoding when opening C files We have a couple of Python 3.x scripts that parse C files, and since C does not have any encoding, we need to force one ourselves, to avoid the case when we're running the build in a non-UTF-8 locale.
The patch in attachment 367034 [details] [review] should solve the issue, but testing with a UTF-8 locale is easier.
But strangely enough, this is the only piece of software I have trouble compiling with. Every other piece of software that I (regularly) compile compiles fine with the default setting. I'm using the Solus default settings. export LANG=en_US.UTF-8 has fixed the compiling but now the Fish theme that I'm using is messed up. Still strange that I never ran into this issue with other apps. Also, why is ASCII even the default Solus encoding? (not sure if you guys know, but maybe you can take a guess)
Review of attachment 367034 [details] [review]: makes sense to me. It is amazing that python is doing so much worse than C wrt to encodings....
I've fixed the language issue in the meantime, btw. But compiling started failing again. I've even checked out a totally new copy of GTK git master, but it didn't help. Here's the output: ─vistaus@solus /run/media/vistaus/MicroSD/Apps/gtk/build ‹system› <master*> ╰─$ ninja -j3 [5/1314] Generating gdkmarshalers_c with a custom command. INFO: Reading ../gdk/gdkmarshalers.list... [6/1314] Generating gdkmarshalers_h with a custom command. INFO: Reading ../gdk/gdkmarshalers.list... [174/1314] Generating gtkmarshalers_c with a custom command. INFO: Reading ../gtk/gtkmarshalers.list... [175/1314] Generating gtkmarshalers_h with a custom command. INFO: Reading ../gtk/gtkmarshalers.list... [279/1314] Compiling C object 'gtk/gtk-4@sha/gtkcssprovider.c.o'. ../gtk/gtkcssprovider.c: In functie ‘gtk_css_provider_load_internal’: ../gtk/gtkcssprovider.c:1395:15: warning: implicit declaration of function ‘g_file_load_bytes’; did you mean ‘g_file_load_contents’? [-Wimplicit-function-declaration] bytes = g_file_load_bytes (file, NULL, NULL, &load_error); ^~~~~~~~~~~~~~~~~ g_file_load_contents ../gtk/gtkcssprovider.c:1395:15: warning: geneste declaratie van ‘g_file_load_bytes’ als extern [-Wnested-externs] ../gtk/gtkcssprovider.c:1395:13: warning: assignment makes pointer from integer without a cast [-Wint-conversion] bytes = g_file_load_bytes (file, NULL, NULL, &load_error); ^ [704/1314] Linking target gtk/libgtk-4.so.0.9300.0. FAILED: gtk/libgtk-4.so.0.9300.0 cc -o gtk/libgtk-4.so.0.9300.0 'gtk/gtk-4@sha/meson-generated_.._gtkdbusgenerated.c.o' 'gtk/gtk-4@sha/meson-generated_.._gtkresources.c.o' 'gtk/gtk-4@sha/meson-generated_.._gtkmarshalers.c.o' 'gtk/gtk-4@sha/meson-generated_.._gtkprivatetypebuiltins.c.o' 'gtk/gtk-4@sha/meson-generated_.._gtktypebuiltins.c.o' 'gtk/gtk-4@sha/gtkaboutdialog.c.o' 'gtk/gtk-4@sha/gtkaccelgroup.c.o' 'gtk/gtk-4@sha/gtkaccellabel.c.o' 'gtk/gtk-4@sha/gtkaccelmap.c.o' 'gtk/gtk-4@sha/gtkaccessible.c.o' 'gtk/gtk-4@sha/gtkactionable.c.o' 'gtk/gtk-4@sha/gtkactionbar.c.o' 'gtk/gtk-4@sha/gtkadjustment.c.o' 'gtk/gtk-4@sha/gtkappchooser.c.o' 'gtk/gtk-4@sha/gtkappchooserbutton.c.o' 'gtk/gtk-4@sha/gtkappchooserdialog.c.o' 'gtk/gtk-4@sha/gtkappchooserwidget.c.o' 'gtk/gtk-4@sha/gtkapplication.c.o' 'gtk/gtk-4@sha/gtkapplicationwindow.c.o' 'gtk/gtk-4@sha/gtkaspectframe.c.o' 'gtk/gtk-4@sha/gtkassistant.c.o' 'gtk/gtk-4@sha/gtkbbox.c.o' 'gtk/gtk-4@sha/gtkbin.c.o' 'gtk/gtk-4@sha/gtkbindings.c.o' 'gtk/gtk-4@sha/gtkborder.c.o' 'gtk/gtk-4@sha/gtkbox.c.o' 'gtk/gtk-4@sha/gtkbuildable.c.o' 'gtk/gtk-4@sha/gtkbuilder.c.o' 'gtk/gtk-4@sha/gtkbutton.c.o' 'gtk/gtk-4@sha/gtkcalendar.c.o' 'gtk/gtk-4@sha/gtkcellarea.c.o' 'gtk/gtk-4@sha/gtkcellareabox.c.o' 'gtk/gtk-4@sha/gtkcellareacontext.c.o' 'gtk/gtk-4@sha/gtkcelleditable.c.o' 'gtk/gtk-4@sha/gtkcelllayout.c.o' 'gtk/gtk-4@sha/gtkcellrenderer.c.o' 'gtk/gtk-4@sha/gtkcellrendereraccel.c.o' 'gtk/gtk-4@sha/gtkcellrenderercombo.c.o' 'gtk/gtk-4@sha/gtkcellrendererpixbuf.c.o' 'gtk/gtk-4@sha/gtkcellrendererprogress.c.o' 'gtk/gtk-4@sha/gtkcellrendererspin.c.o' 'gtk/gtk-4@sha/gtkcellrendererspinner.c.o' 'gtk/gtk-4@sha/gtkcellrenderertext.c.o' 'gtk/gtk-4@sha/gtkcellrenderertoggle.c.o' 'gtk/gtk-4@sha/gtkcellview.c.o' 'gtk/gtk-4@sha/gtkcenterbox.c.o' 'gtk/gtk-4@sha/gtkcheckbutton.c.o' 'gtk/gtk-4@sha/gtkcheckmenuitem.c.o' 'gtk/gtk-4@sha/gtkcolorbutton.c.o' 'gtk/gtk-4@sha/gtkcolorchooser.c.o' 'gtk/gtk-4@sha/gtkcolorchooserdialog.c.o' 'gtk/gtk-4@sha/gtkcolorchooserwidget.c.o' 'gtk/gtk-4@sha/gtkcolorutils.c.o' 'gtk/gtk-4@sha/gtkcombobox.c.o' 'gtk/gtk-4@sha/gtkcomboboxtext.c.o' 'gtk/gtk-4@sha/gtkcomposetable.c.o' 'gtk/gtk-4@sha/gtkcontainer.c.o' 'gtk/gtk-4@sha/gtkcssprovider.c.o' 'gtk/gtk-4@sha/gtkcsssection.c.o' 'gtk/gtk-4@sha/gtkdialog.c.o' 'gtk/gtk-4@sha/gtkdragsource.c.o' 'gtk/gtk-4@sha/gtkdrawingarea.c.o' 'gtk/gtk-4@sha/gtkeditable.c.o' 'gtk/gtk-4@sha/gtkemojichooser.c.o' 'gtk/gtk-4@sha/gtkentry.c.o' 'gtk/gtk-4@sha/gtkentrybuffer.c.o' 'gtk/gtk-4@sha/gtkentrycompletion.c.o' 'gtk/gtk-4@sha/gtkeventcontroller.c.o' 'gtk/gtk-4@sha/gtkeventcontrollermotion.c.o' 'gtk/gtk-4@sha/gtkeventcontrollerscroll.c.o' 'gtk/gtk-4@sha/gtkexpander.c.o' 'gtk/gtk-4@sha/gtkfilechooser.c.o' 'gtk/gtk-4@sha/gtkfilechooserbutton.c.o' 'gtk/gtk-4@sha/gtkfilechooserdialog.c.o' 'gtk/gtk-4@sha/gtkfilechoosernative.c.o' 'gtk/gtk-4@sha/gtkfilechooserwidget.c.o' 'gtk/gtk-4@sha/gtkfilefilter.c.o' 'gtk/gtk-4@sha/gtkfixed.c.o' 'gtk/gtk-4@sha/gtkflowbox.c.o' 'gtk/gtk-4@sha/gtkfontbutton.c.o' 'gtk/gtk-4@sha/gtkfontchooser.c.o' 'gtk/gtk-4@sha/gtkfontchooserdialog.c.o' 'gtk/gtk-4@sha/gtkfontchooserutils.c.o' 'gtk/gtk-4@sha/gtkfontchooserwidget.c.o' 'gtk/gtk-4@sha/gtkframe.c.o' 'gtk/gtk-4@sha/gtkgesture.c.o' 'gtk/gtk-4@sha/gtkgesturedrag.c.o' 'gtk/gtk-4@sha/gtkgesturelongpress.c.o' 'gtk/gtk-4@sha/gtkgesturemultipress.c.o' 'gtk/gtk-4@sha/gtkgesturepan.c.o' 'gtk/gtk-4@sha/gtkgesturerotate.c.o' 'gtk/gtk-4@sha/gtkgesturesingle.c.o' 'gtk/gtk-4@sha/gtkgestureswipe.c.o' 'gtk/gtk-4@sha/gtkgesturezoom.c.o' 'gtk/gtk-4@sha/gtkglarea.c.o' 'gtk/gtk-4@sha/gtkgrid.c.o' 'gtk/gtk-4@sha/gtkheaderbar.c.o' 'gtk/gtk-4@sha/gtkicontheme.c.o' 'gtk/gtk-4@sha/gtkiconview.c.o' 'gtk/gtk-4@sha/gtkimage.c.o' 'gtk/gtk-4@sha/gtkimagedefinition.c.o' 'gtk/gtk-4@sha/gtkimcontext.c.o' 'gtk/gtk-4@sha/gtkimcontextsimple.c.o' 'gtk/gtk-4@sha/gtkimmodule.c.o' 'gtk/gtk-4@sha/gtkimmulticontext.c.o' 'gtk/gtk-4@sha/gtkinfobar.c.o' 'gtk/gtk-4@sha/gtkinvisible.c.o' 'gtk/gtk-4@sha/gtklabel.c.o' 'gtk/gtk-4@sha/gtklayout.c.o' 'gtk/gtk-4@sha/gtklevelbar.c.o' 'gtk/gtk-4@sha/gtklinkbutton.c.o' 'gtk/gtk-4@sha/gtklistbox.c.o' 'gtk/gtk-4@sha/gtkliststore.c.o' 'gtk/gtk-4@sha/gtklockbutton.c.o' 'gtk/gtk-4@sha/gtkmain.c.o' 'gtk/gtk-4@sha/gtkmenu.c.o' 'gtk/gtk-4@sha/gtkmenubar.c.o' 'gtk/gtk-4@sha/gtkmenubutton.c.o' 'gtk/gtk-4@sha/gtkmenuitem.c.o' 'gtk/gtk-4@sha/gtkmenushell.c.o' 'gtk/gtk-4@sha/gtkmenutoolbutton.c.o' 'gtk/gtk-4@sha/gtkmessagedialog.c.o' 'gtk/gtk-4@sha/gtkmodelbutton.c.o' 'gtk/gtk-4@sha/gtkmodelmenuitem.c.o' 'gtk/gtk-4@sha/gtkmodules.c.o' 'gtk/gtk-4@sha/gtkmountoperation.c.o' 'gtk/gtk-4@sha/gtknativedialog.c.o' 'gtk/gtk-4@sha/gtknotebook.c.o' 'gtk/gtk-4@sha/gtkorientable.c.o' 'gtk/gtk-4@sha/gtkoverlay.c.o' 'gtk/gtk-4@sha/gtkpadcontroller.c.o' 'gtk/gtk-4@sha/gtkpagesetup.c.o' 'gtk/gtk-4@sha/gtkpaned.c.o' 'gtk/gtk-4@sha/gtkpapersize.c.o' 'gtk/gtk-4@sha/gtkpopover.c.o' 'gtk/gtk-4@sha/gtkpopovermenu.c.o' 'gtk/gtk-4@sha/gtkprintcontext.c.o' 'gtk/gtk-4@sha/gtkprintoperation.c.o' 'gtk/gtk-4@sha/gtkprintoperationpreview.c.o' 'gtk/gtk-4@sha/gtkprintsettings.c.o' 'gtk/gtk-4@sha/gtkprogressbar.c.o' 'gtk/gtk-4@sha/gtkradiobutton.c.o' 'gtk/gtk-4@sha/gtkradiomenuitem.c.o' 'gtk/gtk-4@sha/gtkradiotoolbutton.c.o' 'gtk/gtk-4@sha/gtkrange.c.o' 'gtk/gtk-4@sha/gtkrbtree.c.o' 'gtk/gtk-4@sha/gtkrecentmanager.c.o' 'gtk/gtk-4@sha/gtkrender.c.o' 'gtk/gtk-4@sha/gtkrenderbackground.c.o' 'gtk/gtk-4@sha/gtkrenderborder.c.o' 'gtk/gtk-4@sha/gtkrendericon.c.o' 'gtk/gtk-4@sha/gtkrevealer.c.o' 'gtk/gtk-4@sha/gtkroundedbox.c.o' 'gtk/gtk-4@sha/gtkscale.c.o' 'gtk/gtk-4@sha/gtkscalebutton.c.o' 'gtk/gtk-4@sha/gtkscrollable.c.o' 'gtk/gtk-4@sha/gtkscrollbar.c.o' 'gtk/gtk-4@sha/gtkscrolledwindow.c.o' 'gtk/gtk-4@sha/gtksearchbar.c.o' 'gtk/gtk-4@sha/gtksearchentry.c.o' 'gtk/gtk-4@sha/gtkselection.c.o' 'gtk/gtk-4@sha/gtkseparator.c.o' 'gtk/gtk-4@sha/gtkseparatormenuitem.c.o' 'gtk/gtk-4@sha/gtkseparatortoolitem.c.o' 'gtk/gtk-4@sha/gtksettings.c.o' 'gtk/gtk-4@sha/gtkshortcutlabel.c.o' 'gtk/gtk-4@sha/gtkshortcutsgroup.c.o' 'gtk/gtk-4@sha/gtkshortcutssection.c.o' 'gtk/gtk-4@sha/gtkshortcutsshortcut.c.o' 'gtk/gtk-4@sha/gtkshortcutswindow.c.o' 'gtk/gtk-4@sha/gtkshow.c.o' 'gtk/gtk-4@sha/gtksidebarrow.c.o' 'gtk/gtk-4@sha/gtksizegroup.c.o' 'gtk/gtk-4@sha/gtksizerequest.c.o' 'gtk/gtk-4@sha/gtkspinbutton.c.o' 'gtk/gtk-4@sha/gtksnapshot.c.o' 'gtk/gtk-4@sha/gtkspinner.c.o' 'gtk/gtk-4@sha/gtkstack.c.o' 'gtk/gtk-4@sha/gtkstacksidebar.c.o' 'gtk/gtk-4@sha/gtkstackswitcher.c.o' 'gtk/gtk-4@sha/gtkstatusbar.c.o' 'gtk/gtk-4@sha/gtkstylecontext.c.o' 'gtk/gtk-4@sha/gtkstyleprovider.c.o' 'gtk/gtk-4@sha/gtkswitch.c.o' 'gtk/gtk-4@sha/gtktestutils.c.o' 'gtk/gtk-4@sha/gtktextattributes.c.o' 'gtk/gtk-4@sha/gtktextbuffer.c.o' 'gtk/gtk-4@sha/gtktextchild.c.o' 'gtk/gtk-4@sha/gtktextdisplay.c.o' 'gtk/gtk-4@sha/gtktexthandle.c.o' 'gtk/gtk-4@sha/gtktextiter.c.o' 'gtk/gtk-4@sha/gtktextlayout.c.o' 'gtk/gtk-4@sha/gtktextmark.c.o' 'gtk/gtk-4@sha/gtktextsegment.c.o' 'gtk/gtk-4@sha/gtktexttag.c.o' 'gtk/gtk-4@sha/gtktexttagtable.c.o' 'gtk/gtk-4@sha/gtktexttypes.c.o' 'gtk/gtk-4@sha/gtktextutil.c.o' 'gtk/gtk-4@sha/gtktextview.c.o' 'gtk/gtk-4@sha/gtktogglebutton.c.o' 'gtk/gtk-4@sha/gtktoggletoolbutton.c.o' 'gtk/gtk-4@sha/gtktoolbar.c.o' 'gtk/gtk-4@sha/gtktoolbutton.c.o' 'gtk/gtk-4@sha/gtktoolitem.c.o' 'gtk/gtk-4@sha/gtktoolshell.c.o' 'gtk/gtk-4@sha/gtktooltip.c.o' 'gtk/gtk-4@sha/gtktooltipwindow.c.o' 'gtk/gtk-4@sha/gtktreednd.c.o' 'gtk/gtk-4@sha/gtktreemenu.c.o' 'gtk/gtk-4@sha/gtktreemodel.c.o' 'gtk/gtk-4@sha/gtktreemodelfilter.c.o' 'gtk/gtk-4@sha/gtktreemodelsort.c.o' 'gtk/gtk-4@sha/gtktreeselection.c.o' 'gtk/gtk-4@sha/gtktreesortable.c.o' 'gtk/gtk-4@sha/gtktreestore.c.o' 'gtk/gtk-4@sha/gtktreeview.c.o' 'gtk/gtk-4@sha/gtktreeviewcolumn.c.o' 'gtk/gtk-4@sha/gtkutils.c.o' 'gtk/gtk-4@sha/gtkviewport.c.o' 'gtk/gtk-4@sha/gtkvolumebutton.c.o' 'gtk/gtk-4@sha/gtkwidget.c.o' 'gtk/gtk-4@sha/gtkwidgetfocus.c.o' 'gtk/gtk-4@sha/gtkwidgetpath.c.o' 'gtk/gtk-4@sha/gtkwindow.c.o' 'gtk/gtk-4@sha/gtkwindowgroup.c.o' 'gtk/gtk-4@sha/fallback-c89.c.o' 'gtk/gtk-4@sha/fnmatch.c.o' 'gtk/gtk-4@sha/language-names.c.o' 'gtk/gtk-4@sha/script-names.c.o' 'gtk/gtk-4@sha/gdkpixbufutils.c.o' 'gtk/gtk-4@sha/gtkactionhelper.c.o' 'gtk/gtk-4@sha/gtkactionmuxer.c.o' 'gtk/gtk-4@sha/gtkactionobservable.c.o' 'gtk/gtk-4@sha/gtkactionobserver.c.o' 'gtk/gtk-4@sha/gtkallocatedbitmask.c.o' 'gtk/gtk-4@sha/gtkapplicationaccels.c.o' 'gtk/gtk-4@sha/gtkapplicationimpl.c.o' 'gtk/gtk-4@sha/gtkbookmarksmanager.c.o' 'gtk/gtk-4@sha/gtkbuilder-menus.c.o' 'gtk/gtk-4@sha/gtkbuilderparser.c.o' 'gtk/gtk-4@sha/gtkcellareaboxcontext.c.o' 'gtk/gtk-4@sha/gtkcoloreditor.c.o' 'gtk/gtk-4@sha/gtkcolorplane.c.o' 'gtk/gtk-4@sha/gtkcolorscale.c.o' 'gtk/gtk-4@sha/gtkcolorswatch.c.o' 'gtk/gtk-4@sha/gtkcssanimatedstyle.c.o' 'gtk/gtk-4@sha/gtkcssanimation.c.o' 'gtk/gtk-4@sha/gtkcssarrayvalue.c.o' 'gtk/gtk-4@sha/gtkcssbgsizevalue.c.o' 'gtk/gtk-4@sha/gtkcssbordervalue.c.o' 'gtk/gtk-4@sha/gtkcsscalcvalue.c.o' 'gtk/gtk-4@sha/gtkcsscolorvalue.c.o' 'gtk/gtk-4@sha/gtkcsscornervalue.c.o' 'gtk/gtk-4@sha/gtkcssdimensionvalue.c.o' 'gtk/gtk-4@sha/gtkcsseasevalue.c.o' 'gtk/gtk-4@sha/gtkcssenumvalue.c.o' 'gtk/gtk-4@sha/gtkcssfiltervalue.c.o' 'gtk/gtk-4@sha/gtkcssfontfeaturesvalue.c.o' 'gtk/gtk-4@sha/gtkcssfontvariationsvalue.c.o' 'gtk/gtk-4@sha/gtkcssiconthemevalue.c.o' 'gtk/gtk-4@sha/gtkcssimage.c.o' 'gtk/gtk-4@sha/gtkcssimagebuiltin.c.o' 'gtk/gtk-4@sha/gtkcssimagecrossfade.c.o' 'gtk/gtk-4@sha/gtkcssimagefallback.c.o' 'gtk/gtk-4@sha/gtkcssimageicontheme.c.o' 'gtk/gtk-4@sha/gtkcssimagelinear.c.o' 'gtk/gtk-4@sha/gtkcssimageradial.c.o' 'gtk/gtk-4@sha/gtkcssimagerecolor.c.o' 'gtk/gtk-4@sha/gtkcssimagescaled.c.o' 'gtk/gtk-4@sha/gtkcssimagesurface.c.o' 'gtk/gtk-4@sha/gtkcssimageurl.c.o' 'gtk/gtk-4@sha/gtkcssimagevalue.c.o' 'gtk/gtk-4@sha/gtkcssimagewin32.c.o' 'gtk/gtk-4@sha/gtkcssinheritvalue.c.o' 'gtk/gtk-4@sha/gtkcssinitialvalue.c.o' 'gtk/gtk-4@sha/gtkcsskeyframes.c.o' 'gtk/gtk-4@sha/gtkcsslookup.c.o' 'gtk/gtk-4@sha/gtkcssmatcher.c.o' 'gtk/gtk-4@sha/gtkcssnode.c.o' 'gtk/gtk-4@sha/gtkcssnodedeclaration.c.o' 'gtk/gtk-4@sha/gtkcssnodestylecache.c.o' 'gtk/gtk-4@sha/gtkcssnumbervalue.c.o' 'gtk/gtk-4@sha/gtkcsspalettevalue.c.o' 'gtk/gtk-4@sha/gtkcssparser.c.o' 'gtk/gtk-4@sha/gtkcsspathnode.c.o' 'gtk/gtk-4@sha/gtkcsspositionvalue.c.o' 'gtk/gtk-4@sha/gtkcssrepeatvalue.c.o' 'gtk/gtk-4@sha/gtkcssrgbavalue.c.o' 'gtk/gtk-4@sha/gtkcssselector.c.o' 'gtk/gtk-4@sha/gtkcssshadowsvalue.c.o' 'gtk/gtk-4@sha/gtkcssshadowvalue.c.o' 'gtk/gtk-4@sha/gtkcssshorthandproperty.c.o' 'gtk/gtk-4@sha/gtkcssshorthandpropertyimpl.c.o' 'gtk/gtk-4@sha/gtkcssstaticstyle.c.o' 'gtk/gtk-4@sha/gtkcssstringvalue.c.o' 'gtk/gtk-4@sha/gtkcssstyle.c.o' 'gtk/gtk-4@sha/gtkcssstylechange.c.o' 'gtk/gtk-4@sha/gtkcssstyleproperty.c.o' 'gtk/gtk-4@sha/gtkcssstylepropertyimpl.c.o' 'gtk/gtk-4@sha/gtkcsstransformvalue.c.o' 'gtk/gtk-4@sha/gtkcsstransientnode.c.o' 'gtk/gtk-4@sha/gtkcsstransition.c.o' 'gtk/gtk-4@sha/gtkcsstypes.c.o' 'gtk/gtk-4@sha/gtkcssunsetvalue.c.o' 'gtk/gtk-4@sha/gtkcssvalue.c.o' 'gtk/gtk-4@sha/gtkcsswidgetnode.c.o' 'gtk/gtk-4@sha/gtkcsswin32sizevalue.c.o' 'gtk/gtk-4@sha/gtkdebugupdates.c.o' 'gtk/gtk-4@sha/gtkeventcontrollerlegacy.c.o' 'gtk/gtk-4@sha/gtkfilechooserembed.c.o' 'gtk/gtk-4@sha/gtkfilechooserentry.c.o' 'gtk/gtk-4@sha/gtkfilechoosererrorstack.c.o' 'gtk/gtk-4@sha/gtkfilechoosernativeportal.c.o' 'gtk/gtk-4@sha/gtkfilechooserutils.c.o' 'gtk/gtk-4@sha/gtkfilesystem.c.o' 'gtk/gtk-4@sha/gtkfilesystemmodel.c.o' 'gtk/gtk-4@sha/gtkgizmo.c.o' 'gtk/gtk-4@sha/gtkgladecatalog.c.o' 'gtk/gtk-4@sha/gtkhsla.c.o' 'gtk/gtk-4@sha/gtkicon.c.o' 'gtk/gtk-4@sha/gtkiconcache.c.o' 'gtk/gtk-4@sha/gtkiconcachevalidator.c.o' 'gtk/gtk-4@sha/gtkiconhelper.c.o' 'gtk/gtk-4@sha/gtkkineticscrolling.c.o' 'gtk/gtk-4@sha/gtkkeyhash.c.o' 'gtk/gtk-4@sha/gtkmagnifier.c.o' 'gtk/gtk-4@sha/gtkmenusectionbox.c.o' 'gtk/gtk-4@sha/gtkmenutracker.c.o' 'gtk/gtk-4@sha/gtkmenutrackeritem.c.o' 'gtk/gtk-4@sha/gtkmnemonichash.c.o' 'gtk/gtk-4@sha/gtkpango.c.o' 'gtk/gtk-4@sha/gskpango.c.o' 'gtk/gtk-4@sha/gtkpathbar.c.o' 'gtk/gtk-4@sha/gtkplacessidebar.c.o' 'gtk/gtk-4@sha/gtkplacesview.c.o' 'gtk/gtk-4@sha/gtkplacesviewrow.c.o' 'gtk/gtk-4@sha/gtkpointerfocus.c.o' 'gtk/gtk-4@sha/gtkprintutils.c.o' 'gtk/gtk-4@sha/gtkprivate.c.o' 'gtk/gtk-4@sha/gtkprogresstracker.c.o' 'gtk/gtk-4@sha/gtkquery.c.o' 'gtk/gtk-4@sha/gtksearchengine.c.o' 'gtk/gtk-4@sha/gtksearchenginemodel.c.o' 'gtk/gtk-4@sha/gtksearchenginesimple.c.o' 'gtk/gtk-4@sha/gtksizerequestcache.c.o' 'gtk/gtk-4@sha/gtkstyleanimation.c.o' 'gtk/gtk-4@sha/gtkstylecascade.c.o' 'gtk/gtk-4@sha/gtkstyleproperty.c.o' 'gtk/gtk-4@sha/gtktextbtree.c.o' 'gtk/gtk-4@sha/gtktrashmonitor.c.o' 'gtk/gtk-4@sha/gtktreedatalist.c.o' 'gtk/gtk-4@sha/gtkwin32draw.c.o' 'gtk/gtk-4@sha/gtkwin32theme.c.o' 'gtk/gtk-4@sha/gtkcustompaperunixdialog.c.o' 'gtk/gtk-4@sha/gtkpagesetupunixdialog.c.o' 'gtk/gtk-4@sha/gtkprintbackend.c.o' 'gtk/gtk-4@sha/gtkprinter.c.o' 'gtk/gtk-4@sha/gtkprinteroption.c.o' 'gtk/gtk-4@sha/gtkprinteroptionset.c.o' 'gtk/gtk-4@sha/gtkprinteroptionwidget.c.o' 'gtk/gtk-4@sha/gtkprintjob.c.o' 'gtk/gtk-4@sha/gtkprintoperation-unix.c.o' 'gtk/gtk-4@sha/gtkprintoperation-portal.c.o' 'gtk/gtk-4@sha/gtkprintunixdialog.c.o' 'gtk/gtk-4@sha/gtksearchenginetracker.c.o' 'gtk/gtk-4@sha/gtkapplication-x11.c.o' 'gtk/gtk-4@sha/gtkmountoperation-x11.c.o' 'gtk/gtk-4@sha/gtkapplication-wayland.c.o' 'gtk/gtk-4@sha/gtkapplication-dbus.c.o' 'gtk/gtk-4@sha/gtkdnd.c.o' 'gtk/gtk-4@sha/gtkdragdest.c.o' 'gtk/gtk-4@sha/inspector_action-editor.c.o' 'gtk/gtk-4@sha/inspector_actions.c.o' 'gtk/gtk-4@sha/inspector_cellrenderergraph.c.o' 'gtk/gtk-4@sha/inspector_css-editor.c.o' 'gtk/gtk-4@sha/inspector_css-node-tree.c.o' 'gtk/gtk-4@sha/inspector_data-list.c.o' 'gtk/gtk-4@sha/inspector_general.c.o' 'gtk/gtk-4@sha/inspector_gestures.c.o' 'gtk/gtk-4@sha/inspector_graphdata.c.o' 'gtk/gtk-4@sha/inspector_gtkstackcombo.c.o' 'gtk/gtk-4@sha/inspector_gtktreemodelcssnode.c.o' 'gtk/gtk-4@sha/inspector_gtktreemodelrendernode.c.o' 'gtk/gtk-4@sha/inspector_init.c.o' 'gtk/gtk-4@sha/inspector_inspect-button.c.o' 'gtk/gtk-4@sha/inspector_logs.c.o' 'gtk/gtk-4@sha/inspector_magnifier.c.o' 'gtk/gtk-4@sha/inspector_menu.c.o' 'gtk/gtk-4@sha/inspector_misc-info.c.o' 'gtk/gtk-4@sha/inspector_object-hierarchy.c.o' 'gtk/gtk-4@sha/inspector_object-tree.c.o' 'gtk/gtk-4@sha/inspector_prop-editor.c.o' 'gtk/gtk-4@sha/inspector_prop-list.c.o' 'gtk/gtk-4@sha/inspector_recorder.c.o' 'gtk/gtk-4@sha/inspector_recording.c.o' 'gtk/gtk-4@sha/inspector_renderrecording.c.o' 'gtk/gtk-4@sha/inspector_rendernodeview.c.o' 'gtk/gtk-4@sha/inspector_resource-list.c.o' 'gtk/gtk-4@sha/inspector_selector.c.o' 'gtk/gtk-4@sha/inspector_signals-list.c.o' 'gtk/gtk-4@sha/inspector_size-groups.c.o' 'gtk/gtk-4@sha/inspector_startrecording.c.o' 'gtk/gtk-4@sha/inspector_statistics.c.o' 'gtk/gtk-4@sha/inspector_strv-editor.c.o' 'gtk/gtk-4@sha/inspector_treewalk.c.o' 'gtk/gtk-4@sha/inspector_visual.c.o' 'gtk/gtk-4@sha/inspector_window.c.o' 'gtk/gtk-4@sha/a11y_gtkaccessibility.c.o' 'gtk/gtk-4@sha/a11y_gtkaccessibilityutil.c.o' 'gtk/gtk-4@sha/a11y_gtkbooleancellaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtkbuttonaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtkcellaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtkcellaccessibleparent.c.o' 'gtk/gtk-4@sha/a11y_gtkcheckmenuitemaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtkcolorswatchaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtkcomboboxaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtkcontaineraccessible.c.o' 'gtk/gtk-4@sha/a11y_gtkcontainercellaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtkentryaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtkexpanderaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtkflowboxaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtkflowboxchildaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtkframeaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtkiconviewaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtkimageaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtkimagecellaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtklabelaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtklevelbaraccessible.c.o' 'gtk/gtk-4@sha/a11y_gtklinkbuttonaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtklistboxaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtklistboxrowaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtklockbuttonaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtkmenuaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtkmenubuttonaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtkmenuitemaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtkmenushellaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtknotebookaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtknotebookpageaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtkpanedaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtkpopoveraccessible.c.o' 'gtk/gtk-4@sha/a11y_gtkprogressbaraccessible.c.o' 'gtk/gtk-4@sha/a11y_gtkradiobuttonaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtkradiomenuitemaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtkrangeaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtkrenderercellaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtkscaleaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtkscalebuttonaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtkscrolledwindowaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtkspinbuttonaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtkspinneraccessible.c.o' 'gtk/gtk-4@sha/a11y_gtkstackaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtkstatusbaraccessible.c.o' 'gtk/gtk-4@sha/a11y_gtkswitchaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtktextcellaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtktextviewaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtktogglebuttonaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtktoplevelaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtktreeviewaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtkwidgetaccessible.c.o' 'gtk/gtk-4@sha/a11y_gtkwindowaccessible.c.o' -Wl,--no-undefined -Wl,--as-needed -shared -fPIC -Wl,--start-group -Wl,-soname,libgtk-4.so.0.9300.0 gdk/libgdk.a gdk/wayland/libgdk-wayland.a gdk/x11/libgdk-x11.a gsk/libgsk.a -Wl,-Bsymbolic -Wl,-z,relro -Wl,-z,now -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -lglib-2.0 -lgobject-2.0 -lglib-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lcairo -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lcairo-gobject -lcairo -lgobject-2.0 -lglib-2.0 -lcairo -lfontconfig -lfreetype -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -latk-1.0 -lgobject-2.0 -lglib-2.0 -lepoxy -lm -lgraphene-1.0 -lharfbuzz -lXi -lX11 -latk-bridge-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype -lm -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lcairo -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lcairo-gobject -lcairo -lgobject-2.0 -lglib-2.0 -lglib-2.0 -lgobject-2.0 -lglib-2.0 -lepoxy -lfontconfig -lfreetype -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lcairo -lvulkan -lrt -lxkbcommon -lwayland-client -lwayland-cursor -lwayland-egl -lwayland-client -lXrender -lX11 -lXi -lXext -lX11 -lXcursor -lXdamage -lXfixes -lXfixes -lXcomposite -lXrandr -lXinerama -Wl,--end-group -lm -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lcairo -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lcairo-gobject -lcairo -lgobject-2.0 -lglib-2.0 -lglib-2.0 -lgobject-2.0 -lglib-2.0 -lepoxy -lfontconfig -lfreetype -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lcairo -lvulkan -lrt -lxkbcommon -lwayland-client -lwayland-cursor -lwayland-egl -lwayland-client -lXrender -lX11 -lXi -lXext -lX11 -lXcursor -lXdamage -lXfixes -lXfixes -lXcomposite -lXrandr -lXinerama -lm -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lcairo -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lcairo-gobject -lcairo -lgobject-2.0 -lglib-2.0 -lglib-2.0 -lgobject-2.0 -lglib-2.0 -lepoxy -lfontconfig -lfreetype -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lcairo -lvulkan -lrt -lxkbcommon -lwayland-client -lwayland-cursor -lwayland-egl -lwayland-client -lXrender -lX11 -lXi -lXext -lX11 -lXcursor -lXdamage -lXfixes -lXfixes -lXcomposite -lXrandr -lXinerama -lm -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lcairo -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lcairo-gobject -lcairo -lgobject-2.0 -lglib-2.0 -lglib-2.0 -lgobject-2.0 -lglib-2.0 -lepoxy -lfontconfig -lfreetype -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lcairo -lvulkan -lrt -lxkbcommon -lwayland-client -lwayland-cursor -lwayland-egl -lwayland-client -lm -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lcairo -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lcairo-gobject -lcairo -lgobject-2.0 -lglib-2.0 -lglib-2.0 -lgobject-2.0 -lglib-2.0 -lepoxy -lfontconfig -lfreetype -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lcairo -lvulkan -lrt -lxkbcommon -lwayland-client -lwayland-cursor -lwayland-egl -lwayland-client -lXrender -lX11 -lXi -lXext -lX11 -lXcursor -lXdamage -lXfixes -lXfixes -lXcomposite -lXrandr -lXinerama -lgraphene-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lcairo -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lm -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lcairo -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lcairo-gobject -lcairo -lgobject-2.0 -lglib-2.0 -lglib-2.0 -lgobject-2.0 -lglib-2.0 -lepoxy -lfontconfig -lfreetype -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lcairo -lvulkan -lrt -lxkbcommon -lwayland-client -lwayland-cursor -lwayland-egl -lwayland-client -lXrender -lX11 -lXi -lXext -lX11 -lXcursor -lXdamage -lXfixes -lXfixes -lXcomposite -lXrandr -lXinerama -lm -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lcairo -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lcairo-gobject -lcairo -lgobject-2.0 -lglib-2.0 -lglib-2.0 -lgobject-2.0 -lglib-2.0 -lepoxy -lfontconfig -lfreetype -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lcairo -lvulkan -lrt -lxkbcommon -lwayland-client -lwayland-cursor -lwayland-egl -lwayland-client -lXrender -lX11 -lXi -lXext -lX11 -lXcursor -lXdamage -lXfixes -lXfixes -lXcomposite -lXrandr -lXinerama -lm -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lcairo -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lcairo-gobject -lcairo -lgobject-2.0 -lglib-2.0 -lglib-2.0 -lgobject-2.0 -lglib-2.0 -lepoxy -lfontconfig -lfreetype -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lcairo -lvulkan -lrt -lxkbcommon -lwayland-client -lwayland-cursor -lwayland-egl -lwayland-client -lm -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lcairo -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lcairo-gobject -lcairo -lgobject-2.0 -lglib-2.0 -lglib-2.0 -lgobject-2.0 -lglib-2.0 -lepoxy -lfontconfig -lfreetype -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lcairo -lvulkan -lrt -lxkbcommon -lwayland-client -lwayland-cursor -lwayland-egl -lwayland-client -lXrender -lX11 -lXi -lXext -lX11 -lXcursor -lXdamage -lXfixes -lXfixes -lXcomposite -lXrandr -lXinerama gtk/gtk-4@sha/gtkcssprovider.c.o: In function `gtk_css_provider_load_internal': /run/media/vistaus/MicroSD/Apps/gtk/build/../gtk/gtkcssprovider.c:1395: undefined reference to `g_file_load_bytes' collect2: error: ld returned exit-status 1 ninja: build stopped: subcommand failed. [I] ╭─vistaus@solus /run/media/vistaus/MicroSD/Apps/gtk/build ‹system› <master*> ╰─$
You need to update glib, I don't think there's a glib release with g_file_load_bytes yet that we could depend on.
Ah, I see. Is it relatively safe to update glib? I mean: I know it might be unstable and eat my cat and stuff, but can I update glib without *totally* breaking *everything*?
That's hard to say, it should not, of course. But we always recommend using jhbuild for building unstable software, i.e. not installing it system-wide but in a custom prefix instead.
Thanks for your advice :) I'll probably use jhbuild then to build glib.
I can confirm that installing glib from git solves this issue. Thanks again! :)