On Sat, Jan 15, 2011 at 11:30 AM, <lu...@proxima.alt.za> wrote: > In a nutshell, I actually took a very recent release of Go and tried > to build a Plan 9 version: > > cd $GOROOT/src > GOOS=plan9 ./make.bash > > I was not surprised that it did not build correctly on my Ubuntu > workstation. Fixing it did not seem a trivial task and a cursory web > search did not reveal any encouraging help.
If you try applying http://codereview.appspot.com/3816043/ you can get pretty far.. you need to cd src/pkg make clean GOOS=plan9 make -k install You'll get os, syscall, fmt and a bunch of other portable go libraries. > Right now, I have a few days in which to resurrect work I did > initially that concluded with a "working" version of the Hello World > "C" program compiled and executed on Plan 9/386 using modifed Go > sources to compile and build the "C" development toolchain under Plan > 9. It is daunting how much effort I estimate I will need to do to get > that far, specially with a view to propagate the rather extensive > changes to the Go source release. On the positive side, I had > invested no effort in the Go aspects of the project and I'm grateful > to those who have added the Go features for Plan 9 to the Go release. > I think that you can produce a "C" hello world pretty easily if you provide stubs for 8l (like morestack and etc.) and use GOOS=plan9 8l -s to link you stuff together. Pavel