It seems to be the case that if we append -static, everything seems to work, the executable can be executed (it cannot if we omit -static, ldd shows invalid ELF header), and all tests pass.
The issue arises only when CC is set to musl-gcc. It works with gcc.
I apologize for the long title, I could not come up with a shorter one that summarizes the issue. :/
Hello.
Due to
goldilocks_gen_tables
being a dynamically linked executable, it cannot be executed when compiled withmusl-gcc
:Result:
The solution is adding
-static
to create a statically linked executable instead of a dynamically linked one:It seems to be the case that if we append
-static
, everything seems to work, the executable can be executed (it cannot if we omit-static
,ldd
shows invalid ELF header), and all tests pass.The issue arises only when
CC
is set tomusl-gcc
. It works withgcc
.I apologize for the long title, I could not come up with a shorter one that summarizes the issue. :/