This repository was archived by the owner on Apr 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
This repository was archived by the owner on Apr 4, 2023. It is now read-only.
Can't compile the sample-apps using the 1.4.2 firmware #8
Copy link
Copy link
Open
Description
I installed the nano secure SDK nano-1421 tag for my updated ledger firmware 1.4.2. "make" on the sample apps got the error messages like:
vagrant@vagrant-ubuntu-trusty-64:~/apps/blue-sample-apps/blue-app-helloperso$ make
TARGET_NAME=TARGET_NANOS TARGET_ID=0x31100003
BOLOS_ENV=/opt/bolos
BOLOS_ENV=/opt/bolos
Prepare directories
[DEP] dep/usbd_ioreq.d
[DEP] dep/usbd_impl.d
[DEP] dep/usbd_hid.d
[DEP] dep/usbd_ctlreq.d
[DEP] dep/usbd_core.d
[DEP] dep/usbd_conf.d
[DEP] dep/usbd_ccid_if.d
[DEP] dep/usbd_ccid_core.d
[DEP] dep/usbd_ccid_cmd.d
[DEP] dep/u2f_io.d
[DEP] dep/u2f_impl.d
[DEP] dep/syscalls.d
[DEP] dep/pic_internal.d
[DEP] dep/pic.d
[DEP] dep/os_printf.d
[DEP] dep/os_io_seproxyhal.d
/opt/bolos/nanos-secure-sdk/src/os_io_seproxyhal.c:316:10: warning: TODO use real ticker event interval here instead of the x100ms
multiplier [-W#warnings]
#warning TODO use real ticker event interval here instead of the x100ms multiplier
^
1 warning generated.
[DEP] dep/os.d
[DEP] dep/main.d
[DEP] dep/cx_compliance_141.d
TARGET_NAME=TARGET_NANOS TARGET_ID=0x31100003
BOLOS_ENV=/opt/bolos
BOLOS_ENV=/opt/bolos
[CC] obj/cx_compliance_141.o
[CC] obj/main.o
src/main.c:513:71: error: too few arguments to function call, expected 6, have 5
cx_hash(&u.shasha.header, CX_LAST, publicKey.W, 33, privateKeyData);
~~~~~~~ ^
/opt/bolos/nanos-secure-sdk/include/cx.h:329:9: note: 'cx_hash' declared here
SYSCALL int cx_hash(cx_hash_t *hash PLENGTH(scc__cx_scc_struct_size_hash__hash),
^
src/main.c:515:67: error: too few arguments to function call, expected 6, have 5
cx_hash(&u.riprip.header, CX_LAST, privateKeyData, 32, tmp + 1);
~~~~~~~ ^
/opt/bolos/nanos-secure-sdk/include/cx.h:329:9: note: 'cx_hash' declared here
SYSCALL int cx_hash(cx_hash_t *hash PLENGTH(scc__cx_scc_struct_size_hash__hash),
^
src/main.c:518:63: error: too few arguments to function call, expected 6, have 5
cx_hash(&u.shasha.header, CX_LAST, tmp, 21, privateKeyData);
~~~~~~~ ^
/opt/bolos/nanos-secure-sdk/include/cx.h:329:9: note: 'cx_hash' declared here
SYSCALL int cx_hash(cx_hash_t *hash PLENGTH(scc__cx_scc_struct_size_hash__hash),
^
src/main.c:520:74: error: too few arguments to function call, expected 6, have 5
cx_hash(&u.shasha.header, CX_LAST, privateKeyData, 32, privateKeyData);
~~~~~~~ ^
/opt/bolos/nanos-secure-sdk/include/cx.h:329:9: note: 'cx_hash' declared here
SYSCALL int cx_hash(cx_hash_t *hash PLENGTH(scc__cx_scc_struct_size_hash__hash),
^
4 errors generated.
make: *** [obj/main.o] Error 1
Other apps had the similar build errors. Please help to update those sample apps to be able to build on the 1.4.2 firmware. Thanks.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels