./bootstrap.sh moddwarf fail with "ModuleNotFoundError: No module named 'imp'" on Ubuntu 24.04 LTS.
GEN /home/aki/mod-workdir/moddwarf/Makefile
#
# configuration written to /home/aki/mod-workdir/moddwarf/.config
#
/usr/bin/make -j1 O=/home/aki/mod-workdir/moddwarf HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" silentoldconfig
GEN /home/aki/mod-workdir/moddwarf/Makefile
BR2_DEFCONFIG='' KCONFIG_AUTOCONFIG=/home/aki/mod-workdir/moddwarf/build/buildroot-config/auto.conf KCONFIG_AUTOHEADER=/home/aki/mod-workdir/moddwarf/build/buildroot-config/autoconf.h KCONFIG_TRISTATE=/home/aki/mod-workdir/moddwarf/build/buildroot-config/tristate.config BR2_CONFIG=/home/aki/mod-workdir/moddwarf/.config BR2_EXTERNAL=/home/aki/git/mod-plugin-builder/plugins-dep HOST_GCC_VERSION="13" SKIP_LEGACY= /home/aki/mod-workdir/moddwarf/build/buildroot-config/conf --silentoldconfig Config.in
[7m>>> host-libglib2 2.46.2 Installing to host directory[27m
PATH="/home/aki/mod-workdir/moddwarf/host/bin:/home/aki/mod-workdir/moddwarf/host/sbin:/home/aki/mod-workdir/moddwarf/host/usr/bin:/home/aki/mod-workdir/moddwarf/host/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin" PKG_CONFIG="/home/aki/mod-workdir/moddwarf/host/usr/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_LIBDIR="/home/aki/mod-workdir/moddwarf/host/usr/lib/pkgconfig" /usr/bin/make -j9 install -C /home/aki/mod-workdir/moddwarf/build/host-libglib2-2.46.2/
/usr/bin/make install-recursive
Making install in .
/usr/bin/mkdir -p '/home/aki/mod-workdir/moddwarf/host/usr/bin'
/usr/bin/mkdir -p '/home/aki/mod-workdir/moddwarf/host/usr/lib/pkgconfig'
/usr/bin/install -c glib-gettextize '/home/aki/mod-workdir/moddwarf/host/usr/bin'
/usr/bin/install -c -m 644 glib-2.0.pc gobject-2.0.pc gmodule-2.0.pc gmodule-export-2.0.pc gmodule-no-export-2.0.pc gthread-2.0.pc gio-2.0.pc gio-unix-2.0.pc '/home/aki/mod-workdir/moddwarf/host/usr/lib/pkgconfig'
Making install in m4macros
/usr/bin/make install-am
make[6]: Nothing to be done for 'install-exec-am'.
/usr/bin/mkdir -p '/home/aki/mod-workdir/moddwarf/host/usr/share/aclocal'
/usr/bin/install -c -m 644 glib-2.0.m4 glib-gettext.m4 gsettings.m4 '/home/aki/mod-workdir/moddwarf/host/usr/share/aclocal'
Making install in glib
/usr/bin/make install-recursive
Making install in libcharset
/usr/bin/make install-am
/bin/bash /home/aki/mod-workdir/moddwarf/build/host-libglib2-2.46.2/install-sh -d /home/aki/mod-workdir/moddwarf/host/usr/lib
if test -f /home/aki/mod-workdir/moddwarf/host/usr/lib/charset.alias; then \
sed -f ref-add.sed /home/aki/mod-workdir/moddwarf/host/usr/lib/charset.alias > /home/aki/mod-workdir/moddwarf/host/usr/lib/charset.tmp ; \
/usr/bin/install -c -m 644 /home/aki/mod-workdir/moddwarf/host/usr/lib/charset.tmp /home/aki/mod-workdir/moddwarf/host/usr/lib/charset.alias ; \
rm -f /home/aki/mod-workdir/moddwarf/host/usr/lib/charset.tmp ; \
else \
if test yes = no; then \
sed -f ref-add.sed charset.alias > /home/aki/mod-workdir/moddwarf/host/usr/lib/charset.tmp ; \
/usr/bin/install -c -m 644 /home/aki/mod-workdir/moddwarf/host/usr/lib/charset.tmp /home/aki/mod-workdir/moddwarf/host/usr/lib/charset.alias ; \
rm -f /home/aki/mod-workdir/moddwarf/host/usr/lib/charset.tmp ; \
fi ; \
fi
Making install in pcre
/usr/bin/make install-am
make[8]: Nothing to be done for 'install-exec-am'.
Making install in update-pcre
/usr/bin/make install-am
make[8]: Nothing to be done for 'install-exec-am'.
Making install in .
/usr/bin/mkdir -p '/home/aki/mod-workdir/moddwarf/host/usr/lib'
/usr/bin/mkdir -p '/home/aki/mod-workdir/moddwarf/host/usr/bin'
/usr/bin/mkdir -p '/home/aki/mod-workdir/moddwarf/host/usr/lib/glib-2.0/include'
/bin/bash ../libtool --mode=install /usr/bin/install -c libglib-2.0.la '/home/aki/mod-workdir/moddwarf/host/usr/lib'
/usr/bin/mkdir -p '/home/aki/mod-workdir/moddwarf/host/usr/include/glib-2.0/glib/deprecated'
/usr/bin/mkdir -p '/home/aki/mod-workdir/moddwarf/host/usr/share/glib-2.0/gdb'
/usr/bin/mkdir -p '/home/aki/mod-workdir/moddwarf/host/usr/include/glib-2.0'
/usr/bin/install -c gtester-report '/home/aki/mod-workdir/moddwarf/host/usr/bin'
/usr/bin/install -c -m 644 glibconfig.h '/home/aki/mod-workdir/moddwarf/host/usr/lib/glib-2.0/include'
/usr/bin/install -c -m 644 deprecated/gallocator.h deprecated/gcache.h deprecated/gcompletion.h deprecated/gmain.h deprecated/grel.h deprecated/gthread.h '/home/aki/mod-workdir/moddwarf/host/usr/include/glib-2.0/glib/deprecated'
/usr/bin/install -c glib.py '/home/aki/mod-workdir/moddwarf/host/usr/share/glib-2.0/gdb'
/usr/bin/install -c -m 644 glib-unix.h glib-object.h glib.h '/home/aki/mod-workdir/moddwarf/host/usr/include/glib-2.0'
/usr/bin/mkdir -p '/home/aki/mod-workdir/moddwarf/host/usr/include/glib-2.0/glib'
/usr/bin/install -c -m 644 glib-autocleanups.h galloca.h garray.h gasyncqueue.h gatomic.h gbacktrace.h gbase64.h gbitlock.h gbookmarkfile.h gbytes.h gcharset.h gchecksum.h gconvert.h gdataset.h gdate.h gdatetime.h gdir.h genviron.h gerror.h gfileutils.h ggettext.h ghash.h ghmac.h ghook.h ghostutils.h gi18n.h gi18n-lib.h giochannel.h gkeyfile.h glist.h gmacros.h gmain.h gmappedfile.h gmarkup.h gmem.h gmessages.h gnode.h goption.h gpattern.h gpoll.h '/home/aki/mod-workdir/moddwarf/host/usr/include/glib-2.0/glib'
/usr/bin/install -c -m 644 gprimes.h gqsort.h gquark.h gqueue.h grand.h gregex.h gscanner.h gsequence.h gshell.h gslice.h gslist.h gspawn.h gstdio.h gstrfuncs.h gtestutils.h gstring.h gstringchunk.h gthread.h gthreadpool.h gtimer.h gtimezone.h gtrashstack.h gtree.h gtypes.h gunicode.h gurifuncs.h gutils.h gvarianttype.h gvariant.h gversion.h gversionmacros.h gwin32.h gprintf.h '/home/aki/mod-workdir/moddwarf/host/usr/include/glib-2.0/glib'
libtool: install: /usr/bin/install -c .libs/libglib-2.0.so.0.4600.2 /home/aki/mod-workdir/moddwarf/host/usr/lib/libglib-2.0.so.0.4600.2
libtool: install: (cd /home/aki/mod-workdir/moddwarf/host/usr/lib && { ln -s -f libglib-2.0.so.0.4600.2 libglib-2.0.so.0 || { rm -f libglib-2.0.so.0 && ln -s libglib-2.0.so.0.4600.2 libglib-2.0.so.0; }; })
/usr/bin/make install-data-hook
libtool: install: (cd /home/aki/mod-workdir/moddwarf/host/usr/lib && { ln -s -f libglib-2.0.so.0.4600.2 libglib-2.0.so || { rm -f libglib-2.0.so && ln -s libglib-2.0.so.0.4600.2 libglib-2.0.so; }; })
libtool: install: /usr/bin/install -c .libs/libglib-2.0.lai /home/aki/mod-workdir/moddwarf/host/usr/lib/libglib-2.0.la
mkdir -p /home/aki/mod-workdir/moddwarf/host/usr/share/gdb/auto-load
/usr/bin/install -c ./libglib-gdb.py /home/aki/mod-workdir/moddwarf/host/usr/share/gdb/auto-load/libglib-2.0.so.0.4600.2-gdb.py
libtool: finish: PATH="/home/aki/mod-workdir/moddwarf/host/bin:/home/aki/mod-workdir/moddwarf/host/sbin:/home/aki/mod-workdir/moddwarf/host/usr/bin:/home/aki/mod-workdir/moddwarf/host/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/sbin" ldconfig -n /home/aki/mod-workdir/moddwarf/host/usr/lib
----------------------------------------------------------------------
Libraries have been installed in:
/home/aki/mod-workdir/moddwarf/host/usr/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/usr/bin/mkdir -p '/home/aki/mod-workdir/moddwarf/host/usr/bin'
/bin/bash ../libtool --mode=install /usr/bin/install -c gtester '/home/aki/mod-workdir/moddwarf/host/usr/bin'
libtool: install: /usr/bin/install -c gtester /home/aki/mod-workdir/moddwarf/host/usr/bin/gtester
/usr/bin/make install-exec-hook
for sf in gtester-report ; do \
mv -f "/home/aki/mod-workdir/moddwarf/host/usr/bin/$sf" "/home/aki/mod-workdir/moddwarf/host/usr/bin/$sf".tmp \
&& sed < "/home/aki/mod-workdir/moddwarf/host/usr/bin/$sf".tmp > "/home/aki/mod-workdir/moddwarf/host/usr/bin/$sf" \
-e '1,24s|^ *#@PKGINSTALL_CONFIGVARS_IN24LINES@| "bindir" : "/home/aki/mod-workdir/moddwarf/host/usr/bin", "glib-version" : "2.46.2"|' \
-e '1,1s|#! /usr/bin/env python.*|#!/usr/bin/python|' \
|| exit $? ; \
chmod a+x /home/aki/mod-workdir/moddwarf/host/usr/bin/$sf ; \
rm -f "/home/aki/mod-workdir/moddwarf/host/usr/bin/$sf".tmp ; \
done
Making install in gmodule
/usr/bin/make install-am
/usr/bin/mkdir -p '/home/aki/mod-workdir/moddwarf/host/usr/lib'
/usr/bin/mkdir -p '/home/aki/mod-workdir/moddwarf/host/usr/include/glib-2.0'
/bin/bash ../libtool --mode=install /usr/bin/install -c libgmodule-2.0.la '/home/aki/mod-workdir/moddwarf/host/usr/lib'
/usr/bin/install -c -m 644 gmodule.h '/home/aki/mod-workdir/moddwarf/host/usr/include/glib-2.0'
/usr/bin/make install-data-hook
make[7]: Nothing to be done for 'install-data-hook'.
libtool: install: /usr/bin/install -c .libs/libgmodule-2.0.so.0.4600.2 /home/aki/mod-workdir/moddwarf/host/usr/lib/libgmodule-2.0.so.0.4600.2
libtool: install: (cd /home/aki/mod-workdir/moddwarf/host/usr/lib && { ln -s -f libgmodule-2.0.so.0.4600.2 libgmodule-2.0.so.0 || { rm -f libgmodule-2.0.so.0 && ln -s libgmodule-2.0.so.0.4600.2 libgmodule-2.0.so.0; }; })
libtool: install: (cd /home/aki/mod-workdir/moddwarf/host/usr/lib && { ln -s -f libgmodule-2.0.so.0.4600.2 libgmodule-2.0.so || { rm -f libgmodule-2.0.so && ln -s libgmodule-2.0.so.0.4600.2 libgmodule-2.0.so; }; })
libtool: install: /usr/bin/install -c .libs/libgmodule-2.0.lai /home/aki/mod-workdir/moddwarf/host/usr/lib/libgmodule-2.0.la
libtool: finish: PATH="/home/aki/mod-workdir/moddwarf/host/bin:/home/aki/mod-workdir/moddwarf/host/sbin:/home/aki/mod-workdir/moddwarf/host/usr/bin:/home/aki/mod-workdir/moddwarf/host/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/sbin" ldconfig -n /home/aki/mod-workdir/moddwarf/host/usr/lib
----------------------------------------------------------------------
Libraries have been installed in:
/home/aki/mod-workdir/moddwarf/host/usr/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Making install in gthread
/usr/bin/make install-am
/usr/bin/mkdir -p '/home/aki/mod-workdir/moddwarf/host/usr/lib'
/bin/bash ../libtool --mode=install /usr/bin/install -c libgthread-2.0.la '/home/aki/mod-workdir/moddwarf/host/usr/lib'
/usr/bin/make install-data-hook
make[7]: Nothing to be done for 'install-data-hook'.
libtool: install: /usr/bin/install -c .libs/libgthread-2.0.so.0.4600.2 /home/aki/mod-workdir/moddwarf/host/usr/lib/libgthread-2.0.so.0.4600.2
libtool: install: (cd /home/aki/mod-workdir/moddwarf/host/usr/lib && { ln -s -f libgthread-2.0.so.0.4600.2 libgthread-2.0.so.0 || { rm -f libgthread-2.0.so.0 && ln -s libgthread-2.0.so.0.4600.2 libgthread-2.0.so.0; }; })
libtool: install: (cd /home/aki/mod-workdir/moddwarf/host/usr/lib && { ln -s -f libgthread-2.0.so.0.4600.2 libgthread-2.0.so || { rm -f libgthread-2.0.so && ln -s libgthread-2.0.so.0.4600.2 libgthread-2.0.so; }; })
libtool: install: /usr/bin/install -c .libs/libgthread-2.0.lai /home/aki/mod-workdir/moddwarf/host/usr/lib/libgthread-2.0.la
libtool: finish: PATH="/home/aki/mod-workdir/moddwarf/host/bin:/home/aki/mod-workdir/moddwarf/host/sbin:/home/aki/mod-workdir/moddwarf/host/usr/bin:/home/aki/mod-workdir/moddwarf/host/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/sbin" ldconfig -n /home/aki/mod-workdir/moddwarf/host/usr/lib
----------------------------------------------------------------------
Libraries have been installed in:
/home/aki/mod-workdir/moddwarf/host/usr/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Making install in gobject
/usr/bin/make install-recursive
Making install in .
/usr/bin/mkdir -p '/home/aki/mod-workdir/moddwarf/host/usr/lib'
/usr/bin/mkdir -p '/home/aki/mod-workdir/moddwarf/host/usr/bin'
/usr/bin/mkdir -p '/home/aki/mod-workdir/moddwarf/host/usr/share/glib-2.0/gdb'
/bin/bash ../libtool --mode=install /usr/bin/install -c libgobject-2.0.la '/home/aki/mod-workdir/moddwarf/host/usr/lib'
/usr/bin/mkdir -p '/home/aki/mod-workdir/moddwarf/host/usr/include/glib-2.0/gobject'
/usr/bin/install -c gobject.py '/home/aki/mod-workdir/moddwarf/host/usr/share/glib-2.0/gdb'
/usr/bin/install -c glib-mkenums '/home/aki/mod-workdir/moddwarf/host/usr/bin'
/usr/bin/install -c -m 644 gobject-autocleanups.h glib-types.h gbinding.h gboxed.h gclosure.h genums.h gmarshal.h gobject.h gparam.h gparamspecs.h gsignal.h gsourceclosure.h gtype.h gtypemodule.h gtypeplugin.h gvalue.h gvaluearray.h gvaluecollector.h gvaluetypes.h gobjectnotifyqueue.c '/home/aki/mod-workdir/moddwarf/host/usr/include/glib-2.0/gobject'
/usr/bin/make install-data-hook
libtool: install: /usr/bin/install -c .libs/libgobject-2.0.so.0.4600.2 /home/aki/mod-workdir/moddwarf/host/usr/lib/libgobject-2.0.so.0.4600.2
libtool: install: (cd /home/aki/mod-workdir/moddwarf/host/usr/lib && { ln -s -f libgobject-2.0.so.0.4600.2 libgobject-2.0.so.0 || { rm -f libgobject-2.0.so.0 && ln -s libgobject-2.0.so.0.4600.2 libgobject-2.0.so.0; }; })
mkdir -p /home/aki/mod-workdir/moddwarf/host/usr/share/gdb/auto-load/
libtool: install: (cd /home/aki/mod-workdir/moddwarf/host/usr/lib && { ln -s -f libgobject-2.0.so.0.4600.2 libgobject-2.0.so || { rm -f libgobject-2.0.so && ln -s libgobject-2.0.so.0.4600.2 libgobject-2.0.so; }; })
libtool: install: /usr/bin/install -c .libs/libgobject-2.0.lai /home/aki/mod-workdir/moddwarf/host/usr/lib/libgobject-2.0.la
/usr/bin/install -c ./libgobject-gdb.py /home/aki/mod-workdir/moddwarf/host/usr/share/gdb/auto-load//libgobject-2.0.so.0.4600.2-gdb.py
libtool: finish: PATH="/home/aki/mod-workdir/moddwarf/host/bin:/home/aki/mod-workdir/moddwarf/host/sbin:/home/aki/mod-workdir/moddwarf/host/usr/bin:/home/aki/mod-workdir/moddwarf/host/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/sbin" ldconfig -n /home/aki/mod-workdir/moddwarf/host/usr/lib
----------------------------------------------------------------------
Libraries have been installed in:
/home/aki/mod-workdir/moddwarf/host/usr/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/usr/bin/mkdir -p '/home/aki/mod-workdir/moddwarf/host/usr/bin'
/bin/bash ../libtool --mode=install /usr/bin/install -c gobject-query glib-genmarshal '/home/aki/mod-workdir/moddwarf/host/usr/bin'
libtool: install: /usr/bin/install -c gobject-query /home/aki/mod-workdir/moddwarf/host/usr/bin/gobject-query
libtool: install: /usr/bin/install -c glib-genmarshal /home/aki/mod-workdir/moddwarf/host/usr/bin/glib-genmarshal
Making install in tests
/usr/bin/make install-am
make[8]: Nothing to be done for 'install-exec-am'.
Making install in gio
/usr/bin/make install-recursive
Making install in gdbus-2.0/codegen
/usr/bin/make install-am
/usr/bin/mkdir -p '/home/aki/mod-workdir/moddwarf/host/usr/bin'
/usr/bin/mkdir -p '/home/aki/mod-workdir/moddwarf/host/usr/share/glib-2.0/codegen'
/usr/bin/install -c gdbus-codegen '/home/aki/mod-workdir/moddwarf/host/usr/bin'
/usr/bin/install -c -m 644 __init__.py codegen.py codegen_main.py codegen_docbook.py config.py dbustypes.py parser.py utils.py '/home/aki/mod-workdir/moddwarf/host/usr/share/glib-2.0/codegen'
Traceback (most recent call last):
File "<string>", line 2, in <module>
ModuleNotFoundError: No module named 'imp'
make[8]: *** [Makefile:982: install-codegenPYTHON] Error 1
make[7]: *** [Makefile:1284: install-am] Error 2
make[6]: *** [Makefile:1278: install] Error 2
make[5]: *** [Makefile:4092: install-recursive] Error 1
make[4]: *** [Makefile:4414: install] Error 2
make[3]: *** [Makefile:1211: install-recursive] Error 1
make[2]: *** [Makefile:1677: install] Error 2
make[1]: *** [package/pkg-generic.mk:208: /home/aki/mod-workdir/moddwarf/build/host-libglib2-2.46.2/.stamp_host_installed] Error 2
make: *** [Makefile:36: _all] Error 2
Maybe it's because of python 3.12.3?
When I ran ./bootstrap.sh generic-x86_64, it also failed.
I don't know when but I have plugins build on Ubuntu 24.04 LTS with MPB.
Hi,
./bootstrap.sh moddwarf
fail with "ModuleNotFoundError: No module named 'imp'" on Ubuntu 24.04 LTS.Maybe it's because of python 3.12.3?
When I ran
./bootstrap.sh generic-x86_64
, it also failed. I don't know when but I have plugins build on Ubuntu 24.04 LTS with MPB.