First, I have looked at several previous posts regarding similar build errors but have yet to get the substrate template to build locally successfully. The exact error I encounter is:
error: failed to run custom build command for `librocksdb-sys v0.8.0+7.4.4` Caused by: process didn't exit successfully: `/home/brandon/workspace/substrate-node-template/target/release/build/librocksdb-sys-c7956af65347884b/build-script-build` (exit status: 101) --- stderr thread 'main' panicked at '"enum_(unnamed_at_rocksdb/include/rocksdb/c_h_981_1)" is not a valid Ident', /home/brandon/.cargo/registry/src/GitHub.com-1ecc6299db9ec823/proc-macro2-1.0.47/src/fallback.rs:756:9 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace warning: build failed, waiting for other jobs to finish...
I do have clang and llvm installed. I have even compiled clang + llvm from sources and installed them on the computer in an attempt to make sure the build system should work. I have the
librocksdb-dev package installed as well. I am running on Debian Sid and have followed all the steps in the Linux Development Environment guide.
The output of
rustup +nightly show:
Default host: x86_64-unknown-Linux-gnu rustup home: /home/brandon/.rustup installed toolchains -------------------- stable-x86_64-unknown-Linux-gnu (default) nightly-x86_64-unknown-Linux-gnu installed targets for active toolchain -------------------------------------- wasm32-unknown-unknown x86_64-unknown-linux-gnu active toolchain ---------------- nightly-x86_64-unknown-Linux-gnu (overridden by +toolchain on the command line) rustic 1.67.0-nightly (b3bc6bf31 2022-11-24)
I noticed some people reported issues with the M1 processor; However, I am running a 12900K Intel Processor, so I doubt that is the issue.
I have entirely uninstalled
clang and even
rust and then reinstalled them. I am unsure how to continue as I am brand new to the substrate platform.