dstndstn / tractor

The Tractor: measuring astronomical sources via probabilistic inference
Other
86 stars 24 forks source link

Problem with building The Tractor #84

Closed blazzen closed 3 years ago

blazzen commented 7 years ago

Hi! In commit "Merge pull request #83 from dstndstn/dungeon" (8beaa98ece98dc0c8e21a43efe604ca5f6c00b31) the following lines are added into Makefile:

_intel_mp_fourier$(PYTHON_SO_EXT): mp_fourier.i setup-mpf.py
    cat mp_fourier.i | sed s/mp_fourier/intel_mp_fourier/g > intel_mp_fourier.i
    CC=icc $(PYTHON) setup-mpf.py build_ext --inplace

This (or something else added in the last two days) forces make to use icc compiler and leads to the following error if there is no icc on the machine:

CC=icc python setup-mpf.py build_ext --inplace
running build_ext
building '_intel_mp_fourier' extension
swigging intel_mp_fourier.i to intel_mp_fourier_wrap.c
swig -python -o intel_mp_fourier_wrap.c intel_mp_fourier.i
C compiler: icc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC
compile options: '-I/home/ubuntu/miniconda/envs/astro/lib/python2.7/site-packages/numpy/core/include -I/home/ubuntu/miniconda/envs/astro/include/python2.7 -c'
extra options: '-g -xhost -qopt-report=5 -axMIC-AVX512'
icc: intel_mp_fourier_wrap.c
/bin/bash: icc: command not found
/bin/bash: icc: command not found
Makefile:29: recipe for target '_intel_mp_fourier.so' failed
make[1]: Leaving directory '/home/ubuntu/tractor/tractor'
Makefile:12: recipe for target 'mpf' failed