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

cmd/ld: linking of go-sqlite3 failing in MacOSX 10.6 #8211

Closed
gopherbot opened this issue Jun 15, 2014 · 4 comments
Closed

cmd/ld: linking of go-sqlite3 failing in MacOSX 10.6 #8211

gopherbot opened this issue Jun 15, 2014 · 4 comments

Comments

@gopherbot
Copy link
Contributor

by relishpl:

go version go1.2.2 darwin/amd64
MacOSX 10.6.8 (2011 Macbook Air)

What steps reproduce the problem?
1. go get code.google.com/p/go-sqlite/go1/sqlite3
2. go install -ldflags -linkmode=external relish/relish   # A program that imports
sqlite3 package

What happened?

# relish/relish
ld: in /var/folders/D1/D15nqFpwE3qvRmejtXleAE+++TI/-Tmp-//go-link-vJ7Xxe/go.o, in
section __TEXT,__text reloc 0: local relocation for address 0x00002067 in section __text
does not target section __rodata
collect2: ld returned 1 exit status
/usr/local/go/pkg/tool/darwin_amd64/6l: running gcc failed: unsuccessful exit status
0x100

What should have happened instead?
Successful build

Please provide any additional information below.

Is this related to bug 5130? How do I proceed?
@minux
Copy link
Member

minux commented Jun 15, 2014

Comment 1:

I'd first try internal linking mode.
I think there are some problems with 10.6's ld64.

@gopherbot
Copy link
Contributor Author

Comment 2 by relishpl:

Internal linking doesn't work:
Steps:
1. go get code.google.com/p/go-sqlite/go1/sqlite3
2. go install relish/relish
What happened?
# relish/relish
code.google.com/p/go-sqlite/go1/sqlite3(__DATA/__data): unexpected reloc for dynamic
symbol close
code.google.com/p/go-sqlite/go1/sqlite3(__DATA/__data): unexpected reloc for dynamic
symbol access
code.google.com/p/go-sqlite/go1/sqlite3(__DATA/__data): unexpected reloc for dynamic
symbol getcwd
code.google.com/p/go-sqlite/go1/sqlite3(__DATA/__data): unexpected reloc for dynamic
symbol stat$INODE64
code.google.com/p/go-sqlite/go1/sqlite3(__DATA/__data): unexpected reloc for dynamic
symbol fstat$INODE64
code.google.com/p/go-sqlite/go1/sqlite3(__DATA/__data): unexpected reloc for dynamic
symbol ftruncate
code.google.com/p/go-sqlite/go1/sqlite3(__DATA/__data): unexpected reloc for dynamic
symbol fcntl
code.google.com/p/go-sqlite/go1/sqlite3(__DATA/__data): unexpected reloc for dynamic
symbol read
code.google.com/p/go-sqlite/go1/sqlite3(__DATA/__data): unexpected reloc for dynamic
symbol pread
code.google.com/p/go-sqlite/go1/sqlite3(__DATA/__data): unexpected reloc for dynamic
symbol write
code.google.com/p/go-sqlite/go1/sqlite3(__DATA/__data): unexpected reloc for dynamic
symbol pwrite
code.google.com/p/go-sqlite/go1/sqlite3(__DATA/__data): unexpected reloc for dynamic
symbol fchmod
code.google.com/p/go-sqlite/go1/sqlite3(__DATA/__data): unexpected reloc for dynamic
symbol unlink
code.google.com/p/go-sqlite/go1/sqlite3(__DATA/__data): unexpected reloc for dynamic
symbol mkdir
code.google.com/p/go-sqlite/go1/sqlite3(__DATA/__data): unexpected reloc for dynamic
symbol rmdir
code.google.com/p/go-sqlite/go1/sqlite3(__DATA/__data): unexpected reloc for dynamic
symbol mmap
code.google.com/p/go-sqlite/go1/sqlite3(__DATA/__data): unexpected reloc for dynamic
symbol munmap
code.google.com/p/go-sqlite/go1/sqlite3(__DATA/__data): unhandled relocation for close
(type 32 rtype 120)
code.google.com/p/go-sqlite/go1/sqlite3(__DATA/__data): unhandled relocation for access
(type 32 rtype 120)
code.google.com/p/go-sqlite/go1/sqlite3(__DATA/__data): unhandled relocation for getcwd
(type 32 rtype 120)
code.google.com/p/go-sqlite/go1/sqlite3(__DATA/__data): unhandled relocation for
stat$INODE64 (type 32 rtype 120)
too many errors

@gopherbot gopherbot added the new label Jun 23, 2014
@bradfitz bradfitz removed the new label Dec 18, 2014
@rsc
Copy link
Contributor

rsc commented Apr 10, 2015

If we drop Snow Leopard (#9511) this goes away.

@rsc rsc added this to the Unplanned milestone Apr 10, 2015
@rsc
Copy link
Contributor

rsc commented Apr 28, 2015

Per #9511, we will not be making any further bug fixes specific to 10.6.

@rsc rsc closed this as completed Apr 28, 2015
@mikioh mikioh changed the title linking of go-sqlite3 failing in MacOSX 10.6 cmd/ld: linking of go-sqlite3 failing in MacOSX 10.6 May 17, 2015
@golang golang locked and limited conversation to collaborators Jun 25, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants