Skip to content
This repository has been archived by the owner on Feb 7, 2022. It is now read-only.

xgo cross-compile mattn/go-sqlite3 --targets=linux/arm #95

Open
zeevikal opened this issue Dec 7, 2017 · 1 comment
Open

xgo cross-compile mattn/go-sqlite3 --targets=linux/arm #95

zeevikal opened this issue Dec 7, 2017 · 1 comment

Comments

@zeevikal
Copy link

zeevikal commented Dec 7, 2017

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).

what am I doing wrong? thanks

@lruggieri
Copy link

lruggieri commented Feb 24, 2021

For anyone having the same issue. The solution is given in mattn/go-sqlite3#504: your project directory probably has a '-' sign in it.

The solution is to rename the project or add -out projectwithoutdash to xgo

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants