Originally posted by: Teej42
This is a followup on the prior page regarding installation of SciPy on AIX.
Based on my work with NumPy - https://github.com/xianyi/OpenBLAS/issues/1803 - I set up the following commands to run:
# export LDFLAGS='-lpthread'
# export CC='gcc -pthread -lm -lgcc -lgomp -lgfortran -maix64'
# export PATH=/opt/freeware/bin:$PATH
# python_64 setup.py install > install.txt 2>&1
There are a number of conflict errors coming from the codebase:
In file included from /opt/freeware/include/python2.7/Python.h:44:0,
from scipy/special/cephes/mconf.h:61,
from scipy/special/cephes/chbevl.c:61:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/6.3.0/include-fixed/unistd.h:210:16: error: conflicting types for 'lseek64'
extern off64_t lseek64(int, off64_t, int);
^~~~~~~
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/6.3.0/include-fixed/unistd.h:208:14: note: previous declaration of 'lseek64' was here
extern off_t lseek(int, off_t, int);
^
This occurred several times with other functions, such as ftruncate64, lockf64, et cetera. Then I have this:
error: Command "gcc -pthread -lm -lgcc -lgomp -lgfortran -maix64 -fno-strict-aliasing -D_GNU_SOURCE -fPIC -fno-strict-aliasing -fwrapv -D_LINUX_SOURCE_COMPAT -I/usr/include -I/opt/freeware/include -I/opt/freeware/include/ncurses -DNDEBUG -D_GNU_SOURCE -fPIC -fno-strict-aliasing -fwrapv -I/medstat/advantage/scratch/focal_point/download/scipy-1.1.0/scipy/special -I/opt/freeware/lib64/python2.7/site-packages/numpy-1.15.3-py2.7-aix-7.1.egg/numpy/core/include -I/opt/freeware/include/python2.7 -I/medstat/advantage/scratch/focal_point/download/scipy-1.1.0/scipy/special/c_misc -Iscipy/_lib -I/opt/freeware/lib64/python2.7/site-packages/numpy-1.15.3-py2.7-aix-7.1.egg/numpy/core/include -I/opt/freeware/include/python2.7 -c scipy/special/cephes/chbevl.c -o build/temp.aix-7.1-2.7/scipy/special/cephes/chbevl.o -MMD -MF build/temp.aix-7.1-2.7/scipy/special/cephes/chbevl.o.d" failed with exit status 1
Please advise on the resolution for this issue. Thanks!