Closed agrojean-ledger closed 1 month ago
For information, modifying link_wrap.sh
as following:
diff --git a/ledger_device_sdk/link_wrap.sh b/ledger_device_sdk/link_wrap.sh
index 31f6cb7..7ba635c 100755
--- a/ledger_device_sdk/link_wrap.sh
+++ b/ledger_device_sdk/link_wrap.sh
@@ -7,7 +7,7 @@ set -x
LD=${LD:-rust-lld}
# Needed because LLD gets behavior from argv[0]
LD=${LD/-ld/-lld}
-${LD} "$@" --emit-relocs
+${LD} "$@" --emit-relocs -L /usr/arm-none-eabi/lib/ -lc
seems to solve the issue 🤔 Needs to be further investigated...
@yogh333 you need to bump sdk versions.
Compilation fails with a
rust-lld: error: undefined symbol: memchr
error.To reproduce
ledger-app-dev-tools
Docker container and open a terminal inside it.git clone https://github.com/LedgerHQ/ledger-device-rust-sdk.git
git checkout enable-qrcode
rustup default nightly-2023-11-10-x86_64-unknown-linux-musl
cd ledger_device_sdk/
cargo run --target stax.json --package ledger_device_sdk --example nbgl_generic_review