This repository was archived by the owner on Nov 28, 2025. It is now read-only.
forked from rust-rocksdb/rust-rocksdb
-
Notifications
You must be signed in to change notification settings - Fork 8
This repository was archived by the owner on Nov 28, 2025. It is now read-only.
Build of ckb-rocksdb (v0.22.0, v0.22.1, v0.22.2) Fails with Clang 10 #62
Copy link
Copy link
Open
Description
ckb-rocksdb@v0.22.2:
Compiling ckb-librocksdb-sys v9.10.2 (/old/rust-rocksdb/librocksdb-sys)
Running `/root/.rustup/toolchains/1.85.0-x86_64-unknown-linux-gnu/bin/rustc --crate-name build_script_build --edition=2024 librocksdb-sys/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=216 --crate-type bin --emit=dep-info,link -C embed-bitcode=no --cfg 'feature="bzip2"' --cfg 'feature="default"' --cfg 'feature="lz4"' --cfg 'feature="snappy"' --cfg 'feature="static"' --cfg 'feature="zlib"' --cfg 'feature="zstd"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("bzip2", "default", "io-uring", "jemalloc", "lz4", "march-native", "portable", "snappy", "static", "zlib", "zstd"))' -C metadata=39a30d144899308c -C extra-filename=-0a03a07a04fc9db7 --out-dir /old/rust-rocksdb/target/debug/build/ckb-librocksdb-sys-0a03a07a04fc9db7 -C incremental=/old/rust-rocksdb/target/debug/incremental -L dependency=/old/rust-rocksdb/target/debug/deps --extern bindgen=/old/rust-rocksdb/target/debug/deps/libbindgen-793353ee60279301.rlib --extern cc=/old/rust-rocksdb/target/debug/deps/libcc-9dc3f41b1e3a5094.rlib --extern glob=/old/rust-rocksdb/target/debug/deps/libglob-33bbcded0252f45b.rlib --extern pkg_config=/old/rust-rocksdb/target/debug/deps/libpkg_config-afe30ed060a4a8bf.rlib --extern ini=/old/rust-rocksdb/target/debug/deps/libini-98ca6967499deeae.rlib -L /usr/lib/llvm-10/lib`
error: linking with `cc` failed: exit status: 1
|
= note: LC_ALL="C" PATH="/root/.rustup/toolchains/1.85.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" VSLANG="1033" "cc" "-m64" "/tmp/rustcvBarbu/symbols.o" "<74 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/old/rust-rocksdb/target/debug/deps/{libpkg_config-afe30ed060a4a8bf.rlib,libcc-9dc3f41b1e3a5094.rlib,libjobserver-e60bc42815ee779a.rlib,libbindgen-793353ee60279301.rlib,libshlex-227a5503c1c013c2.rlib,librustc_hash-bd8feb4d23ceb443.rlib,libregex-e6ef919bb5140ac1.rlib,libregex_automata-6f5287974f503abe.rlib,libregex_syntax-ec17daa596192566.rlib,libitertools-0ab8149240da68c2.rlib,libeither-2899a9c4288d6374.rlib,libcexpr-3c2895cf91957b14.rlib,libnom-68616c58be3dc3a7.rlib,libmemchr-938d3108ad051c16.rlib,libclang_sys-6ad8e9a491900127.rlib,liblibc-79f3197096b88923.rlib,libglob-33bbcded0252f45b.rlib,libsyn-0868376ea999af7e.rlib,libquote-750d8471c164b6e5.rlib,libproc_macro2-606557c803b0b847.rlib,libunicode_ident-f309bcabb1f6e0a2.rlib}" "/root/.rustup/toolchains/1.85.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libproc_macro-57e423f2e16d22f0.rlib}" "/old/rust-rocksdb/target/debug/deps/{libbitflags-4945cbc08543ec2e.rlib,libini-98ca6967499deeae.rlib,libtrim_in_place-2d92f32b41ec3c75.rlib,libordered_multimap-fc78d5b710018ecf.rlib,libhashbrown-3c2e2821d3f2a8ae.rlib,libdlv_list-624f7a86f1df4ea0.rlib,libcfg_if-e5452c4c11d9e80c.rlib}" "/root/.rustup/toolchains/1.85.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-6273572f18644c87.rlib,libpanic_unwind-267e668abf74a283.rlib,libobject-ec6154ccae37a33e.rlib,libmemchr-500edd5521c440d4.rlib,libaddr2line-86d8d9428792e8ef.rlib,libgimli-10f06487503767c2.rlib,librustc_demangle-6a38424de1e5bca5.rlib,libstd_detect-de9763ea1c19dca3.rlib,libhashbrown-a7f5bb2f736d3c49.rlib,librustc_std_workspace_alloc-7e368919bdc4a44c.rlib,libminiz_oxide-376454d49910c786.rlib,libadler-fa99f5692b5dce85.rlib,libunwind-91cafdaf16f7fe40.rlib,libcfg_if-f7ee3f1ea78d9dae.rlib,liblibc-d3a35665f881365a.rlib,liballoc-715bc629a88bca60.rlib,librustc_std_workspace_core-ae70165d1278cff7.rlib,libcore-406129d0e3fbc101.rlib,libcompiler_builtins-1af05515ab19524a.rlib}" "-Wl,-Bdynamic" "-lclang-10.0.0" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/usr/lib/llvm-10/lib" "-L" "/root/.rustup/toolchains/1.85.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/old/rust-rocksdb/target/debug/build/ckb-librocksdb-sys-0a03a07a04fc9db7/build_script_build-0a03a07a04fc9db7" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
= note: some arguments are omitted. use `--verbose` to show all linker arguments
= note: /usr/bin/ld: /old/rust-rocksdb/target/debug/deps/libbindgen-793353ee60279301.rlib(bindgen-793353ee60279301.bindgen.70f601b42e8b7745-cgu.12.rcgu.o): in function `bindgen::clang::Type::atomic_value_type':
bindgen.70f601b42e8b7745-cgu.12:(.text._ZN7bindgen5clang4Type17atomic_value_type17hef28592e2d9b3b22E+0x4d): undefined reference to `clang_Type_getValueType'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
= note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
= note: use the `-l` flag to specify native libraries to link
= note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib)
error: could not compile `ckb-librocksdb-sys` (build script) due to 1 previous error
Caused by:
process didn't exit successfully: `/root/.rustup/toolchains/1.85.0-x86_64-unknown-linux-gnu/bin/rustc --crate-name build_script_build --edition=2024 librocksdb-sys/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=216 --crate-type bin --emit=dep-info,link -C embed-bitcode=no --cfg 'feature="bzip2"' --cfg 'feature="default"' --cfg 'feature="lz4"' --cfg 'feature="snappy"' --cfg 'feature="static"' --cfg 'feature="zlib"' --cfg 'feature="zstd"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("bzip2", "default", "io-uring", "jemalloc", "lz4", "march-native", "portable", "snappy", "static", "zlib", "zstd"))' -C metadata=39a30d144899308c -C extra-filename=-0a03a07a04fc9db7 --out-dir /old/rust-rocksdb/target/debug/build/ckb-librocksdb-sys-0a03a07a04fc9db7 -C incremental=/old/rust-rocksdb/target/debug/incremental -L dependency=/old/rust-rocksdb/target/debug/deps --extern bindgen=/old/rust-rocksdb/target/debug/deps/libbindgen-793353ee60279301.rlib --extern cc=/old/rust-rocksdb/target/debug/deps/libcc-9dc3f41b1e3a5094.rlib --extern glob=/old/rust-rocksdb/target/debug/deps/libglob-33bbcded0252f45b.rlib --extern pkg_config=/old/rust-rocksdb/target/debug/deps/libpkg_config-afe30ed060a4a8bf.rlib --extern ini=/old/rust-rocksdb/target/debug/deps/libini-98ca6967499deeae.rlib -L /usr/lib/llvm-10/lib` (exit status: 1)
ckb-rocksdb@0.22.1 and ckb-rocksdb@0.22.0:
Compiling ckb-librocksdb-sys v9.10.2 (/old/rust-rocksdb/librocksdb-sys)
Running `/root/.rustup/toolchains/1.85.0-x86_64-unknown-linux-gnu/bin/rustc --crate-name build_script_build --edition=2024 librocksdb-sys/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=216 --crate-type bin --emit=dep-info,link -C embed-bitcode=no --cfg 'feature="bzip2"' --cfg 'feature="default"' --cfg 'feature="lz4"' --cfg 'feature="snappy"' --cfg 'feature="static"' --cfg 'feature="zlib"' --cfg 'feature="zstd"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("bzip2", "default", "io-uring", "jemalloc", "lz4", "march-native", "portable", "snappy", "static", "zlib", "zstd"))' -C metadata=39a30d144899308c -C extra-filename=-0a03a07a04fc9db7 --out-dir /old/rust-rocksdb/target/debug/build/ckb-librocksdb-sys-0a03a07a04fc9db7 -C incremental=/old/rust-rocksdb/target/debug/incremental -L dependency=/old/rust-rocksdb/target/debug/deps --extern bindgen=/old/rust-rocksdb/target/debug/deps/libbindgen-793353ee60279301.rlib --extern cc=/old/rust-rocksdb/target/debug/deps/libcc-9dc3f41b1e3a5094.rlib --extern glob=/old/rust-rocksdb/target/debug/deps/libglob-33bbcded0252f45b.rlib --extern pkg_config=/old/rust-rocksdb/target/debug/deps/libpkg_config-afe30ed060a4a8bf.rlib --extern ini=/old/rust-rocksdb/target/debug/deps/libini-98ca6967499deeae.rlib -L /usr/lib/llvm-10/lib`
error: linking with `cc` failed: exit status: 1
|
= note: LC_ALL="C" PATH="/root/.rustup/toolchains/1.85.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" VSLANG="1033" "cc" "-m64" "/tmp/rustc1D6SR3/symbols.o" "<74 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/old/rust-rocksdb/target/debug/deps/{libpkg_config-afe30ed060a4a8bf.rlib,libcc-9dc3f41b1e3a5094.rlib,libjobserver-e60bc42815ee779a.rlib,libbindgen-793353ee60279301.rlib,libshlex-227a5503c1c013c2.rlib,librustc_hash-bd8feb4d23ceb443.rlib,libregex-e6ef919bb5140ac1.rlib,libregex_automata-6f5287974f503abe.rlib,libregex_syntax-ec17daa596192566.rlib,libitertools-0ab8149240da68c2.rlib,libeither-2899a9c4288d6374.rlib,libcexpr-3c2895cf91957b14.rlib,libnom-68616c58be3dc3a7.rlib,libmemchr-938d3108ad051c16.rlib,libclang_sys-6ad8e9a491900127.rlib,liblibc-79f3197096b88923.rlib,libglob-33bbcded0252f45b.rlib,libsyn-0868376ea999af7e.rlib,libquote-750d8471c164b6e5.rlib,libproc_macro2-606557c803b0b847.rlib,libunicode_ident-f309bcabb1f6e0a2.rlib}" "/root/.rustup/toolchains/1.85.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libproc_macro-57e423f2e16d22f0.rlib}" "/old/rust-rocksdb/target/debug/deps/{libbitflags-4945cbc08543ec2e.rlib,libini-98ca6967499deeae.rlib,libtrim_in_place-2d92f32b41ec3c75.rlib,libordered_multimap-fc78d5b710018ecf.rlib,libhashbrown-3c2e2821d3f2a8ae.rlib,libdlv_list-624f7a86f1df4ea0.rlib,libcfg_if-e5452c4c11d9e80c.rlib}" "/root/.rustup/toolchains/1.85.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-6273572f18644c87.rlib,libpanic_unwind-267e668abf74a283.rlib,libobject-ec6154ccae37a33e.rlib,libmemchr-500edd5521c440d4.rlib,libaddr2line-86d8d9428792e8ef.rlib,libgimli-10f06487503767c2.rlib,librustc_demangle-6a38424de1e5bca5.rlib,libstd_detect-de9763ea1c19dca3.rlib,libhashbrown-a7f5bb2f736d3c49.rlib,librustc_std_workspace_alloc-7e368919bdc4a44c.rlib,libminiz_oxide-376454d49910c786.rlib,libadler-fa99f5692b5dce85.rlib,libunwind-91cafdaf16f7fe40.rlib,libcfg_if-f7ee3f1ea78d9dae.rlib,liblibc-d3a35665f881365a.rlib,liballoc-715bc629a88bca60.rlib,librustc_std_workspace_core-ae70165d1278cff7.rlib,libcore-406129d0e3fbc101.rlib,libcompiler_builtins-1af05515ab19524a.rlib}" "-Wl,-Bdynamic" "-lclang-10.0.0" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/usr/lib/llvm-10/lib" "-L" "/root/.rustup/toolchains/1.85.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/old/rust-rocksdb/target/debug/build/ckb-librocksdb-sys-0a03a07a04fc9db7/build_script_build-0a03a07a04fc9db7" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
= note: some arguments are omitted. use `--verbose` to show all linker arguments
= note: /usr/bin/ld: /old/rust-rocksdb/target/debug/deps/libbindgen-793353ee60279301.rlib(bindgen-793353ee60279301.bindgen.70f601b42e8b7745-cgu.12.rcgu.o): in function `bindgen::clang::Type::atomic_value_type':
bindgen.70f601b42e8b7745-cgu.12:(.text._ZN7bindgen5clang4Type17atomic_value_type17hef28592e2d9b3b22E+0x4d): undefined reference to `clang_Type_getValueType'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
= note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
= note: use the `-l` flag to specify native libraries to link
= note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib)
error: could not compile `ckb-librocksdb-sys` (build script) due to 1 previous error
Caused by:
process didn't exit successfully: `/root/.rustup/toolchains/1.85.0-x86_64-unknown-linux-gnu/bin/rustc --crate-name build_script_build --edition=2024 librocksdb-sys/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=216 --crate-type bin --emit=dep-info,link -C embed-bitcode=no --cfg 'feature="bzip2"' --cfg 'feature="default"' --cfg 'feature="lz4"' --cfg 'feature="snappy"' --cfg 'feature="static"' --cfg 'feature="zlib"' --cfg 'feature="zstd"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("bzip2", "default", "io-uring", "jemalloc", "lz4", "march-native", "portable", "snappy", "static", "zlib", "zstd"))' -C metadata=39a30d144899308c -C extra-filename=-0a03a07a04fc9db7 --out-dir /old/rust-rocksdb/target/debug/build/ckb-librocksdb-sys-0a03a07a04fc9db7 -C incremental=/old/rust-rocksdb/target/debug/incremental -L dependency=/old/rust-rocksdb/target/debug/deps --extern bindgen=/old/rust-rocksdb/target/debug/deps/libbindgen-793353ee60279301.rlib --extern cc=/old/rust-rocksdb/target/debug/deps/libcc-9dc3f41b1e3a5094.rlib --extern glob=/old/rust-rocksdb/target/debug/deps/libglob-33bbcded0252f45b.rlib --extern pkg_config=/old/rust-rocksdb/target/debug/deps/libpkg_config-afe30ed060a4a8bf.rlib --extern ini=/old/rust-rocksdb/target/debug/deps/libini-98ca6967499deeae.rlib -L /usr/lib/llvm-10/lib` (exit status: 1)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels