-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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/go: go test + gccgo + package main #3262
Labels
Milestone
Comments
I believe that this is happening because the test main is package main but so is the package being tested. Thanks for the report. Labels changed: added priority-go1, removed priority-triage. Owner changed to builder@golang.org. Status changed to Accepted. |
There's two more test compilations that fail that look like it might be an issue with gccgo or go: # testmain go/std/src/std/sync/cond.go:67: error: undefined reference to 'fake_std_sync.sync.runtime_Semacquire' go/std/src/std/sync/cond.go:86: error: undefined reference to 'fake_std_sync.sync.runtime_Semrelease' go/std/src/std/sync/cond.go:100: error: undefined reference to 'fake_std_sync.sync.runtime_Semrelease' go/std/src/std/sync/cond.go:106: error: undefined reference to 'fake_std_sync.sync.runtime_Semrelease' go/std/src/std/sync/mutex.go:60: error: undefined reference to 'fake_std_sync.sync.runtime_Semacquire' go/std/src/std/sync/mutex.go:89: error: undefined reference to 'fake_std_sync.sync.runtime_Semrelease' go/std/src/std/sync/rwmutex.go:29: error: undefined reference to 'fake_std_sync.sync.runtime_Semacquire' go/std/src/std/sync/rwmutex.go:60: error: undefined reference to 'fake_std_sync.sync.runtime_Semacquire' collect2: error: ld returned 1 exit status # testmain go/std/src/std/time/sleep.go:11: error: undefined reference to 'fake_std_time.time.now' go/std/src/std/time/sleep.go:40: error: undefined reference to 'fake_std_time.time.stopTimer' go/std/src/std/time/sleep.go:55: error: undefined reference to 'fake_std_time.time.startTimer' go/std/src/std/time/sleep.go:89: error: undefined reference to 'fake_std_time.time.startTimer' go/std/src/std/time/tick.go:37: error: undefined reference to 'fake_std_time.time.startTimer' go/std/src/std/time/tick.go:43: error: undefined reference to 'fake_std_time.time.stopTimer' go/std/src/std/time/time.go:716: error: undefined reference to 'fake_std_time.time.now' go/std/src/std/time/zoneinfo_read.go:182: error: undefined reference to 'fake_std_time.time.now' go/std/src/std/time/example_test.go:35: error: undefined reference to 'fake_std_time.time.Sleep' go/std/src/std/time/sleep_test.go:24: error: undefined reference to 'fake_std_time.time.Sleep' go/std/src/std/time/sleep_test.go:20: error: undefined reference to 'fake_std_time.time.Sleep' go/std/src/std/time/sleep_test.go:42: error: undefined reference to 'fake_std_time.time.Sleep' collect2: error: ld returned 1 exit status |
This issue was closed by revision 3211b2c. Status changed to Fixed. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: