Closed RCoeurjoly closed 2 months ago
@RCoeurjoly please note that WASI is intentionally built in build directory since that exercise out of tree build that is used in YoWASP distribution. That is then very useful since it points out if changes done in Makefiles affect out of tree builds.
@RCoeurjoly please note that WASI is intentionally built in build directory since that exercise out of tree build that is used in YoWASP distribution. That is then very useful since it points out if changes done in Makefiles affect out of tree builds.
Oh I see.
Also abc.tar.gz that is used is one from https://github.com/YosysHQ/yosys/releases This is more for situations where people are downloading specific Yosys version and corresponding abc.tar.gz file and building them on isolated environments.
Finally!!! Great job!
Thanks! It was a team effort. Also note that since you approved of the changes, I made a change to address @povik proposal here https://github.com/YosysHQ/yosys/pull/4243#discussion_r1508766314.
You may want to review that also.
This broke the YoWASP build after all: https://github.com/YoWASP/yosys/actions/runs/9010585766/job/24756882140#step:7:657
'abc' comes from a tarball. Continuing.
mkdir -p abc && make -C abc -f "" ABCSRC="/home/runner/work/yosys/yosys/yosys-src/abc" CC="ccache clang" CXX="ccache clang" ABC_USE_LIBSTDCXX=1 ABC_USE_NAMESPACE=abc VERBOSE= AR="llvm-ar" RANLIB="llvm-ranlib" ARCHFLAGS="-target wasm32-wasi --sysroot /home/runner/work/yosys/yosys/wasi-sdk-19.0/share/wasi-sysroot -D_WASI_EMULATED_PROCESS_CLOCKS -DABC_USE_STDINT_H -DABC_NO_DYNAMIC_LINKING -DABC_NO_RLIMIT" OPTFLAGS="-Os" "ABC_USE_NO_READLINE=1" "ABC_USE_NO_PTHREADS=1" PROG="abc" MSG_PREFIX="-> ABC: " libabc.a
make: the '-f' option requires a non-empty string argument
make: Entering an unknown directory
Usage: make [options] [target] ...
So it turns out the YoWASP build was broken because I didn't check out submodules recursively, and the really confusing error message comes from the combination of an improper check for the presence of the submodule combined with the use of realpath
.
Add YosysHQ/abc as a submodule located in abc. Apart from cloning with submodules, no other modifications are made to github actions.
This would enable building yosys with abc fetched as tar.gz, as pointed out by @mmicko in https://github.com/YosysHQ/yosys/pull/4238#issuecomment-1966067326
Before starting the compilation of abc, we check four cases:
git submodule status
). The compilation can continue.