rust-rdkafka
rust-rdkafka copied to clipboard
Build fails in git submodules
I am getting this failure:
running: "cmake" "/usr/ports/databases/materialize/work/rust-rdkafka-8ea07c4d2b96636ff093e670bc921892aee0d56a/rdkafka-sys/librdkafka" "-DRDKAFKA_BUILD_STATIC=1" "-DRDKAFKA_BUILD_TESTS=0" "-DRDKAFKA_BUILD_EXAMPLES=0" "-DCMAKE_INSTALL_LIBDIR=lib" "-DWITH_ZLIB=1" "-DWITH_CURL=0" "-DWITH_SSL=1" "-DWITH_SASL_SCRAM=1" "-DWITH_SASL_OAUTHBEARER=1" "-DWITH_SASL=0" "-DWITH_ZSTD=1" "-DENABLE_LZ4_EXT=0" "-DCMAKE_INSTALL_PREFIX=/usr/ports/databases/materialize/work/target/release/build/rdkafka-sys-ee3c7cdabebb9f9d/out" "-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64 -pipe -fstack-protector-strong -fno-strict-aliasing" "-DCMAKE_C_COMPILER=/usr/local/libexec/ccache/cc" "-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64 -pipe -fstack-protector-strong -fno-strict-aliasing" "-DCMAKE_CXX_COMPILER=/usr/local/libexec/ccache/c++" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64 -pipe -fstack-protector-strong -fno-strict-aliasing" "-DCMAKE_ASM_COMPILER=/usr/local/libexec/ccache/cc" "-DCMAKE_BUILD_TYPE=Debug"
--- stderr
Setting up submodules
Running command: "git submodule update --init" in dir: ../
Building and linking librdkafka statically
CMake Warning:
Ignoring extra path from command line:
"/usr/ports/databases/materialize/work/rust-rdkafka-8ea07c4d2b96636ff093e670bc921892aee0d56a/rdkafka-sys/librdkafka"
CMake Error: The source directory "/usr/ports/databases/materialize/work/rust-rdkafka-8ea07c4d2b96636ff093e670bc921892aee0d56a/rdkafka-sys/librdkafka" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
thread 'main' panicked at '
command did not execute successfully, got: exit status: 1
build script failed, must exit now', /usr/ports/databases/materialize/work/materialize-0.40.0/cargo-crates/cmake-0.1.48/src/lib.rs:975:5
stack backtrace:
0: rust_begin_unwind
1: core::panicking::panic_fmt
2: cmake::fail
at /usr/ports/databases/materialize/work/materialize-0.40.0/cargo-crates/cmake-0.1.48/src/lib.rs:975:5
3: cmake::run
at /usr/ports/databases/materialize/work/materialize-0.40.0/cargo-crates/cmake-0.1.48/src/lib.rs:953:9
4: cmake::Config::build
at /usr/ports/databases/materialize/work/materialize-0.40.0/cargo-crates/cmake-0.1.48/src/lib.rs:780:13
5: build_script_build::build_librdkafka
at ./build.rs:280:15
6: build_script_build::main
at ./build.rs:80:9
7: core::ops::function::FnOnce::call_once
at /wrkdirs/usr/ports/lang/rust/work/rustc-1.66.1-src/library/core/src/ops/function.rs:251:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
*** Error code 101
On one hand, this failure needs to be fixed.
On the other hand, I need to use the prebuilt version coming from the package librdkafka-1.9.2
How to use the external librdkafka?