Nuitka: Anaconda static libpython is no more compatible, error: "libpython3.9.a: error adding symbols: File format not recognized"
Nuitka version:
0.7.7
Commercial: None
Python: 3.9.7 (default, Sep 16 2021, 13:09:58)
Flavor: Anaconda Python
Executable: /home/tac/miniconda3/envs/normal/bin/python
OS: Linux
Arch: x86_64
Distribution: Ubuntu (based on Debian) 18.04.6
target a.py:
print("hello world!")
nuitka command:
nuitka a.py
error output:
Nuitka-Options:INFO: Used command line options: a.py
Nuitka-Options:WARNING: You did not specify to follow or include anything but main program. Check options and make sure that is intended.
Nuitka:INFO: Starting Python compilation with Nuitka '0.7.7' on Python '3.9' commercial None.
Nuitka:INFO: Completed Python level compilation and optimization.
Nuitka:INFO: Generating source code for C backend compiler.
Nuitka:INFO: Running data composer tool for optimal constant value handling.
Nuitka:INFO: Running C compilation via Scons.
Nuitka-Scons:INFO: Backend C compiler: gcc (gcc).
Nuitka-Scons:INFO: Backend linking program (no progress information available).
/usr/bin/ld: /home/tac/miniconda3/envs/normal/lib/libpython3.9.a(abstract.o): unable to initialize decompress status for section .debug_info
/usr/bin/ld: /home/tac/miniconda3/envs/normal/lib/libpython3.9.a(abstract.o): unable to initialize decompress status for section .debug_info
/home/tac/miniconda3/envs/normal/lib/libpython3.9.a: error adding symbols: File format not recognized
collect2: error: ld returned 1 exit status
I’ve install libpython-static via command
conda install -c conda-forge libpython-static
question
Which part lead to this problem? I know adding an argument can skip this libpython part. But what if I want this feature enabled?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 21 (11 by maintainers)
yep, the easiest way to upgrade gcc in anaconda is
the installed gcc is named
x86_64-conda-linux-gnu-gcc, check gcc version using