You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cargo:warning=In file included from rocksdb/table/block_based/data_block_hash_index.cc:9:
cargo:warning=rocksdb/table/block_based/data_block_hash_index.h:65:7: error: ‘uint8_t’ does not name a type
cargo:warning= 65 | const uint8_t kNoEntry = 255;
cargo:warning= | ^~~~~~~
cargo:warning=rocksdb/table/block_based/data_block_hash_index.h:1:1: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
cargo:warning= +++ |+#include <cstdint>
cargo:warning= 1 | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
LLVM and C++ were installed through arch's standard repositories. It was also the same error after disabling sccache.
At first I updated the rocksdb dependency in radix-engine-stores from 0.19.0 to 0.21.0, and this fixed the build for me and the install seemed to be successful. I'm not sure if this would silently break things though.
Then my colleague pointed out that Arch's default gcc installation has some breaking changes, so the fix was:
Install libc++ via pacman
Set the environment variables: export CC=clang CXX=clang++ CXXFLAGS="-stdlib=libc++"
In the simulator folder, add a build.rs file with contents:
fnmain(){println!("cargo:rustc-link-lib=c++");}
And this also fixed the installation.
The text was updated successfully, but these errors were encountered:
I tried installing Resim (the
simulator
folder) on Arch Linux and ran into an error at thecargo install --path ./simulator
step:There were also a bunch of errors like
LLVM and C++ were installed through arch's standard repositories. It was also the same error after disabling
sccache
.At first I updated the
rocksdb
dependency inradix-engine-stores
from0.19.0
to0.21.0
, and this fixed the build for me and the install seemed to be successful. I'm not sure if this would silently break things though.Then my colleague pointed out that Arch's default
gcc
installation has some breaking changes, so the fix was:Install
libc++
via pacmanSet the environment variables:
export CC=clang CXX=clang++ CXXFLAGS="-stdlib=libc++"
In the
simulator
folder, add abuild.rs
file with contents:And this also fixed the installation.
The text was updated successfully, but these errors were encountered: