Open aaschwanden opened 10 years ago
Do we have to blame this on Maverick's Clang compiler??
If I set NO_OPENMP=1 then it compiles. I marked this as a bug, though it's probably not a regional-tools bug but rather an Apple annoyance.
Environment variable GSL_PREFIX not set. Trying known locations... Checking '/usr/'... Checking '/usr/local/'... Checking '/opt/local/'... Found GSL in '/opt/local/' running build running build_ext skipping 'python/dbg.cpp' Cython extension (up-to-date) building 'dbg' extension creating build creating build/temp.macosx-10.9-x86_64-2.7 creating build/temp.macosx-10.9-x86_64-2.7/python creating build/temp.macosx-10.9-x86_64-2.7/src /usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -pipe -Os -fwrapv -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -Isrc -I/opt/local//include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c python/dbg.cpp -o build/temp.macosx-10.9-x86_64-2.7/python/dbg.o -O3 -ffast-math -Wall -fopenmp clang: warning: argument unused during compilation: '-fopenmp' In file included from python/dbg.cpp:346: In file included from /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4: In file included from /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17: In file included from /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1761: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings] #warning "Using deprecated NumPy API, disable it by " \ ^ In file included from python/dbg.cpp:346: In file included from /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4: In file included from /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:26: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1629:1: warning: unused function '_import_array' [-Wunused-function] _import_array(void) ^ In file included from python/dbg.cpp:347: In file included from /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include/numpy/ufuncobject.h:327: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include/numpy/__ufunc_api.h:241:1: warning: unused function '_import_umath' [-Wunused-function] _import_umath(void) ^ python/dbg.cpp:6945:28: warning: unused function '__Pyx_PyObject_AsString' [-Wunused-function] static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject* o) { ^ python/dbg.cpp:6942:32: warning: unused function '__Pyx_PyUnicode_FromString' [-Wunused-function] static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(char* c_str) { ^ python/dbg.cpp:410:29: warning: unused function '__Pyx_Py_UNICODE_strlen' [-Wunused-function] static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u) ^ python/dbg.cpp:7064:33: warning: unused function '__Pyx_PyIndex_AsSsize_t' [-Wunused-function] static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) { ^ python/dbg.cpp:7093:33: warning: unused function '__Pyx_PyInt_FromSize_t' [-Wunused-function] static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) { ^ python/dbg.cpp:5575:32: warning: unused function '__Pyx_GetItemInt_List_Fast' [-Wunused-function] static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i, ^ python/dbg.cpp:5589:32: warning: unused function '__Pyx_GetItemInt_Tuple_Fast' [-Wunused-function] static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i, ^ python/dbg.cpp:6282:48: warning: unused function '__pyx_t_float_complex_from_parts' [-Wunused-function] static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float x, float y) { ^ python/dbg.cpp:6402:49: warning: unused function '__pyx_t_double_complex_from_parts' [-Wunused-function] static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double x, double y) { ^ python/dbg.cpp:6551:27: warning: function '__Pyx_PyInt_As_long' is not needed and will not be emitted [-Wunneeded-internal-declaration] static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) { ^ python/dbg.cpp:3385:32: warning: unused function '__pyx_f_5numpy_PyArray_MultiIterNew1' [-Wunused-function] static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__pyx_v_a) { ^ python/dbg.cpp:3435:32: warning: unused function '__pyx_f_5numpy_PyArray_MultiIterNew2' [-Wunused-function] static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__pyx_v_a, PyObject *__pyx_v_b) { ^ python/dbg.cpp:3485:32: warning: unused function '__pyx_f_5numpy_PyArray_MultiIterNew3' [-Wunused-function] static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c) { ^ python/dbg.cpp:3535:32: warning: unused function '__pyx_f_5numpy_PyArray_MultiIterNew4' [-Wunused-function] static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d) { ^ python/dbg.cpp:3585:32: warning: unused function '__pyx_f_5numpy_PyArray_MultiIterNew5' [-Wunused-function] static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d, PyObject *__pyx_v_e) { ^ python/dbg.cpp:4339:27: warning: unused function '__pyx_f_5numpy_set_array_base' [-Wunused-function] static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_arr, PyObject *__pyx_v_base) { ^ python/dbg.cpp:4427:32: warning: unused function '__pyx_f_5numpy_get_array_base' [-Wunused-function] static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__pyx_v_arr) { ^ 20 warnings generated. /usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -pipe -Os -fwrapv -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -Isrc -I/opt/local//include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/upslope_area.cc -o build/temp.macosx-10.9-x86_64-2.7/src/upslope_area.o -O3 -ffast-math -Wall -fopenmp clang: warning: argument unused during compilation: '-fopenmp' /usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -pipe -Os -fwrapv -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -Isrc -I/opt/local//include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/accumulated_flow.cc -o build/temp.macosx-10.9-x86_64-2.7/src/accumulated_flow.o -O3 -ffast-math -Wall -fopenmp clang: warning: argument unused during compilation: '-fopenmp' /usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -pipe -Os -fwrapv -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -Isrc -I/opt/local//include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/initialize_mask.cc -o build/temp.macosx-10.9-x86_64-2.7/src/initialize_mask.o -O3 -ffast-math -Wall -fopenmp clang: warning: argument unused during compilation: '-fopenmp' In file included from src/initialize_mask.cc:2: src/dbg_internal.hh:20:12: warning: unused function 'right_hand_side' [-Wunused-function] static int right_hand_side(double t, const double y[], double f[], void* params) { ^ 1 warning generated. /usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -pipe -Os -fwrapv -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -Isrc -I/opt/local//include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/DEM.cc -o build/temp.macosx-10.9-x86_64-2.7/src/DEM.o -O3 -ffast-math -Wall -fopenmp clang: warning: argument unused during compilation: '-fopenmp' creating build/lib.macosx-10.9-x86_64-2.7 /usr/bin/clang++ -bundle -undefined dynamic_lookup -L/opt/local/lib -Wl,-headerpad_max_install_names -L/opt/local/lib/db46 build/temp.macosx-10.9-x86_64-2.7/python/dbg.o build/temp.macosx-10.9-x86_64-2.7/src/upslope_area.o build/temp.macosx-10.9-x86_64-2.7/src/accumulated_flow.o build/temp.macosx-10.9-x86_64-2.7/src/initialize_mask.o build/temp.macosx-10.9-x86_64-2.7/src/DEM.o -L/opt/local//lib -lgsl -lgslcblas -lgomp -o build/lib.macosx-10.9-x86_64-2.7/dbg.so ld: library not found for -lgomp clang: error: linker command failed with exit code 1 (use -v to see invocation) error: command '/usr/bin/clang++' failed with exit status 1
Do we have to blame this on Maverick's Clang compiler??
If I set NO_OPENMP=1 then it compiles. I marked this as a bug, though it's probably not a regional-tools bug but rather an Apple annoyance.