[9fans] Go 1.4.3 compilation on Raspberry Pi

2017-10-11 Thread Pavel Klinkovský
Hi all,

I am trying to compile Go 1.4.3 on my Raspberry Pi following David's
instructions on https://github.com/golang/go/wiki/Plan9.

But still having errors...

term% make.rc
# Building C bootstrap tool.
cmd/dist

# Building compilers and Go bootstrap tool for host, plan9/arm.
lib9
libbio
liblink
/usr/glenda/go1.4/include/plan9/../link.h:56[/usr/glenda/go1.4/src/liblink/anames6.c:1487]
syntax error, last name: float64
/usr/glenda/go1.4/include/plan9/../link.h:56[/usr/glenda/go1.4/src/liblink/anames8.c:1487]
syntax error, last name: float64
go tool dist: FAILED: /bin/5c -FTVwp -DPLAN9 -D__STDC__=1
-D__SIZE_TYPE__=ulong -I/usr/glenda/go1.4/include/plan9
-I/usr/glenda/go1.4/include/plan9/arm -I /usr/glenda/go1.4/src/liblink -o
$WORK/anames6.5 /usr/glenda/go1.4/src/liblink/anames6.c:
'/usr/glenda/go1.4/src/liblink/anames8.c' does not exist
/usr/glenda/go1.4/include/plan9/../link.h:56[/usr/glenda/go1.4/src/liblink/asm5.c:1519]
syntax error, last name: float64
go tool dist: FAILED: /bin/5c -FTVwp -DPLAN9 -D__STDC__=1
-D__SIZE_TYPE__=ulong -I/usr/glenda/go1.4/include/plan9
-I/usr/glenda/go1.4/include/plan9/arm -I /usr/glenda/go1.4/src/liblink -o
$WORK/anames8.5 /usr/glenda/go1.4/src/liblink/anames8.c:
'/usr/glenda/go1.4/src/liblink/anames8.c' does not exist
/usr/glenda/go1.4/include/plan9/../link.h:56[/usr/glenda/go1.4/src/liblink/anames5.c:1487]
syntax error, last name: float64
go tool dist: FAILED: /bin/5c -FTVwp -DPLAN9 -D__STDC__=1
-D__SIZE_TYPE__=ulong -I/usr/glenda/go1.4/include/plan9
-I/usr/glenda/go1.4/include/plan9/arm -I /usr/glenda/go1.4/src/liblink -o
$WORK/asm5.5 /usr/glenda/go1.4/src/liblink/asm5.c:
'/usr/glenda/go1.4/src/liblink/anames8.c' does not exist
go tool dist: FAILED: /bin/5c -FTVwp -DPLAN9 -D__STDC__=1
-D__SIZE_TYPE__=ulong -I/usr/glenda/go1.4/include/plan9
-I/usr/glenda/go1.4/include/plan9/arm -I /usr/glenda/go1.4/src/liblink -o
$WORK/anames5.5 /usr/glenda/go1.4/src/liblink/anames5.c:
'/usr/glenda/go1.4/src/liblink/anames8.c' does not exist
term%

Any idea what I am doing wrong?

Thanks in advance.

Pavel


Re: [9fans] Go 1.4.3 compilation on Raspberry Pi

2017-10-11 Thread Richard Miller
> I am trying to compile Go 1.4.3 on my Raspberry Pi following David's
> instructions on https://github.com/golang/go/wiki/Plan9.

I believe that route to bootstrapping go from scratch on Plan 9
will work only for 386.

On arm, you can either cross-compile go1.4 on another go platform
(eg plan9/386, plan9port on linux/386, or linux/arm), or start with
a pre-compiled plan9/arm package (there are several to choose from
on http://www.9legacy.org/download.html).

Once you have that, you can run it on Plan 9 on the Raspberry Pi to
bootstrap the current release of go.




Re: [9fans] Go 1.4.3 compilation on Raspberry Pi

2017-10-11 Thread Pavel Klinkovský
>
> I believe that route to bootstrapping go from scratch on Plan 9
> will work only for 386.
>

I see.


> On arm, you can either cross-compile go1.4 on another go platform
> (eg plan9/386, plan9port on linux/386, or linux/arm), or start with
> a pre-compiled plan9/arm package (there are several to choose from
> on http://www.9legacy.org/download.html).
>

Excellent.

Once you have that, you can run it on Plan 9 on the Raspberry Pi to
> bootstrap the current release of go.
>

Perfect, going to follow your recommendation.

Thank you for such a hint

Pavel


Re: [9fans] Go 1.4.3 compilation on Raspberry Pi

2017-10-11 Thread Chris McGee
There are some binaries available here if you want to use them to bootstrap:

http://www.9legacy.org/download.html

Chris

On Oct 11, 2017, at 6:13 AM, Richard Miller <9f...@hamnavoe.com> wrote:

>> I am trying to compile Go 1.4.3 on my Raspberry Pi following David's
>> instructions on https://github.com/golang/go/wiki/Plan9.
> 
> I believe that route to bootstrapping go from scratch on Plan 9
> will work only for 386.
> 
> On arm, you can either cross-compile go1.4 on another go platform
> (eg plan9/386, plan9port on linux/386, or linux/arm), or start with
> a pre-compiled plan9/arm package (there are several to choose from
> on http://www.9legacy.org/download.html).
> 
> Once you have that, you can run it on Plan 9 on the Raspberry Pi to
> bootstrap the current release of go.
> 
> 



Re: [9fans] Go 1.4.3 compilation on Raspberry Pi

2017-10-11 Thread Pavel Klinkovský
>
> There are some binaries available here if you want to use them to
> bootstrap:
>
> http://www.9legacy.org/download.html


Already done and working fine. ;)

Thank you.

Pavel