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

github.com/mattn/go-sqlite3(.data.rel): unexpected R_X86_64_64 relocation for dynamic symbol (Ubuntu 16.04) #417

Closed
minhajakhterkhan199 opened this issue May 12, 2017 · 4 comments

Comments

@minhajakhterkhan199
Copy link

minhajakhterkhan199 commented May 12, 2017

Yesterday, gogland on Ubuntu download new updates and after getting updates, it shows below error message in gogland Debugging only . Previously it worked fine.
Please advise to solve the issue. I also tried to install brew sqllite3 but it also shows Error: No available formula with the name "sqllite3"

GOROOT=/usr/local/go
GOPATH=/home/minhaj/GoLang
/usr/local/go/bin/go build -o /home/minhaj/GoLang/bin/GoLangRun -gcflags "-N -l" "-ldflags=-linkmode internal" /home/minhaj/GoLang/src/IndoorMass/IndoorMain.go

command-line-arguments

github.com/mattn/go-sqlite3(.data.rel): unexpected R_X86_64_64 relocation for dynamic symbol close
github.com/mattn/go-sqlite3(.data.rel): unexpected R_X86_64_64 relocation for dynamic symbol access
github.com/mattn/go-sqlite3(.data.rel): unexpected R_X86_64_64 relocation for dynamic symbol getcwd
github.com/mattn/go-sqlite3(.data.rel): unexpected R_X86_64_64 relocation for dynamic symbol ftruncate64
github.com/mattn/go-sqlite3(.data.rel): unexpected R_X86_64_64 relocation for dynamic symbol fcntl
github.com/mattn/go-sqlite3(.data.rel): unexpected R_X86_64_64 relocation for dynamic symbol read
github.com/mattn/go-sqlite3(.data.rel): unexpected R_X86_64_64 relocation for dynamic symbol write
github.com/mattn/go-sqlite3(.data.rel): unexpected R_X86_64_64 relocation for dynamic symbol fchmod
github.com/mattn/go-sqlite3(.data.rel): unexpected R_X86_64_64 relocation for dynamic symbol unlink
github.com/mattn/go-sqlite3(.data.rel): unexpected R_X86_64_64 relocation for dynamic symbol mkdir
github.com/mattn/go-sqlite3(.data.rel): unexpected R_X86_64_64 relocation for dynamic symbol rmdir
github.com/mattn/go-sqlite3(.data.rel): unexpected R_X86_64_64 relocation for dynamic symbol fchown
github.com/mattn/go-sqlite3(.data.rel): unexpected R_X86_64_64 relocation for dynamic symbol geteuid
github.com/mattn/go-sqlite3(.data.rel): unexpected R_X86_64_64 relocation for dynamic symbol mmap64
github.com/mattn/go-sqlite3(.data.rel): unexpected R_X86_64_64 relocation for dynamic symbol munmap
github.com/mattn/go-sqlite3(.data.rel): unexpected R_X86_64_64 relocation for dynamic symbol mremap
github.com/mattn/go-sqlite3(.data.rel): unexpected R_X86_64_64 relocation for dynamic symbol readlink
github.com/mattn/go-sqlite3(.data.rel): unhandled relocation for close (type 42 rtype 1)
github.com/mattn/go-sqlite3(.data.rel): unhandled relocation for access (type 42 rtype 1)
github.com/mattn/go-sqlite3(.data.rel): unhandled relocation for getcwd (type 42 rtype 1)
github.com/mattn/go-sqlite3(.data.rel): relocation target stat64 not defined
/usr/local/go/pkg/tool/linux_amd64/link: too many errors

Thanks...

@minhajakhterkhan199 minhajakhterkhan199 changed the title github.com/mattn/go-sqlite3(.data.rel): unexpected R_X86_64_64 relocation for dynamic symbol github.com/mattn/go-sqlite3(.data.rel): unexpected R_X86_64_64 relocation for dynamic symbol (Ubuntu 16.04) May 12, 2017
@mattn
Copy link
Owner

mattn commented May 12, 2017

dup #414

@mattn mattn closed this as completed May 12, 2017
@minhajakhterkhan199
Copy link
Author

Please advise where to set this -x -ldflags -linkmode=external in gogland IDE for debugging mode.

@mattn
Copy link
Owner

mattn commented May 13, 2017

see #404

@minhajakhterkhan199
Copy link
Author

Issue is fixed, please see below link
https://youtrack.jetbrains.com/issue/GO-3857

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

2 participants