Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

St fixes #183

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

St fixes #183

wants to merge 2 commits into from

Conversation

pcppcp
Copy link
Contributor

@pcppcp pcppcp commented Jul 16, 2019

No description provided.

@lorepieri8
Copy link
Member

During the cd .circleci && make build I get:

ERROR: web3 4.9.2 has requirement eth-abi<2.0.0,>=1.2.0, but you'll have eth-abi 2.0.0 which is incompatible.

The installation goes on, but it stops near the end:

-- Loading /home/circleci/zephyr_rtos/zephyr/boards/x86/qemu_x86/qemu_x86.dts as base
-- Overlaying /home/circleci/zephyr_rtos/zephyr/dts/common/common.dts
-- Cache files will be written to: /home/circleci/.cache/zephyr
-- The C compiler identification is GNU 6.2.0
-- The CXX compiler identification is GNU 6.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /opt/sdk/zephyr-sdk/sysroots/x86_64-pokysdk-linux/usr/bin/i586-zephyr-elf/i586-zephyr-elf-gcc
-- Performing Test toolchain_is_ok
-- Performing Test toolchain_is_ok - Success
-- Configuring done
-- Generating done
-- Build files have been written to: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86
+ ninja
[1/212] Generating include/generated/syscall_macros.h
[2/212] Preparing syscall dependency handling

[3/212] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h
[4/212] Generating include/generated/driver-validation.h
[5/212] Generating misc/generated/syscalls_subdirs.trigger
[6/212] Creating directories for 'trezor-crypto-lib'
[7/212] Creating directories for 'nanopb'
[8/212] Generating misc/generated/syscalls.json
[9/212] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[10/212] Building C object zephyr/CMakeFiles/offsets.dir/arch/x86/core/offsets/offsets.c.obj
[11/212] Linking C static library zephyr/liboffsets.a
[12/212] Generating include/generated/offsets.h
[13/212] Building C object zephyr/CMakeFiles/zephyr.dir/lib/thread_entry.c.obj
[14/212] Building C object zephyr/CMakeFiles/zephyr.dir/lib/fdtable.c.obj
[15/212] Building C object zephyr/CMakeFiles/zephyr.dir/lib/crc/crc32_sw.c.obj
[16/212] Building C object zephyr/CMakeFiles/zephyr.dir/lib/crc/crc16_sw.c.obj
[17/212] Building C object zephyr/CMakeFiles/zephyr.dir/lib/crc/crc8_sw.c.obj
[18/212] Building C object zephyr/CMakeFiles/zephyr.dir/lib/ring_buffer/ring_buffer.c.obj
[19/212] Building C object zephyr/CMakeFiles/zephyr.dir/lib/mempool/mempool.c.obj
[20/212] Building C object zephyr/CMakeFiles/zephyr.dir/lib/rbtree/rb.c.obj
[21/212] Building C object zephyr/CMakeFiles/zephyr.dir/misc/printk.c.obj
[22/212] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[23/212] Building C object zephyr/CMakeFiles/zephyr.dir/ext/lib/fnmatch/fnmatch.c.obj
[24/212] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_list.c.obj
[25/212] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_core.c.obj
[26/212] Performing download step (git clone) for 'nanopb'
Cloning into 'nanopb'...
Already on 'master'
Your branch is up to date with 'origin/master'.
[27/212] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_msg.c.obj
[28/212] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_output.c.obj
[29/212] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_cmds.c.obj
[30/212] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/modules/kernel_service.c.obj
[31/212] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_fprintf.c.obj
[32/212] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_utils.c.obj
[33/212] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell.c.obj
[34/212] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_ops.c.obj
[35/212] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_uart.c.obj
[36/212] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_dummy.c.obj
[37/212] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_history.c.obj
[38/212] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_cmds.c.obj
[39/212] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_log_backend.c.obj
[40/212] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_wildcard.c.obj
[41/212] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/sntp/sntp.c.obj
[42/212] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/app/net_app.c.obj
[43/212] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/app/client.c.obj
[44/212] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/random/rand32_timestamp.c.obj
[45/212] Building C object zephyr/CMakeFiles/zephyr.dir/drivers/console/uart_console.c.obj
[46/212] Building C object zephyr/CMakeFiles/zephyr.dir/drivers/interrupt_controller/ioapic_intr.c.obj
[47/212] Building C object zephyr/CMakeFiles/zephyr.dir/drivers/console/uart_pipe.c.obj
[48/212] Building C object zephyr/CMakeFiles/zephyr.dir/drivers/interrupt_controller/system_apic.c.obj
[49/212] Building C object zephyr/CMakeFiles/zephyr.dir/drivers/interrupt_controller/loapic_intr.c.obj
[50/212] Building C object zephyr/CMakeFiles/zephyr.dir/drivers/interrupt_controller/i8259.c.obj
[51/212] Building C object zephyr/CMakeFiles/zephyr.dir/drivers/timer/sys_clock_init.c.obj
[52/212] Building C object zephyr/CMakeFiles/zephyr.dir/drivers/net/slip.c.obj
[53/212] Generating linker.cmd
[54/212] Building C object zephyr/CMakeFiles/zephyr.dir/drivers/timer/hpet.c.obj
[55/212] Building C object zephyr/arch/x86/core/CMakeFiles/arch__x86__core.dir/cache.c.obj
[56/212] Linking C static library zephyr/libzephyr.a
[57/212] Building ASM object zephyr/arch/x86/core/CMakeFiles/arch__x86__core.dir/cache_s.S.obj
[58/212] Building ASM object zephyr/arch/x86/core/CMakeFiles/arch__x86__core.dir/crt0.S.obj
[59/212] Building C object zephyr/arch/x86/core/CMakeFiles/arch__x86__core.dir/cpuhalt.c.obj
[60/212] Building ASM object zephyr/arch/x86/core/CMakeFiles/arch__x86__core.dir/excstub.S.obj
[61/212] Building ASM object zephyr/arch/x86/core/CMakeFiles/arch__x86__core.dir/intstub.S.obj
[62/212] Building ASM object zephyr/arch/x86/core/CMakeFiles/arch__x86__core.dir/swap.S.obj
[63/212] Building C object zephyr/arch/x86/core/CMakeFiles/arch__x86__core.dir/irq_manage.c.obj
[64/212] Building C object zephyr/arch/x86/core/CMakeFiles/arch__x86__core.dir/sys_fatal_error_handler.c.obj
[65/212] Building C object zephyr/arch/x86/core/CMakeFiles/arch__x86__core.dir/thread.c.obj
[66/212] Building C object zephyr/arch/x86/core/CMakeFiles/arch__x86__core.dir/x86_mmu.c.obj
[67/212] Building C object zephyr/arch/x86/core/CMakeFiles/arch__x86__core.dir/fatal.c.obj
[68/212] Linking C static library zephyr/arch/x86/core/libarch__x86__core.a
[69/212] Building C object zephyr/lib/libc/newlib/CMakeFiles/lib__libc__newlib.dir/libc-hooks.c.obj
[70/212] Linking C static library zephyr/lib/libc/newlib/liblib__libc__newlib.a
[71/212] Building C object zephyr/lib/posix/CMakeFiles/lib__posix.dir/pthread_common.c.obj
[72/212] Building C object zephyr/lib/posix/CMakeFiles/lib__posix.dir/pthread_sched.c.obj
[73/212] Building C object zephyr/lib/posix/CMakeFiles/lib__posix.dir/clock.c.obj
[74/212] Performing download step (git clone) for 'trezor-crypto-lib'
Cloning into 'trezor-crypto'...
Already on 'master'
Your branch is up to date with 'origin/master'.
Submodule 'tests/wycheproof' (https://github.com/google/wycheproof) registered for path 'tests/wycheproof'
Cloning into '/home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/thirdparty/trezor-crypto/tests/wycheproof'...
Submodule path 'tests/wycheproof': checked out '2904be69e9d666bf3064fdc15093747e695cfae6'
[75/212] Building C object zephyr/lib/posix/CMakeFiles/lib__posix.dir/sleep.c.obj
[76/212] Building C object zephyr/soc/x86/ia32/CMakeFiles/soc__x86__ia32.dir/soc.c.obj
[77/212] Building C object zephyr/lib/posix/CMakeFiles/lib__posix.dir/timer.c.obj
[78/212] Linking C static library zephyr/soc/x86/ia32/libsoc__x86__ia32.a
[79/212] Linking C static library zephyr/lib/posix/liblib__posix.a
[80/212] Building C object zephyr/subsys/net/CMakeFiles/subsys__net.dir/buf.c.obj
[81/212] Linking C static library zephyr/subsys/net/libsubsys__net.a
[82/212] Building C object zephyr/subsys/net/l2/ethernet/CMakeFiles/subsys__net__l2__ethernet.dir/ethernet.c.obj
[83/212] Building C object zephyr/subsys/net/l2/ethernet/CMakeFiles/subsys__net__l2__ethernet.dir/arp.c.obj
[84/212] Building C object zephyr/subsys/net/l2/ethernet/CMakeFiles/subsys__net__l2__ethernet.dir/ethernet_stats.c.obj
[85/212] Linking C static library zephyr/subsys/net/l2/ethernet/libsubsys__net__l2__ethernet.a
[86/212] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_core.c.obj
[87/212] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_context.c.obj
[88/212] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_tc.c.obj
[89/212] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_pkt.c.obj
[90/212] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/utils.c.obj
[91/212] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_if.c.obj
[92/212] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv4.c.obj
[93/212] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj
[94/212] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/nbr.c.obj
[95/212] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv6.c.obj
[96/212] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6.c.obj
[97/212] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6_mld.c.obj
[98/212] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_mgmt.c.obj
[99/212] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6_nbr.c.obj
[100/212] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/route.c.obj
[101/212] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_stats.c.obj
[102/212] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/connection.c.obj
[103/212] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_shell.c.obj
[104/212] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/udp.c.obj
[105/212] Building C object zephyr/subsys/net/lib/config/CMakeFiles/subsys__net__lib__config.dir/init.c.obj
[106/212] Linking C static library zephyr/subsys/net/lib/config/libsubsys__net__lib__config.a
[107/212] Building C object zephyr/subsys/net/lib/http/CMakeFiles/subsys__net__lib__http.dir/http_parser_url.c.obj
[108/212] Building C object zephyr/subsys/net/lib/http/CMakeFiles/subsys__net__lib__http.dir/http_parser.c.obj
[109/212] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/tcp.c.obj
[110/212] Linking C static library zephyr/subsys/net/ip/libsubsys__net__ip.a
[111/212] Building C object zephyr/subsys/net/lib/http/CMakeFiles/subsys__net__lib__http.dir/http.c.obj
[112/212] Building C object zephyr/kernel/CMakeFiles/kernel.dir/alert.c.obj
[113/212] Building C object zephyr/drivers/serial/CMakeFiles/drivers__serial.dir/uart_ns16550.c.obj
[114/212] Linking C static library zephyr/drivers/serial/libdrivers__serial.a
[115/212] Building C object zephyr/subsys/net/lib/http/CMakeFiles/subsys__net__lib__http.dir/http_client.c.obj
[116/212] Building C object zephyr/kernel/CMakeFiles/kernel.dir/device.c.obj
[117/212] Linking C static library zephyr/subsys/net/lib/http/libsubsys__net__lib__http.a
[118/212] Building C object zephyr/kernel/CMakeFiles/kernel.dir/errno.c.obj
[119/212] Building C object zephyr/kernel/CMakeFiles/kernel.dir/idle.c.obj
[120/212] Building C object zephyr/kernel/CMakeFiles/kernel.dir/init.c.obj
[121/212] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mailbox.c.obj
[122/212] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mem_slab.c.obj
[123/212] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mempool.c.obj
[124/212] Building C object zephyr/kernel/CMakeFiles/kernel.dir/msg_q.c.obj
[125/212] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mutex.c.obj
[126/212] Building C object zephyr/kernel/CMakeFiles/kernel.dir/queue.c.obj
[127/212] Building C object zephyr/kernel/CMakeFiles/kernel.dir/pipes.c.obj
[128/212] Building C object zephyr/kernel/CMakeFiles/kernel.dir/sem.c.obj
[129/212] Building C object zephyr/kernel/CMakeFiles/kernel.dir/sched.c.obj
[130/212] Building C object zephyr/kernel/CMakeFiles/kernel.dir/stack.c.obj
[131/212] Building C object zephyr/kernel/CMakeFiles/kernel.dir/system_work_q.c.obj
[132/212] Building C object zephyr/kernel/CMakeFiles/kernel.dir/version.c.obj
[133/212] Building C object zephyr/kernel/CMakeFiles/kernel.dir/thread.c.obj
[134/212] Building C object zephyr/kernel/CMakeFiles/kernel.dir/thread_abort.c.obj
[135/212] Building C object zephyr/kernel/CMakeFiles/kernel.dir/smp.c.obj
[136/212] Building C object zephyr/kernel/CMakeFiles/kernel.dir/work_q.c.obj
[137/212] Building C object zephyr/kernel/CMakeFiles/kernel.dir/timer.c.obj
[138/212] Building C object zephyr/kernel/CMakeFiles/kernel.dir/timeout.c.obj
[139/212] No update step for 'nanopb'
[140/212] Performing patch step for 'nanopb'
[141/212] No update step for 'trezor-crypto-lib'
[142/212] Building C object zephyr/kernel/CMakeFiles/kernel.dir/poll.c.obj
[143/212] Performing patch step for 'trezor-crypto-lib'
[144/212] Linking C static library zephyr/kernel/libkernel.a
[145/212] Building C object wallet/helpers/CMakeFiles/helpers.dir/compat.c.obj
[146/212] Building C object wallet/helpers/CMakeFiles/helpers.dir/fp2str.c.obj
[147/212] Building C object wallet/helpers/CMakeFiles/helpers.dir/hextobin.c.obj
[148/212] Building C object wallet/helpers/CMakeFiles/helpers.dir/jsmn.c.obj
[149/212] Building C object wallet/helpers/CMakeFiles/helpers.dir/jsmn_utils.c.obj
[150/212] Performing configure step for 'nanopb'
-- The C compiler identification is GNU 6.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Detecting C compile features
-- Detecting C compile features - failed
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.6.8", minimum required is "3") 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/nanopb/src/nanopb-build
[151/212] Building C object wallet/helpers/CMakeFiles/helpers.dir/math.c.obj
[152/212] Building C object wallet/helpers/CMakeFiles/helpers.dir/rlp_encoder.c.obj
[153/212] Building C object wallet/helpers/CMakeFiles/helpers.dir/uint256.c.obj
[154/212] Performing build step for 'nanopb'
[1/5] Building C object CMakeFiles/protobuf-nanopb-static.dir/pb_common.c.o
[2/5] Generating nanopb_pb2.py
[3/5] Building C object CMakeFiles/protobuf-nanopb-static.dir/pb_encode.c.o
[4/5] Building C object CMakeFiles/protobuf-nanopb-static.dir/pb_decode.c.o
[5/5] Linking C static library libprotobuf-nanopb.a
[155/212] Linking C static library wallet/helpers/libhelpers.a
[156/212] Performing install step for 'nanopb'
[0/1] Install the project...
-- Install configuration: ""
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/./lib/python3.6/site-packages/nanopb/proto/nanopb_pb2.py
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/./lib/python3.6/site-packages/nanopb/nanopb_generator.py
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/./lib/python3.6/site-packages/nanopb/protoc-gen-nanopb
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/lib/libprotobuf-nanopb.a
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/lib/cmake/nanopb-targets.cmake
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/lib/cmake/nanopb-targets-noconfig.cmake
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/lib/cmake/nanopb-config.cmake
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/lib/cmake/nanopb-config-version.cmake
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/lib/cmake/FindNanopb.cmake
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/pb.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/pb_common.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/pb_encode.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/pb_decode.h
[157/212] Completed 'nanopb'
[158/212] Performing configure step for 'trezor-crypto-lib'
-- The C compiler identification is GNU 6.2.0
-- The CXX compiler identification is GNU 7.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Detecting C compile features
-- Detecting C compile features - failed
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/trezor-crypto/src/trezor-crypto-lib-build
[159/212] Performing build step for 'trezor-crypto-lib'
[1/29] Building C object CMakeFiles/trezor-crypto.dir/address.c.o
[2/29] Building C object CMakeFiles/trezor-crypto.dir/base32.c.o
[3/29] Building C object CMakeFiles/trezor-crypto.dir/bip32.c.o
[4/29] Building C object CMakeFiles/trezor-crypto.dir/base58.c.o
[5/29] Building C object CMakeFiles/trezor-crypto.dir/bip39.c.o
[6/29] Building C object CMakeFiles/trezor-crypto.dir/bignum.c.o
[7/29] Building C object CMakeFiles/trezor-crypto.dir/blake256.c.o
[8/29] Building C object CMakeFiles/trezor-crypto.dir/blake2s.c.o
[9/29] Building C object CMakeFiles/trezor-crypto.dir/cash_addr.c.o
[10/29] Building C object CMakeFiles/trezor-crypto.dir/curves.c.o
[11/29] Building C object CMakeFiles/trezor-crypto.dir/groestl.c.o
[12/29] Building C object CMakeFiles/trezor-crypto.dir/hasher.c.o
[13/29] Building C object CMakeFiles/trezor-crypto.dir/memzero.c.o
[14/29] Building C object CMakeFiles/trezor-crypto.dir/ecdsa.c.o
[15/29] Building C object CMakeFiles/trezor-crypto.dir/hmac.c.o
[16/29] Building C object CMakeFiles/trezor-crypto.dir/rc4.c.o
[17/29] Building C object CMakeFiles/trezor-crypto.dir/blake2b.c.o
[18/29] Building C object CMakeFiles/trezor-crypto.dir/nem.c.o
[19/29] Building C object CMakeFiles/trezor-crypto.dir/nist256p1.c.o
[20/29] Building C object CMakeFiles/trezor-crypto.dir/script.c.o
[21/29] Building C object CMakeFiles/trezor-crypto.dir/rand.c.o
[22/29] Building C object CMakeFiles/trezor-crypto.dir/pbkdf2.c.o
[23/29] Building C object CMakeFiles/trezor-crypto.dir/rfc6979.c.o
[24/29] Building C object CMakeFiles/trezor-crypto.dir/secp256k1.c.o
[25/29] Building C object CMakeFiles/trezor-crypto.dir/sha3.c.o
[26/29] Building C object CMakeFiles/trezor-crypto.dir/ripemd160.c.o
[27/29] Building C object CMakeFiles/trezor-crypto.dir/segwit_addr.c.o
[28/29] Building C object CMakeFiles/trezor-crypto.dir/sha2.c.o
[29/29] Linking C static library libtrezor-crypto.a
[160/212] Performing install step for 'trezor-crypto-lib'
[0/1] Install the project...
-- Install configuration: ""
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/lib/libtrezor-crypto.a
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/address.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/base32.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/base58.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/bignum.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/bip32.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/bip39.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/bip39_english.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/blake256.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/blake2_common.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/blake2b.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/blake2s.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/cash_addr.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/check_mem.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/curves.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/ecdsa.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/groestl.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/groestl_internal.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/hasher.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/hmac.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/memzero.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/nem.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/nist256p1.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/options.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/pbkdf2.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/rand.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/rc4.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/rfc6979.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/ripemd160.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/script.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/secp256k1.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/segwit_addr.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/sha2.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/sha3.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/chacha20poly1305/chacha20poly1305.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/chacha20poly1305/ecrypt-config.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/chacha20poly1305/ecrypt-machine.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/chacha20poly1305/ecrypt-portable.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/chacha20poly1305/ecrypt-sync.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/chacha20poly1305/ecrypt-types.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/chacha20poly1305/poly1305-donna-32.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/chacha20poly1305/poly1305-donna.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/chacha20poly1305/rfc7539.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/ed25519-donna/curve25519-donna-32bit.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/ed25519-donna/curve25519-donna-helpers.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/ed25519-donna/curve25519-donna-scalarmult-base.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/ed25519-donna/ed25519-donna-32bit-tables.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/ed25519-donna/ed25519-donna-basepoint-table.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/ed25519-donna/ed25519-donna-impl-base.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/ed25519-donna/ed25519-donna-portable.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/ed25519-donna/ed25519-donna.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/ed25519-donna/ed25519-hash-custom-keccak.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/ed25519-donna/ed25519-hash-custom-sha3.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/ed25519-donna/ed25519-hash-custom.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/ed25519-donna/ed25519-keccak.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/ed25519-donna/ed25519-sha3.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/ed25519-donna/ed25519.h
-- Installing: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/install/include/trezor-crypto/ed25519-donna/modm-donna-32bit.h
[161/212] Completed 'trezor-crypto-lib'
[162/212] Building C object wallet/eth/CMakeFiles/eth.dir/address.c.obj
[163/212] Building C object wallet/eth/CMakeFiles/eth.dir/sign.c.obj
[164/212] Building C object wallet/eth/CMakeFiles/eth.dir/data.c.obj
[165/212] Building C object wallet/eth/CMakeFiles/eth.dir/transaction.c.obj
[166/212] Building C object wallet/eth/CMakeFiles/eth.dir/web3.c.obj
[167/212] Building C object wallet/eth/CMakeFiles/eth.dir/web3_jsonp.c.obj
[168/212] Linking C static library wallet/eth/libeth.a
[169/212] Compiling /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/sawtooth/protos/transaction.proto protobuf
[170/212] Compiling /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/sawtooth/protos/batch.proto protobuf
[171/212] Building C object wallet/CMakeFiles/wallet.dir/wallet/wallet.c.obj
[172/212] Compiling contracts/Token.sol ABI
[173/212] Generating private key file
[174/212] Building C object wallet/sawtooth/CMakeFiles/sawtooth.dir/encoders.c.obj
[175/212] Building C object wallet/sawtooth/CMakeFiles/sawtooth.dir/error_parser.c.obj
[176/212] Building C object wallet/sawtooth/CMakeFiles/sawtooth.dir/st_transaction.c.obj
[177/212] Building C object wallet/sawtooth/CMakeFiles/sawtooth.dir/transaction.pb.c.obj
[178/212] Building C object wallet/sawtooth/CMakeFiles/sawtooth.dir/batch.pb.c.obj
[179/212] Linking C static library wallet/sawtooth/libsawtooth.a
[180/212] Linking C static library wallet/libwallet.a
[181/212] SOLC abi: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/zephyr-wallet/erc20_token.json -> /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/zephyr-wallet/erc20_abi.c
FAILED: wallet/zephyr-wallet/erc20_abi.c 
cd /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet && /usr/bin/python3 -m abi_compiler --output c --abi /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/zephyr-wallet/erc20_token.json > /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/zephyr-wallet/erc20_abi.c
Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/abi_compiler/__main__.py", line 8, in <module>
    from web3.utils.abi import abi_to_signature
  File "/usr/local/lib/python3.6/dist-packages/web3/__init__.py", line 8, in <module>
    from web3.main import Web3  # noqa: E402
  File "/usr/local/lib/python3.6/dist-packages/web3/main.py", line 16, in <module>
    from web3.eth import Eth
  File "/usr/local/lib/python3.6/dist-packages/web3/eth.py", line 13, in <module>
    from web3.contract import (
  File "/usr/local/lib/python3.6/dist-packages/web3/contract.py", line 33, in <module>
    from web3.utils.abi import (
  File "/usr/local/lib/python3.6/dist-packages/web3/utils/abi.py", line 10, in <module>
    from eth_abi.abi import (
ImportError: cannot import name 'collapse_type'
[182/212] SOLC abi: /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/zephyr-wallet/erc20_token.json -> /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/zephyr-wallet/erc20_abi.h
**FAILED: wallet/zephyr-wallet/erc20_abi.h 
cd /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet && /usr/bin/python3 -m abi_compiler --output h --abi /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/zephyr-wallet/erc20_token.json > /home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/examples/wallet/build/x86/wallet/zephyr-wallet/erc20_abi.h
Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/circleci/zephyr_rtos/zephyr/samples/anyledger-wallet/abi_compiler/__main__.py", line 8, in <module>
    from web3.utils.abi import abi_to_signature
  File "/usr/local/lib/python3.6/dist-packages/web3/__init__.py", line 8, in <module>
    from web3.main import Web3  # noqa: E402
  File "/usr/local/lib/python3.6/dist-packages/web3/main.py", line 16, in <module>
    from web3.eth import Eth
  File "/usr/local/lib/python3.6/dist-packages/web3/eth.py", line 13, in <module>
    from web3.contract import (
  File "/usr/local/lib/python3.6/dist-packages/web3/contract.py", line 33, in <module>
    from web3.utils.abi import (
  File "/usr/local/lib/python3.6/dist-packages/web3/utils/abi.py", line 10, in <module>
    from eth_abi.abi import (
ImportError: cannot import name 'collapse_type'
ninja: build stopped: subcommand failed.
The command '/bin/sh -c ./build_zephyr_nrf52840_pca10056.sh' returned a non-zero code: 1
make: *** [build] Error 1**

Also notice that Solidity v0.5 is being used right now (see for instance https://github.com/AnyLedger/anyledger-wallet/blob/master/zephyr-wallet/contracts/Token.sol).

@pcppcp pcppcp force-pushed the st_fixes branch 2 times, most recently from 5b3a568 to 0eb9e96 Compare July 17, 2019 18:26
@pcppcp
Copy link
Contributor Author

pcppcp commented Jul 17, 2019

yeah that's just a conflict with library versions, I'll fix that
regarding the solc version I think I'll just upgrade it to 0.5.10, it shouldn't be difficult

@pcppcp pcppcp force-pushed the st_fixes branch 4 times, most recently from d129d1c to ca32619 Compare July 18, 2019 05:49
@pcppcp
Copy link
Contributor Author

pcppcp commented Jul 18, 2019

it should work now; after I update the docker hub image even the CircleCI tests should pass

@lorepieri8
Copy link
Member

lorepieri8 commented Jul 18, 2019

Yes, it compiles.

Memory region         Used Size  Region Size  %age Used
           FLASH:      251456 B         1 MB     23.98%
            SRAM:       44160 B       256 KB     16.85%
        IDT_LIST:         120 B         2 KB      5.86%
[243/247] Generating linker_pass_final.cmd
[244/247] Generating isr_tables.c
[245/247] Building C object zephyr/CMakeFiles/kernel_elf.dir/misc/empty_file.c.obj
[246/247] Building C object zephyr/CMakeFiles/kernel_elf.dir/isr_tables.c.obj
[247/247] Linking C executable zephyr/zephyr.elf
Removing intermediate container 8ac824d5667b
 ---> 7afc6b9a3e46
Successfully built 7afc6b9a3e46
Successfully tagged anyledger/develop:latest

This should solve #177
What about #181 and #182? (with these new changes)
Are the manual instructions updated? (https://github.com/pcppcp/anyledger-wallet/tree/st_fixes#zephyr-build and https://github.com/AnyLedger/anyledger-wallet/blob/master/BUILD-qemu.md)

@pcppcp
Copy link
Contributor Author

pcppcp commented Jul 18, 2019

now the test pass :)
#177 can be closed, next I'll resolve conflicts with master and the PR should be good to go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants