9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Go on Plan9/Arm
@ 2012-10-19 18:45 lucio
  2012-10-19 19:46 ` Charles Forsyth
  0 siblings, 1 reply; 9+ messages in thread
From: lucio @ 2012-10-19 18:45 UTC (permalink / raw)
  To: 9fans

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




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [9fans] Go on Plan9/Arm
  2012-10-19 18:45 [9fans] Go on Plan9/Arm lucio
@ 2012-10-19 19:46 ` Charles Forsyth
  2012-10-20  4:34   ` lucio
  2012-10-20  6:52   ` lucio
  0 siblings, 2 replies; 9+ messages in thread
From: Charles Forsyth @ 2012-10-19 19:46 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 202 bytes --]

Try compiling under iostats.

On 19 October 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.  I lo

[-- Attachment #2: Type: text/html, Size: 454 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [9fans] Go on Plan9/Arm
  2012-10-19 19:46 ` Charles Forsyth
@ 2012-10-20  4:34   ` lucio
  2012-10-20  6:52   ` lucio
  1 sibling, 0 replies; 9+ messages in thread
From: lucio @ 2012-10-20  4:34 UTC (permalink / raw)
  To: 9fans

> 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




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [9fans] Go on Plan9/Arm
  2012-10-19 19:46 ` Charles Forsyth
  2012-10-20  4:34   ` lucio
@ 2012-10-20  6:52   ` lucio
  2013-03-21 16:54     ` Jeremy Jackins
  1 sibling, 1 reply; 9+ messages in thread
From: lucio @ 2012-10-20  6:52 UTC (permalink / raw)
  To: 9fans

> 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




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [9fans] Go on Plan9/Arm
  2012-10-20  6:52   ` lucio
@ 2013-03-21 16:54     ` Jeremy Jackins
  2013-03-21 17:23       ` Francisco J Ballesteros
  2013-03-21 17:23       ` lucio
  0 siblings, 2 replies; 9+ messages in thread
From: Jeremy Jackins @ 2013-03-21 16:54 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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.



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [9fans] Go on Plan9/Arm
  2013-03-21 16:54     ` Jeremy Jackins
@ 2013-03-21 17:23       ` Francisco J Ballesteros
  2013-03-21 17:29         ` Francisco J Ballesteros
  2013-03-21 17:23       ` lucio
  1 sibling, 1 reply; 9+ messages in thread
From: Francisco J Ballesteros @ 2013-03-21 17:23 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

I think Gorka has it running.
At least, it runs in our rpi's.

On Mar 21, 2013, at 5:54 PM, Jeremy Jackins <jeremyjackins@gmail.com> 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.



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [9fans] Go on Plan9/Arm
  2013-03-21 16:54     ` Jeremy Jackins
  2013-03-21 17:23       ` Francisco J Ballesteros
@ 2013-03-21 17:23       ` lucio
  1 sibling, 0 replies; 9+ messages in thread
From: lucio @ 2013-03-21 17:23 UTC (permalink / raw)
  To: 9fans

> 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




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [9fans] Go on Plan9/Arm
  2013-03-21 17:23       ` Francisco J Ballesteros
@ 2013-03-21 17:29         ` Francisco J Ballesteros
  2013-03-21 18:24           ` Jeremy Jackins
  0 siblings, 1 reply; 9+ messages in thread
From: Francisco J Ballesteros @ 2013-03-21 17:29 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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 <nemo@lsub.org> wrote:

> I think Gorka has it running. 
> At least, it runs in our rpi's.
> 
> On Mar 21, 2013, at 5:54 PM, Jeremy Jackins <jeremyjackins@gmail.com> 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.



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [9fans] Go on Plan9/Arm
  2013-03-21 17:29         ` Francisco J Ballesteros
@ 2013-03-21 18:24           ` Jeremy Jackins
  0 siblings, 0 replies; 9+ messages in thread
From: Jeremy Jackins @ 2013-03-21 18:24 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Fantastic, I'll be waiting on the edge of my seat for this!



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-03-21 18:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-19 18:45 [9fans] Go on Plan9/Arm lucio
2012-10-19 19:46 ` Charles Forsyth
2012-10-20  4:34   ` lucio
2012-10-20  6:52   ` lucio
2013-03-21 16:54     ` Jeremy Jackins
2013-03-21 17:23       ` Francisco J Ballesteros
2013-03-21 17:29         ` Francisco J Ballesteros
2013-03-21 18:24           ` Jeremy Jackins
2013-03-21 17:23       ` lucio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).