# Build error w/ Python: recompile with -fPIC

**URL:** <https://www.ruby-forum.com/t/build-error-w-python-recompile-with-fpic/220670>\
**Category:** GNU Radio\
**Created:** [June 15, 2012, 11:39pm UTC](https://www.ruby-forum.com/t/build-error-w-python-recompile-with-fpic/220670 "2012-06-15T23:39:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [June 15, 2012, 11:39pm UTC](https://www.ruby-forum.com/t/build-error-w-python-recompile-with-fpic/220670/1 "2012-06-15T23:39:47Z")

</div>

Hello,

I am trying to install gnuradio and gnuradio-companion with the  
“build-gnuradio” script from here:  
[http://gnuradio.org/redmine/projects/gnuradio/wiki/InstallingGR](http://gnuradio.org/redmine/projects/gnuradio/wiki/InstallingGR)

My Linux is  
cat \< /etc/issue  
Ubuntu 12.04 LTS \n \l  
Kernel  
uname -a  
Linux L8410 3.2.0-24-generic #39-Ubuntu SMP Mon May 21 16:52:17 UTC  
2012 x86\_64 x86\_64 x86\_64 GNU/Linux

Means I have a Fujitsu-Siemens Lifebook E8410 dual core 2,4GHz with 64  
Bit installation

Python version:  
python --version  
Python 2.7.3

and when executing the build script in verbose mode, after a while, I am  
getting this error:

Linking CXX shared module \_pmt\_swig.so  
/usr/bin/ld: /usr/local/lib/libpython2.7.a(abstract.o): relocation  
R\_X86\_64\_32S against `\_Py\_NotImplementedStruct’ can not be used when  
making a shared object; recompile with -fPIC  
/usr/local/lib/libpython2.7.a: could not read symbols: Bad value  
collect2: ld gab 1 als Ende-Status zurück  
make[2]: \*\*\* [gruel/src/swig/\_pmt\_swig.so] Fehler 1  
make[1]: \*\*\* [gruel/src/swig/CMakeFiles/\_pmt\_swig.dir/all] Fehler 2  
make: \*\*\* [all] Fehler 2  
make failed  
Exiting Gnu Radio build/install

Can someone please help what to do?

Thanks a lot!!!

Guenter (dl4mea)
