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 gcc_libinit.c:8:
/usr/include/pthread.h:672:6: error: 'regparm' is not valid on this platform
/usr/include/bits/pthreadtypes-arch.h:52:50: note: expanded from macro
'__cleanup_fct_attribute'
In file included from gcc_libinit.c:8:
/usr/include/pthread.h:684:3: error: 'regparm' is not valid on this platform
/usr/include/bits/pthreadtypes-arch.h:52:50: note: expanded from macro
'__cleanup_fct_attribute'
In file included from gcc_libinit.c:8:
/usr/include/pthread.h:725:6: error: 'regparm' is not valid on this platform
/usr/include/bits/pthreadtypes-arch.h:52:50: note: expanded from macro
'__cleanup_fct_attribute'
```
Here is the `go env` and the full build output (run with `-x`):
<
https://paste.sr.ht/~taiite/b6b47c78cc399d41b398f1076f55a5a1cc75526e>
Do you have any idea why it fails or if I missed something?
Cheers