jamesbowman / swapforth

Swapforth is a cross-platform ANS Forth
BSD 3-Clause "New" or "Revised" License
275 stars 56 forks source link

Verilator fixes with pyenv python #84

Closed RGD2 closed 1 year ago

RGD2 commented 1 year ago

Result of a manual git clone and rebuild on Debian 11 on WSL2, which included manual from-git build/install of yosys, icestorm, arache-pnr, and, although not used yet, nextpnr.

BTW: recommendation for those: install pyenv, and use:

pyenv install 2.7.18 
sudo apt install build-essential clang bison flex libreadline-dev gawk tcl-dev \
libffi-dev git mercurial graphviz pkg-config libftdi-dev gforth cmake valgrind \
verilator libboost-dev libboost-filesystem-dev libboost-thread-dev \
libboost-program-options-dev libboost-iostreams-dev libboost-dev \
libeigen3-dev python3-dev

in place of the apt-get line with libboost-all-dev, xdot and kde5, which pull in a lot of un-necessary debian packages associated with desktop, like wayland, etc.

After this, I could:

cd swapforth/j1a
make clean; make; make bootstrap; make -C icestorm j1a.bin

Without error to rebuild j1a.bin. Will sort out usb passthrough for WSL2 to run iceprog next