Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported --parallel flag issued #143

Closed
JorritSalverda opened this issue Feb 18, 2022 · 2 comments · Fixed by #146
Closed

Unsupported --parallel flag issued #143

JorritSalverda opened this issue Feb 18, 2022 · 2 comments · Fixed by #146

Comments

@JorritSalverda
Copy link

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?

See emk/rust-musl-builder#138 for the issue with more detail on the error.

@aloucks
Copy link
Contributor

aloucks commented Feb 20, 2022

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 cmake 3.16.

See also: #123

@fpagliughi
Copy link

Note that this is a duplicate of issue #131

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants