Discussion:
Building Go on Plan 9 using Antony Martin's instructions
(too old to reply)
ROuNIN
2012-01-03 10:49:07 UTC
Permalink
Hello all,
Following Anthony Martin's install instructions on Building Go on
Plan9:

http://groups.google.com/group/comp.os.plan9/browse_thread/thread/44f5b5d3091547aa/95dd9fad3e909224?q=gmake&lnk=ol&

I get the following message:
---------------------------------------------------------------------------
.
.
.

gmake[1]: Leaving directory `/sys/src/go/src/cmd/cc'

%%%% making 5c %%%%

gmake -C 5c install
gmake[1]: Entering directory `/sys/src/go/src/cmd/5c'
8c -FTVw -I"/386/include/go" -I"/sys/include/go" "/sys/src/go/src/cmd/
5c/cgen.c"
8c -FTVw -I"/386/include/go" -I"/sys/include/go" "/sys/src/go/src/cmd/
5c/list.c"
8c -FTVw -I"/386/include/go" -I"/sys/include/go" "/sys/src/go/src/cmd/
5c/sgen.c"
8c -FTVw -I"/386/include/go" -I"/sys/include/go" "/sys/src/go/src/cmd/
5c/swt.c"
8c -FTVw -I"/386/include/go" -I"/sys/include/go" "/sys/src/go/src/cmd/
5c/txt.c"
8c -FTVw -I"/386/include/go" -I"/sys/include/go" "/sys/src/go/src/cmd/
5c/mul.c"
8c -FTVw -I"/386/include/go" -I"/sys/include/go" "/sys/src/go/src/cmd/
5c/reg.c"
8c -FTVw -I"/386/include/go" -I"/sys/include/go" "/sys/src/go/src/cmd/
5c/peep.c"
8c -FTVw -I"/386/include/go" -I"/sys/include/go" -I. -o pgen.8 ../cc/
pgen.c
8c -FTVw -I"/386/include/go" -I"/sys/include/go" -I. -o pswt.8 ../cc/
pswt.c
8l -o 5c cgen.8 list.8 sgen.8 swt.8 txt.8 mul.8 reg.8 peep.8 pgen.8
pswt.8 ../5l/enam.8 ../cc/cc.a
??none??: cannot open file: ../5l/enam.8
gmake[1]: *** [5c] Error 1
gmake[1]: Leaving directory `/sys/src/go/src/cmd/5c'
gmake: *** [5c.install] Error 2
gmake: Leaving directory `/sys/src/go/src/cmd'
term%
---------------------------------------------------

Hope someone can help.
ROuNIN
Peter A. Cejchan
2012-01-03 11:13:13 UTC
Permalink
I forgot the link to the changed files, i shall put the tarball on
contrib/pac in a few minutes

++pac
I use Ron Minnich's distribution from
http://code.google.com/r/rminnich-9go/
It compiles fine on native plan9-386. I had to do some minor changes,
however. Get this tarball, unpack and cpdir -m to $GOROOT
It is somewhat outdated compared to Lucio's version (this is 60.2)
## Go language install
cd
hg clone https://code.google.com/p/rminnich-9go go
bind -ac . /
cd /go
rc /go/src/9setup
cd 9/prebuilt
rc install
cd /go/src
mk install
###
Hope this helps.
++pac
Peter A. Cejchan
2012-01-03 11:23:04 UTC
Permalink
now it is on contrib/pac/9go.tbz
Peter A. Cejchan
2012-01-03 11:06:44 UTC
Permalink
I use Ron Minnich's distribution from http://code.google.com/r/rminnich-9go/
It compiles fine on native plan9-386. I had to do some minor changes,
however. Get this tarball, unpack and cpdir -m to $GOROOT
It is somewhat outdated compared to Lucio's version (this is 60.2)
Just do:

## Go language install
cd
hg clone https://code.google.com/p/rminnich-9go go
bind -ac . /
cd /go
rc /go/src/9setup
cd 9/prebuilt
rc install
cd /go/src
mk install

###

Hope this helps.
++pac
ROuNIN
2012-01-20 09:48:34 UTC
Permalink
Hello,
Thank you. Sorry for late reply:

I get this message - something seems drastically wrong with my Plan9
install --

8l
cp 8.out /386/bin/go/8l
8c
8l -o 8.out cgen.8 cgen64.8 div.8 list.8 machcap.8 mul.8 pgen.8 pswt.
8 peep.8 reg.8 sgen.8 swt.8 txt.8 ../8l/enam.8 goos.8 ../cc/cc.a8 /386/
lib/libbio.a
cp 8.out /386/bin/go/8c
8a
cp 8.out /386/bin/go/8a
gopack
cp gopack /386/bin/go/gopack
pkg
install runtime
INSTALL FAIL runtime
/go/src/pkg
/386/bin/go/8g -+ $GCIMPORTS -p runtime -o _go_.8 debug.go error.go
extern.go mem.go sig.go softfloat64.go type.go version.go
version_plan9.go version_386.go runtime_defs.go
/386/bin/go/8g: '/386/bin/go/8g' does not exist
mk: /386/bin/go/8g -+ $GCIMPORTS ... : exit status=rc 16064: rc
16066: can't exec: '/386/bin/go/8g' does not exist
mk: echo install runtime ... : exit status=rc 16027: 1
mk: for (i in ... : exit status=rc 15598: rc 15726: mk 15729: error
term% date
Sun Jan 22 07:29:44 EST 2012
term%


I don't want to re-install yet - busy with other stuff. But I may have
to resign to the fact that I will need to do fresh install with the
latest
plan9.iso.bz2

ROuNIN
John Floren
2012-01-20 17:47:40 UTC
Permalink
Post by ROuNIN
Hello,
I get this message - something seems drastically wrong with my Plan9
install --
8l
cp 8.out /386/bin/go/8l
8c
8l  -o 8.out cgen.8 cgen64.8 div.8 list.8 machcap.8 mul.8 pgen.8 pswt.
8 peep.8 reg.8 sgen.8 swt.8 txt.8 ../8l/enam.8 goos.8 ../cc/cc.a8 /386/
lib/libbio.a
cp 8.out /386/bin/go/8c
8a
cp 8.out /386/bin/go/8a
gopack
cp gopack /386/bin/go/gopack
pkg
install runtime
INSTALL FAIL runtime
/go/src/pkg
/386/bin/go/8g -+ $GCIMPORTS -p runtime -o _go_.8 debug.go error.go
extern.go mem.go sig.go softfloat64.go type.go version.go
version_plan9.go version_386.go runtime_defs.go
/386/bin/go/8g: '/386/bin/go/8g' does not exist
mk: /386/bin/go/8g -+ $GCIMPORTS ...  : exit status=rc 16064: rc
16066: can't exec: '/386/bin/go/8g' does not exist
mk: echo install runtime ...  : exit status=rc 16027: 1
mk: for (i in ...  : exit status=rc 15598: rc 15726: mk 15729: error
term% date
Sun Jan 22 07:29:44 EST 2012
term%
I don't want to re-install yet - busy with other stuff. But I may have
to resign to the fact that I will need to do fresh install with the
latest
plan9.iso.bz2
ROuNIN
What exactly about this makes you think that there's something
"drastically wrong" with your Plan 9 install? It looks like
/386/bin/go/8g doesn't exist. I wouldn't call that reason for
re-installing, unless I've missed something in that output.


John
Peter A. Cejchan
2012-01-23 07:03:58 UTC
Permalink
I had the same problem with ron minnich's distribution, try to dive into
cmd and check the Makefile.
Ron's distro is 60.2, and the changes needed to compile natively are in
/n/sorces/contrib/pac/9go./tbz
HTH,
best,
++pac
ROuNIN
2012-01-31 09:45:05 UTC
Permalink
Post by Peter A. Cejchan
I had the same problem with ron minnich's distribution, try to dive into
cmd and check the Makefile.
Ron's distro  is 60.2, and the changes needed to compile natively are in
/n/sorces/contrib/pac/9go./tbz
HTH,
best,
++pac
Hello Peter,
Please can you give me verbose information on how to get it to
install.
Many thanks,
ROuNIN
Peter A. Cejchan
2012-01-31 11:27:11 UTC
Permalink
Hello,
get the tarball from me:
http://www2.gli.cas.cz/home/cejchan/plan9/go.tgz
unpack it and follow the instructions in go/9install
should compile fine on native plan9/386
be warned: this is version 60.2, much has changed since,
good luck,
++pac

Loading...