Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glib 2.80.0 build error #3059

Open
HuidaeCho opened this issue Apr 16, 2024 · 4 comments
Open

glib 2.80.0 build error #3059

HuidaeCho opened this issue Apr 16, 2024 · 4 comments

Comments

@HuidaeCho
Copy link

HuidaeCho commented Apr 16, 2024

I just cloned the MXE repo and did make glib. It fails with the following error:

Failed to build package glib for target x86_64-pc-linux-gnu!
------------------------------------------------------------
../glib-2.80.0/gio/gtask.c:2335: Warning: Gio: g_task_is_valid: argument source_object: Unresolved type: 'gpointer'
../glib-2.80.0/gio/gtask.c:790: Warning: Gio: g_task_new: argument source_object: Unresolved type: 'gpointer'
<unknown>:: Warning: Gio: (Signal)run: argument source_object: Unresolved type: 'GObject'
ninja: build stopped: subcommand failed.
make[1]: *** [Makefile:903: build-only-glib_x86_64-pc-linux-gnu] Error 1
make[1]: Leaving directory '/usr/local/src/mxe'
real    0m11.863s
user    0m16.788s
sys     0m2.693s
------------------------------------------------------------
[log]      /usr/local/src/mxe/log/glib_x86_64-pc-linux-gnu

make: *** [Makefile:891: /usr/local/src/mxe/usr/x86_64-pc-linux-gnu/installed/glib] Error 1

My system is WSL Linux 5.15.57.1 and GCC version is 11.2.0.

@messmerd
Copy link

I'm experiencing a glib build error too in an Ubuntu 22.04 Docker container, but this is the error message I get:

[download]    glib-2.80.0.tar.xz
[build]       glib                    x86_64-pc-linux-gnu

Failed to build package glib for target x86_64-pc-linux-gnu!
------------------------------------------------------------
tmp-glib-x86_64-pc-linux-gnu/glib-2.80.0/meson.build:2422:26: ERROR: python is missing modules: packaging
A full log can be found at /opt/mxe/tmp-glib-x86_64-pc-linux-gnu/glib-2.80.0.build_/meson-logs/meson-log.txt
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.
make[1]: *** [Makefile:903: build-only-glib_x86_64-pc-linux-gnu] Error 1
make[1]: Leaving directory '/opt/mxe'
real    0m14.230s
user    0m11.311s
sys     0m3.079s
------------------------------------------------------------
[log]      /opt/mxe/log/glib_x86_64-pc-linux-gnu

make: *** [Makefile:891: /opt/mxe/usr/x86_64-pc-linux-gnu/installed/glib] Error 1

@jakint0sh
Copy link
Contributor

HuidaeCho: Could you please put the full log file in a gist (or your preferred flavor of pastebin) and link it here? A single error message isn't a lot to go off of. The log file should be located at /usr/local/src/mxe/log/glib_x86_64-pc-linux-gnu (as indicated by the [log] message), unless you have tried building again, in which case those symlink will have updated and will now point to a new log. You can still find the old log file under the mxe/log/YYYYMMDD_hhmmss folder, which will be the date/time which you started that particular build attempt.

messmerd: I'm also under Ubuntu 22.04.4, and I got the exact same error. I was able to resolve it by doing pip install packaging (which installed it in my home dir, but I'm sure you can add sudo and install it system-wide as well). This will probably work for you as well.

@jakint0sh
Copy link
Contributor

ping @HuidaeCho

@HuidaeCho
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants