question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 4 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
kayhayencommented, Apr 12, 2019

So this is in the latest pre-release, and will be in 0.6.4 eventually.

1reaction
kayhayencommented, Apr 9, 2019

So this is on factory for a while, sorry I forgot to mention that:

http://nuitka.net/doc/factory.html

Read more comments on GitHub >

github_iconTop Results From Across the Web

SCons 4.4.0
Now run the scons command to build the program. On a POSIX-compliant system like Linux or UNIX, you'll see something like: % scons...
Read more >
How to make conda use its own gcc version? - Stack Overflow
gcc under conda is called gcc_linux-64, it's available in my conda list . I managed to solve it by adding symbolic links to...
Read more >
PyInstaller Documentation - Read the Docs
It can build x86_64, arm64 or hybrid universal2 binaries on macOS machines of either architecture. See. macOS multi-arch support for details. 2.1.3 GNU/Linux....
Read more >
EasyBuild v4.6.2 documentation (release 20221021.0)
The latest version of EasyBuild provides support for building and installing 2,798 different software packages, including 37 different (compiler) toolchains ...
Read more >
nuitka 1.1.5 on conda - Libraries.io
The MinGW64 C11 compiler on Windows, must be based on gcc 11.2 or ... with all listed versions, but Scons as an internally...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found