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

Error building Nim compiler: cp: bin/nim: No such file or directory #302

Closed
jorisbontje opened this issue Apr 3, 2019 · 3 comments
Closed

Comments

@jorisbontje
Copy link

jorisbontje commented Apr 3, 2019

With a clean checkout on OSX. nim 0.19.4 has previously been installed via choosenim stable.

git clone [email protected]:status-im/nimbus.git
Cloning into 'nimbus'...
remote: Enumerating objects: 1, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 10193 (delta 0), reused 1 (delta 0), pack-reused 10192
Receiving objects: 100% (10193/10193), 5.94 MiB | 3.03 MiB/s, done.
Resolving deltas: 100% (8202/8202), done.
➜  nim cd nimbus
➜  nimbus git:(master) make
Submodule 'vendor/Nim' (https://github.com/status-im/Nim.git) registered for path 'vendor/Nim'
Submodule 'vendor/Nim-csources' (https://github.com/nim-lang/csources.git) registered for path 'vendor/Nim-csources'
Submodule 'vendor/go/src/github.com/libp2p/go-libp2p-daemon' (https://github.com/libp2p/go-libp2p-daemon.git) registered for path 'vendor/go/src/github.com/libp2p/go-libp2p-daemon'
Submodule 'vendor/nim-beacon-chain' (https://github.com/status-im/nim-beacon-chain.git) registered for path 'vendor/nim-beacon-chain'
Submodule 'vendor/nim-blscurve' (https://github.com/status-im/nim-blscurve) registered for path 'vendor/nim-blscurve'
Submodule 'vendor/nim-bncurve' (https://github.com/status-im/nim-bncurve.git) registered for path 'vendor/nim-bncurve'
Submodule 'vendor/nim-byteutils' (https://github.com/status-im/nim-byteutils.git) registered for path 'vendor/nim-byteutils'
Submodule 'vendor/nim-chronicles' (https://github.com/status-im/nim-chronicles.git) registered for path 'vendor/nim-chronicles'
Submodule 'vendor/nim-chronos' (https://github.com/status-im/nim-chronos.git) registered for path 'vendor/nim-chronos'
Submodule 'vendor/nim-confutils' (https://github.com/status-im/nim-confutils.git) registered for path 'vendor/nim-confutils'
Submodule 'vendor/nim-eth' (https://github.com/status-im/nim-eth.git) registered for path 'vendor/nim-eth'
Submodule 'vendor/nim-faststreams' (https://github.com/status-im/nim-faststreams.git) registered for path 'vendor/nim-faststreams'
Submodule 'vendor/nim-http-utils' (https://github.com/status-im/nim-http-utils.git) registered for path 'vendor/nim-http-utils'
Submodule 'vendor/nim-json-rpc' (https://github.com/status-im/nim-json-rpc.git) registered for path 'vendor/nim-json-rpc'
Submodule 'vendor/nim-json-serialization' (https://github.com/status-im/nim-json-serialization.git) registered for path 'vendor/nim-json-serialization'
Submodule 'vendor/nim-libp2p' (https://github.com/status-im/nim-libp2p.git) registered for path 'vendor/nim-libp2p'
Submodule 'vendor/nim-package-visible-types' (https://github.com/zah/nim-package-visible-types.git) registered for path 'vendor/nim-package-visible-types'
Submodule 'vendor/nim-ranges' (https://github.com/status-im/nim-ranges.git) registered for path 'vendor/nim-ranges'
Submodule 'vendor/nim-rocksdb' (https://github.com/status-im/nim-rocksdb.git) registered for path 'vendor/nim-rocksdb'
Submodule 'vendor/nim-secp256k1' (https://github.com/status-im/nim-secp256k1.git) registered for path 'vendor/nim-secp256k1'
Submodule 'vendor/nim-serialization' (https://github.com/status-im/nim-serialization.git) registered for path 'vendor/nim-serialization'
Submodule 'vendor/nim-std-shims' (https://github.com/status-im/nim-std-shims.git) registered for path 'vendor/nim-std-shims'
Submodule 'vendor/nim-stint' (https://github.com/status-im/nim-stint.git) registered for path 'vendor/nim-stint'
Submodule 'vendor/nimble' (https://github.com/nim-lang/nimble.git) registered for path 'vendor/nimble'
Submodule 'vendor/nimcrypto' (https://github.com/cheatfate/nimcrypto.git) registered for path 'vendor/nimcrypto'
Submodule 'vendor/snappy' (https://github.com/jangko/snappy.git) registered for path 'vendor/snappy'
Submodule 'vendor/tempfile.nim' (https://github.com/OpenSystemsLab/tempfile.nim.git) registered for path 'vendor/tempfile.nim'
Cloning into '/Users/user/Projects/nim/nimbus/vendor/Nim'...
Cloning into '/Users/user/Projects/nim/nimbus/vendor/Nim-csources'...
Cloning into '/Users/user/Projects/nim/nimbus/vendor/go/src/github.com/libp2p/go-libp2p-daemon'...
Cloning into '/Users/user/Projects/nim/nimbus/vendor/nim-beacon-chain'...
Cloning into '/Users/user/Projects/nim/nimbus/vendor/nim-blscurve'...
Cloning into '/Users/user/Projects/nim/nimbus/vendor/nim-bncurve'...
Cloning into '/Users/user/Projects/nim/nimbus/vendor/nim-byteutils'...
Cloning into '/Users/user/Projects/nim/nimbus/vendor/nim-chronicles'...
Cloning into '/Users/user/Projects/nim/nimbus/vendor/nim-chronos'...
Cloning into '/Users/user/Projects/nim/nimbus/vendor/nim-confutils'...
Cloning into '/Users/user/Projects/nim/nimbus/vendor/nim-eth'...
Cloning into '/Users/user/Projects/nim/nimbus/vendor/nim-faststreams'...
Cloning into '/Users/user/Projects/nim/nimbus/vendor/nim-http-utils'...
Cloning into '/Users/user/Projects/nim/nimbus/vendor/nim-json-rpc'...
Cloning into '/Users/user/Projects/nim/nimbus/vendor/nim-json-serialization'...
Cloning into '/Users/user/Projects/nim/nimbus/vendor/nim-libp2p'...
Cloning into '/Users/user/Projects/nim/nimbus/vendor/nim-package-visible-types'...
Cloning into '/Users/user/Projects/nim/nimbus/vendor/nim-ranges'...
Cloning into '/Users/user/Projects/nim/nimbus/vendor/nim-rocksdb'...
Cloning into '/Users/user/Projects/nim/nimbus/vendor/nim-secp256k1'...
Cloning into '/Users/user/Projects/nim/nimbus/vendor/nim-serialization'...
Cloning into '/Users/user/Projects/nim/nimbus/vendor/nim-std-shims'...
Cloning into '/Users/user/Projects/nim/nimbus/vendor/nim-stint'...
Cloning into '/Users/user/Projects/nim/nimbus/vendor/nimble'...
Cloning into '/Users/user/Projects/nim/nimbus/vendor/nimcrypto'...
Cloning into '/Users/user/Projects/nim/nimbus/vendor/snappy'...
Cloning into '/Users/user/Projects/nim/nimbus/vendor/tempfile.nim'...
Submodule path 'vendor/Nim': checked out '4b2f0035007d4060dd16279c8c5e49c0cfb3b8f7'
Submodule path 'vendor/Nim-csources': checked out 'b56e49bbedf62db22eb26388f98262e2948b2cbc'
Submodule path 'vendor/go/src/github.com/libp2p/go-libp2p-daemon': checked out 'd048665c339ac1b6fa8c9ac1dac6d1b8d59959ec'
Submodule path 'vendor/nim-beacon-chain': checked out 'cf2b9e5a84e41639935909eab2fb1a4e41812baf'
Submodule path 'vendor/nim-blscurve': checked out '7c18d7c5eb509803be7739ffb1028b4650215c07'
Submodule 'amcl' (https://github.com/apache/incubator-milagro-crypto) registered for path 'vendor/nim-blscurve/amcl'
Cloning into '/Users/user/Projects/nim/nimbus/vendor/nim-blscurve/amcl'...
Submodule path 'vendor/nim-blscurve/amcl': checked out 'd43ac938722c74a7f814b914ecfc67701f49562c'
Submodule path 'vendor/nim-bncurve': checked out 'c356fd9fa9a2aa250cc8fa440782404f6b87f792'
Submodule path 'vendor/nim-byteutils': checked out '1beb0f608983e00b9ef962cc59ae8d9893102247'
Submodule path 'vendor/nim-chronicles': checked out 'bfaee503739bb9b1627bf4a828b135262bc7313b'
Submodule path 'vendor/nim-chronos': checked out '7d63a1b54d2e1ab8fdd0bdbb95d3c84147ccf46f'
Submodule path 'vendor/nim-confutils': checked out '5ee45828fa626595297c6249aa6652820016835a'
Submodule path 'vendor/nim-eth': checked out '7954c0c7ed98be314ce023ebd7ecee0e926bf0c1'
Submodule path 'vendor/nim-faststreams': checked out '6e839bb5fa3373d23b8358652ee15ed05574d22f'
Submodule path 'vendor/nim-http-utils': checked out '15c4c465b61312062e57a3f781e521466c6b24d3'
Submodule path 'vendor/nim-json-rpc': checked out '2d3db88137ccf62a3d9fcbcecefd32f6a86bec91'
Submodule path 'vendor/nim-json-serialization': checked out '24191689fae75bce9f584f26d49e250205da40e9'
Submodule path 'vendor/nim-libp2p': checked out '6f4f86ec88b14e7f2e0959f537857adedb8f2c06'
Submodule 'libp2p/crypto/BearSSL' (https://www.bearssl.org/git/BearSSL) registered for path 'vendor/nim-libp2p/libp2p/crypto/BearSSL'
Cloning into '/Users/user/Projects/nim/nimbus/vendor/nim-libp2p/libp2p/crypto/BearSSL'...
Submodule path 'vendor/nim-libp2p/libp2p/crypto/BearSSL': checked out 'c1bb5356bb52984178c269886b6835b532ef30c2'
Submodule path 'vendor/nim-package-visible-types': checked out 'cbdee48feb05045c673e7d2cab16ae0f5c957157'
Submodule path 'vendor/nim-ranges': checked out '7c422ae0277c1e3208ce3b8b4cc8dd16beeb31a7'
Submodule path 'vendor/nim-rocksdb': checked out '2e858e6b9a39d78d87fbbcafe706d22f1789b70e'
Submodule path 'vendor/nim-secp256k1': checked out '53baf442f2dd711768b96688f9ac1bfed90e7d61'
Submodule 'secp256k1_wrapper/secp256k1' (https://github.com/status-im/secp256k1.git) registered for path 'vendor/nim-secp256k1/secp256k1_wrapper/secp256k1'
Cloning into '/Users/user/Projects/nim/nimbus/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1'...
Submodule path 'vendor/nim-secp256k1/secp256k1_wrapper/secp256k1': checked out 'be6f5385330905bf1d7cc441be6703cfa7aef847'
Submodule path 'vendor/nim-serialization': checked out '6804ea25372de5919ef87cf13c7544770aacba2f'
Submodule path 'vendor/nim-std-shims': checked out '3c57ca75550c7363aec687448a80ba62a579a4db'
Submodule path 'vendor/nim-stint': checked out '6853ebe97c21426952ce64c2df6278514797dc3f'
Submodule path 'vendor/nimble': checked out '3d6dc90cd4dfc12b8ae9d1958e84610cf21b34bb'
Submodule path 'vendor/nimcrypto': checked out '9410cb61dff80ddcf5b91bcc13a573c5935fe8c3'
Submodule path 'vendor/snappy': checked out 'ff70dfbb47ce782bdbc29598a7beba5267b285f0'
Submodule path 'vendor/tempfile.nim': checked out '26e0239441755e5edcfd170e9aa566bb9c9eb6f3'
\e[92mBuilding:\e[39m Nim compiler
cp: bin/nim: No such file or directory
make: *** [vendor/Nim/bin/nim] Error 1
@jorisbontje
Copy link
Author

jorisbontje commented Apr 3, 2019

Nim build seems to fail silently due to missing macOS system headers, solution to install them with:
open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg

See also https://developer.apple.com/documentation/xcode_release_notes/xcode_10_release_notes

@stefantalpalaru
Copy link
Contributor

How can we prevent this? Is requiring an Xcode installation enough?

@stefantalpalaru
Copy link
Contributor

stefantalpalaru commented Apr 3, 2019

Found it in the release notes. That manual unpacking step is required to get headers in standard locations.

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