From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 Date: Tue, 26 Jan 2016 16:44:02 -0500 Message-ID: From: Sean Caron To: 9fans@9fans.net, Sean Caron Content-Type: multipart/alternative; boundary=001a11442034742659052a43957d Subject: [9fans] Go on Plan 9? Topicbox-Message-UUID: 7fccd86c-ead9-11e9-9d60-3106f5b1d025 --001a11442034742659052a43957d Content-Type: text/plain; charset=UTF-8 Hi all, I've been getting interested in programming in Go recently and it's my understanding that at some point in time, Plan 9 was a supported environment in which one could bootstrap and use Go? I've tried a few different versions; 1.2.2, 1.4.2, 1.5.2, just following the directions that I found on a blog somewhere, i.e: tar xf go 1.4.2.tar cd go-go1.4.2/src ./all.rc But it fails almost immediately trying to bootstrap Go: cpu% ./all.rc # Building C bootstrap tool. cmd/dist # Building compilers and Go bootstrap tool for host, plan9/386. lib9 cpp: /usr/scaron/go-go1.4.2/include/plan9/../../src/lib9/utf/utf.h:226 /usr/scaron/go-go1.4.2/include/plan9/../utf.h:1 /usr/scaron/go-go1.4.2/include/plan9/utf.h:5 /usr/scaron/go-go1.4.2/include/plan9/../fmt.h:21 /usr/scaron/go-go1.4.2/include/plan9/fmt.h:5 /usr/scaron/go-go1.4.2/include/plan9/libc.h:6 /usr/scaron/go-go1.4.2/src/lib9/flag.c:6 Unterminated string or char const I get a fair number of these errors for various header files, then some more worrisome output: /usr/scaron/go-go1.4.2/include/plan9/../../src/lib9/utf/utf.h:19[/usr/scaron/go-go1.4.2/src/lib9/fmt/dorfmt.c:152] external redeclaration of: Rune TYPEDEF UINT /usr/scaron/go-go1.4.2/include/plan9/../../src/lib9/utf/utf.h:19[/usr/scaron/go-go1.4.2/src/lib9/fmt/dorfmt.c:152] TYPEDEF USHORT /386/include/u.h:11[/usr/scaron/go-go1.4.2/src/lib9/fmt/dorfmt.c:21] /usr/scaron/go-go1.4.2/include/plan9/../../src/lib9/utf/utf.h:19[/usr/scaron/go-go1.4.2/src/lib9/flag.c:153] external redeclaration of: Rune TYPEDEF UINT /usr/scaron/go-go1.4.2/include/plan9/../../src/lib9/utf/utf.h:19[/usr/scaron/go-go1.4.2/src/lib9/flag.c:153] TYPEDEF USHORT /386/include/u.h:11[/usr/scaron/go-go1.4.2/src/lib9/flag.c:22] cpp: /usr/scaron/go-go1.4.2/include/plan9/../../src/lib9/utf/utf.h:227 /usr/scaron/go-go1.4.2/include/plan9/../utf.h:1 /usr/scaron/go-go1.4.2/include/plan9/utf.h:5 /usr/scaron/go-go1.4.2/include/plan9/libc.h:7 /usr/scaron/go-go1.4.2/src/lib9/fmt/charstod.c:20 Unterminated string or char const go tool dist: FAILED: /bin/8c -FTVwp -DPLAN9 -D__STDC__=1 -D__SIZE_TYPE__=ulong -I/usr/scaron/go-go1.4.2/include/plan9 -I/usr/scaron/go-go1.4.2/include/plan9/386 -DPLAN9PORT -I /usr/scaron/go-go1.4.2/src/lib9 -o $WORK/dorfmt.8 /usr/scaron/go-go1.4.2/src/lib9/fmt/dorfmt.c: '/usr/scaron/go-go1.4.2/pkg/obj/plan9_386/lib9.a' does not exist go tool dist: FAILED: /bin/8c -FTVwp -DPLAN9 -D__STDC__=1 -D__SIZE_TYPE__=ulong -I/usr/scaron/go-go1.4.2/include/plan9 -I/usr/scaron/go-go1.4.2/include/plan9/386 -DPLAN9PORT -I /usr/scaron/go-go1.4.2/src/lib9 -o $WORK/flag.8 /usr/scaron/go-go1.4.2/src/lib9/flag.c: '/usr/scaron/go-go1.4.2/pkg/obj/plan9_386/lib9.a' does not exist cpp: /usr/scaron/go-go1.4.2/include/plan9/../../src/lib9/utf/utf.h:227 /usr/scaron/go-go1.4.2/include/plan9/../utf.h:1 /usr/scaron/go-go1.4.2/include/plan9/utf.h:5 /usr/scaron/go-go1.4.2/include/plan9/libc.h:7 /usr/scaron/go-go1.4.2/src/lib9/fmt/dofmt.c:20 Unterminated string or char const /usr/scaron/go-go1.4.2/include/plan9/../../src/lib9/utf/utf.h:19[/usr/scaron/go-go1.4.2/src/lib9/fmt/charstod.c:152] external redeclaration of: Rune TYPEDEF UINT /usr/scaron/go-go1.4.2/include/plan9/../../src/lib9/utf/utf.h:19[/usr/scaron/go-go1.4.2/src/lib9/fmt/charstod.c:152] TYPEDEF USHORT /386/include/u.h:11[/usr/scaron/go-go1.4.2/src/lib9/fmt/charstod.c:21] /usr/scaron/go-go1.4.2/include/plan9/../../src/lib9/utf/utf.h:19[/usr/scaron/go-go1.4.2/src/lib9/fmt/dofmt.c:152] external redeclaration of: Rune TYPEDEF UINT /usr/scaron/go-go1.4.2/include/plan9/../../src/lib9/utf/utf.h:19[/usr/scaron/go-go1.4.2/src/lib9/fmt/dofmt.c:152] TYPEDEF USHORT /386/include/u.h:11[/usr/scaron/go-go1.4.2/src/lib9/fmt/dofmt.c:21] go tool dist: FAILED: /bin/8c -FTVwp -DPLAN9 -D__STDC__=1 -D__SIZE_TYPE__=ulong -I/usr/scaron/go-go1.4.2/include/plan9 -I/usr/scaron/go-go1.4.2/include/plan9/386 -DPLAN9PORT -I /usr/scaron/go-go1.4.2/src/lib9 -o $WORK/charstod.8 /usr/scaron/go-go1.4.2/src/lib9/fmt/charstod.c: '/usr/scaron/go-go1.4.2/pkg/obj/plan9_386/lib9.a' does not exist go tool dist: FAILED: /bin/8c -FTVwp -DPLAN9 -D__STDC__=1 -D__SIZE_TYPE__=ulong -I/usr/scaron/go-go1.4.2/include/plan9 -I/usr/scaron/go-go1.4.2/include/plan9/386 -DPLAN9PORT -I /usr/scaron/go-go1.4.2/src/lib9 -o $WORK/dofmt.8 /usr/scaron/go-go1.4.2/src/lib9/fmt/dofmt.c: '/usr/scaron/go-go1.4.2/pkg/obj/plan9_386/lib9.a' does not exist At that point the build fails and I drop back to the rc prompt. While the example I cite above is for version 1.4.2, I believe the failure mode is pretty much the same for both earlier and later versions that I've tried to build. Is my Plan 9 installation "too old"? I'm using pretty bog-standard Fourth Edition on this particular instance; 9atom doesn't seem to get along with VMware ESXi (at least, not last time I checked). Any help greatly appreciated! I'd love to be able to use Go within Plan 9. Thanks, Sean --001a11442034742659052a43957d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi all,

I've been getting intereste= d in programming in Go recently and it's my understanding that at some = point in time, Plan 9 was a supported environment in which one could bootst= rap and use Go?

I've tried a few different ver= sions; 1.2.2, 1.4.2, 1.5.2, just following the directions that I found on a= blog somewhere, i.e:

tar xf go 1.4.2.tar
cd go-go1.4.2/src
./all.rc

But it fail= s almost immediately trying to bootstrap Go:

= cpu% ./all.rc
# Building C bootstrap tool.
cmd/dist

# Building compilers and Go bootstrap tool for host, = plan9/386.
lib9
cpp: /usr/scaron/go-go1.4.2/include/pla= n9/../../src/lib9/utf/utf.h:226 /usr/scaron/go-go1.4.2/include/plan9/../utf= .h:1 /usr/scaron/go-go1.4.2/include/plan9/utf.h:5 /usr/scaron/go-go1.4.2/in= clude/plan9/../fmt.h:21 /usr/scaron/go-go1.4.2/include/plan9/fmt.h:5 /usr/s= caron/go-go1.4.2/include/plan9/libc.h:6 /usr/scaron/go-go1.4.2/src/lib9/fla= g.c:6 Unterminated string or char const

I ge= t a fair number of these errors for various header files, then some more wo= rrisome output:

/usr/scaron/go-go1.4.2/includ= e/plan9/../../src/lib9/utf/utf.h:19[/usr/scaron/go-go1.4.2/src/lib9/fmt/dor= fmt.c:152] external redeclaration of: Rune
TYPEDEF UINT /usr/scaron/go-go1.4.2/include/pl= an9/../../src/lib9/utf/utf.h:19[/usr/scaron/go-go1.4.2/src/lib9/fmt/dorfmt.= c:152]
TYPEDEF= USHORT /386/include/u.h:11[/usr/scaron/go-go1.4.2/src/lib9/fmt/dorfmt.c:21= ]
/usr/scaron/go-go1.4.2/include/plan9/../../src/lib9/utf/utf.h:1= 9[/usr/scaron/go-go1.4.2/src/lib9/flag.c:153] external redeclaration of: Ru= ne
TYPEDEF UIN= T /usr/scaron/go-go1.4.2/include/plan9/../../src/lib9/utf/utf.h:19[/usr/sca= ron/go-go1.4.2/src/lib9/flag.c:153]
TYPEDEF USHORT /386/include/u.h:11[/usr/scaron/go-go1= .4.2/src/lib9/flag.c:22]
cpp: /usr/scaron/go-go1.4.2/include/plan= 9/../../src/lib9/utf/utf.h:227 /usr/scaron/go-go1.4.2/include/plan9/../utf.= h:1 /usr/scaron/go-go1.4.2/include/plan9/utf.h:5 /usr/scaron/go-go1.4.2/inc= lude/plan9/libc.h:7 /usr/scaron/go-go1.4.2/src/lib9/fmt/charstod.c:20 Unter= minated string or char const
go tool dist: FAILED: /bin/8c -FTVwp= -DPLAN9 -D__STDC__=3D1 -D__SIZE_TYPE__=3Dulong -I/usr/scaron/go-go1.4.2/in= clude/plan9 -I/usr/scaron/go-go1.4.2/include/plan9/386 -DPLAN9PORT -I /usr/= scaron/go-go1.4.2/src/lib9 -o $WORK/dorfmt.8 /usr/scaron/go-go1.4.2/src/lib= 9/fmt/dorfmt.c: '/usr/scaron/go-go1.4.2/pkg/obj/plan9_386/lib9.a' d= oes not exist
go tool dist: FAILED: /bin/8c -FTVwp -DPLAN9 -D__ST= DC__=3D1 -D__SIZE_TYPE__=3Dulong -I/usr/scaron/go-go1.4.2/include/plan9 -I/= usr/scaron/go-go1.4.2/include/plan9/386 -DPLAN9PORT -I /usr/scaron/go-go1.4= .2/src/lib9 -o $WORK/flag.8 /usr/scaron/go-go1.4.2/src/lib9/flag.c: '/u= sr/scaron/go-go1.4.2/pkg/obj/plan9_386/lib9.a' does not exist
cpp: /usr/scaron/go-go1.4.2/include/plan9/../../src/lib9/utf/utf.h:227 /us= r/scaron/go-go1.4.2/include/plan9/../utf.h:1 /usr/scaron/go-go1.4.2/include= /plan9/utf.h:5 /usr/scaron/go-go1.4.2/include/plan9/libc.h:7 /usr/scaron/go= -go1.4.2/src/lib9/fmt/dofmt.c:20 Unterminated string or char const
/usr/scaron/go-go1.4.2/include/plan9/../../src/lib9/utf/utf.h:19[/usr/sca= ron/go-go1.4.2/src/lib9/fmt/charstod.c:152] external redeclaration of: Rune=
TYPEDEF UINT = /usr/scaron/go-go1.4.2/include/plan9/../../src/lib9/utf/utf.h:19[/usr/scaro= n/go-go1.4.2/src/lib9/fmt/charstod.c:152]
TYPEDEF USHORT /386/include/u.h:11[/usr/scaron= /go-go1.4.2/src/lib9/fmt/charstod.c:21]
/usr/scaron/go-go1.4.2/in= clude/plan9/../../src/lib9/utf/utf.h:19[/usr/scaron/go-go1.4.2/src/lib9/fmt= /dofmt.c:152] external redeclaration of: Rune
TYPEDEF UINT /usr/scaron/go-go1.4.2/include= /plan9/../../src/lib9/utf/utf.h:19[/usr/scaron/go-go1.4.2/src/lib9/fmt/dofm= t.c:152]
TYPED= EF USHORT /386/include/u.h:11[/usr/scaron/go-go1.4.2/src/lib9/fmt/dofmt.c:2= 1]
go tool dist: FAILED: /bin/8c -FTVwp -DPLAN9 -D__STDC__=3D1 -D= __SIZE_TYPE__=3Dulong -I/usr/scaron/go-go1.4.2/include/plan9 -I/usr/scaron/= go-go1.4.2/include/plan9/386 -DPLAN9PORT -I /usr/scaron/go-go1.4.2/src/lib9= -o $WORK/charstod.8 /usr/scaron/go-go1.4.2/src/lib9/fmt/charstod.c: '/= usr/scaron/go-go1.4.2/pkg/obj/plan9_386/lib9.a' does not exist
go tool dist: FAILED: /bin/8c -FTVwp -DPLAN9 -D__STDC__=3D1 -D__SIZE_TYPE= __=3Dulong -I/usr/scaron/go-go1.4.2/include/plan9 -I/usr/scaron/go-go1.4.2/= include/plan9/386 -DPLAN9PORT -I /usr/scaron/go-go1.4.2/src/lib9 -o $WORK/d= ofmt.8 /usr/scaron/go-go1.4.2/src/lib9/fmt/dofmt.c: '/usr/scaron/go-go1= .4.2/pkg/obj/plan9_386/lib9.a' does not exist

At that point the build fails and I drop back to the rc prompt.
=

While the example I cite above is for version 1.4.2, I = believe the failure mode is pretty much the same for both earlier and later= versions that I've tried to build.

Is my Plan= 9 installation "too old"? I'm using pretty bog-standard Four= th Edition on this particular instance; 9atom doesn't seem to get along= with VMware ESXi (at least, not last time I checked).

=
Any help greatly appreciated! I'd love to be able to use Go within= Plan 9.

Thanks,

Sean

=

--001a11442034742659052a43957d--