Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Fails to build on armhf, linking failure due to missing -fPIC in build #294

Closed
rhertzog opened this issue Apr 4, 2014 · 1 comment
Closed

Comments

@rhertzog
Copy link

rhertzog commented Apr 4, 2014

On a Kali Linux 1.0.6 armhf system, which is very close to Debian 7 Wheezy, therubyracer fails to build. It can be seen in this build log for example: http://repo.kali.org/build-logs/beef-xss_0.4.4.9+0~git1395812733.dde007-1-kali-bleeding-edge-armhf-20140326-004718.849.log

Here's the relevant extract:

Installing therubyracer (0.12.1) with native extensions 
�[33mGem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /usr/bin/ruby1.9.1 extconf.rb 
checking for main() in -lpthread... yes
creating Makefile

make
make[2]: Entering directory `/«BUILDDIR»/beef-xss-0.4.4.9+0~git1395812733.dde007/bundle/ruby/1.9.1/gems/therubyracer-0.12.1/ext/v8'
compiling value.cc
[...]
compiling template.cc
linking shared-object v8/init.so
/usr/bin/ld: /«BUILDDIR»/beef-xss-0.4.4.9+0~git1395812733.dde007/bundle/ruby/1.9.1/gems/libv8-3.16.14.3/vendor/v8/out/arm.release/obj.target/tools/gyp/libv8_base.a(api.o): relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/«BUILDDIR»/beef-xss-0.4.4.9+0~git1395812733.dde007/bundle/ruby/1.9.1/gems/libv8-3.16.14.3/vendor/v8/out/arm.release/obj.target/tools/gyp/libv8_base.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [init.so] Error 1
make[2]: Leaving directory `/«BUILDDIR»/beef-xss-0.4.4.9+0~git1395812733.dde007/bundle/ruby/1.9.1/gems/therubyracer-0.12.1/ext/v8'

I'm available to provide further information and to try out any patch.

@rhertzog
Copy link
Author

rhertzog commented Apr 4, 2014

Sorry, seems to be a duplicate of #255

@rhertzog rhertzog closed this as completed Apr 4, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant