From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <17b30d8d59e8737bf9eb9bd36f897ea8@proxima.alt.za> To: 9fans@9fans.net Date: Fri, 19 Oct 2012 20:45:59 +0200 From: lucio@proxima.alt.za MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] Go on Plan9/Arm Topicbox-Message-UUID: c1295fb2-ead7-11e9-9d60-3106f5b1d025 Now that the sheevaplug is running again, I thought I'd try compiling Go on it, see how far I'd get. It seems not very far at all and I'm sure I'm just not seeing the wood for the trees. Compilation stops when int32 isn't defined: bangle% ./make.rc # Building C bootstrap tool. cmd/dist # Building compilers and Go bootstrap tool for host, plan9/arm. lib9 libbio libmach /usr/lucio/Project/go/include/plan9/../mach.h:37 /usr/lucio/Project/go/include/plan9/mach.h:5 /usr/lucio/Project/go/src/libmach/5obj.c:35 syntax error, last name: int32 go tool dist: FAILED: /bin/5c -FTVw -I/usr/lucio/Project/go/include/plan9 -I/usr/lucio/Project/go/include/plan9/arm -I /usr/lucio/Project/go/src/libmach -o $WORK/5obj.5 /usr/lucio/Project/go/src/libmach/5obj.c: '/usr/lucio/Project/go/pkg/obj/plan9_arm/libmach.a' does not exist /usr/lucio/Project/go/include/plan9/../mach.h:37 /usr/lucio/Project/go/include/plan9/mach.h:5 /usr/lucio/Project/go/src/libmach/5.c:36 syntax error, last name: int32 /usr/lucio/Project/go/include/plan9/../mach.h:37 /usr/lucio/Project/go/include/plan9/mach.h:5 /usr/lucio/Project/go/src/libmach/5db.c:33 syntax error, last name: int32 go tool dist: FAILED: /bin/5c -FTVw -I/usr/lucio/Project/go/include/plan9 -I/usr/lucio/Project/go/include/plan9/arm -I /usr/lucio/Project/go/src/libmach -o $WORK/5.5 /usr/lucio/Project/go/src/libmach/5.c: '/usr/lucio/Project/go/pkg/obj/plan9_arm/libmach.a' does not exist /usr/lucio/Project/go/include/plan9/../mach.h:37 /usr/lucio/Project/go/include/plan9/mach.h:5 /usr/lucio/Project/go/src/libmach/6.c:36 syntax error, last name: int32 go tool dist: FAILED: /bin/5c -FTVw -I/usr/lucio/Project/go/include/plan9 -I/usr/lucio/Project/go/include/plan9/arm -I /usr/lucio/Project/go/src/libmach -o $WORK/5db.5 /usr/lucio/Project/go/src/libmach/5db.c: '/usr/lucio/Project/go/pkg/obj/plan9_arm/libmach.a' does not exist go tool dist: FAILED: /bin/5c -FTVw -I/usr/lucio/Project/go/include/plan9 -I/usr/lucio/Project/go/include/plan9/arm -I /usr/lucio/Project/go/src/libmach -o $WORK/6.5 /usr/lucio/Project/go/src/libmach/6.c: '/usr/lucio/Project/go/pkg/obj/plan9_arm/libmach.a' does not exist What I don't understand is where the 386 compilation finds the int32 definition missing in arm. I looked in the obvious places and my guess is that the "go" tool does not use the same rules to search for header files. No doubt I'm wrong :-| Any ideas? It's latish here and my thought processes have slowed down... ++L From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <17b30d8d59e8737bf9eb9bd36f897ea8@proxima.alt.za> References: <17b30d8d59e8737bf9eb9bd36f897ea8@proxima.alt.za> Date: Fri, 19 Oct 2012 20:46:04 +0100 Message-ID: From: Charles Forsyth To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=047d7b343aea0d073304cc6ec161 Subject: Re: [9fans] Go on Plan9/Arm Topicbox-Message-UUID: c12f48dc-ead7-11e9-9d60-3106f5b1d025 --047d7b343aea0d073304cc6ec161 Content-Type: text/plain; charset=UTF-8 Try compiling under iostats. On 19 October 2012 19:45, wrote: > > What I don't understand is where the 386 compilation finds the int32 > definition missing in arm. I lo --047d7b343aea0d073304cc6ec161 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Try compiling under iostats.

On 19 Octobe= r 2012 19:45, <lucio@proxima.alt.za> wrote:

What I don't understand is where the 386 compilation finds the int32 definition missing in arm. =C2=A0I lo

--047d7b343aea0d073304cc6ec161-- From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <7b1be9ba4e77caa635b53b778bc69df2@proxima.alt.za> To: 9fans@9fans.net Date: Sat, 20 Oct 2012 06:34:57 +0200 From: lucio@proxima.alt.za In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] Go on Plan9/Arm Topicbox-Message-UUID: c1529184-ead7-11e9-9d60-3106f5b1d025 > Try compiling under iostats. Thanks for the suggestion, Charles. It does look even more baffling, but I will look deeper for the relevant details. In the meantime, these snippets may amuse: ... 1 2 2142 0 0 /usr/lucio/Project/go/include/ureg_x86.h ... 1 2 466 0 0 /amd64/include/ureg.h ... 1 2 193 0 0 /usr/lucio/Project/go/include/plan9/ureg_amd64.h ... I'll see if I can track these references, they may after all be legitimate. ++L From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4be826f96ab15a590e66ae66975a28d1@proxima.alt.za> To: 9fans@9fans.net Date: Sat, 20 Oct 2012 08:52:00 +0200 From: lucio@proxima.alt.za In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] Go on Plan9/Arm Topicbox-Message-UUID: c17a0de0-ead7-11e9-9d60-3106f5b1d025 > Try compiling under iostats. Thanks, Charles, that helped locate the absence of an "include/plan9/arm/u.h" that seemingly just needs to add a few missing definitions to the native /arm/include/u.h file. I also tightened up a few spots in the Go release code and successfully arrived to the point where all the z* files need to be put together. Sadly, I'm not competent to do this. So, I'm now going to submit the minor fixes to the Go developers, then it will be easier for others to take things further. I'll make an announcement here as soon as my submissions have been incorporated into the development code base. ++L From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <4be826f96ab15a590e66ae66975a28d1@proxima.alt.za> References: <4be826f96ab15a590e66ae66975a28d1@proxima.alt.za> Date: Thu, 21 Mar 2013 10:54:38 -0600 Message-ID: From: Jeremy Jackins To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] Go on Plan9/Arm Topicbox-Message-UUID: 3018ccd2-ead8-11e9-9d60-3106f5b1d025 Sorry to dredge up an old thread, but did you get any further with this Lucio? I'm getting a similar error building current Go tip. From mboxrd@z Thu Jan 1 00:00:00 1970 References: <4be826f96ab15a590e66ae66975a28d1@proxima.alt.za> In-Reply-To: Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=us-ascii Message-Id: <667B7F93-6C3B-4241-B7E5-D9F8E39A870D@lsub.org> Content-Transfer-Encoding: 7bit From: Francisco J Ballesteros Date: Thu, 21 Mar 2013 18:23:30 +0100 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Subject: Re: [9fans] Go on Plan9/Arm Topicbox-Message-UUID: 30281714-ead8-11e9-9d60-3106f5b1d025 I think Gorka has it running. At least, it runs in our rpi's. On Mar 21, 2013, at 5:54 PM, Jeremy Jackins wrote: > Sorry to dredge up an old thread, but did you get any further with > this Lucio? I'm getting a similar error building current Go tip. From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@9fans.net Date: Thu, 21 Mar 2013 19:23:43 +0200 From: lucio@proxima.alt.za In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] Go on Plan9/Arm Topicbox-Message-UUID: 3021f820-ead8-11e9-9d60-3106f5b1d025 > Sorry to dredge up an old thread, but did you get any further with > this Lucio? I'm getting a similar error building current Go tip. Not at all, the timing is pretty good. Gorka (Paurea) is currently busy with the Go port to Plan 9/arm and he's confident he'll have it out soon. I haven't actually helped him any so far, but I will be testing his submissions as soon as I have a trustworthy platform, a few things are out of kilt around here. I would expect an announcement from Gorka in the near future. ++L From mboxrd@z Thu Jan 1 00:00:00 1970 References: <4be826f96ab15a590e66ae66975a28d1@proxima.alt.za> <667B7F93-6C3B-4241-B7E5-D9F8E39A870D@lsub.org> In-Reply-To: <667B7F93-6C3B-4241-B7E5-D9F8E39A870D@lsub.org> Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=us-ascii Message-Id: <46C0C325-FF0E-4822-A64F-BCD0C23D221B@lsub.org> Content-Transfer-Encoding: quoted-printable From: Francisco J Ballesteros Date: Thu, 21 Mar 2013 18:29:39 +0100 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Subject: Re: [9fans] Go on Plan9/Arm Topicbox-Message-UUID: 302c717e-ead8-11e9-9d60-3106f5b1d025 yes, checked and runs on 386, amd64, and arm. with the 9 tree from sources. iirc, I had to do some changes for amd64 and gorka had to port to arm. hth On Mar 21, 2013, at 6:23 PM, Francisco J Ballesteros wrote: > I think Gorka has it running.=20 > At least, it runs in our rpi's. >=20 > On Mar 21, 2013, at 5:54 PM, Jeremy Jackins wrot= e: >=20 >> Sorry to dredge up an old thread, but did you get any further with >> this Lucio? I'm getting a similar error building current Go tip. From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <46C0C325-FF0E-4822-A64F-BCD0C23D221B@lsub.org> References: <4be826f96ab15a590e66ae66975a28d1@proxima.alt.za> <667B7F93-6C3B-4241-B7E5-D9F8E39A870D@lsub.org> <46C0C325-FF0E-4822-A64F-BCD0C23D221B@lsub.org> Date: Thu, 21 Mar 2013 12:24:37 -0600 Message-ID: From: Jeremy Jackins To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] Go on Plan9/Arm Topicbox-Message-UUID: 303b9e60-ead8-11e9-9d60-3106f5b1d025 Fantastic, I'll be waiting on the edge of my seat for this!