From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <20110403211333.GA3905@dinah> <20110403211652.GA5977@dinah> <20110403223031.GA27441@dinah> <20110404172728.GA2000@fangle.proxima.alt.za> <20110405043331.GD2000@fangle.proxima.alt.za> <20110406134326.GI2000@fangle.proxima.alt.za> Date: Sat, 9 Apr 2011 11:24:27 -0700 Message-ID: From: Skip Tavakkolian 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] Go Plan 9 Topicbox-Message-UUID: ce52a050-ead6-11e9-9d60-3106f5b1d025 is there a reason you didn't build it from the official Go sources? i only needed to make a couple of tweaks (see the patch below) to build it. a couple of things to watch out for: - make sure you have two different GOBIN's; one for your local Linux box and the other for making the Plan 9 binaries - be sure to have the right GOBIN in the first part of your PATH for your target environment i use drawterm from the build box and then i can execute Plan 9 binaries produced by 8[gl] from /mnt/term/ -Skip $ hg diff diff -r b002b8e25d25 src/pkg/Makefile --- a/src/pkg/Makefile Tue Apr 05 18:07:01 2011 -0400 +++ b/src/pkg/Makefile Sat Apr 09 11:18:04 2011 -0700 @@ -106,7 +106,6 @@ image/png\ index/suffixarray\ io\ - io/ioutil\ json\ log\ math\ @@ -139,7 +138,6 @@ sync/atomic\ syscall\ syslog\ - tabwriter\ template\ testing\ testing/iotest\ @@ -206,6 +204,14 @@ NOTEST+=3Dnet syslog endif +# Disable packages that plan9 doesn't support yet +ifneq ($(GOOS),plan9) +DIRS+=3D\ + tabwriter\ + io/ioutil\ + +endif + # Disable tests that windows cannot run yet. ifeq ($(GOOS),windows) NOTEST+=3Dos/signal # no signals diff -r b002b8e25d25 src/pkg/path/filepath/Makefile --- a/src/pkg/path/filepath/Makefile Tue Apr 05 18:07:01 2011 -0400 +++ b/src/pkg/path/filepath/Makefile Sat Apr 09 11:18:04 2011 -0700 @@ -15,6 +15,9 @@ GOFILES_darwin=3D\ path_unix.go +GOFILES_plan9=3D\ + path_unix.go + GOFILES_linux=3D\ path_unix.go diff -r b002b8e25d25 src/pkg/time/Makefile --- a/src/pkg/time/Makefile Tue Apr 05 18:07:01 2011 -0400 +++ b/src/pkg/time/Makefile Sat Apr 09 11:18:04 2011 -0700 @@ -21,6 +21,9 @@ GOFILES_linux=3D\ zoneinfo_unix.go\ +GOFILES_plan9=3D\ + zoneinfo_unix.go\ + GOFILES_windows=3D\ zoneinfo_windows.go\ On Sat, Apr 9, 2011 at 10:51 AM, Sergey Kish wrote: > Hello, > > I'm unable to make go plan9 crosscompiler. > Can you help me? > > # I use patched repo > hg qclone https://bitbucket.org/paulzhol/golang-plan9-runtime-patches go > cd go > hg qpush -a > > # build as usual > export GOROOT=3D`pwd` > export GOOS=3Dlinux > export GOBIN=3D"$GOROOT/bin" > export PATH=3D"$GOBIN:$PATH" > > mkdir -p "$GOROOT/bin" > cd "$GOROOT/src" > . ./make.bash > > # prepare pkgs > cd $GOROOT/src/pkg > make clean > export GOOS=3Dplan9 > make > > # and get > make -C net install > make[1]: Entering directory `/home/sergeykish/abs/go/src/go-build/src/pkg= /net' > make[1]: *** No rule to make target `fd_plan9.go', needed by `_go_.8'. = =A0Stop. > make[1]: Leaving directory `/home/sergeykish/abs/go/src/go-build/src/pkg/= net' > > What now? > >