Skip to content

Instantly share code, notes, and snippets.

@ruo91
Created July 30, 2023 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ruo91/233a27f7d87588ff781d5221184ca40a to your computer and use it in GitHub Desktop.
Save ruo91/233a27f7d87588ff781d5221184ca40a to your computer and use it in GitHub Desktop.
Gentoo - NetworkManager meson build error
>>> Emerging (26 of 31) net-libs/libmbim-1.28.4::gentoo
* libmbim-1.28.4.tar.bz2 BLAKE2B SHA512 size ;-) ... [ ok ]
* Checking whether python3_12 is suitable ...
* dev-lang/python:3.12 ... [ ok ]
* Using python3.12 to build (via PYTHON_COMPAT iteration)
>>> Unpacking source...
>>> Unpacking libmbim-1.28.4.tar.bz2 to /var/tmp/portage/net-libs/libmbim-1.28.4/work
>>> Source unpacked in /var/tmp/portage/net-libs/libmbim-1.28.4/work
>>> Preparing source in /var/tmp/portage/net-libs/libmbim-1.28.4/work/libmbim-1.28.4 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/net-libs/libmbim-1.28.4/work/libmbim-1.28.4 ...
meson setup --libdir lib64 --localstatedir /var/lib --prefix /usr --sysconfdir /etc --wrap-mode nodownload --build.pkg-config-path /var/tmp/portage/net-libs/libmbim-1.28.4/temp/python3.12/pkgconfig:/usr/share/pkgconfig --pkg-config-path /var/tmp/portage/net-libs/libmbim-1.28.4/temp/python3.12/pkgconfig:/usr/share/pkgconfig --native-file /var/tmp/portage/net-libs/libmbim-1.28.4/temp/meson.x86_64-pc-linux-gnu.amd64.ini -Db_pch=false -Dwerror=false --buildtype plain -Dintrospection=true -Dman=true -Dbash_completion=false -Dgtk_doc=false /var/tmp/portage/net-libs/libmbim-1.28.4/work/libmbim-1.28.4 /var/tmp/portage/net-libs/libmbim-1.28.4/work/libmbim-1.28.4-build
The Meson build system
Version: 1.2.0
Source dir: /var/tmp/portage/net-libs/libmbim-1.28.4/work/libmbim-1.28.4
Build dir: /var/tmp/portage/net-libs/libmbim-1.28.4/work/libmbim-1.28.4-build
Build type: native build
Project name: libmbim
Project version: 1.28.4
C compiler for the host machine: x86_64-pc-linux-gnu-gcc (gcc 12.3.1 "x86_64-pc-linux-gnu-gcc (Gentoo 12.3.1_p20230526 p2) 12.3.1 20230526")
C linker for the host machine: x86_64-pc-linux-gnu-gcc ld.bfd 2.40
Host machine cpu family: x86_64
Host machine cpu: x86_64
meson.build:48:26: ERROR: <PythonExternalProgram 'python3' -> ['/var/tmp/portage/net-libs/libmbim-1.28.4/temp/python3.12/bin/python3']> is not a valid python or it is missing distutils
A full log can be found at /var/tmp/portage/net-libs/libmbim-1.28.4/work/libmbim-1.28.4-build/meson-logs/meson-log.txt
* ERROR: net-libs/libmbim-1.28.4::gentoo failed (configure phase):
* (no error message)
*
* Call stack:
* ebuild.sh, line 136: Called src_configure
* environment, line 2338: Called meson_src_configure
* environment, line 1683: Called die
* The specific snippet of code:
* "${mesonargs[@]}" ) || die
*
* If you need support, post the output of `emerge --info '=net-libs/libmbim-1.28.4::gentoo'`,
* the complete build log and the output of `emerge -pqv '=net-libs/libmbim-1.28.4::gentoo'`.
* The complete build log is located at '/var/tmp/portage/net-libs/libmbim-1.28.4/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/net-libs/libmbim-1.28.4/temp/environment'.
* Working directory: '/var/tmp/portage/net-libs/libmbim-1.28.4/work/libmbim-1.28.4'
* S: '/var/tmp/portage/net-libs/libmbim-1.28.4/work/libmbim-1.28.4'
>>> Failed to emerge net-libs/libmbim-1.28.4, Log file:
>>> '/var/tmp/portage/net-libs/libmbim-1.28.4/temp/build.log'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment