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/link: ErrorUnresolved provides misleading information #33979

Open
4a6f656c opened this issue Aug 30, 2019 · 2 comments

Comments

@4a6f656c
Copy link
Contributor

commented Aug 30, 2019

Under OpenBSD -current with clang, cgo_test currently fails to build with:

# misc/cgo/test.test
misc/cgo/test(.text): relocation target __mulsc3 not defined for ABI0 (but is defined for ABI0)
misc/cgo/test(.text): relocation target __muldc3 not defined for ABI0 (but is defined for ABI0)
misc/cgo/test(.text): relocation target __absvsi2 not defined for ABI0 (but is defined for ABI0)
FAIL    misc/cgo/test [build failed]

The underlying cause is an unrelated issue that is resulting in libcompiler_rt.a not being found. However, ErrorUnresolved should not be reporting relocation target X not defined for ABI0 (but is defined for ABI0) - this is caused by the code searching the same ABI and finding a matching SXREF symbol, which is the same symbol that it is trying to resolve in the first place.

This appears to be a variant of issue #29852.

@gopherbot

This comment has been minimized.

Copy link

commented Aug 30, 2019

Change https://golang.org/cl/192597 mentions this issue: cmd/link: skip symbol references when looking for missing symbols

@katiehockman

This comment has been minimized.

Copy link
Contributor

commented Sep 3, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.