"pip wheel numpy" giving undefined reference errors
Hi again. When I try to build a numpy wheel (using openblas statically, and libpython2.7 statically as well), I get a lot of errors like: /tmp/pip-build-ZlPgN7/numpy/build/src.linux-x86_64-2.7/numpy/core/include/numpy/__multiarray_api.h:1642: undefined reference to `PyExc_AttributeError' /tmp/pip-build-ZlPgN7/numpy/build/src.linux-x86_64-2.7/numpy/core/include/numpy/__multiarray_api.h:1642: undefined reference to `PyErr_SetString' /tmp/pip-build-ZlPgN7/numpy/build/src.linux-x86_64-2.7/numpy/core/include/numpy/__multiarray_api.h:1642: undefined reference to `PyExc_ImportError' My first thought was "OK, I'll put -lpython2.7 in $LDFLAGS and export it", but that didn't appear to help. So I stuck -lpython2.7 in $CC (again exporting), but that didn't help either. I can see my settings being used, but they're prefixed instead of suffixed, which is perhaps causing them to be ignored due to the order sensitivity of the linker. What do I need to do to /append/ linker options when using "pip wheel"? This is on Redhat Enterprise Linux 6.5 with gcc 4.7 and GNU ld 2.20.51.0.2-5.36.el6 . And Python 2.7, unfortunately. Thanks!
participants (1)
-
Dan Stromberg