Actualy the secret is this GOARM=5 . Seems it impacts also on the error 
about struct_passwd, somehow.

I had GOARM set to 6 because I took the settings from a linux machine 
(running on ODROID XU4) and it was failing like that.

About compilation times of 3 hours, they depend mostly by disk performance, 
where "disk" is the SD card. When I did it on the external SSD disk I 
connected with the Raspi on USB,
the time was about 20 minutes. 

Hope this helps too.



On Wednesday, June 24, 2015 at 3:02:07 AM UTC+2, Dave Cheney wrote:
>
> sigh. to correct myself again, the proper invocation is 
>
>     env CGO_ENABLED=0 GOARM=5 ./all.bash 
>
> CGO_ENABLED=0 disables cgo entirely 
> GOARM=5 disables the use of the floating point unit on the raspberry 
> pi, as it will lock up the kernel if probed. 
>
> On Wed, Jun 24, 2015 at 11:00 AM, Dave Cheney <da...@cheney.net 
> <javascript:>> wrote: 
> > I'm sorry this should have been 
> > 
> >      env CGO_ENABLED=1 GOARM=5 ./all.bash 
> > 
> > On Wed, Jun 24, 2015 at 10:59 AM, Dave Cheney <da...@cheney.net 
> <javascript:>> wrote: 
> >> Thanks for trying Go on freebsd. I tried for a long time to get a 
> working 
> >> freebsd builder on an original model B raspberry pi but gave up every 
> time 
> >> due to the bad performance and kernel bugs. 
> >> 
> >> I'd suggest building with cgo disabled. 
> >> 
> >> env CGO_ENABLED GOARM=5 ./all.bash 
> >> 
> >> This will take about three hours to complete. 
> >> 
> >> I have had some success running freebsd/arm on a pandaboard, which has 
> >> working floating point and mulitprocessor support. 
> >> 
> >> I've also tried using a Beaglebone Black, but kernel bugs mean the BBB 
> >> always runs in low power mode (~550mhz) which ended up making it slower 
> than 
> >> the raspberry pi. 
> >> 
> >> On Wednesday, 24 June 2015 09:43:52 UTC+10, Andrew Gerrand wrote: 
> >>> 
> >>> Hi, 
> >>> 
> >>> The FreeBSD/arm support for Go is "experimental". I say this because 
> we're 
> >>> not currently running a continuous builder for that platform, so I 
> would not 
> >>> be surprised if Go is broken there. 
> >>> 
> >>> I've cc'd Dave Cheney on this thread, as he is the last person I know 
> that 
> >>> ran Go on freebsd/arm. 
> >>> 
> >>> Would you mind filing a bug with the full details of what you're 
> doing? 
> >>> 
> >>> Thanks, 
> >>> Andrew 
> >>> 
> >>> On 24 June 2015 at 06:14, alex martin <a.mart...@gmail.com> wrote: 
> >>>> 
> >>>> Hi i'm trying to install Go in a raspberry board with Freebsd 11 and 
> I've 
> >>>> this error 
> >>>> 
> >>>> os/user/lookup_unix.go:49:10: type C.struct_passwd: undefined C type 
> >>>> 'struct passwd' 
> >>>> os/user/lookup_unix.go:50:14: type C.struct_passwd: undefined C type 
> >>>> 'struct passwd' 
> >>>> os/user/lookup_unix.go:52:14: type C.long: undefined C type 'long' 
> >>>> os/user/lookup_unix.go:59:13: call of non-function C.sysconf 
> >>>> os/user/lookup_unix.go:64:9: call of non-function C.malloc 
> >>>> panic: runtime error: invalid memory address or nil pointer 
> dereference 
> >>>> [signal 0xb code=0x0 addr=0x0 pc=0x1d9ec] 
> >>>> 
> >>>> some suggest ? 
> >>>> 
> >>>> Thanks Alex 
> >>>> 
> >>>> -- 
> >>>> You received this message because you are subscribed to the Google 
> Groups 
> >>>> "golang-nuts" group. 
> >>>> To unsubscribe from this group and stop receiving emails from it, 
> send an 
> >>>> email to golang-nuts...@googlegroups.com. 
> >>>> For more options, visit https://groups.google.com/d/optout. 
> >>> 
> >>> 
> >> 
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to