ChileanVirtualObservatory / acalib

Advanced Computing for Astronomy Library
http://acalib.readthedocs.io/en/latest/
GNU General Public License v3.0
7 stars 13 forks source link

Python 2.7 Build issue #83

Open sclyne opened 6 years ago

sclyne commented 6 years ago

screen shot 2018-06-12 at 2 14 58 pm

I installed acalib onto my machine with python setup.py build install but came up with the following error when trying to import on Jupyter Notebook

cvalenzu commented 6 years ago

Using system's python 2.7 I didn't get any problem.

But with Anaconda's python 2.7 I replicated the error, the main issue is the compilation of the c files from morph with anaconda's gcc.

gcc -pthread -shared -B /home/tronco/anaconda3/envs/py27/compiler_compat -L/home/tronco/anaconda3/envs/py27/lib -Wl,-rpath=/home/tronco/anaconda3/envs/py27/lib -Wl,--no-as-needed -Wl,--sysroot=/ -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 build/temp.linux-x86_64-2.7/morphWrapper.o build/temp.linux-x86_64-2.7/morph.o -L/home/tronco/anaconda3/envs/py27/lib -lpython2.7 -o build/lib.linux-x86_64-2.7/morph.so
gcc: error: unrecognized command line option ‘-fno-plt’
gcc: error: unrecognized command line option ‘-fno-plt’
maray commented 6 years ago

@sclyne did you tried in Python 3? Python 2.7 is being deprecated everywhere.

sclyne commented 6 years ago

I did get the same issue with python 3.