Scons: Doesn't recognize conda-forge/gxx_linux-64 compiler as gcc variant
See original GitHub issue-
Nuitka version, full Python version and Platform (Windows, OSX, Linux …)
python -m nuitka --version
0.6.2
Python: 3.6.7 | packaged by conda-forge | (default, Feb 28 2019, 09:07:38)
Executable: /home/atritoman/.conda/envs/nuitka-setuptools/bin/python3.6
OS: Linux
Arch: x86_64
- How did you install Nuitka and Python (pip, anaconda, deb, rpm, from source, what is a virtualenv …), this is very important usually.
conda install nuitka -c conda-forge
- If possible please supply a Short, Self Contained, Correct, Example that demonstrates the issue i.e a small piece of code which reproduces the issue and can be run with out any other (or as few as possible) external dependencies.
conda create -n nuitka_conda_gcc_test python=3.7 nuitka gxx_linux-64
conda activate nuitka_conda_gcc_test
cat << EOF >> mod.py
print(__file__)
EOF
nuitka --module mod.py
output:
nuitka --module mod.py
AssertionError: x86_64-conda_cos6-linux-gnu-cc:
File "/home/atritoman/.conda/envs/nuitka-setuptools/lib/python3.6/site-packages/nuitka/build/SingleExe.scons", line 1435:
assert False, the_cc_name
Looking at the code, https://github.com/Nuitka/Nuitka/blob/18a0ab3ee7f9f35d8ac5ec967995c6dce731f56d/nuitka/build/SingleExe.scons#L634 https://github.com/Nuitka/Nuitka/blob/18a0ab3ee7f9f35d8ac5ec967995c6dce731f56d/nuitka/build/SingleExe.scons#L1263 https://github.com/Nuitka/Nuitka/blob/18a0ab3ee7f9f35d8ac5ec967995c6dce731f56d/nuitka/build/SingleExe.scons#L1428
is expecting the gcc compiler name in the $CC/$CXX to have g++
or gcc
in the name, in some linux distros, gcc
and g++
are also name c++
and cc
.
the conda-forge compiler, has name x86_64-conda_cos6-linux-gnu-cc
and x86_64-conda_cos6-linux-gnu-c++
, hence nuika fails.
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (9 by maintainers)
So this is in the latest pre-release, and will be in 0.6.4 eventually.
So this is on factory for a while, sorry I forgot to mention that:
http://nuitka.net/doc/factory.html