hyperledger / iroha

Iroha - A simple, enterprise-grade decentralized ledger
https://wiki.hyperledger.org/display/iroha
Apache License 2.0
421 stars 275 forks source link

Cannot run or build Iroha2 on iMX8m (arm chipset) #4109

Open a1salimbene opened 7 months ago

a1salimbene commented 7 months ago

I'm trying to build iroha in an IMX8 mini device.

This is the device specs:

And this running Debian 11.

$ uname -a
Linux ucm-imx8m-mini 5.10.35-ucm-imx8m-mini-2.2.1+gbe9842c742e1 
#1 SMP PREEMPT Mon May 30 13:25:38 UTC 2022 aarch64 GNU/Linux

I'm using branch iroha2-stable and commit 395a578d.

The build fails, before trying to build, I tried several things but I'm unable to run Iroha2 on iMX8.

I've tried several things:

docker compose -f docker-compose.stable.single.yaml up
[+] Running 1/1
[+] Running 2/2mpulab-iroha0-1                                                                                                                           Recreate ✔ Container compulab-iroha0-1                                                                                                                           Recreated0.2s ha0 The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested    0.0s 
 ! iroha0 The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested    0.0s 
Attaching to compulab-iroha0-1
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error setting cgroup config for procHooks process: bpf_prog_query(BPF_CGROUP_DEVICE) failed: function not implemented: unknown

That makes sense because the supported architecture for hyperledger/iroha2:stable-2.0.0-pre-rc.20 is linux/amd64 as described here https://hub.docker.com/r/hyperledger/iroha2/tags?page=1&name=stable-2.0.0-pre-rc.20.

but also fails with both docker and docker compose:

docker compose -f docker-compose.stable.single.yaml up

[+] Running 1/1
 ✔ Container compulab-iroha0-1  Recreated                                                                                                                   0.3s 
Attaching to compulab-iroha0-1
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error setting cgroup config for procHooks process: bpf_prog_query(BPF_CGROUP_DEVICE) failed: function not implemented: unknown

docker run -d -p 8080:8080 -p 1337:1337 -p 8180:8100 iroha-metal-0
992f81b53466c212239ea71f271e16f7ccca86199bcb329a512f6695049dca5c
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error setting cgroup config for procHooks process: bpf_prog_query(BPF_CGROUP_DEVICE) failed: function not implemented: unknown.

Then I tried building on my Mac M1, which also is arm based on, but the binary doesn't work:

compulab@ucm-imx8m-mini:~/metl$ ./iroha -s
-bash: ./iroha: cannot execute binary file: Exec format error
       Fresh iana-time-zone v0.1.57
       Fresh chrono v0.4.31
       Fresh wasmtime v13.0.0
       Fresh prometheus v0.13.3
       Fresh streaming-stats v0.2.3
       Fresh tempfile v3.8.0
       Fresh iroha_telemetry_derive v2.0.0-pre-rc.20 (/home/compulab/node/iroha/telemetry/derive)
       Fresh iroha_core_wasm_codec_derive v2.0.0-pre-rc.20 (/home/compulab/node/iroha/wasm_codec/derive)
       Fresh iroha_wasm_codec v2.0.0-pre-rc.20 (/home/compulab/node/iroha/wasm_codec)
       Fresh sha256 v1.4.0
       Fresh dashmap v5.5.3
       Fresh is-terminal v0.4.9
       Fresh supports-color v2.1.0
       Fresh iroha_cli_derive v2.0.0-pre-rc.20 (/home/compulab/node/iroha/cli/derive)
^C  Building [=======================> ] 600/621: wasm-opt-sys(build), iroha_data_model    
matisalimbene commented 7 months ago

With more contextual information, and changing log level I get to see the following error::

error: linking with "cc" failed: exit status: 1 details below:


Running `/home/compulab/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/rustc
--crate-name build_script_build
--edition=2021 cli/build.rs
--error-format=json
--json=diagnostic-rendered-ansi,artifacts,future-incompat
--diagnostic-width=197
--crate-type bin
--emit=dep-info,link -C embed-bitcode=no 
--warn=clippy::pedantic' 
--deny=clippy::all' 
--allow=clippy::wildcard_imports' 
--deny=clippy::wildcard_dependencies'
--deny=variant_size_differences 
--warn=clippy::useless_let_if_seq'
--deny=unused_tuple_struct_fields 
--deny=clippy::unused_rounding' 
--deny=clippy::unused_peekable'
--warn=unused_lifetimes
--deny=unused_import_braces
--deny=unused
--deny=unsafe_code
--warn=unknown_lints
--deny=unconditional_recursion 
--deny=clippy::trivial_regex'
--deny=trivial_numeric_casts
--deny=trivial_casts 
--deny=clippy::transmute_undefined_repr' 
--deny=clippy::trailing_empty_array' 
--warn=clippy::suspicious_operation_groupings' 
--deny=clippy::suboptimal_flops' 
--warn=clippy::string_lit_as_bytes'
--warn=single_use_lifetimes 
--allow=clippy::semicolon_if_nothing_returned'
--deny=rust_2018_idioms 
--warn=clippy::redundant_pub_crate' 
--deny=clippy::redundant_feature_names'
--deny=private_doc_tests 
--deny=clippy::path_buf_push_overwrite' 
--warn=clippy::or_fun_call' 
--warn=clippy::option_if_let_else'
--deny=nonstandard_style
--deny=non_ascii_idents 
--deny=clippy::needless_collect' 
--deny=clippy::mutex_integer' 
--allow=clippy::must_use_candidate' 
--allow=clippy::module_name_repetitions'
--deny=missing_docs
--deny=missing_copy_implementations 
--allow=clippy::match_wildcard_for_single_variants' 
--allow=clippy::manual_let_else' 
--deny=clippy::iter_with_drain' 
--deny=clippy::future_not_send'
--deny=future_incompatible 
--deny=clippy::fallible_impl_from'
--deny=explicit_outlives_requirements 
--allow=clippy::enum_glob_use' 
--deny=clippy::empty_line_after_outer_attr'
--allow=elided_lifetimes_in_paths 
--deny=clippy::derive_partial_eq_without_eq' 
--deny=clippy::debug_assert_with_mut_call' 
--deny=clippy::dbg_macro'
--deny=anonymous_parameters
--cfg 'feature="bridge"'
--cfg 'feature="default"'
--cfg 'feature="iroha_schema_gen"'
--cfg 'feature="iroha_telemetry"'
--cfg 'feature="schema-endpoint"'
--cfg 'feature="telemetry"'
-C metadata=db191a8abec0407e
-C extra-filename=-db191a8abec0407e
--out-dir /home/compulab/node/iroha/target/debug/build/iroha-db191a8abec0407e
-C incremental=/home/compulab/node/iroha/target/debug/incremental
-L dependency=/home/compulab/node/iroha/target/debug/deps
--extern eyre=/home/compulab/node/iroha/target/debug/deps/libeyre-bae60e61d78cc665.rlib
--extern iroha_wasm_builder=/home/compulab/node/iroha/target/debug/deps/libiroha_wasm_builder-5259896eee56479f.rlib
--extern vergen=/home/compulab/node/iroha/target/debug/deps/libvergen-0e300582153742ed.rlib
-L native=/home/compulab/node/iroha/target/debug/build/wasm-opt-cxx-sys-53449dc4c0a14916/out
-L native=/home/compulab/node/iroha/target/debug/build/cxx-af39a0a0c193f894/out
-L native=/home/compulab/node/iroha/target/debug/build/link-cplusplus-56a1078ed8b3082e/out
-L native=/home/compulab/node/iroha/target/debug/build/wasm-opt-sys-ca5e0af9f84a4875/out`
error: linking with `cc` failed: exit status: 1
  |
  = note:
  LC_ALL="C"
  PATH="/home/compulab/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/bin:/home/compulab/.cargo/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
  VSLANG="1033"
  "cc"
  "/tmp/rustcJxm4Qc/symbols.o"
  "/home/compulab/node/iroha/target/debug/build/iroha-db191a8abec0407e/build_script_build-db191a8abec0407e.118qr14tswbh2hmi.rcgu.o"
  "/home/compulab/node/iroha/target/debug/build/iroha-db191a8abec0407e/build_script_build-db191a8abec0407e.19ms5zmqrzd7rznc.rcgu.o"
  "/home/compulab/node/iroha/target/debug/build/iroha-db191a8abec0407e/build_script_build-db191a8abec0407e.1a1bb443xbp79u4.rcgu.o"
  "/home/compulab/node/iroha/target/debug/build/iroha-db191a8abec0407e/build_script_build-db191a8abec0407e.1e0ft77i79jatywt.rcgu.o"
  "/home/compulab/node/iroha/target/debug/build/iroha-db191a8abec0407e/build_script_build-db191a8abec0407e.1m9s1xtnkjhvm1e2.rcgu.o"
  "/home/compulab/node/iroha/target/debug/build/iroha-db191a8abec0407e/build_script_build-db191a8abec0407e.1z9v14dkl4qkrwc8.rcgu.o"
  "/home/compulab/node/iroha/target/debug/build/iroha-db191a8abec0407e/build_script_build-db191a8abec0407e.22irc9h5n7xcie3b.rcgu.o"
  "/home/compulab/node/iroha/target/debug/build/iroha-db191a8abec0407e/build_script_build-db191a8abec0407e.2nma1ui7b6mmjq08.rcgu.o"
  "/home/compulab/node/iroha/target/debug/build/iroha-db191a8abec0407e/build_script_build-db191a8abec0407e.2v4plfui1bgxi7ru.rcgu.o"
  "/home/compulab/node/iroha/target/debug/build/iroha-db191a8abec0407e/build_script_build-db191a8abec0407e.38dmywom8ce5d7l.rcgu.o"
  "/home/compulab/node/iroha/target/debug/build/iroha-db191a8abec0407e/build_script_build-db191a8abec0407e.3ds9f9ss619oike3.rcgu.o"
  "/home/compulab/node/iroha/target/debug/build/iroha-db191a8abec0407e/build_script_build-db191a8abec0407e.3guh2h6etru9zizb.rcgu.o"
  "/home/compulab/node/iroha/target/debug/build/iroha-db191a8abec0407e/build_script_build-db191a8abec0407e.3iel8pk5s1gymxwt.rcgu.o"
  "/home/compulab/node/iroha/target/debug/build/iroha-db191a8abec0407e/build_script_build-db191a8abec0407e.3rrz6t4q3p2xb52v.rcgu.o"
  "/home/compulab/node/iroha/target/debug/build/iroha-db191a8abec0407e/build_script_build-db191a8abec0407e.3zq9ynxlyc8qias8.rcgu.o"
  "/home/compulab/node/iroha/target/debug/build/iroha-db191a8abec0407e/build_script_build-db191a8abec0407e.42amcoomjfb60kb4.rcgu.o"
  "/home/compulab/node/iroha/target/debug/build/iroha-db191a8abec0407e/build_script_build-db191a8abec0407e.48rev2xd0wqs336f.rcgu.o"
  "/home/compulab/node/iroha/target/debug/build/iroha-db191a8abec0407e/build_script_build-db191a8abec0407e.585wcgs8go2vwlsu.rcgu.o"
  "/home/compulab/node/iroha/target/debug/build/iroha-db191a8abec0407e/build_script_build-db191a8abec0407e.5gc0iy9wa8o9qxlm.rcgu.o"
  "/home/compulab/node/iroha/target/debug/build/iroha-db191a8abec0407e/build_script_build-db191a8abec0407e.4dghlje880hk2cms.rcgu.o"
  "-Wl,--as-needed"
  "-L"
  "/home/compulab/node/iroha/target/debug/deps"
  "-L"
  "/home/compulab/node/iroha/target/debug/build/wasm-opt-cxx-sys-53449dc4c0a14916/out"
  "-L"
  "/home/compulab/node/iroha/target/debug/build/cxx-af39a0a0c193f894/out"
  "-L"
  "/home/compulab/node/iroha/target/debug/build/link-cplusplus-56a1078ed8b3082e/out"
  "-L"
  "/home/compulab/node/iroha/target/debug/build/wasm-opt-sys-ca5e0af9f84a4875/out"
  "-L"
  "/home/compulab/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib"
  "-Wl,-Bstatic"
  "/home/compulab/node/iroha/target/debug/deps/libiroha_wasm_builder-5259896eee56479f.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libwasm_opt-2c0e45531caaba44.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libwasm_opt_cxx_sys-ee9ad4d99af9542a.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libwasm_opt_sys-bb03c25d30fc56d9.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libcxx-a24160af0d2f028f.rlib"
  "/home/compulab/node/iroha/target/debug/deps/liblink_cplusplus-1fe50cfb8caa18b0.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libstrum-396e7d4942985a3b.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libserde_json-534b09cdc71bdec7.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libryu-59d75e8a8d4155d7.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libsha256-39e46b4cb8606f99.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libhex-aa0523f4d4fea50f.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libtokio-2b510a7439f65204.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libpin_project_lite-8ae398956c7c01a2.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libbytes-8d9b7a36ea6dfcfd.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libsha2-6a01785b919b9a0e.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libdigest-f1065c2d30ae1381.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libblock_buffer-5208d49744e54151.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libcrypto_common-857434e2221819c6.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libgeneric_array-265dfbdc24fc1dc6.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libtypenum-c6a66b79ec3a2225.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libpath_absolutize-0d173543082962b6.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libpath_dedot-59f9b8562e370e1c.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libvergen-0e300582153742ed.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libgix-813f2f915b30abae.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libgix_discover-713cfefef26ec3f4.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libgix_config-6e1c8afa7859c92c.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libunicode_bom-204357798f8f10c9.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libgix_config_value-02a518d451808d5c.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libgix_diff-724aa4795cee673f.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libgix_url-2613710b58edad19.rlib"
  "/home/compulab/node/iroha/target/debug/deps/liburl-5ca7f192505afc20.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libidna-790d710302f2396c.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libunicode_normalization-e02af2a55e96ec96.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libtinyvec-95e7733ce9e7def5.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libtinyvec_macros-c0a57037681b64f6.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libunicode_bidi-cd8553623ef767a3.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libform_urlencoded-22b05d3efcb42274.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libpercent_encoding-11d028a2f41759a4.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libgix_sec-c189dd83c7355a4c.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libgix_refspec-cd8b7a9a497ac85e.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libgix_revision-684c26a7647239f0.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libgix_ref-f19043a8c6020c10.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libgix_odb-ff4700a5c7daff96.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libgix_quote-c9cf55f0c4329381.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libgix_pack-419d26f978bb3d52.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libclru-83f3e6b2760b785f.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libarc_swap-d1f2b821b31c3085.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libgix_index-38a1cb27c17d94aa.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libgix_bitmap-8fc6ef44246a3deb.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libgix_lock-7a32891ece66a29c.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libgix_utils-817cffc45f957d57.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libgix_tempfile-79d4a5a8d4251bc1.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libsignal_hook-19a0ed9126ffb72f.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libsignal_hook_registry-6870182127ba618d.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libtempfile-f28532febedff1d8.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libfastrand-de6f7c46605880a6.rlib"
  "/home/compulab/node/iroha/target/debug/deps/librustix-49d206ddc7eedfcc.rlib"
  "/home/compulab/node/iroha/target/debug/deps/liblinux_raw_sys-e270b0aaa0408c6b.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libgix_traverse-506ee97f6b73b659.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libgix_revwalk-1a149f6f97ba3d76.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libgix_object-3d16912a95efae0e.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libgix_validate-4bd09228c49dd8b3.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libfiletime-45ab8ed47292b3af.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libgix_hashtable-1836c028ba058678.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libparking_lot-f608703a8ca0a382.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libparking_lot_core-163e1d5420746814.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libsmallvec-a739df89b349530f.rlib"
  "/home/compulab/node/iroha/target/debug/deps/liblock_api-3f65fe03abafbd53.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libscopeguard-c459f8089a95b518.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libhashbrown-c288fd1e42ba3b02.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libgix_glob-756d1bd69914dc50.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libgix_path-f80a6f2fa84f1933.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libhome-9d9285918758c457.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libbitflags-dd8841586d5cc17b.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libgix_fs-37d6802f5d811737.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libgix_commitgraph-1632365912186c58.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libgix_features-c6c5b630e7f78781.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libsha1_smol-c86af67187f90cff.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libflate2-e74b94cb5743bb2d.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libminiz_oxide-eae80b7604c04f42.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libadler-7a6a845567252583.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libcrc32fast-a35dbf139b4db023.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libcfg_if-60e6d5601ab4f054.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libgix_trace-827013c7353264a2.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libprodash-612f8031687a0ae9.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libwalkdir-a4e1d00834e68bbc.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libsame_file-f08fb0a37117b145.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libgix_chunk-f28ee70afb713c1a.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libgix_hash-cfbeb6d2bdc689b2.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libfaster_hex-1a5280538cefde6c.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libserde-15e10fc3c342ebde.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libmemmap2-ae9b822a62883573.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libgix_actor-d08272b73a55db62.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libbtoi-745d6e41fe9400ea.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libnum_traits-acae67506c6d2dea.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libwinnow-7cf25290b20e8042.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libgix_date-bed27c20f19df9e4.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libthiserror-5ea592e88ec07bb2.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libtime-8d4e7dde2cc2a36d.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libnum_threads-c0d3d4402d11215a.rlib"
  "/home/compulab/node/iroha/target/debug/deps/liblibc-ed9290ff3256b6f9.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libitoa-c1bf37751968db2e.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libtime_core-2edd29fa4e9133d2.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libderanged-9459abe75d6a70e7.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libbstr-01f08d61a1f8dfab.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libregex_automata-b8880f717ab0736c.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libmemchr-b9f7be950f9b297e.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libanyhow-cf677308597e3306.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libeyre-bae60e61d78cc665.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libindenter-48b569d81ab75357.rlib"
  "/home/compulab/node/iroha/target/debug/deps/libonce_cell-0949e45cc5afc159.rlib"
  "/home/compulab/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libstd-173ad5c1e159cc01.rlib"
  "/home/compulab/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libpanic_unwind-6d2f487528a87621.rlib"
  "/home/compulab/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libobject-16802ff418452861.rlib"
  "/home/compulab/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libmemchr-04ac7d89b3f3e81b.rlib"
  "/home/compulab/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libaddr2line-616d7a283ee8fa6d.rlib"
  "/home/compulab/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libgimli-40fc5bd8e3161a9d.rlib"
  "/home/compulab/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/librustc_demangle-cf398481176e0277.rlib"
  "/home/compulab/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libstd_detect-74db93875324c1e5.rlib"
  "/home/compulab/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libhashbrown-36a84dbb5cf7c6df.rlib"
  "/home/compulab/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-a7d8a45cc4d97965.rlib"
  "/home/compulab/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libminiz_oxide-d64c4154534ec315.rlib"
  "/home/compulab/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libadler-06d069d7b279ea80.rlib"
  "/home/compulab/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libunwind-8ecd1079abfc9760.rlib"
  "/home/compulab/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libcfg_if-a0d4c61b9abe5961.rlib"
  "/home/compulab/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/liblibc-e426cde7f84440d1.rlib"
  "/home/compulab/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/liballoc-d6c26567f6eec83b.rlib"
  "/home/compulab/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/librustc_std_workspace_core-638520c8de67cd89.rlib"
  "/home/compulab/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libcore-ba9336e45c4821bf.rlib"
  "/home/compulab/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libcompiler_builtins-e01057bbd30984cb.rlib"
  "-Wl,-Bdynamic"
  "-lstdc++"
  "-lgcc_s"
  "-lutil"
  "-lrt"
  "-lpthread"
  "-lm"
  "-ldl"
  "-lc"
  "-Wl,--eh-frame-hdr"
  "-Wl,-z,noexecstack"
  "-L"
  "/home/compulab/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib"
  "-o"
  "/home/compulab/node/iroha/target/debug/build/iroha-db191a8abec0407e/build_script_build-db191a8abec0407e"
  "-Wl,--gc-sections"
  "-pie"
  "-Wl,-z,relro,-z,now"
  "-nodefaultlibs"
  = note: collect2: fatal error: ld terminated with signal 9 [Killed]
          compilation terminated.

error: could not compile `iroha` (build script) due to previous error

Caused by:
  process didn't exit successfully: `/home/compulab/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/rustc --crate-name build_script_build --edition=2021 cli/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=197 --crate-type bin --emit=dep-info,link -C embed-bitcode=no '--warn=clippy::pedantic' '--deny=clippy::all' '--allow=clippy::wildcard_imports' '--deny=clippy::wildcard_dependencies' --deny=variant_size_differences '--warn=clippy::useless_let_if_seq' --deny=unused_tuple_struct_fields '--deny=clippy::unused_rounding' '--deny=clippy::unused_peekable' --warn=unused_lifetimes --deny=unused_import_braces --deny=unused --deny=unsafe_code --warn=unknown_lints --deny=unconditional_recursion '--deny=clippy::trivial_regex' --deny=trivial_numeric_casts --deny=trivial_casts '--deny=clippy::transmute_undefined_repr' '--deny=clippy::trailing_empty_array' '--warn=clippy::suspicious_operation_groupings' '--deny=clippy::suboptimal_flops' '--warn=clippy::string_lit_as_bytes' --warn=single_use_lifetimes '--allow=clippy::semicolon_if_nothing_returned' --deny=rust_2018_idioms '--warn=clippy::redundant_pub_crate' '--deny=clippy::redundant_feature_names' --deny=private_doc_tests '--deny=clippy::path_buf_push_overwrite' '--warn=clippy::or_fun_call' '--warn=clippy::option_if_let_else' --deny=nonstandard_style --deny=non_ascii_idents '--deny=clippy::needless_collect' '--deny=clippy::mutex_integer' '--allow=clippy::must_use_candidate' '--allow=clippy::module_name_repetitions' --deny=missing_docs --deny=missing_copy_implementations '--allow=clippy::match_wildcard_for_single_variants' '--allow=clippy::manual_let_else' '--deny=clippy::iter_with_drain' '--deny=clippy::future_not_send' --deny=future_incompatible '--deny=clippy::fallible_impl_from' --deny=explicit_outlives_requirements '--allow=clippy::enum_glob_use' '--deny=clippy::empty_line_after_outer_attr' --allow=elided_lifetimes_in_paths '--deny=clippy::derive_partial_eq_without_eq' '--deny=clippy::debug_assert_with_mut_call' '--deny=clippy::dbg_macro' --deny=anonymous_parameters --cfg 'feature="bridge"' --cfg 'feature="default"' --cfg 'feature="iroha_schema_gen"' --cfg 'feature="iroha_telemetry"' --cfg 'feature="schema-endpoint"' --cfg 'feature="telemetry"' -C metadata=db191a8abec0407e -C extra-filename=-db191a8abec0407e --out-dir /home/compulab/node/iroha/target/debug/build/iroha-db191a8abec0407e -C incremental=/home/compulab/node/iroha/target/debug/incremental -L dependency=/home/compulab/node/iroha/target/debug/deps --extern eyre=/home/compulab/node/iroha/target/debug/deps/libeyre-bae60e61d78cc665.rlib --extern iroha_wasm_builder=/home/compulab/node/iroha/target/debug/deps/libiroha_wasm_builder-5259896eee56479f.rlib --extern vergen=/home/compulab/node/iroha/target/debug/deps/libvergen-0e300582153742ed.rlib -L native=/home/compulab/node/iroha/target/debug/build/wasm-opt-cxx-sys-53449dc4c0a14916/out -L native=/home/compulab/node/iroha/target/debug/build/cxx-af39a0a0c193f894/out -L native=/home/compulab/node/iroha/target/debug/build/link-cplusplus-56a1078ed8b3082e/out -L native=/home/compulab/node/iroha/target/debug/build/wasm-opt-sys-ca5e0af9f84a4875/out` (exit status: 1)
6r1d commented 7 months ago

@a1salimbene can you elaborate on the goal regarding using Iroha on such a device? Is that an affordable machine that can be used to split peers into separate devices, or something else?

a1salimbene commented 7 months ago

@6r1d yes, the goal is to have multiple devices such as this one and each one would ran an Iroha2 node, among other apps. So, we'll be using many different models, with different specs, but same architecture.

matisalimbene commented 7 months ago

As per @6r1d suggestion, I review the device's swap memory configuration. It had none, thus after setting up a swap file of 2GB (1GB wasn't enough) the build process continued and it was almost completed but failed on dependency 619/221 as a result of unavailable disk space on the device:

error: could not compile `iroha` (lib) 
Caused by:
  No space left on device (os error 28)

I'm working on getting the disk size extended and/or attempt cross-compiling but it does look like limited RAM was the problem for this particular issue.