Re: [go-nuts] cgo cross compilation to arm failed

2020-09-14 Thread 'Hubert Hirtz' via golang-nuts
Thank you, that was the issue. I used one of the toolchains from and it worked. -- 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

Re: [go-nuts] cgo cross compilation to arm failed

2020-09-13 Thread Jan Mercl
On Sun, Sep 6, 2020 at 10:53 PM 'Hubert Hirtz' via golang-nuts wrote: > I am trying to cross-compile a project that depends on sqlite3 on a > amd64 machine (host) for an armhf machine (target), using clang with the > appropriate "--target" flag. > > The build fails on runtime/cgo with the

Re: [go-nuts] cgo cross compilation to arm failed

2020-09-08 Thread Amnon
Cross compilation of CGO stuff requires a lot of faff. I spend several years doing embedded development, and messing about with GCC build-chains. So I was absolutely astounded that the Go build tools do everything with two env vars. Once you branch out to CGO, you are back in the hairy world of

Re: [go-nuts] cgo cross compilation to arm failed

2020-09-07 Thread Ian Lance Taylor
On Sun, Sep 6, 2020 at 1:53 PM 'Hubert Hirtz' via golang-nuts wrote: > > I am trying to cross-compile a project that depends on sqlite3 on a > amd64 machine (host) for an armhf machine (target), using clang with the > appropriate "--target" flag. > > The build fails on runtime/cgo with the

[go-nuts] cgo cross compilation to arm failed

2020-09-06 Thread 'Hubert Hirtz' via golang-nuts
Hello go-nuts, I am trying to cross-compile a project that depends on sqlite3 on a amd64 machine (host) for an armhf machine (target), using clang with the appropriate "--target" flag. The build fails on runtime/cgo with the following errors: ``` # runtime/cgo In file included from