You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The only command I executed was meson setup --buildtype=release build. This resulted in the following error
❯ meson setup --buildtype=release build
The Meson build system
Version: 1.0.1
Source dir: /home/stephan/projects/identity
Build dir: /home/stephan/projects/identity/build
Build type: native build
Project name: identity
Project version: 0.5.0
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/mesonbuild/mesonmain.py", line 194, in run
return options.run_func(options)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/mesonbuild/msetup.py", line 310, in run
app.generate()
File "/usr/lib/python3/dist-packages/mesonbuild/msetup.py", line 187, in generate
self._generate(env)
File "/usr/lib/python3/dist-packages/mesonbuild/msetup.py", line 209, in _generate
intr = interpreter.Interpreter(b, user_defined_options=user_defined_options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/mesonbuild/interpreter/interpreter.py", line 328, in __init__
self.parse_project()
File "/usr/lib/python3/dist-packages/mesonbuild/interpreterbase/interpreterbase.py", line 117, in parse_project
self.evaluate_codeblock(self.ast, end=1)
File "/usr/lib/python3/dist-packages/mesonbuild/interpreterbase/interpreterbase.py", line 172, in evaluate_codeblock
raise e
File "/usr/lib/python3/dist-packages/mesonbuild/interpreterbase/interpreterbase.py", line 165, in evaluate_codeblock
self.evaluate_statement(cur)
File "/usr/lib/python3/dist-packages/mesonbuild/interpreterbase/interpreterbase.py", line 178, in evaluate_statement
return self.function_call(cur)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/mesonbuild/interpreterbase/interpreterbase.py", line 460, in function_call
res = func(node, func_args, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/mesonbuild/interpreterbase/decorators.py", line 277, in wrapper
return f(*nargs, **wrapped_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/mesonbuild/interpreterbase/decorators.py", line 590, in wrapper
return f(*wrapped_args, **wrapped_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/mesonbuild/interpreter/interpreter.py", line 1245, in func_project
self.add_languages(proj_langs, True, MachineChoice.HOST)
File "/usr/lib/python3/dist-packages/mesonbuild/interpreter/interpreter.py", line 1381, in add_languages
success = self.add_languages_for(args, required, for_machine)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/mesonbuild/interpreter/interpreter.py", line 1421, in add_languages_for
comp = compilers.detect_compiler_for(self.environment, lang, for_machine)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/mesonbuild/compilers/detect.py", line 115, in detect_compiler_for
comp = compiler_from_language(env, lang, for_machine)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/mesonbuild/compilers/detect.py", line 112, in compiler_from_language
return lang_map[lang](env, for_machine) if lang in lang_map else None
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/mesonbuild/compilers/detect.py", line 985, in detect_rust_compiler
c = exelist.pop(0)
^^^^^^^^^^^^^^
IndexError: pop from empty list
meson.build:1:0: ERROR: Unhandled python exception
This is a Meson bug and should be reported!
Describe the bug
I tried to build https://gitlab.gnome.org/YaLTeR/identity.
The only command I executed was
meson setup --buildtype=release build
. This resulted in the following errorTo Reproduce
Maybe useful context...
Rust is installed via rustup.
It might be possible to get a similar environment by executing the following on Ubuntu
Usually, all other Rust projects that I built via meson worked.
Expected behavior
have no Python stacktrace.
I can fix the error by out-commenting the following lines https://github.com/mesonbuild/meson/blob/master/mesonbuild/compilers/detect.py#L986-L987, rest of the build would then behave normal.
ccache
should maybe not removed if it is the only entry inexelist
or an error returned reported what went wrong.system parameters
native
Ubuntu 23.04
3.11.2
meson --version
1.0.1
ninja --version
if it's a Ninja build1.11.1
The text was updated successfully, but these errors were encountered: