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
I'm trying to build a Lambda function in Rust to write to Kafka using the rdkafka crate as follows:
[dependencies]
rdkafka = { version = "0.28.0", features = ["ssl-vendored", "gssapi-vendored", "libz-static", "cmake-build"] }
I'm building it using Docker image ekidd/rust-musl-builder:1.57.0 with apt-get package libsasl2-dev installed before running cargo build --release --target x86_64-unknown-linux-musl.
Unfortunately when this crate gets build it adds a --parallel flag that's not supported by the cmake version in that Docker image. Is there any way to disable this flag or autodetect that it's not supported?
A bugfix for MSBuild refactored the way NUM_JOBS was a applied and used the new(er) --parallel flag in cmake.
It looks like the minimum supported version of cmake is now 3.12 (where as Ubuntu 18.04 LTS is on 3.10). That version of Ubuntu is only supported for another year. Perhaps another path forward would be to update rust-musl-builder to use Ubuntu 20.04 LTS which appears to use cmake3.16.
I'm trying to build a Lambda function in Rust to write to Kafka using the
rdkafka
crate as follows:I'm building it using Docker image
ekidd/rust-musl-builder:1.57.0
with apt-get packagelibsasl2-dev
installed before runningcargo build --release --target x86_64-unknown-linux-musl
.Unfortunately when this crate gets build it adds a
--parallel
flag that's not supported by thecmake
version in that Docker image. Is there any way to disable this flag or autodetect that it's not supported?See emk/rust-musl-builder#138 for the issue with more detail on the error.
The text was updated successfully, but these errors were encountered: