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 compiling on Apple M1 #501

Closed
fgadaleta opened this issue Mar 2, 2021 · 2 comments · Fixed by #503
Closed

Error compiling on Apple M1 #501

fgadaleta opened this issue Mar 2, 2021 · 2 comments · Fixed by #503

Comments

@fgadaleta
Copy link

fgadaleta commented Mar 2, 2021

error: failed to run custom build command for `librocksdb-sys v6.15.4 (/Users/frag/c0ding/rust-rocksdb/librocksdb-sys)`

Caused by:
  process didn't exit successfully: `/Users/frag/c0ding/rust-rocksdb/target/debug/build/librocksdb-sys-101463008f387c24/build-script-build` (exit code: 1)
  --- stdout
  cargo:rerun-if-changed=rocksdb/
  TARGET = Some("aarch64-apple-darwin")
  OPT_LEVEL = Some("0")
  HOST = Some("aarch64-apple-darwin")
  CXX_aarch64-apple-darwin = None
  CXX_aarch64_apple_darwin = None
  HOST_CXX = None
  CXX = None
  CXXFLAGS_aarch64-apple-darwin = None
  CXXFLAGS_aarch64_apple_darwin = None
  HOST_CXXFLAGS = None
  CXXFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("true")
  CARGO_CFG_TARGET_FEATURE = Some("crc,crypto,fp,fp16,lse,neon,ras,rcpc,rdm,v8.1a,v8.2a,v8.3a")


...



  error occurred: Command "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-arch" "arm64" "-I/opt/homebrew/opt/llvm/include" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.8.1/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_MACOSX" "-DROCKSDB_PLATFORM_POSIX" "-DROCKSDB_LIB_IO_POSIX" "-o" "/Users/frag/c0ding/rust-rocksdb/target/debug/build/librocksdb-sys-bbc1053d7bb657a7/out/rocksdb/util/crc32c.o" "-c" "rocksdb/util/crc32c.cc" with args "c++" did not execute successfully (status code exit code: 1).



@aleksuss
Copy link
Member

aleksuss commented Mar 2, 2021

Here is a PR #483

@fgadaleta
Copy link
Author

Adding

[dependencies.rocksdb]
optional = true
version = "0.15"
git = "https://github.com/hayesgm/rust-rocksdb"
branch = "hayesgm/apple-silicon"

however is not backward compatible with master and other errors are raised

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

Successfully merging a pull request may close this issue.

2 participants