C source files not allowed when not using cgo or SWIG: sqlite3-binding.c
i try export CGO_ENABLED=1 but
clang: error: argument unused during compilation: '-mno-thumb'
What ideas can be compile successfully???
:+1: on OSX (go version go1.5.2 darwin/amd64) building for Linux
$ CGO_ENABLED=1 GOOS=linux go build -v main.go
runtime
errors
sync/atomic
math
unicode/utf8
sort
unicode
sync
encoding
runtime/cgo
io
syscall
# runtime/cgo
ld: unknown option: --build-id=none
clang: error: linker command failed with exit code 1 (use -v to see invocation)
internal/singleflight
container/list
Hi.i got this problem too.
Did you fix this problem finally?How?
you compiler have --build-id flag?
CC=arm-none-linux-gnueabi-gcc
Finally, Use this flag to setup you own compiler, not use Clang.
go-sqlite3 doesn't require --build-id flag but seems go require it.
In case someone else stumbles on this as I did here is the complete info:
env CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++ \
CGO_ENABLED=1 GOOS=linux GOARCH=arm GOARM=7 \
go build -v main.go
Most helpful comment
In case someone else stumbles on this as I did here is the complete info: