Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build on Android #2567

Closed
trusktr opened this issue Feb 24, 2018 · 1 comment
Closed

Unable to build on Android #2567

trusktr opened this issue Feb 24, 2018 · 1 comment

Comments

@trusktr
Copy link

trusktr commented Feb 24, 2018

I have a project that depends on sass (loader, with Webpack, etc). When I run npm install on this project in Android (inside Termux which provides a Debian-based Linux environment including apt-get, etc) I get a node-gyp build error like this:

/data/data/com.termux/files/usr/bin/ld: Release/obj.target/src/sass.a(base64vlq.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `_ZN4Sass9Base64VLQ10CHARACTERSE' which may bind externally can not be used when making a shared object; recompile with -fPIC
Release/obj.target/src/sass.a(base64vlq.o): In function `Sass::Base64VLQ::base64_encode(int) const':
../src/libsass/src/base64vlq.cpp:(.text+0x9c): dangerous relocation: unsupported relocation
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)                             
make: *** [binding.target.mk:142: Release/obj.target/binding.node] Error 1
make: Leaving directory '/data/data/com.termux/files/home/src/watsonactivations-experiencefrontend/node_modules/node-sass/build'
gyp ERR! build error

I see it mentions to use a -fPIC option. How may I do that?

@nschonni
Copy link
Collaborator

node-sass doesn't support Android, but maybe the write-up mentioned here will help you sass/node-sass#1944 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants