Cross linking with alpine v3.20 gmp 6.3.0-r1 failed with `undefined symbol: __gmp_set_memory_functions`, but linking use gmp 6.2.1-r3 still keep working (Host is Arch linux) #21112
cd project folder, run ./run.sh, as you can see, it will static linking some libraries in the x86_64-linux-musl folder, but failed with following error message.
above issue caused by x86_64-linux-musl/libgmp.a, gmp version 6.3.0-r1, it download and extract from here
if copy libgmp.a in the project root(version 6.2.1-r3, download from here into x86_64-linux-musl/libgmp.a override it, then ./run.sh again, it works now.
Expected Behavior
It should linking with gmp 6.3.0-r1, because all others package use alpine v3.20's version, but only gmp keep stopping on 6.2.1-r3 which belongs to alpine v3.18.
EDIT: if cross linking for darwin, with gmp 6.3.0, it works!
Zig Version
0.13.0
Steps to Reproduce and Observed Behavior
I create a new project for reproduce this issue easier, it should runable on linux.
x86_64-linux-musl
folder, but failed with following error message.above issue caused by
x86_64-linux-musl/libgmp.a
, gmp version 6.3.0-r1, it download and extract from hereif copy
libgmp.a
in the project root(version 6.2.1-r3, download from here intox86_64-linux-musl/libgmp.a
override it, then./run.sh
again, it works now.Expected Behavior
It should linking with gmp 6.3.0-r1, because all others package use alpine v3.20's version, but only gmp keep stopping on 6.2.1-r3 which belongs to alpine v3.18.
EDIT: if cross linking for darwin, with gmp 6.3.0, it works!
Thanks.