-
Notifications
You must be signed in to change notification settings - Fork 17.5k
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: add internal linking support for pie build mode on arm #50405
Comments
what if you set |
Same result. See above. Possible Bug? |
|
Noted. Any plans to make the linking internally? It's a very useful tool without depending on external tool-chains. Will close this ticket after the reply. |
I'm not sure if there are any plans to extend internal linking to other GOARCHs, maybe @cherrymui knows. |
Don't need to close the issue, maybe change the title to something like "cmd/link: add internal linking support for pie build mode on arm" |
Noted. Updated title. Thanks for the feedback and happy new year @seankhliao, @ALTree , and @erifan. Let's wait after Jan 4th for the quiet week. You guys need it. =) |
I'm not aware of any plan. But CLs are always welcome. Thanks. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
So I try to cross-compile a pure Go repository to
armv7
CPU onamd64
host system with-buildmode=pie
, the compiler keeps on seeking for arm based gcc compiler eventhough the entire project does not have cgo codes at all. The command I issued:I even tried to explicitly instruct the compiler that I'm not using Cgo:
What did you expect to see?
Should be working fine without needing to install arm compiler tool-chain like the workaround (see below).
What did you see instead?
Both the above produced the following outputs:
There are 2 ways to workaround the issue:
Number 1: don't build
pie
modeHowever, some packagers are great at complaining non-pie binary (e.g.
debuild
).Number 2: install arm gcc toolchain
On Debian:
Then:
Gone through Resources
Gone through the following resources but found no outcome yet... still searching...
The text was updated successfully, but these errors were encountered: