ci.sh: build yosys from source using CMake - #234
Merged
Conversation
Yosys has switched to CMake; the Makefile build no longer works on current main. Ubuntu 22.04 apt ships CMake 3.22 which is too old (3.28+ required), so bootstrap a recent version via pip. Building yosys from source on the same runner eliminates the std::source_location ABI mismatch that caused plugin load failures when mixing an oss-cad-suite binary with a locally-compiled plugin. Both yosys and the plugin now use the same toolchain and headers. Tested: CI green on ubuntu-22.04 (run ghdl#10).
Member
|
Thank you for the analysis and the fix. However, building yosys takes too much time. So I keep the fetch of yosys, but I have updated clang++ to avoid the library incompatibility. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #229 May not be the preferred approach, since it builds Yosys from source and takes 10min extra.
Yosys has switched to CMake; the Makefile build no longer works on current main. Ubuntu 22.04 apt ships CMake 3.22 which is too old (3.28+ required), so bootstrap a recent version via pip.
Building yosys from source on the same runner eliminates the std::source_location ABI mismatch that caused plugin load failures when mixing an oss-cad-suite binary with a locally-compiled plugin. Both yosys and the plugin now use the same toolchain and headers.
Tested: CI green on ubuntu-22.04 (run #10).