Skip to content

Instantly share code, notes, and snippets.

@luandro
Created June 26, 2019 12:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luandro/bf776e16f25d9f063651865bef82709a to your computer and use it in GitHub Desktop.
Save luandro/bf776e16f25d9f063651865bef82709a to your computer and use it in GitHub Desktop.
sodium-native build error with nodejs-mobile-react-native
checking whether make supports the include directive... yes (GNU style)
checking for gcc... /Users/Sites/ssbcmobile/android/build/standalone-toolchains/arm-linux-androideabi/bin/arm-linux-androideabi-clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... Modulesarmeabi-v7a
checking whether we are cross compiling... configure: error: in `/Users/Sites/ssbcmobile/android/build/nodejs-native-assets-temp-build/nodejs-native-assets-armeabi-v7a/nodejs-project/node_modules/sodium-native/libsodium':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
/Users/Sites/ssbcmobile/android/build/nodejs-native-assets-temp-build/nodejs-native-assets-armeabi-v7a/nodejs-project/node_modules/sodium-native/preinstall.js:119
if (err) throw err
^
Error: ./configure exited with 1
at ChildProcess.<anonymous> (/Users/Sites/ssbcmobile/android/build/nodejs-native-assets-temp-build/nodejs-native-assets-armeabi-v7a/nodejs-project/node_modules/sodium-native/preinstall.js:149:25)
at ChildProcess.emit (events.js:189:13)
at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
npm verb lifecycle sodium-native@2.4.2~install: unsafe-perm in lifecycle true
npm verb lifecycle sodium-native@2.4.2~install: PATH: /Users/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/Sites/ssbcmobile/android/build/nodejs-native-assets-temp-build/nodejs-native-assets-armeabi-v7a/nodejs-project/node_modules/sodium-native/node_modules/.bin:/Users/Sites/ssbcmobile/android/build/nodejs-native-assets-temp-build/nodejs-native-assets-armeabi-v7a/nodejs-project/node_modules/.bin:/Users/Sites/ssbcmobile/android/../nodejs-assets/nodejs-project/node_modules/.bin:/Users/.nvm/versions/node/v10.15.3/bin:/Users/.cargo/bin:/Users/.cargo/env:/Users/Library/Python/2.7/lib/python/site-packages:/Users/.yarn/bin:/Users/.config/yarn/global/node_modules/.bin:/usr/local/bin:/usr/local/sbin:/Users/.nvm/versions/node/v8.13.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:/usr/local/go/bin:/Users/Library/Android/sdk/tools:/Users/Library/Android/sdk/tools/bin:/Users/Library/Android/sdk/platform-tools:/Users/Library/Android/sdk/emulator:/Users/.rvm/bin
npm verb lifecycle sodium-native@2.4.2~install: CWD: /Users/Sites/ssbcmobile/android/build/nodejs-native-assets-temp-build/nodejs-native-assets-armeabi-v7a/nodejs-project/node_modules/sodium-native
npm info lifecycle sodium-native@2.4.2~install: Failed to exec install script
npm verb stack Error: sodium-native@2.4.2 install: `node-gyp-build "node preinstall.js" "node postinstall.js"`
npm verb stack Exit status 1
npm verb stack at EventEmitter.<anonymous> (/Users/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
npm verb stack at EventEmitter.emit (events.js:189:13)
npm verb stack at ChildProcess.<anonymous> (/Users/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
npm verb stack at ChildProcess.emit (events.js:189:13)
npm verb stack at maybeClose (internal/child_process.js:970:16)
npm verb stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
npm verb pkgid sodium-native@2.4.2
npm verb cwd /Users/Sites/ssbcmobile/android/build/nodejs-native-assets-temp-build/nodejs-native-assets-armeabi-v7a/nodejs-project
npm verb Darwin 16.7.0
npm verb argv "/Users/.nvm/versions/node/v10.15.3/bin/node" "/Users/.nvm/versions/node/v10.15.3/bin/npm" "--verbose" "rebuild" "--build-from-source"
npm verb node v10.15.3
npm verb npm v6.4.1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sodium-native@2.4.2 install: `node-gyp-build "node preinstall.js" "node postinstall.js"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sodium-native@2.4.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm verb exit [ 1, true ]
npm timing npm Completed in 171837ms
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/.npm/_logs/2019-06-26T11_48_53_816Z-debug.log
> Task :nodejs-mobile-react-native:BuildNpmModulesarmeabi-v7a FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':nodejs-mobile-react-native:BuildNpmModulesarmeabi-v7a'.
> Process 'command 'npm'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 3m 5s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment