jcaiuwyo / cantera

Automatically exported from code.google.com/p/cantera
0 stars 0 forks source link

during scons build, none-specified compilers are used for python3 interface #179

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
scons build env_vars=all CC=icc CXX=icpc (...) blas_lapack_libs=mkl_rt (...)

What do you see instead?
building 'cantera._cantera' extension
gcc (...) -o ../../build/temp-py3/cantera/_cantera.o
g++ (...) -o ../../build/python3/cantera/_cantera.cpython-32mu.so 

What version of the product are you using? On what operating system?
branches/2.1, Ubuntu 12.04 64bit

Please provide any additional information below.

scons build was apparently ok, then scons test fails for cython3 with 
ImportError: (...)/build/python3/cantera/_cantera.cpython-32mu.so: undefined 
symbol: __svml_log2

Original issue reported on code.google.com by bjlee....@gmail.com on 8 Oct 2013 at 2:58

GoogleCodeExporter commented 9 years ago
r2560 adds a new SCons option, 'python_compiler', which lets you specify the 
compiler used for the Cython module. If you want to use the Intel compiler for 
this, set this option to 'icpc'.

Please let me know if this fixes the problem.

Original comment by yarmond on 15 Oct 2013 at 3:02

GoogleCodeExporter commented 9 years ago
Thanks, Ray.

python_compiler=icpc works for compiling _cantera.o, but not for 
_cantera.cpython-32mu.so . This shared library is still compiled using g++. It 
looks only CC has been replaced, not CXX yet.

building 'cantera._cantera' extension
creating ../../build/temp-py3
creating ../../build/temp-py3/cantera
icpc -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector 
--param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security 
-fPIC -I. -I../../include -I/usr/lib/python2.7/dist-packages/numpy/core/include 
-I/usr/local/include -I/usr/include/python3.2mu -c cantera/_cantera.cpp -o 
../../build/temp-py3/cantera/_cantera.o
icpc: command line warning #10006: ignoring unknown option '-fwrapv'
g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions 
-Wl,-z,relro ../../build/temp-py3/cantera/_cantera.o -L../../build/lib 
-L/usr/local/lib -L/lib/intel64 -lcantera -lsundials_cvodes -lsundials_ida 
-lsundials_nvecserial -lmkl_rt -o 
../../build/python3/cantera/_cantera.cpython-32mu.so

Original comment by bjlee....@gmail.com on 15 Oct 2013 at 3:44

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r2561.

Original comment by yarmond on 15 Oct 2013 at 5:06