numpy.distutils tries to compile without using the supplied LDFLAGS
See original GitHub issueWhile running the ‘configure’ step for pysparse (https://github.com/PythonOptimizers/pysparse), numpy fails to compile a C file because it ignores the supplied LDFLAGS:
lapack_opt_info:
openblas_lapack_info:
C compiler: cc
creating /tmp/tmpVXRmTq/tmp
creating /tmp/tmpVXRmTq/tmp/tmpVXRmTq
compile options: '-c'
cc: /tmp/tmpVXRmTq/source.c
/tmp/tmpVXRmTq/source.c:4:13: warning: implicit declaration of function 'zungqr_' is invalid in C99 [-Wimplicit-function-declaration]
zungqr_();
^
1 warning generated.
cc /tmp/tmpVXRmTq/tmp/tmpVXRmTq/source.o -L/usr/local/lib -lopenblas -o /tmp/tmpVXRmTq/a.out
//usr/local/lib/gcc48/libgfortran.so.3: undefined reference to `__multf3@GCC_4.6.0'
//usr/local/lib/gcc48/libgfortran.so.3: undefined reference to `__subtf3@GCC_4.6.0'
//usr/local/lib/gcc48/libgfortran.so.3: undefined reference to `__unordtf2@GCC_4.6.0'
Issue Analytics
- State:
- Created 7 years ago
- Comments:34 (20 by maintainers)
Top Results From Across the Web
Building from source — NumPy v1.23 Manual
It's possible to do a parallel build with: python setup.py build -j 4 install --prefix $HOME/.local. This will compile numpy on 4 CPUs...
Read more >numpy distutils -- Try to compile something and set flags if you ...
Try this: import os import shutil import tempfile from distutils.ccompiler import new_compiler def hasfunction(cc, funcname, include=None, ...
Read more >Installation — wrf-python 1.3.4.1 documentation - Read the Docs
The packages installed by the 'module load' system will not play nicely with packages installed via conda. Further, some systems will install python...
Read more >Installing the development version of scikit-learn
See instructions for Windows, macOS, Linux and FreeBSD. Build the project with pip in Editable mode: pip install --verbose --no-build-isolation --editable ...
Read more >py26-numpy 1.4.1 undefined symbols in lapack_litemodule
The issue is that LDFLAGS exists in the environment used to setup the linalg module, overriding the default values "-undefined dynamic_lookup -bundle". Without...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s not a solution, it’s a workaround, but
CC=gcc python3.5 setup.py install
did the trick for me.You may please close it?
On Thu 23 May, 2019, 4:48 AM Charles Harris, notifications@github.com wrote: