Problems building Cython with icc #1591

Open
dbalague opened this Issue Jan 24, 2017 · 1 comment

Projects

None yet

2 participants

@dbalague

I am having trouble compiling Cython 0.25.2 using icc. (version 17.0.1)

The problems occur when trying to compile the following files with the corresponding compiler options:

icc -shared -ipo build/temp.linux-x86_64-3.5/usr/local/python/modules/Cython-0.25.2/Cython/Compiler/Parsing.o -o build/lib.linux-x86_64-3.5/Cython/Compiler/Parsing.cpython-35m-x86_64-linux-gnu.so

icc -shared -ipo build/temp.linux-x86_64-3.5/usr/local/python/modules/Cython-0.25.2/Cython/Compiler/Code.o -o build/lib.linux-x86_64-3.5/Cython/Compiler/Code.cpython-35m-x86_64-linux-gnu.so

icc -shared -ipo build/temp.linux-x86_64-3.5/usr/local/python/modules/Cython-0.25.2/Cython/Tempita/_tempita.o -o build/lib.linux-x86_64-3.5/Cython/Tempita/_tempita.cpython-35m-x86_64-linux-gnu.so

All three led to this error:

": internal error: 010101_(5000 + 54)

icc: error #10014: problem during multi-file optimization compilation (code 4)
error: command 'icc' failed with exit status 4

I worked around it by compiling the three files manually with icc -shared -O0 instead, and I could finish building and installing Cython with no further problems.

Also, I could run

cd Demos
python setup.py build_ext --inplace

And the examples:

python run_primes.py
python run_spam.py
python run_numeric_demo.py

worked with no problems.

@robertwb
Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment