Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

npm run install fails with "neon.o: No such file or directory" #2

Open
maackle opened this issue Oct 15, 2018 · 1 comment
Open

npm run install fails with "neon.o: No such file or directory" #2

maackle opened this issue Oct 15, 2018 · 1 comment

Comments

@maackle
Copy link
Collaborator

maackle commented Oct 15, 2018

I've searched around for similar errors and this seems related: neon-bindings/neon#186. It's due to node-gyp, but I don't know how to diagnose this since this issue was from a year and a half ago.

Full error output:

npm run install

> holochain-node@0.1.0 install /Users/michael/Holo/holochain-nodejs
> neon build

neon info forcing rebuild for new build settings
neon info running cargo
   Compiling either v1.5.0
   Compiling winapi-build v0.1.1
   Compiling libc v0.2.43
   Compiling version_check v0.1.4
   Compiling winapi v0.2.8
   Compiling num-traits v0.2.5
   Compiling serde v0.8.23
   Compiling ryu v0.2.6
   Compiling serde v1.0.78
   Compiling utf8-ranges v0.1.3
   Compiling regex-syntax v0.3.9
   Compiling typenum v1.10.0
   Compiling proc-macro2 v0.4.19
   Compiling num-integer v0.1.39
   Compiling linked-hash-map v0.5.1
   Compiling unicode-xid v0.1.0
   Compiling regex v0.2.11
   Compiling lazy_static v0.2.11
   Compiling num-bigint v0.2.0
   Compiling ucd-util v0.1.1
   Compiling itoa v0.4.3
   Compiling indexmap v1.0.1
   Compiling cfg-if v0.1.5
   Compiling num-complex v0.2.0
   Compiling num-rational v0.2.1
   Compiling crunchy v0.1.6
   Compiling utf8-ranges v1.0.1
   Compiling num-iter v0.1.37
   Compiling byteorder v1.2.6
   Compiling futures v0.1.24
   Compiling arrayref v0.3.5
   Compiling byte-tools v0.2.0
   Compiling safemem v0.2.0
   Compiling runtime-fmt v0.3.0
   Compiling regex v1.0.5
   Compiling fake-simd v0.1.2
   Compiling gcc v0.3.54
   Compiling rand_core v0.2.1
   Compiling neon-build v0.2.0
   Compiling sha1 v0.5.0
   Compiling nan-preserving-float v0.1.0
   Compiling remove_dir_all v0.5.1
   Compiling same-file v1.0.3
   Compiling memory_units v0.3.0
   Compiling unwrap_to v0.1.0
   Compiling snowflake v1.3.0
   Compiling bitflags v1.0.4
   Compiling holochain_agent v0.1.0 (https://github.com/holochain/holochain-rust?branch=develop#a2e6d620)
   Compiling semver-parser v0.7.0
   Compiling cslice v0.2.0
   Compiling futures-core-preview v0.2.3
   Compiling kernel32-sys v0.2.2
   Compiling lazy_static v1.1.0
   Compiling iovec v0.1.2
   Compiling memchr v0.1.11
   Compiling num_cpus v1.8.0
   Compiling memchr v1.0.2
   Compiling memchr v2.0.2
   Compiling rand v0.4.3
   Compiling time v0.1.40
   Compiling yaml-rust v0.4.0
   Compiling regex-syntax v0.5.6
   Compiling regex-syntax v0.6.2
   Compiling log v0.4.5
   Compiling block-buffer v0.3.3
   Compiling parity-wasm v0.31.3
   Compiling serde_test v0.8.23
   Compiling base64 v0.9.2
   Compiling neon v0.2.0
   Compiling holochain-node v0.1.0 (/Users/michael/Holo/holochain-nodejs/native)
   Compiling rand v0.5.5
   Compiling walkdir v2.2.5
   Compiling futures-channel-preview v0.2.2
   Compiling semver v0.9.0
   Compiling futures-io-preview v0.2.2
   Compiling bytes v0.4.10
   Compiling futures-cpupool v0.1.8
   Compiling aho-corasick v0.5.3
   Compiling nom v3.2.1
   Compiling aho-corasick v0.6.8
   Compiling uuid v0.6.5
   Compiling linked-hash-map v0.3.0
   Compiling wasmi v0.3.0
   Compiling futures-sink-preview v0.2.2
   Compiling tempfile v3.0.3
   Compiling num-traits v0.1.43
   Compiling quote v0.6.8
   Compiling tiny-keccak v1.4.2
   Compiling thread-id v2.0.0
   Compiling futures-util-preview v0.2.2
   Compiling thread_local v0.3.6
   Compiling generic-array v0.9.0
   Compiling chrono v0.4.6
   Compiling syn v0.15.3
   Compiling syn v0.14.9
   Compiling thread_local v0.2.7
   Compiling digest v0.7.5
   Compiling futures-executor-preview v0.2.2
   Compiling toml v0.4.6
   Compiling serde_json v1.0.27
   Compiling regex v0.1.80
   Compiling serde_derive v1.0.78
   Compiling num-derive v0.2.2
   Compiling neon-runtime v0.2.0
   Compiling sha2 v0.7.1
   Compiling futures-stable-preview v0.2.3
   Compiling num v0.2.0
   Compiling serde-hjson v0.8.1
   Compiling multihash v0.8.0
   Compiling futures-async-runtime-preview v0.2.3
   Compiling rust-base58 v0.0.4
   Compiling futures-preview v0.2.2
error: failed to run custom build command for `neon-runtime v0.2.0`
process didn't exit successfully: `/Users/michael/Holo/holochain-nodejs/native/target/debug/build/neon-runtime-708e712235b867a4/build-script-build` (exit code: 101)
--- stdout
Skipping node-gyp installation as part of npm install.
up to date in 1.452s

> @ build-debug /Users/michael/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/neon-runtime-0.2.0
> node-gyp build --debug

make: Nothing to be done for `all'.
TARGET = Some("x86_64-apple-darwin")
TARGET = Some("x86_64-apple-darwin")
HOST = Some("x86_64-apple-darwin")
AR_x86_64-apple-darwin = None
AR_x86_64_apple_darwin = None
HOST_AR = None
AR = None
TARGET = Some("x86_64-apple-darwin")
TARGET = Some("x86_64-apple-darwin")
running: "ar" "crs" "/Users/michael/Holo/holochain-nodejs/native/target/debug/build/neon-runtime-ae4a9fb4009502e4/out/libneon.a" "build/Debug/obj.target/neon/src/neon.o"
cargo:warning=ar: build/Debug/obj.target/neon/src/neon.o: No such file or directory
exit code: 1

--- stderr
thread 'main' panicked at '

Internal error occurred: Command "ar" "crs" "/Users/michael/Holo/holochain-nodejs/native/target/debug/build/neon-runtime-ae4a9fb4009502e4/out/libneon.a" "build/Debug/obj.target/neon/src/neon.o" with args "ar" did not execute successfully (status code exit code: 1).

', /Users/michael/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/gcc-0.3.54/src/lib.rs:1670:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.
@sphinxc0re
Copy link
Contributor

Did you try to just npm install

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

2 participants