Skip to contentSkip to conversation

mesa: PACKAGECONFIG ?= "gallium-llvm .." build error

DISCUSSION Vincent Davis Jr 1 participant 1 message Nov 8, 2022

lore
Share & tools
lore
#0 lore raw

There's an issues that I've run into. Haven't been able to solve on my own. Does anyone have any pointers that they can give me?

May be python version related. So, far downgrading meson version hasn't worked out for me. Manually checking if version string is empty in universal.py then setting it to some value by passes bellow issue, but still leads to meson configure failure.

# meson configure fails when gallium-llvm is contained PACKAGECONFIG .
# This is because python finditer() function errors out
# with bellow. For some reason an empty version string is being passed to
# in the finditer() function causing the build to fail.

*Error Message*
***********************************************************************************************************************************************************************************
File "/../../../mesa/2_22.2.2-r0/recipe-sysroot-native/usr/lib/python3.11/site-packages/mesonbuild/mesonlib/universal.py", line 852, in version_compare return cmpop(Version(vstr1), Version(vstr2))
^^^^^^^^^^^^^^
File "/../../../mesa/2_22.2.2-r0/recipe-sysroot-native/usr/lib/python3.11/site-packages/mesonbuild/mesonlib/universal.py", line 759, in __init__ sequences1 = re.finditer(r'(\d+|[a-zA-Z]+|[^a-zA-Z\d]+)', s)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/../../../mesa/2_22.2.2-r0/recipe-sysroot-native/usr/lib/python3.11/re/__init__.py", line 223, in finditer
return _compile(pattern, flags).finditer(string)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: expected string or bytes-like object, got 'NoneType'

../mesa-22.2.2/meson.build:1783:2: ERROR: Unhandled python exception
***********************************************************************************************************************************************************************************