Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arm undefined: SQLiteConn #494

Closed
xushuyi888 opened this issue Nov 24, 2017 · 3 comments
Closed

arm undefined: SQLiteConn #494

xushuyi888 opened this issue Nov 24, 2017 · 3 comments

Comments

@xushuyi888
Copy link

--> linux/arm error: exit status 2
Stderr: # github.com/mattn/go-sqlite3
C:\Users\xu\go\src\github.com\mattn\go-sqlite3\sqlite3_go18.go:18:10: undefined: SQLiteConn

@mattn
Copy link
Owner

mattn commented Nov 24, 2017

please find same issue from issues. May be, you don't install C compiler, or you are trying to do cross compiling but not installed cross C compiler.

@xushuyi888
Copy link
Author

xushuyi888 commented Nov 26, 2017

thank you
apt-get install gcc-arm-linux-gnueabi

root@ubuntu:~# go env
GOARCH="arm"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/root"
GORACE=""
GOROOT="/usr/lib/go-1.6"
GOTOOLDIR="/usr/lib/go-1.6/pkg/tool/linux_amd64"
GO15VENDOREXPERIMENT="1"
CC="/usr/bin/arm-linux-gnueabi-gcc-5"
GOGCCFLAGS="-fPIC -marm -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"

@qianguozheng
Copy link

This looks not work for my ubuntu

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

No branches or pull requests

3 participants