From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Mon, 15 Apr 2013 02:02:05 -0700 Message-ID: From: Skip Tavakkolian To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=e89a8ff1cab4ca50c604da6281ce Subject: Re: [9fans] Go Plan9 ARM Dreamplug Topicbox-Message-UUID: 41ff9930-ead8-11e9-9d60-3106f5b1d025 --e89a8ff1cab4ca50c604da6281ce Content-Type: text/plain; charset=ISO-8859-1 Sheeva/Guru -- GOARM=5 RPi -- GOARM=6 or not set (GOARM=6 is default) Not if DreamPlug is 5 also. setting GOARCH=arm, etc. before all.rc on an x86 cpu builds Go for x86 and arm. On Mon, Apr 15, 2013 at 1:34 AM, Gorka Guardiola wrote: > 1) if you don't change the type of type to be int, it will give you bogus > errors, but > the real problem is that some of the files do not compile. > > 2) opnames.h is autogenerated by dist. IIRC there is no problem with it > (see 1). > > 3) I have GOEXPERIM set to ''. You need to set a ton of variables, out of > the top of my head, > assuming you are not cross-compiling: > > > GOROOT=/sys/src/golang #where the go repository resides > GOOS=plan9 > GOARCH=$objtype > GOHOSTARCH=$cputype > GOBIN=/$objtype/bin > GOPATH=/sys/src/go #wher your go stuff resides > GOARM=5 #or 6 or 7, depending on your machine's support of floating point. > GOEXPERIM='' > > > > > > > On Mon, Apr 15, 2013 at 10:22 AM, Skip Tavakkolian < > skip.tavakkolian@gmail.com> wrote: > >> I'm getting something similar on Sheeva. It also looks like there are >> still env issues: >> >> sheeva% ./all.rc >> # Building C bootstrap tool. >> cmd/dist >> >> # Building compilers and Go bootstrap tool for host, plan9/arm. >> lib9 >> libbio >> libmach >> misc/pprof >> cmd/addr2line >> cmd/cov >> cmd/nm >> cmd/objdump >> cmd/pack >> cmd/prof >> cmd/cc >> warning: >> /usr/fst/Go1/src/cmd/cc/y.tab.c:1733[/usr/fst/Go1/src/cmd/cc/y.tab.c:3416] >> result of operation not used >> warning: >> /usr/fst/Go1/src/cmd/cc/y.tab.c:1733[/usr/fst/Go1/src/cmd/cc/y.tab.c:3416] >> result of operation not used >> warning: >> /usr/fst/Go1/src/cmd/cc/y.tab.c:1736[/usr/fst/Go1/src/cmd/cc/y.tab.c:3419] >> set and not used: yymsg >> warning: >> /usr/fst/Go1/src/cmd/cc/y.tab.c:1924[/usr/fst/Go1/src/cmd/cc/y.tab.c:3595] >> set and not used: yyptr >> cmd/gc >> /usr/fst/Go1/src/cmd/gc/reflect.c:1022[/usr/fst/Go1/src/cmd/gc/reflect.c:3400] >> switch expression must be integer >> go tool dist: FAILED: /bin/5c -FTVw -Bp+ -I/usr/fst/Go1/include/plan9 >> -I/usr/fst/Go1/include/plan9/arm -I /usr/fst/Go1/src/cmd/gc -o >> $WORK/reflect.5 /usr/fst/Go1/src/cmd/gc/reflect.c: '/env/GOEXPERIMENT' file >> does not exist >> /usr/fst/Go1/src/cmd/gc/subr.c:665[/usr/fst/Go1/src/cmd/gc/subr.c:3240] >> switch expression must be integer >> /usr/fst/Go1/src/cmd/gc/subr.c:2863[/usr/fst/Go1/src/cmd/gc/subr.c:5373] >> switch expression must be integer >> warning: >> /usr/fst/Go1/src/cmd/gc/subr.c:2846[/usr/fst/Go1/src/cmd/gc/subr.c:5356] >> used and not set: fn >> go tool dist: FAILED: /bin/5c -FTVw -Bp+ -I/usr/fst/Go1/include/plan9 >> -I/usr/fst/Go1/include/plan9/arm -I /usr/fst/Go1/src/cmd/gc -o $WORK/subr.5 >> /usr/fst/Go1/src/cmd/gc/subr.c: '/env/GOEXPERIMENT' file does not exist >> sheeva% >> >> >> >> On Mon, Apr 15, 2013 at 1:12 AM, Christopher Nielsen wrote: >> >>> I'll give that a shot and see if I get different results. It'll have to >>> be some time tomorrow though. What concerns me is that the error says it >>> can't find opnames.h when it clearly exists. >>> >>> >>> On Mon, Apr 15, 2013 at 12:08 AM, Gorka Guardiola wrote: >>> >>>> This is a known problem with 5c. It cannot switch on vlong. As a >>>> stopgap, you can >>>> change the types of the things being switched on to integer (type, if I >>>> remember right). >>>> >>>> G. >>>> >>>> >>>> >>>> On Mon, Apr 15, 2013 at 9:00 AM, Christopher Nielsen < >>>> cnielsen@pobox.com> wrote: >>>> >>>>> After a little work, I have a Plan 9 dev environment setup. My >>>>> dreamplug boots with no problems, and after installing python and >>>>> mercurial, I was able to clone the go repo. The build completes fine on >>>>> 386, but on the dreamplug I get the errors below. Yes, I know I should >>>>> probably be running as a user other than bootes; this was a quick and dirty >>>>> install to get things running. Also, opnames.h does exist. >>>>> >>>>> dreamplug# ls -l /usr/bootes/src/go-plan9-arm/src/cmd/gc/opnames.h >>>>> --rw-rw-r-- M 15 bootes bootes 3273 Apr 15 02:47 >>>>> /usr/bootes/src/go-plan9-arm/src/cmd/gc/opnames.h >>>>> >>>>> Also, it doesn't look like the tests are being run on 386. Forgive my >>>>> ignorance, but is that currently intentional?* *I haven't had time to >>>>> search the list. >>>>> >>>>> cmd/gc >>>>> /usr/bootes/src/go-plan9-arm/src/cmd/gc/reflect.c:1022[/usr/bootes/src/go-plan9-arm/src/cmd/gc/reflect.c:3400] >>>>> switch expression must be integer >>>>> go tool dist: FAILED: /bin/5c -FTVw -Bp+ >>>>> -I/usr/bootes/src/go-plan9-arm/include/plan9 >>>>> -I/usr/bootes/src/go-plan9-arm/include/plan9/arm -I >>>>> /usr/bootes/src/go-plan9-arm/src/cmd/gc -o $WORK/reflect.5 >>>>> /usr/bootes/src/go-plan9-arm/src/cmd/gc/reflect.c: >>>>> '/usr/bootes/src/go-plan9-arm/src/cmd/gc/opnames.h' does not exist >>>>> /usr/bootes/src/go-plan9-arm/src/cmd/gc/subr.c:665[/usr/bootes/src/go-plan9-arm/src/cmd/gc/subr.c:3240] >>>>> switch expression must be integer >>>>> /usr/bootes/src/go-plan9-arm/src/cmd/gc/subr.c:2863[/usr/bootes/src/go-plan9-arm/src/cmd/gc/subr.c:5373] >>>>> switch expression must be integer >>>>> warning: >>>>> /usr/bootes/src/go-plan9-arm/src/cmd/gc/subr.c:2846[/usr/bootes/src/go-plan9-arm/src/cmd/gc/subr.c:5356] >>>>> used and not set: fn >>>>> go tool dist: FAILED: /bin/5c -FTVw -Bp+ >>>>> -I/usr/bootes/src/go-plan9-arm/include/plan9 >>>>> -I/usr/bootes/src/go-plan9-arm/include/plan9/arm -I >>>>> /usr/bootes/src/go-plan9-arm/src/cmd/gc -o $WORK/subr.5 >>>>> /usr/bootes/src/go-plan9-arm/src/cmd/gc/subr.c: >>>>> '/usr/bootes/src/go-plan9-arm/src/cmd/gc/opnames.h' does not exist >>>>> >>>>> -- >>>>> Christopher Nielsen >>>>> "They who can give up essential liberty for temporary safety, deserve >>>>> neither liberty nor safety." --Benjamin Franklin >>>>> "The tree of liberty must be refreshed from time to time with the >>>>> blood of patriots & tyrants." --Thomas Jefferson >>>>> >>>> >>>> >>>> >>>> -- >>>> - curiosity sKilled the cat >>>> >>> >>> >>> >>> -- >>> Christopher Nielsen >>> "They who can give up essential liberty for temporary safety, deserve >>> neither liberty nor safety." --Benjamin Franklin >>> "The tree of liberty must be refreshed from time to time with the blood >>> of patriots & tyrants." --Thomas Jefferson >>> >> >> > > > -- > - curiosity sKilled the cat > --e89a8ff1cab4ca50c604da6281ce Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Sheeva/Guru -- GOARM=3D5
RPi -- GOARM=3D6 or not= set (GOARM=3D6 is default)
Not if DreamPlug is 5 also.

setting GOARCH=3Darm, etc. before all.rc = on an x86 cpu builds Go for x86 =A0and arm.=A0


On Mon,= Apr 15, 2013 at 1:34 AM, Gorka Guardiola <paurea@gmail.com> = wrote:
1) if you don't change = the type of type to be int, it will give you bogus errors, but
the real= problem is that some of the files do not compile.

2) opnames.h is autogenerated by dist. IIRC there is no= problem with it (see 1).

3) I have GOEXPERIM set to ''. You need to set = a ton of variables, out of the top of my head,
assuming you are n= ot cross-compiling:


GOROOT=3D/sys/src/golang #where the go repository resid= es
GOOS=3Dplan9
GOARCH=3D$objtype
GOHOSTARCH= =3D$cputype
GOBIN=3D/$objtype/bin
GOPATH=3D/sys/src/go = #wher your go stuff resides
GOARM=3D5 #or 6 or 7, depending on your machine's support of float= ing point.
GOEXPERIM=3D''





On Mon, Apr 15, 2013 at 10:22 AM, Skip Tav= akkolian <skip.tavakkolian@gmail.com> wrote:
I'm getting something s= imilar on Sheeva. It also looks like there are still env issues:

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

# Building compilers and Go bootstrap tool for host, plan9/arm.
<= div>lib9
libbio
libmach
misc/pprof
= cmd/addr2line
cmd/cov
cmd/nm
cmd/objdump
cmd/pack
cmd/prof
cmd/cc
warning: /usr/f= st/Go1/src/cmd/cc/y.tab.c:1733[/usr/fst/Go1/src/cmd/cc/y.tab.c:3416] result= of operation not used
warning: /usr/fst/Go1/src/cmd/cc/y.tab.c:1= 733[/usr/fst/Go1/src/cmd/cc/y.tab.c:3416] result of operation not used
warning: /usr/fst/Go1/src/cmd/cc/y.tab.c:1736[/usr/fst/Go1/src/cmd/cc/= y.tab.c:3419] set and not used: yymsg
warning: /usr/fst/Go1/src/c= md/cc/y.tab.c:1924[/usr/fst/Go1/src/cmd/cc/y.tab.c:3595] set and not used: = yyptr
cmd/gc
/usr/fst/Go1/src/cmd/gc/reflect.c:1022[/usr/fst/Go1/s= rc/cmd/gc/reflect.c:3400] switch expression must be integer
go to= ol dist: FAILED: /bin/5c -FTVw -Bp+ -I/usr/fst/Go1/include/plan9 -I/usr/fst= /Go1/include/plan9/arm -I /usr/fst/Go1/src/cmd/gc -o $WORK/reflect.5 /usr/f= st/Go1/src/cmd/gc/reflect.c: '/env/GOEXPERIMENT' file does not exis= t
/usr/fst/Go1/src/cmd/gc/subr.c:665[/usr/fst/Go1/src/cmd/gc/subr.c:3240= ] switch expression must be integer
/usr/fst/Go1/src/cmd/gc/subr.= c:2863[/usr/fst/Go1/src/cmd/gc/subr.c:5373] switch expression must be integ= er
warning: /usr/fst/Go1/src/cmd/gc/subr.c:2846[/usr/fst/Go1/src/cmd/gc/s= ubr.c:5356] used and not set: fn
go tool dist: FAILED: /bin/5c -F= TVw -Bp+ -I/usr/fst/Go1/include/plan9 -I/usr/fst/Go1/include/plan9/arm -I /= usr/fst/Go1/src/cmd/gc -o $WORK/subr.5 /usr/fst/Go1/src/cmd/gc/subr.c: '= ;/env/GOEXPERIMENT' file does not exist
sheeva%=A0



On Mon, Apr 15, 2013 at 1:12 A= M, Christopher Nielsen <cnielsen@pobox.com> wrote:
I'll give that a shot a= nd see if I get different results. It'll have to be some time tomorrow = though. What concerns me is that the error says it can't find opnames.h= when it clearly exists.


On Mon, Apr 1= 5, 2013 at 12:08 AM, Gorka Guardiola <paurea@gmail.com> wrote= :
This is a known problem with 5c. It cannot switch on vlong= . As a stopgap, you can
change the types of the things being switched o= n to integer (type, if I remember right).

G.



On Mon, Apr 15, 2013 at 9:00 AM, Christopher Niel= sen <cnielsen@pobox.com> wrote:
After a lit= tle work, I have a Plan 9 dev environment setup. My dreamplug boots with no= problems, and after installing python and mercurial, I was able to clone t= he go repo. The build completes fine on 386, but on the dreamplug I get the= errors below. Yes, I know I should probably be running as a user other tha= n bootes; this was a quick and dirty install to get things running. Also, o= pnames.h does exist.

dreamplug# ls -l /usr/bootes/src/go-plan9-arm/src/cmd/g= c/opnames.h
--rw-rw-r-- M 15 bootes bootes 3273 Apr 15 02:47 /usr= /bootes/src/go-plan9-arm/src/cmd/gc/opnames.h

Also, it doesn't look like the tests are being run on 386. Forgive my i= gnorance, but is that currently intentional?=A0I haven't had tim= e to search the list.

cmd/gc
/usr/b= ootes/src/go-plan9-arm/src/cmd/gc/reflect.c:1022[/usr/bootes/src/go-plan9-a= rm/src/cmd/gc/reflect.c:3400] switch expression must be integer
go tool dist: FAILED: /bin/5c -FTVw -Bp+ -I/usr/bootes/src/go-plan9-ar= m/include/plan9 -I/usr/bootes/src/go-plan9-arm/include/plan9/arm -I /usr/bo= otes/src/go-plan9-arm/src/cmd/gc -o $WORK/reflect.5 /usr/bootes/src/go-plan= 9-arm/src/cmd/gc/reflect.c: '/usr/bootes/src/go-plan9-arm/src/cmd/gc/op= names.h' does not exist
/usr/bootes/src/go-plan9-arm/src/cmd/gc/subr.c:665[/usr/bootes/src/go-= plan9-arm/src/cmd/gc/subr.c:3240] switch expression must be integer
/usr/bootes/src/go-plan9-arm/src/cmd/gc/subr.c:2863[/usr/bootes/src/go-p= lan9-arm/src/cmd/gc/subr.c:5373] switch expression must be integer
warning: /usr/bootes/src/go-plan9-arm/src/cmd/gc/subr.c:2846[/usr/boot= es/src/go-plan9-arm/src/cmd/gc/subr.c:5356] used and not set: fn
= go tool dist: FAILED: /bin/5c -FTVw -Bp+ -I/usr/bootes/src/go-plan9-arm/inc= lude/plan9 -I/usr/bootes/src/go-plan9-arm/include/plan9/arm -I /usr/bootes/= src/go-plan9-arm/src/cmd/gc -o $WORK/subr.5 /usr/bootes/src/go-plan9-arm/sr= c/cmd/gc/subr.c: '/usr/bootes/src/go-plan9-arm/src/cmd/gc/opnames.h'= ; does not exist

-- Christopher Nielsen
"They who can give up essential liberty for t= emporary safety, deserve neither liberty nor safety." --Benjamin Frank= lin
"The tree of liberty must be refreshed from time to time with the bloo= d of patriots & tyrants." --Thomas Jefferson



--
- curiosity sKilled the cat



--
Christopher = Nielsen
"They who can give up essential liberty for temporary safet= y, deserve neither liberty nor safety." --Benjamin Franklin
"T= he tree of liberty must be refreshed from time to time with the blood of pa= triots & tyrants." --Thomas Jefferson




--
= - curiosity sKilled the cat

--e89a8ff1cab4ca50c604da6281ce--