You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im trying to compile mattn/go-sqlite3 to linux/arm.
I run: sudo docker run karalabe/xgo-latest github.com/mattn/go-sqlite3 --targets=linux/arm
I get:
Fetching main repository github.com/mattn/go-sqlite3...
github.com/mattn/go-sqlite3 (download)
Fetching https://golang.org/x/net/context?go-get=1
Parsing meta tags from https://golang.org/x/net/context?go-get=1 (status code 200)
get "golang.org/x/net/context": found meta tag main.metaImport{Prefix:"golang.org/x/net", VCS:"git", RepoRoot:"https://go.googlesource.com/net"} at https://golang.org/x/net/context?go-get=1
get "golang.org/x/net/context": verifying non-authoritative meta tag
Fetching https://golang.org/x/net?go-get=1
Parsing meta tags from https://golang.org/x/net?go-get=1 (status code 200)
golang.org/x/net (download)
Assembling toolchain for android-16/arm...
Bootstrapping android-16/arm...
Compiling for android-16/arm...
Assembling toolchain for android-16/386...
Bootstrapping android-16/386...
Compiling for android-16/386...
/tmp/tmp.izDbZRL94v/go-sqlite3.i:1: Error: Syntax error in input(1).
Activity
mattn commentedon Dec 7, 2017
go-sqlite3 doesn't use swig (file extension
.i). may be it is not an issue of go-sqlite3.zeevikal commentedon Dec 7, 2017
can you advise me please, what should I do?
I want to compile
github.com/mattn/go-sqlite3to Arm6.thank you
mattn commentedon Dec 8, 2017
Sorry, I don't have arm6 and not well to know karalabe/xgo-latest.
jacentsao commentedon Dec 19, 2017
I just have a test and it's okay to use xgo build linux/arm. My go env is
and build process log
gjrtimmer commentedon May 30, 2018
@zeevikal Current master has no problem with cross-compile
To compile for ARM6 use:
GOARM=6 GOARCH=arm go build -a -v .Verification:
ripply commentedon Nov 19, 2018
I ran into this problem on a separate project and found a solution.
/tmp/tmp.izDbZRL94v/go-sqlite3.i:1: Error: Syntax error in input(1).Here is what xgo generates
The problem is the dash in
%module go-sqlite3The solution is to rename the project or add
-out projectwithoutdashto xgo