May not help much in your case but this works in fresh ubuntu 22.04 in WSL or booted from live CD/USB
sudo apt-get update ; sudo apt-get install python-is-python3 python3-pip git curl build-essential
git clone https://github.com/espruino/Espruino ; cd Espruino/ ; . scripts/provision.sh BANGLEJS2
make BOARD=BANGLEJS2 RELEASE=1 clean ; time make -j BOARD=BANGLEJS2 RELEASE=1
I use the final build as a simple non scientific CPU benchmark for random devices :-) Quite long part is last linking phase which is single threaded with gcc 8 so this tries the turbo frequency too.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
May not help much in your case but this works in fresh ubuntu 22.04 in WSL or booted from live CD/USB
I use the final build as a simple non scientific CPU benchmark for random devices :-) Quite long part is last linking phase which is single threaded with gcc 8 so this tries the turbo frequency too.