pmb build modemmanager fails
Describe your issue
I'm trying to test an MR in ModemManager, so am trying to build that fork locally. However, when I try to build it it failed. The failure suggested I file an issue, so I'm doing just that!
What's the expected behaviour?
The build to succeed
What's the current behaviour?
It fails with:
RROR: Error in gtkdoc helper script:
ERROR: ['/usr/bin/gtkdoc-scangobj', '--types=/home/pmos/build/src/ModemManager-1.22.0/docs/reference/api/ModemManager.types', '--module=ModemManager', '--run=', '--cflags=-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_56 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_56 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -pthread -I/home/pmos/build/src/ModemManager-1.22.0/. -I/home/pmos/build/src/ModemManager-1.22.0/output/. -Os -fstack-clash-protection -Wformat -Werror=format-security -DHAVE_CONFIG_H -Wno-unused-parameter -Wno-cast-function-type -Wno-packed -Wno-float-equal -Wno-missing-field-initializers', '--ldflags=-lglib-2.0 -lintl -lgio-2.0 -lgobject-2.0 -Wl,--as-needed,-O1,--sort-common -Os -fstack-clash-protection -Wformat -Werror=format-security', '--cc=gcc', '--ld=gcc', '--output-dir=/home/pmos/build/src/ModemManager-1.22.0/output/docs/reference/api'] failed with status 1
ERROR: crossdirect: can't handle LD_PRELOAD: libfakeroot.so
Please report this at: https://gitlab.postmarketos.org/postmarketos/pmaports/issues
As a workaround, you can compile without crossdirect.
See 'pmbootstrap -h' for related options.
2023-11-04 15:43:23,516:scangobj.py:execute_command:1289:WARNING:Compiling scanner failed: 1, command: gcc -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_56 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_56 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -pthread -I/home/pmos/build/src/ModemManager-1.22.0/. -I/home/pmos/build/src/ModemManager-1.22.0/output/. -Os -fstack-clash-protection -Wformat -Werror=format-security -DHAVE_CONFIG_H -Wno-unused-parameter -Wno-cast-function-type -Wno-packed -Wno-float-equal -Wno-missing-field-initializers -c -o ModemManager-scan.o ModemManager-scan.c
Complete log: modemmanager_build_fail
How to reproduce your issue?
pmb aportgen --fork-alpine modemmanager
pmb build modemmanager --arch=armv7 --force
What device are you using?
samsung-milletwifi
On what postmarketOS version did you encounter the issue?
-
edge ( master
branch) -
v23.06
-
v22.12
(Supported until 2023-07-06) -
I confirm that the issue still is present after running sudo apk upgrade -a
On what environment did you encounter the issue?
I'm running Fedora on x86-64
Environments
-
GNOME Shell on Mobile -
Phosh -
Plasma Mobile -
Sxmo (Wayland/Sway) Please post the output of sxmo_version.sh
-
Other: Please fill out
How did you get postmarketOS image?
-
from https://images.postmarketos.org -
I built it using pmbootstrap -
It was preinstalled on my device