[go-nuts] Re: Cross-compiled program for Raspberry Pi crashes

2018-08-13 Thread Stephan Mühlstrasser
Am Montag, 13. August 2018 23:47:11 UTC+2 schrieb Dave Cheney: > > I don’t think that will help. The problem is not cross compilation. The > problem is when run in a 32bit environment the offset of that field is not > guaranteed to be aligned to 8 bytes. You’ve got a 50/50 chance that each > all

[go-nuts] Re: Cross-compiled program for Raspberry Pi crashes

2018-08-13 Thread Stephan Mühlstrasser
Am Montag, 13. August 2018 22:36:56 UTC+2 schrieb Dave Cheney: > > No, it’s not a cross compilation issue. Well, yes and no, the rpi is a 32 > bit platform so some structures have a different size causing the offset of > the field to be 32 but aligned, not the required 64 bit aligned. > > The p

[go-nuts] Re: Cross-compiled program for Raspberry Pi crashes

2018-08-13 Thread Stephan Mühlstrasser
Am Sonntag, 12. August 2018 23:30:22 UTC+2 schrieb Dave Cheney: > > This is likely to be issue https://github.com/golang/go/issues/599 > > , https://play.golang.o

Re: [go-nuts] Cross-compiled program for Raspberry Pi crashes

2018-08-12 Thread Stephan Mühlstrasser
Am Sonntag, 12. August 2018 19:33:19 UTC+2 schrieb Skip: > > Rpi1 model B requires setting GOARM=5 I believe. > >> Thanks for the suggestion, I indeed have used GOARM=6. But I just verified that the crash still occurs also when I compile with GOARM=5. -- You received this message because you are

[go-nuts] Cross-compiled program for Raspberry Pi crashes

2018-08-12 Thread Stephan Mühlstrasser
Hi, I'm developing my first Go program that is supposed to upload files into a Google Cloud Storage bucket from a Raspberry Pi 1. It uses the https://github.com/blackjack/webcam library to grab a picture from an USB camera. I can compile the program on the Raspberry Pi itself with Go 1.7.4 tha