numpy.test(): relocation R_X86_64_PC32 against symbol `fun_' can not be used
See original GitHub issueWith numpy 1.11.0 (correction) 1.11.1 numpy.test()
gives the following error:
/gsc/btl/linuxbrew/bin/gfortran -Wall -g -L/gsc/btl/linuxbrew/lib -Wl,--dynamic-linker=/gsc/btl/linuxbrew/lib/ld.so -Wl,-rpath,/gsc/btl/linuxbrew/lib -shared /tmp/tmp71Zjud/tmp/tmp71Zjud/src.linux-x86_64-2.7/_test_ext_module_5403module.o /tmp/tmp71Zjud/tmp/tmp71Zjud/src.linux-x86_64-2.7/fortranobject.o /tmp/tmp71Zjud/tmp/tmp1ORQ11/tmptbgkJq.o -L/gsc/btl/linuxbrew/lib -L/gsc/btl/linuxbrew/opt/openssl/lib -L/gsc/btl/linuxbrew/opt/sqlite/lib -L/gsc/btl/linuxbrew/Cellar/python/2.7.11/lib -lpython2.7 -lgfortran -o ./_test_ext_module_5403.so
/gsc/btl/linuxbrew/bin/ld: /tmp/tmp71Zjud/tmp/tmp1ORQ11/tmptbgkJq.o: relocation R_X86_64_PC32 against symbol `fun_' can not be used when making a shared object; recompile with -fPIC
/gsc/btl/linuxbrew/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
A gist of the build logs are found here: https://gist.github.com/sjackman/038b13b0becc4965bca7bd73238e278b#file-03-python-L105
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
relocation R_X86_64_PC32 against symbol `_PyRuntime' can ...
relocation R_X86_64_PC32 against symbol `_PyRuntime' can not be used when making a shared object; recompile with -fPIC.
Read more >Test Support (numpy.testing) — NumPy v1.24 Manual
Raises an AssertionError if two objects are not equal up to desired tolerance. assert_array_almost_equal_nulp (x, y[, nulp]). Compare two arrays relatively to ...
Read more >Look Ma, No For-Loops: Array Programming With NumPy
How to take advantage of vectorization and broadcasting so you can use NumPy to its full capacity. In this tutorial you'll see step-by-step...
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
@sjackman Closing then, thanks for the feedback.
I never managed to build
1.11.1
, but1.11.2
and subsequent versions up to1.14.1
build fine.