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

runtime/cgo: Can't install on Mac OS X Lion 10.7 (Build 11A390) #1657

Closed
gopherbot opened this issue Apr 3, 2011 · 14 comments

Comments

@gopherbot
Copy link

@gopherbot gopherbot commented Apr 3, 2011

by xor104:

Before filing a bug, please check whether it has been fixed since
the latest release: run "hg pull -u" and retry what you did to
reproduce the problem.  Thanks.

What steps will reproduce the problem?
1. cd src
2. ./all.bash

What is the expected output?

--

What do you see instead?

... skipped ...

make -C net test
gotest
rm -f _test/net.a
6g -o _gotest_.6 dial.go dnsmsg.go fd_darwin.go hosts.go ip.go ipsock.go iprawsock.go
net.go parse.go pipe.go sock.go tcpsock.go udpsock.go unixsock.go  newpollserver.go
fd.go dnsconfig.go dnsclient.go port.go  dialgoogle_test.go dnsname_test.go
hosts_test.go ip_test.go ipraw_test.go multicast_test.go net_test.go parse_test.go
pipe_test.go port_test.go server_test.go srv_test.go timeout_test.go
rm -f _test/net.a
gopack grc _test/net.a _gotest_.6 
--- FAIL: net.TestMulticastJoinAndLeave (0.0 seconds)
    leavegroup udp 224.0.0.254: setsockopt: can't assign requested address
FAIL
make[1]: *** [test] Error 1
make: *** [net.test] Error 2


Which compiler are you using (5g, 6g, 8g, gccgo)?


Which operating system are you using?

Mac OS X Lion 10.7 (Build 11A390)

Which revision are you using?  (hg identify)

c5c62aeb6267 tip

Please provide any additional information below.

Also I tried this:

DISABLE_NET_TESTS=1 ./all.bash

But unfortunately, it doesn't work either:

... skipped ...

--- cd ../misc/cgo/stdio
rm -rf *.o *.a *.[568vq] [568vq].out hello fib chain run.out *.so _obj _test
_testmain.go *.exe _cgo* *.cgo[12].*
CGOPKGPATH= cgo --  align.go file.go test.go test1.go 
loading DWARF type: decoding dwarf section info at offset 0x481: missing dimension for
array
make: *** [_obj/_cgo_run] Error 2
@peterGo

This comment has been minimized.

Copy link
Contributor

@peterGo peterGo commented Apr 3, 2011

Comment 1:

Does this help?
DISABLE_NET_TESTS=1 DISABLE_CGO=1 ./all.bash
@robpike

This comment has been minimized.

Copy link
Contributor

@robpike robpike commented Apr 4, 2011

Comment 2:

New network support code that's underway for Go should deal with this.

Status changed to Thinking.

@gopherbot

This comment has been minimized.

Copy link
Author

@gopherbot gopherbot commented Apr 4, 2011

Comment 3 by xor104:

DISABLE_NET_TESTS=1 DISABLE_CGO=1 ./all.bash
Didn't help. Prints same error message.
@adg

This comment has been minimized.

Copy link
Contributor

@adg adg commented May 25, 2011

Comment 4:

Issue #1881 has been merged into this issue.

@rsc

This comment has been minimized.

Copy link
Contributor

@rsc rsc commented May 25, 2011

Comment 5:

Primary problem is that Mac OS X 10.7 Lion does not exist yet.
Drafts exist, and they are buggy.

Status changed to LongTerm.

@gopherbot

This comment has been minimized.

Copy link
Author

@gopherbot gopherbot commented May 25, 2011

Comment 6 by kballard@apple.com:

Russ, if you can identify a specific bug in the OS that's causing problems, please make
absolutely sure you file a bug report with Apple on the subject.
@rsc

This comment has been minimized.

Copy link
Contributor

@rsc rsc commented Jun 14, 2011

Comment 7:

Kevin,
Can you try all.bash at the latest tip (after yesterday's cgo fix)
and let us know what is still broken?
Thanks.
Russ
@gopherbot

This comment has been minimized.

Copy link
Author

@gopherbot gopherbot commented Jun 14, 2011

Comment 8 by kballard:

It gets a lot farther now, but it breaks on the same issue that I originally reported
with my precompiled cgo problem.
test crypto/tls
TEST FAIL crypto/tls
gotest -test.short -test.timeout=120
rm -f _test/crypto/tls.a
6g  -o _gotest_.6 alert.go cipher_suites.go common.go conn.go handshake_client.go
handshake_messages.go handshake_server.go key_agreement.go prf.go tls.go  conn_test.go
handshake_client_test.go handshake_messages_test.go handshake_server_test.go prf_test.go
rm -f _test/crypto/tls.a
gopack grc _test/crypto/tls.a _gotest_.6 
libcgo: thread-local storage 0x108 not at %gs:0x8a0 - x=0 y=0
gotest: "./6.out -test.short=true -test.timeout=120" failed: signal 6
make[1]: *** [testshort] Error 2
make: *** [crypto/tls.testshort] Error 1
Note the line that says
libcgo: thread-local storage 0x108 not at %gs:0x8a0 - x=0 y=0
-Kevin
@rsc

This comment has been minimized.

Copy link
Contributor

@rsc rsc commented Jun 14, 2011

Comment 9:

Thanks.  I just wanted to confirm that this was the only remaining error.
Can you run make -k test in $GOROOT/src/pkg and also run ./run in $GOROOT/test,
just to see if anything else pops up?
Thanks.
@gopherbot

This comment has been minimized.

Copy link
Author

@gopherbot gopherbot commented Jun 14, 2011

Comment 10 by kballard:

`make -k test` gives the thread-local storage error for the following tests: crypto/tls,
expvar, http, http/cgi, http/fcgi, http/spdy, mail, mime/multipart, net, net/textproto,
netchan, os/user, rpc, rpc/jsonrpc, smtp, syslog, websocket, ../cmd/goinstall. Every
single failed test ends up in the same error:
libcgo: thread-local storage 0x108 not at %gs:0x8a0 - x=0 y=0
`./run` produces 0 known bugs; 0 unexpected bugs.
@rsc

This comment has been minimized.

Copy link
Contributor

@rsc rsc commented Jun 14, 2011

Comment 11:

Great.  Thanks.  I'll get back to you about the libcgo error.
@rsc

This comment has been minimized.

Copy link
Contributor

@rsc rsc commented Jun 16, 2011

Comment 12:

This issue was closed by revision 95963e6.

Status changed to Fixed.

@rsc

This comment has been minimized.

Copy link
Contributor

@rsc rsc commented Jun 16, 2011

Comment 13:

This issue was closed by revision 95963e6.

@rsc

This comment has been minimized.

Copy link
Contributor

@rsc rsc commented Jul 12, 2011

Comment 14:

This issue was closed by revision bf17e96b6582.

rsc added a commit that referenced this issue May 11, 2015
««« CL 4603057 / 0905a2ca94c6
runtime/cgo: fix for OS X 10.7

Correct a few error messages (libcgo -> runtime/cgo)
and delete old nacl_386.c file too.

Fixes #1657.

R=iant
CC=golang-dev
https://golang.org/cl/4603057
»»»

R=adg
CC=golang-dev
https://golang.org/cl/4698041
@mikioh mikioh changed the title Can't install on Mac OS X Lion 10.7 (Build 11A390) runtime/cgo: Can't install on Mac OS X Lion 10.7 (Build 11A390) Jul 30, 2015
@golang golang locked and limited conversation to collaborators Aug 5, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
5 participants
You can’t perform that action at this time.