From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <8b102fbbc294e2a7084efbd1d99a265b@hera.eonet.ne.jp> Date: Sat, 15 Jan 2011 11:58:03 +0200 Message-ID: From: Pavel Zholkover To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] plan9 go output faults on 9vx but ok on cpu Topicbox-Message-UUID: 99485ddc-ead6-11e9-9d60-3106f5b1d025 On Sat, Jan 15, 2011 at 11:30 AM, wrote: > In a nutshell, I actually took a very recent release of Go and tried > to build a Plan 9 version: > > =A0 =A0 =A0 =A0cd $GOROOT/src > =A0 =A0 =A0 =A0GOOS=3Dplan9 ./make.bash > > I was not surprised that it did not build correctly on my Ubuntu > workstation. =A0Fixing 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=3Dplan9 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. =A0It 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. =A0On 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=3Dplan9 8l -s to link you stuff together. Pavel