plugin: cross-compiling a binary that uses a plugin does not work #54075
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
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
of linux/amd64 machinego env
of linux/arm64 machineWhat did you do?
Goal: cross-compile a binary (which consumes a plugin) targeting linux/arm64. The plugin was built on the target platform.
Compile plugin on linux/arm64
Plugin code
Build call
Cross-compile binary on linux/amd64 machine (or any other non-linux/arm64) targeting linux/arm64
Binary code
Build call
Execute binary on linux/arm64 machine
Also, find the repository with the code here.
What did you expect to see?
What did you see instead?
Fails as follows:
Additional information about the files
Note: If plugin and binary are compiled on the same platform, everything works as expected.
Thanks for the great work on this project! 🤗
The text was updated successfully, but these errors were encountered: