thanks @tqh
I’m posting what I have so far:
Build tested with Go 1.18.x on Linux amd64 from the src directory.
GOROOT_BOOTSTRAP=~/go-1.18-linux/ GOOS=haiku GOARCH=amd64 ./bootstrap.bash
The one problem is the use of fork/exec for go compilation which requires a good swap on Haiku. When it fails, one can launch again until it succeeds.
Runtime requires hrev56220 or newer.