Skip to content

compile error for numpy #2

Description

@baugp

Thank you very much for this package. The cross-compilation of python works however we get an error for the numpy package. We would be very grateful if you could give us directions to solve this.

In the Makefile:

numpyxc: numpy | $(MIC_PY_HOME) $(NP_UTILS)
    build_clib forces config.h to be created; it needs to be modified before extensions are built
    cd numpy && PYTHONXCPREFIX=$(MIC_PY_HOME) python numpyxc.py build_clib
    sed '/INTRIN/ d' -i numpy/build/*/numpy/core/include/numpy/config.h
**FAILS:  cd numpy && PYTHONXCPREFIX=$(MIC_PY_HOME) python numpyxc.py build**
    cd numpy && PYTHONXCPREFIX=$(MIC_PY_HOME) python numpyxc.py install --prefix=$(MIC_PY_HOME)

Error Message:

compile options: '-DHAVE_NPY_CONFIG_H=1 -Inumpy/core/include -Ibuild/src.linux-x86_64-2.6/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -Inumpy/core/include -I/usr/include/python2.6 -c'
icc: numpy/core/src/dummymodule.c
icc: command line remark #10364: Using '-fp-model strict' forces the compiler to generate legacy floating-point instructions instead of KNC for most floating-point operations, which may impact performance.  Consider using a floating-point model that allows the compiler to assume the default floating-point environment. 
icc -mmic -mkl -fPIC -fp-model strict -g -I/home/kml112/Downloads/PYTHON_MIC/PyPhi-master/python/_install/include -L/home/kml112/Downloads/PYTHON_MIC/PyPhi-master/python/_install/lib -L/home/kml112/Downloads/PYTHON_MIC/PyPhi-master/python/_install/lib/python2.7 -L/home/kml112/Downloads/PYTHON_MIC/PyPhi-master/python/_install/lib/python2.7/site-packages/numpy/core/lib -shared build/temp.linux-x86_64-2.6/numpy/core/src/dummymodule.o -L/usr/lib64 -Lbuild/temp.linux-x86_64-2.6 -lpython2.6 -o build/lib.linux-x86_64-2.6/numpy/core/_dummy.so
icc: command line remark #10364: Using '-fp-model strict' forces the compiler to generate legacy floating-point instructions instead of KNC for most floating-point operations, which may impact performance.  Consider using a floating-point model that allows the compiler to assume the default floating-point environment. 
x86_64-k1om-linux-ld: skipping incompatible /usr/lib64/libpython2.6.so when searching for -lpython2.6
x86_64-k1om-linux-ld: cannot find -lpython2.6
x86_64-k1om-linux-ld: skipping incompatible /usr/lib64/libm.so when searching for -lm
x86_64-k1om-linux-ld: skipping incompatible /usr/lib64/libpthread.so when searching for -lpthread
icc: command line remark #10364: Using '-fp-model strict' forces the compiler to generate legacy floating-point instructions instead of KNC for most floating-point operations, which may impact performance.  Consider using a floating-point model that allows the compiler to assume the default floating-point environment. 
x86_64-k1om-linux-ld: skipping incompatible /usr/lib64/libpython2.6.so when searching for -lpython2.6
x86_64-k1om-linux-ld: cannot find -lpython2.6
x86_64-k1om-linux-ld: skipping incompatible /usr/lib64/libm.so when searching for -lm
x86_64-k1om-linux-ld: skipping incompatible /usr/lib64/libpthread.so when searching for -lpthread
error: Command "icc -mmic -mkl -fPIC -fp-model strict -g -I/home/kml112/Downloads/PYTHON_MIC/PyPhi-master/python/_install/include -L/home/kml112/Downloads/PYTHON_MIC/PyPhi-master/python/_install/lib -L/home/kml112/Downloads/PYTHON_MIC/PyPhi-master/python/_install/lib/python2.7 -L/home/kml112/Downloads/PYTHON_MIC/PyPhi-master/python/_install/lib/python2.7/site-packages/numpy/core/lib -shared build/temp.linux-x86_64-2.6/numpy/core/src/dummymodule.o -L/usr/lib64 -Lbuild/temp.linux-x86_64-2.6 -lpython2.6 -o build/lib.linux-x86_64-2.6/numpy/core/_dummy.so" failed with exit status 1
make: *** [numpyxc] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions