Open Shagrat2 opened 4 years ago
/cc @hyangah
@cherrymui Can you please help with this linker error?
This is 32-bit darwin/arm right?
The linker inserts trampolines for far calls, but it is possible that we missed some cases. It would be good to know what the call target is, in particular, whether it is a regular Go function, or a C function, or something like a PLT stub (which I think there may be some problem)?
32-bit darwin/arm port is removed in Go 1.15, though.
(A quick workaround for this could be changing the calls to function pointer calls, like, instead of pkg.F()
, do fn := pkg.F; fn()
).
This is 32-bit darwin/arm right?
The linker inserts trampolines for far calls, but it is possible that we missed some cases. It would be good to know what the call target is, in particular, whether it is a regular Go function, or a C function, or something like a PLT stub (which I think there may be some problem)?
32-bit darwin/arm port is removed in Go 1.15, though.
Why 32 bit? https://en.wikipedia.org/wiki/Apple-designed_processors Compile for A7 and newer, is a 64bit arm
(*TEcu).Espsnsclbr90 - is GO struct function in my code. But the function is taken randomly
@Shagrat2 I don't know, I'm just asking.
Based on the error message, gomobile: darwin-arm
, it looks like 32-bit ARM to me. We use the name arm64 for 64-bit ARM.
(A quick workaround for this could be changing the calls to function pointer calls, like, instead of
pkg.F()
, dofn := pkg.F; fn()
).
This workaround failed
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?
What did you see instead?