Build step fails with "'CMAKE_BUILD_PARALLEL_LEVEL' environment variable invalid number 'all_but_one' given."
Bug Report
Summary and Bug Description
The build step of all CMake-based modules fails currently on my system (axii on latest stable
and main
).
Current Behavior
Example output of axii w build -nt
for the robdekon project in my workspace:
Build module h2t/research_projects/robdekon/robdekon ...
Run command: cmake --build . --target all
In working directory:
/home/christoph/Code/Cpp/ax_default/h2t/research_projects/robdekon/robdekon/build
With environment variables: CMAKE_BUILD_PARALLEL_LEVEL='all_but_one'
────────────────────────────────────────── Command output ───────────────────────────────────────────
'CMAKE_BUILD_PARALLEL_LEVEL' environment variable
invalid number 'all_but_one' given.
Usage: cmake --build <dir> [options] [-- [native-options]]
cmake --build --preset <preset> [options] [-- [native-options]]
Options:
<dir> = Project binary directory to be built.
--preset <preset>, --preset=<preset>
= Specify a build preset.
--list-presets
= List available build presets.
--parallel [<jobs>], -j [<jobs>]
= Build in parallel using the given number of jobs.
If <jobs> is omitted the native build tool's
default number is used.
The CMAKE_BUILD_PARALLEL_LEVEL environment variable
specifies a default parallel level when this option
is not given.
--target <tgt>..., -t <tgt>...
= Build <tgt> instead of default targets.
--config <cfg> = For multi-configuration tools, choose <cfg>.
--clean-first = Build target 'clean' first, then build.
(To clean only, use --target 'clean'.)
--verbose, -v = Enable verbose output - if supported - including
the build commands to be executed.
-- = Pass remaining options to the native tool.
────────────────────────────────── Command exited - Return code 1 ───────────────────────────────────
Error: Failed to execute step 'build' on module 'h2t/research_projects/robdekon/robdekon': Command
exited with return code 1.
Expected Behavior
The all_but_one
variable should be resolved to a concrete number.
Steps to Reproduce
axii workspace build -nt
for any CMake project
Diagnosis
Output of axii self report
┏━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Scope ┃ Info ┃
┡━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ Axii │ Axii 23.01.1.0 @stable-0 with shell integration │
│ OS │ Ubuntu 18.04.6 LTS │
│ Kernel │ Linux 5.4.0-135-generic #152~18.04.2-Ubuntu SMP Tue Nov 29 08:23:49 │
│ │ UTC 2022 x86_64 GNU/Linux │
│ Shell │ /usr/bin/zsh │
│ Python │ Python 3.6.9 │
│ Pip │ attrs==22.1.0, certifi==2021.10.8, charset-normalizer==2.0.7, │
│ │ click==8.0.0, colorama==0.4.4, commonmark==0.9.1, cycler==0.11.0, │
│ │ dataclasses==0.8, dbus-python==1.2.18, decorator==5.1.0, │
│ │ distro==1.7.0, docutils==0.17.1, gitdb==4.0.9, GitPython==3.1.18, │
│ │ idna==3.3, igraph==0.9.11, importlib-metadata==4.8.3, │
│ │ iniconfig==1.1.1, kiwisolver==1.3.1, matplotlib==3.3.0, │
│ │ networkx==2.5, notify2==0.3.1, numpy==1.19.0, packaging==21.3, │
│ │ Pillow==8.4.0, pkg_resources==0.0.0, pluggy==1.0.0, psutil==5.9.4, │
│ │ py==1.11.0, Pygments==2.10.0, pygraphviz==1.6, pyparsing==3.0.6, │
│ │ PyQt5==5.15.0, PyQt5-sip==12.9.0, pytest==7.0.1, │
│ │ python-dateutil==2.8.2, python-igraph==0.9.11, │
│ │ python-Levenshtein==0.12.2, requests==2.26.0, rich==12.6.0, │
│ │ rich-click==1.2.1, six==1.16.0, smmap==5.0.0, texttable==1.6.4, │
│ │ thefuzz==0.19.0, tomli==1.2.3, typing_extensions==4.1.1, │
│ │ urllib3==1.26.7, xdg==5.1.1, zeroc-ice==3.7.0, zipp==3.6.0 │
└────────┴─────────────────────────────────────────────────────────────────────┘