Closed TheBlueMatt closed 2 years ago
Can you put together a small reproduction, or is there a public project where this happens?
Sorry for the delay, this should reproduce:
git clone https://git.bitcoin.ninja/ldk-c-bindings
cd ldk-c-bindings/
git checkout 2021-07-testcase
cd lightning-c-bindings
cargo +nightly build -Zbuild-std --target x86_64-unknown-linux-gnu -v
Ah. The reason is that it is using panic="abort". A workaround for now is to use -Zbuild-std=std,panic_abort
.
I believe this is essentially the same as #56 (and #29), so closing in favor of those.
With current nightly, on x86_64 linux (and reproduced on a friend's machine, linking fails when building with
-Zbuild-std
. It appears to be trying to link libstd twice, and results in a billion and one error messages, starting with the one below.cargo +nightly build -Zbuild-std --target x86_64-unknown-linux-gnu -v