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

Can't build on Raspberry Pi #76

Closed
pier-oliviert opened this issue Sep 3, 2013 · 11 comments
Closed

Can't build on Raspberry Pi #76

pier-oliviert opened this issue Sep 3, 2013 · 11 comments

Comments

@pier-oliviert
Copy link

Back trace:

github.com/mattn/go-sqlite3(.data.rel): unexpected R_ARM_ABS32 relocation for dynamic symbol close
github.com/mattn/go-sqlite3(.data.rel): unexpected R_ARM_ABS32 relocation for dynamic symbol access
github.com/mattn/go-sqlite3(.data.rel): unexpected R_ARM_ABS32 relocation for dynamic symbol getcwd
github.com/mattn/go-sqlite3(.data.rel): unexpected R_ARM_ABS32 relocation for dynamic symbol ftruncate64
github.com/mattn/go-sqlite3(.data.rel): unexpected R_ARM_ABS32 relocation for dynamic symbol fcntl
github.com/mattn/go-sqlite3(.data.rel): unexpected R_ARM_ABS32 relocation for dynamic symbol read
github.com/mattn/go-sqlite3(.data.rel): unexpected R_ARM_ABS32 relocation for dynamic symbol write
github.com/mattn/go-sqlite3(.data.rel): unexpected R_ARM_ABS32 relocation for dynamic symbol fchmod
github.com/mattn/go-sqlite3(.data.rel): unexpected R_ARM_ABS32 relocation for dynamic symbol unlink
github.com/mattn/go-sqlite3(.data.rel): unexpected R_ARM_ABS32 relocation for dynamic symbol mkdir
github.com/mattn/go-sqlite3(.data.rel): unexpected R_ARM_ABS32 relocation for dynamic symbol rmdir
github.com/mattn/go-sqlite3(.data.rel): unexpected R_ARM_ABS32 relocation for dynamic symbol mmap64
github.com/mattn/go-sqlite3(.data.rel): unexpected R_ARM_ABS32 relocation for dynamic symbol munmap
github.com/mattn/go-sqlite3(.data.rel): unexpected R_ARM_ABS32 relocation for dynamic symbol mremap
github.com/mattn/go-sqlite3(.data.rel): unhandled relocation for close (type 28 rtype 23)
github.com/mattn/go-sqlite3(.data.rel): unhandled relocation for access (type 28 rtype 23)
github.com/mattn/go-sqlite3(.data.rel): unhandled relocation for getcwd (type 28 rtype 23)
github.com/mattn/go-sqlite3(.data.rel): unhandled relocation for ftruncate64 (type 28 rtype 23)
github.com/mattn/go-sqlite3(.data.rel): unhandled relocation for fcntl (type 28 rtype 23)
github.com/mattn/go-sqlite3(.data.rel): unhandled relocation for read (type 28 rtype 23)
github.com/mattn/go-sqlite3(.data.rel): unhandled relocation for write (type 28 rtype 23)
too many errors

Seems to be a problem with CGO that could (possibly) be fixed in go 1.2. Is there a way around this issue on current version? (1.1.2 linux/arm).

Sqlite3 version is 3.8.0.1 2013-08-29 17:35:01 352362bc01660edfbda08179d60f09e2038a2f49

If you need anything else please let me know

@mattn
Copy link
Owner

mattn commented Sep 3, 2013

It's a compiler's bug maybe

https://code.google.com/p/go/issues/detail?id=4069

@pier-oliviert
Copy link
Author

So, this library is not working on ARM until at least go 1.3? You might want to add a warning in the readme.

@jaeyeom
Copy link

jaeyeom commented Sep 7, 2013

It was working before I updated the go-sqlite3 package. One day I ran "go get -u github.com/mattn/go-sqlite3" then I see the same error message, too.

@mattn
Copy link
Owner

mattn commented Sep 7, 2013

Could you please try to run go build -ldflags='-w -hostobj' ?

@timob
Copy link
Contributor

timob commented Sep 18, 2013

Why are you not using the system libsqlite3.so? sqlite3_errstr() seems to be the only kind of newish function that is being used.

@mattn
Copy link
Owner

mattn commented Sep 18, 2013

Because sqlite3_errstr is contained in sqlite3.c that bundled.

@sathishvj
Copy link

Just following up on this to check if there is a fix in the pipeline. We are facing the same issues and there doesn't seem to be any workarounds.

@trevrosen
Copy link

+1

1 similar comment
@matiwinnetou
Copy link

+1

@trevrosen
Copy link

For anyone still looking at this issue, I was able to build on the RPi with a different SQLite3 driver, using Go 1.3b. Here is the alternative driver, and it has the added benefit of not having GCC peg your processor on build like this library has started to: https://github.com/mxk/go-sqlite/

@mattn
Copy link
Owner

mattn commented Nov 14, 2014

Maybe same as #92

@mattn mattn closed this as completed Nov 14, 2014
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

7 participants