2

When I use the command cargo build --release to build substrate-node-template on version polkadot-v0.9.26, the following error is emitted:

error: failed to run custom build command for `librocksdb-sys v0.6.1+6.28.2`
Caused by:
  process didn't exit successfully: `.../substrate-node-template/target/release/build/librocksdb-sys-60f437c04bdca76d/build-script-build` (exit status: 127)
  --- stderr
  Inconsistency detected by ld.so: dl-open.c: 678: _dl_open: Assertion `_dl_debug_initialize (0, args.nsid)->r_state == RT_CONSISTENT' failed!

rust version: rustc 1.62.1 (e092d0b6b 2022-07-16) OS version:

CentOS Linux release 7.9.2009 (Core)

7
  • Are you running this in tty terminal or are you piping the output? Aug 3, 2022 at 7:17
  • @SudipGhimire yes, I tried in IntelliJ IDEA 's terminal and Xshell terminate
    – yo vo
    Aug 3, 2022 at 8:06
  • Maybe you can once try to run it in dedicated terminal app like gnome-terminal or something. It looks like some unexpected behaviour to io Aug 3, 2022 at 8:15
  • I recommend you make sure you covered all steps here: docs.substrate.io/main-docs/install/linux
    – Bruno
    Aug 4, 2022 at 11:38
  • thank you all, I have resolved this by compiling and installing GCC, LLVM from source.
    – yo vo
    Aug 6, 2022 at 1:38

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.