-
Notifications
You must be signed in to change notification settings - Fork 128
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
0.1.46 does not work #131
Comments
@fafhrd91 which version of CMake are you using. I looks like this release picked up a requirement on 3.12. That PR says The current release of snmalloc-rs only requires 3.8, so perhaps the checking is missing from cmake-rs for the new minimum version? |
we use cmake 3.10, that is fine to bump requirement but just unexpected for patch version change |
Thanks for the report, but yes the minimum version is now one that supports the |
I'm trying to see if there's a way to bump us to to 3.12 at work but I'm not sure if that's possible right now and still working on that. The patch update is affecting libz-sys which isn't using a pinned version of this and so cargo update broke the build. |
As an update we can't update it right now for reasons but pinning cmake works just fine for us by adding it as a dep to the main application with:
|
related #131 |
FYI, this is breaking builds on still supported ubuntu18.04 LTS |
I've posted before that I'm having a lot of trouble maintaining this crate and I am not the best person for the job any more. I do not have the motivation to investigate this and fix it. I can try to manage PRs and help guide others toward a solution but honestly I'm burned out on this crate and need help. If anyone is passionate about fixing this it would be great to either receive a PR or get help in maintaining this crate. |
I can try to take a look at this later today; it would make sense to me to do version checks, which should be pretty easy given the current code? Especially since |
Yes, this broke the build for my Eclipse Paho MQTT crate on Ubuntu 18.04. (eclipse-paho/paho.mqtt.rust#137) |
Is there any way to just check the version of |
Filed #146 to fix this. |
I haven't spotted this one before, but it just failed on me when testing the Ubuntu 18.04 build: The latest `cargo` uses `cmake --parallel` when building `wabt-sys` (which is required by `cwabt`, used by the V8 backend). The `--parallel` flag is only available from CMake 3.12 onwards, which is not included in the Ubuntu 18.04 distro. More info on the cmake version requirement for cmake-rs: rust-lang/cmake-rs#131 A fix was merged but a new version of the crate was not yet released: rust-lang/cmake-rs#146 Turns out the easiest way to get a binary for CMake >= 3.12 that's compatible with Ubuntu 18.04 is to install it via pip: ``` RUN apt-get install -y --no-install-recommends \ python3-pip \ python3-setuptools RUN pip3 install --upgrade pip RUN pip3 install scikit-build RUN pip3 install cmake ``` ...which worked, but pinning the dependency involved fewer moving parts and felt like a more stable solution.
The latest cargo uses cmake --parallel when building wabt-sys (which is required by cwabt, used by the V8 backend). The --parallel flag is only available from CMake 3.12 onwards, which is not included in the Ubuntu 18.04 distro. More info on the cmake version requirement for cmake-rs: rust-lang/cmake-rs#131 A fix was merged but a new version of the crate was not yet released: rust-lang/cmake-rs#146 Additionally, wabt-sys actually includes code which assumes CMake >= 3.12! See: https://ma.ttias.be/wabt-sys-compile-error-cmake-project-version-not-declared-in-scope-ubuntu-18-04/
The latest cargo uses cmake --parallel when building wabt-sys (which is required by cwabt, used by the V8 backend). The --parallel flag is only available from CMake 3.12 onwards, which is not included in the Ubuntu 18.04 distro. More info on the cmake version requirement for cmake-rs: rust-lang/cmake-rs#131 A fix was merged but a new version of the crate was not yet released: rust-lang/cmake-rs#146 Additionally, wabt-sys actually includes code which assumes CMake >= 3.12! See: https://ma.ttias.be/wabt-sys-compile-error-cmake-project-version-not-declared-in-scope-ubuntu-18-04/
The latest cargo uses cmake --parallel when building wabt-sys (which is required by cwabt, used by the V8 backend). The --parallel flag is only available from CMake 3.12 onwards, which is not included in the Ubuntu 18.04 distro. More info on the cmake version requirement for cmake-rs: rust-lang/cmake-rs#131 A fix was merged but a new version of the crate was not yet released: rust-lang/cmake-rs#146 Additionally, wabt-sys actually includes code which assumes CMake >= 3.12! See: https://ma.ttias.be/wabt-sys-compile-error-cmake-project-version-not-declared-in-scope-ubuntu-18-04/
trying to build snmalloc-rs crate and getting
Unknown argument --parallel
error. works fine with 0.1.45The text was updated successfully, but these errors were encountered: