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.test(): relocation R_X86_64_PC32 against symbol `fun_' can not be used

See original GitHub issue

With 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:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
charriscommented, Jun 27, 2018

@sjackman Closing then, thanks for the feedback.

0reactions
sjackmancommented, Jun 26, 2018

I never managed to build 1.11.1, but 1.11.2 and subsequent versions up to 1.14.1 build fine.

Read more comments on GitHub >

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

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