question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

numpy.distutils tries to compile without using the supplied LDFLAGS

See original GitHub issue

While 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:closed
  • Created 7 years ago
  • Comments:34 (20 by maintainers)

github_iconTop GitHub Comments

1reaction
arabesccommented, Feb 19, 2017

It’s not a solution, it’s a workaround, but CC=gcc python3.5 setup.py install did the trick for me.

0reactions
dvvraocommented, May 23, 2019

You may please close it?

On Thu 23 May, 2019, 4:48 AM Charles Harris, notifications@github.com wrote:

@stackyjoe https://github.com/stackyjoe Do you think we should close this as not-a-numpy issue?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/numpy/numpy/issues/7779?email_source=notifications&email_token=AG26KETUOK7QUDSF4NWO6F3PWXIFTA5CNFSM4CH2CVEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWAT4CQ#issuecomment-495009290, or mute the thread https://github.com/notifications/unsubscribe-auth/AG26KEV2JD52U2ONI7X4L6TPWXIFTANCNFSM4CH2CVEA .

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found