Base packages:
sudo apk update
sudo apk add --no-cache build-base clang bison flex \
readline-dev gawk tcl-dev libffi-dev git graphviz xdotool pkgconf python3 py3-pip zlib-devNote: xdot was unavailable in Alpine v3.22; xdotool is available and included above.
Install click system-wide via Alpine's package manager:
sudo apk add --no-cache py3-clickYosys build fix for missing FlexLexer.h and Linux perf headers:
sudo apk add --no-cache flex-devEnsure passes/cmds/linux_perf.cc includes #include <unistd.h> so read, write, and close are declared on Linux. You can apply this automatically with:
sed -i '/#include <stdlib.h>/a #include <unistd.h>' /workspaces/digital-toolchains/yosys/passes/cmds/linux_perf.ccThen install:
cd /workspaces/digital-toolchains/yosys
sudo make install