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

chore(runtime) fix cleanup of cwabt build #138

Merged
merged 2 commits into from
Aug 12, 2022
Merged

Conversation

hishamhm
Copy link
Contributor

An oopsie left over from PR #137. Caught this right now while running a full sudo ./util/release.sh --bin-all --v8 10.5.18 --ngx 1.23.1 test with an empty work/ (ie, nothing previously cached). If the release.yml action builds each package on its own clean environment that shouldn't affect it, but the leftover libcwabt built with archlinux did cause problems with centos7 when running --bin-all from the CLI.

I'm still running it, so keeping this as Draft until a full run finishes (which includes building V8 5 times...) to see if anything else comes up.

@codecov
Copy link

codecov bot commented Aug 10, 2022

Codecov Report

Merging #138 (a59ce01) into main (4807b57) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #138   +/-   ##
=======================================
  Coverage   86.83%   86.83%           
=======================================
  Files          35       35           
  Lines        5718     5718           
=======================================
  Hits         4965     4965           
  Misses        753      753           
Flag Coverage Δ
unit 86.83% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@thibaultcha
Copy link
Member

Oh missed it too, merge whenever!

@hishamhm
Copy link
Contributor Author

Spotted another surprise while clean-building cwabt on Ubuntu 18.04... another commit incoming on this PR

@hishamhm hishamhm force-pushed the chore/fix-cwabt-clean branch from 16aa299 to 9149892 Compare August 10, 2022 21:30
@hishamhm
Copy link
Contributor Author

I tried pinning cmake-rs to an older version as suggested in rust-lang/cmake-rs#131 but then I got a different failure as described here, so I really ended up going with the way of installing a recent CMake binary on Ubuntu 18.04 via pip.

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/
@hishamhm hishamhm force-pushed the chore/fix-cwabt-clean branch from 9149892 to a59ce01 Compare August 11, 2022 14:48
@hishamhm
Copy link
Contributor Author

Should be good to go (I re-ran 18.04 after the latest force push just to check for typos)

@hishamhm hishamhm marked this pull request as ready for review August 11, 2022 15:32
@hishamhm hishamhm merged commit fc05222 into main Aug 12, 2022
@hishamhm hishamhm deleted the chore/fix-cwabt-clean branch August 12, 2022 14:38
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 this pull request may close these issues.

2 participants