Problems building on windows & linux

I’ve followed the steps here:

installed rust, cloned the repo and when I do cargo build I get this error

C:\Users\owner\Documents\Code\grin\grin>cargo build
   Compiling winapi v0.3.4
   Compiling unicode-bidi v0.3.4
   Compiling textwrap v0.9.0
   Compiling syntex_pos v0.58.1
   Compiling conduit-mime-types v0.7.3
   Compiling kernel32-sys v0.2.2
   Compiling ws2_32-sys v0.2.1
   Compiling itertools v0.6.5
   Compiling unicase v2.1.0
   Compiling unicase v1.4.2
   Compiling unreachable v1.0.0
   Compiling coco v0.1.1
   Compiling clang-sys v0.21.1
   Compiling secp256k1zkp v0.7.1 (https://github.com/mimblewimble/rust-secp256k1
-zkp?tag=grin_integration_7#3b2fd9f1)
   Compiling rust-crypto v0.2.36
   Compiling synom v0.11.3
   Compiling arrayvec v0.4.7
   Compiling crc v1.7.0
   Compiling log v0.4.1
   Compiling rayon-core v1.3.0
   Compiling base64 v0.6.0
   Compiling base64 v0.9.0
   Compiling toml v0.4.5
   Compiling iovec v0.1.2
   Compiling num-traits v0.1.43
   Compiling num-integer v0.1.36
   Compiling num-complex v0.1.42
   Compiling arrayvec v0.3.25
   Compiling tokio-service v0.1.0
   Compiling relay v0.1.1
   Compiling daemonize v0.2.3
error[E0432]: unresolved import `std::os::unix`
  --> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0
.2.3\src\lib.rs:49:14
   |
49 | use std::os::unix::ffi::OsStringExt;
   |              ^^^^ Could not find `unix` in `os`

error[E0432]: unresolved import `libc::uid_t`
  --> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0
.2.3\src\lib.rs:54:16
   |
54 | pub use libc::{uid_t, gid_t, mode_t};
   |                ^^^^^ no `uid_t` in the root

error[E0432]: unresolved import `libc::gid_t`
  --> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0
.2.3\src\lib.rs:54:23
   |
54 | pub use libc::{uid_t, gid_t, mode_t};
   |                       ^^^^^ no `gid_t` in the root

error[E0432]: unresolved import `libc::mode_t`
  --> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0
.2.3\src\lib.rs:54:30
   |
54 | pub use libc::{uid_t, gid_t, mode_t};
   |                              ^^^^^^ no `mode_t` in the root

error[E0432]: unresolved import `libc::LOCK_EX`
  --> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0
.2.3\src\lib.rs:55:12
   |
55 | use libc::{LOCK_EX, LOCK_NB, c_int, fopen, write, close, fileno, fork, getp
id, setsid, setuid, setgid, dup2, umask};
   |            ^^^^^^^ no `LOCK_EX` in the root

error[E0432]: unresolved import `libc::LOCK_NB`
  --> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0
.2.3\src\lib.rs:55:21
   |
55 | use libc::{LOCK_EX, LOCK_NB, c_int, fopen, write, close, fileno, fork, getp
id, setsid, setuid, setgid, dup2, umask};
   |                     ^^^^^^^ no `LOCK_NB` in the root

error[E0432]: unresolved import `libc::fork`
  --> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0
.2.3\src\lib.rs:55:66
   |
55 | use libc::{LOCK_EX, LOCK_NB, c_int, fopen, write, close, fileno, fork, getp
id, setsid, setuid, setgid, dup2, umask};
   |                                                                  ^^^^ no `f
ork` in the root

error[E0432]: unresolved import `libc::setsid`
  --> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0
.2.3\src\lib.rs:55:80
   |
55 | use libc::{LOCK_EX, LOCK_NB, c_int, fopen, write, close, fileno, fork, getp
id, setsid, setuid, setgid, dup2, umask};
   |
    ^^^^^^ no `setsid` in the root. Did you mean to use `getpid`?
   Compiling memchr v0.1.11

error[E0432]: unresolved import `libc::setuid`
  --> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0
.2.3\src\lib.rs:55:88
   |
55 | use libc::{LOCK_EX, LOCK_NB, c_int, fopen, write, close, fileno, fork, getp
id, setsid, setuid, setgid, dup2, umask};
   |
            ^^^^^^ no `setuid` in the root. Did you mean to use `getpid`?

error[E0432]: unresolved import `libc::setgid`
  --> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0
.2.3\src\lib.rs:55:96
   |
55 | use libc::{LOCK_EX, LOCK_NB, c_int, fopen, write, close, fileno, fork, getp
id, setsid, setuid, setgid, dup2, umask};
   |
                    ^^^^^^ no `setgid` in the root. Did you mean to use `getpid`
?

error[E0432]: unresolved import `libc::umask`
  --> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0
.2.3\src\lib.rs:55:110
   |
55 | use libc::{LOCK_EX, LOCK_NB, c_int, fopen, write, close, fileno, fork, getp
id, setsid, setuid, setgid, dup2, umask};
   |
                                  ^^^^^ no `umask` in the root

error[E0412]: cannot find type `uid_t` in module `libc`
  --> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0
.2.3\src\ffi.rs:18:22
   |
18 |     pw_uid:    libc::uid_t,
   |                      ^^^^^ not found in `libc`

error[E0412]: cannot find type `gid_t` in module `libc`
  --> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0
.2.3\src\ffi.rs:19:22
   |
19 |     pw_gid:    libc::gid_t,
   |                      ^^^^^ not found in `libc`

error[E0412]: cannot find type `gid_t` in module `libc`
  --> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0
.2.3\src\ffi.rs:30:22
   |
30 |     gr_gid:    libc::gid_t,
   |                      ^^^^^ not found in `libc`

error[E0425]: cannot find function `errno_location` in this scope
  --> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0
.2.3\src\ffi.rs:52:6
   |
52 |     *errno_location()
   |      ^^^^^^^^^^^^^^ not found in this scope

error[E0412]: cannot find type `gid_t` in module `libc`
  --> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0
.2.3\src\ffi.rs:55:63
   |
55 | pub unsafe fn get_gid_by_name(name: &CString) -> Option<libc::gid_t> {
   |                                                               ^^^^^ not fou
nd in `libc`

error[E0412]: cannot find type `uid_t` in module `libc`
  --> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0
.2.3\src\ffi.rs:65:63
   |
65 | pub unsafe fn get_uid_by_name(name: &CString) -> Option<libc::uid_t> {
   |                                                               ^^^^^ not fou
nd in `libc`

error[E0425]: cannot find value `STDIN_FILENO` in module `libc`
   --> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-
0.2.3\src\lib.rs:357:35
    |
357 |             for stream in &[libc::STDIN_FILENO, libc::STDOUT_FILENO, libc:
:STDERR_FILENO] {
    |                                   ^^^^^^^^^^^^ not found in `libc`
...
362 |     for_every_stream!(close);
    |     ------------------------- in this macro invocation

error[E0425]: cannot find value `STDOUT_FILENO` in module `libc`
   --> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-
0.2.3\src\lib.rs:357:55
    |
357 |             for stream in &[libc::STDIN_FILENO, libc::STDOUT_FILENO, libc:
:STDERR_FILENO] {
    |                                                       ^^^^^^^^^^^^^ not fo
und in `libc`
...
362 |     for_every_stream!(close);
    |     ------------------------- in this macro invocation

error[E0425]: cannot find value `STDERR_FILENO` in module `libc`
   --> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-
0.2.3\src\lib.rs:357:76
    |
357 |             for stream in &[libc::STDIN_FILENO, libc::STDOUT_FILENO, libc:
:STDERR_FILENO] {
    |
 ^^^^^^^^^^^^^ not found in `libc`
...
362 |     for_every_stream!(close);
    |     ------------------------- in this macro invocation

error[E0425]: cannot find value `STDIN_FILENO` in module `libc`
   --> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-
0.2.3\src\lib.rs:357:35
    |
357 |             for stream in &[libc::STDIN_FILENO, libc::STDOUT_FILENO, libc:
:STDERR_FILENO] {
    |                                   ^^^^^^^^^^^^ not found in `libc`
...
370 |     for_every_stream!(|stream| dup2(devnull_fd, stream));
    |     ----------------------------------------------------- in this macro in
vocation

error[E0425]: cannot find value `STDOUT_FILENO` in module `libc`
   --> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-
0.2.3\src\lib.rs:357:55
    |
357 |             for stream in &[libc::STDIN_FILENO, libc::STDOUT_FILENO, libc:
:STDERR_FILENO] {
    |                                                       ^^^^^^^^^^^^^ not fo
und in `libc`
...
370 |     for_every_stream!(|stream| dup2(devnull_fd, stream));
    |     ----------------------------------------------------- in this macro in
vocation

error[E0425]: cannot find value `STDERR_FILENO` in module `libc`
   --> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-
0.2.3\src\lib.rs:357:76
    |
357 |             for stream in &[libc::STDIN_FILENO, libc::STDOUT_FILENO, libc:
:STDERR_FILENO] {
    |
 ^^^^^^^^^^^^^ not found in `libc`
...
370 |     for_every_stream!(|stream| dup2(devnull_fd, stream));
    |     ----------------------------------------------------- in this macro in
vocation

error[E0425]: cannot find function `chown` in module `libc`
   --> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-
0.2.3\src\lib.rs:423:19
    |
423 |     tryret!(libc::chown(path_c.as_ptr(), uid, gid), Ok(()), DaemonizeError
::ChownPidfile)
    |                   ^^^^^ not found in `libc`

error[E0308]: mismatched types
   --> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-
0.2.3\src\lib.rs:431:45
    |
431 |     if write(fd, transmute(pid_c.as_ptr()), pid_length) < pid_length as is
ize {
    |                                             ^^^^^^^^^^ expected u32, found
 usize
    |
    = help: here are some functions which might fulfill your needs:
            - .count_ones()
            - .count_zeros()
            - .leading_zeros()
            - .trailing_zeros()

error[E0308]: mismatched types
   --> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-
0.2.3\src\lib.rs:431:59
    |
431 |     if write(fd, transmute(pid_c.as_ptr()), pid_length) < pid_length as is
ize {
    |                                                           ^^^^^^^^^^^^^^^^
^^^ expected i32, found isize

error[E0599]: no method named `into_vec` found for type `std::ffi::OsString` in
the current scope
   --> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-
0.2.3\src\lib.rs:439:40
    |
439 |     CString::new(path.into_os_string().into_vec())
    |                                        ^^^^^^^^

error: aborting due to 27 previous errors

error: Could not compile `daemonize`.
warning: build failed, waiting for other jobs to finish...
error: build failed

C:\Users\owner\Documents\Code\grin\grin>

I guess that this is because I have installed on windows not linux

user@computer:~/code/grin$ cargo build
Compiling librocksdb-sys v5.10.2
error: failed to run custom build command for librocksdb-sys v5.10.2
process didn’t exit successfully: /home/user/code/grin/target/debug/build/librocksdb-sys-6f8ada0f9d55a24a/build-script-build (exit code: 101)
— stdout
cargo:rerun-if-changed=build.rs
cargo:rerun-if-changed=rocksdb/
rocksdb/include/rocksdb/c.h:48:9: warning: #pragma once in main file [-Wpragma-once-outside-header], err: false
rocksdb/include/rocksdb/c.h:68:10: fatal error: ‘stdarg.h’ file not found, err: true

— stderr
rocksdb/include/rocksdb/c.h:48:9: warning: #pragma once in main file [-Wpragma-once-outside-header]
rocksdb/include/rocksdb/c.h:68:10: fatal error: ‘stdarg.h’ file not found
thread ‘main’ panicked at ‘unable to generate rocksdb bindings: ()’, src/libcore/result.rs:906:4
note: Run with RUST_BACKTRACE=1 for a backtrace.

Fixed it with

user@computer:~$ sudo ln -sf /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h /usr/include/stdarg.h
user@computer:~$ sudo ln -sf /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/stddef.h

Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs

copied toml file to target/debug – ran grin. … its working

On Windows or Linux?

It’s working on linux, not windows (one of the dependency errors says that it seems to expect the system to be unix)

I can’t actually do anything on testnet 2 however as there are no peers but is still doing graphs

Testnet 2 is not live yet. But you can mine on your own chain to test performance of Cuckoo30.

Hi! I also have an issue to compile the grin code on elementary OS 0.3.2 Freya. Perhaps someone can give me a hint?

Prerequisites should be fine.

/home/utxo/.cargo/git/checkouts/cuckoo-miner-4752934f0f1f2bfe/5cc4f56/src/cuckoo_sys/plugins/cuckoo/src/cuckoo_miner/concurrentqueue.h:254:15: error: no type named ‘max_align_t’ in namespace 'std’
typedef std::max_align_t max_align_t; // Others (e.g. MSVC) insist it can only be accessed via std::
~~~~~^
1 error generated.

make[2]: *** [CMakeFiles/lean_cpu_16.dir/cuckoo/src/lean_miner.cpp.o] Error 1
make[1]: *** [CMakeFiles/lean_cpu_16.dir/all] Error 2
make: *** [all] Error 2
thread ‘main’ panicked at '
command did not execute successfully, got: exit code: 2

build script failed, must exit now’, /home/utxo/.cargo/registry/src/github.com-1ecc6299db9ec823/cmake-0.1.29/src/lib.rs:632:5
note: Run with RUST_BACKTRACE=1 for a backtrace.

warning: build failed, waiting for other jobs to finish…
error: build failed

Thanks

Try to deactivate the build of mining plugins by commenting out features=["no-plugin-build"] in pow/Cargo.toml for now. Your versions of gcc and libc++ would help.

Hi. I am trying to compile on ROC-RK3328-CC SBC with Armbian, without success. I get:


   Compiling grin v0.3.0 (file:///home/my-aarch64/grin)
     Running `rustc --crate-name build_script_build src/build/build.rs --crate-type bin --emit=dep-info,link -C opt-level=3 -C metadata=6d397ced66ab758f -C extra-filename=-6d397ced66ab758f --out-dir /home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f -L dependency=/home/my-aarch64/grin/target/release/deps --extern built=/home/my-aarch64/grin/target/release/deps/libbuilt-096653dc78084a2e.rlib --extern flate2=/home/my-aarch64/grin/target/release/deps/libflate2-d83c7408a4af6112.rlib --extern reqwest=/home/my-aarch64/grin/target/release/deps/libreqwest-1e8eb528f9aa8756.rlib --extern tar=/home/my-aarch64/grin/target/release/deps/libtar-4a9f40c0b7408809.rlib -L native=/home/my-aarch64/grin/target/release/build/libgit2-sys-bac834a99e051d41/out/lib -L native=/usr/lib/aarch64-linux-gnu -L native=/home/my-aarch64/grin/target/release/build/miniz-sys-936b65cea206d234/out`

error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-L" "/home/my-aarch64/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib" "/home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f/build_script_build-6d397ced66ab758f.build_script_build0-256dc693ab5b3adb707a7dfdd0acca56.rs.rcgu.o" "/home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f/build_script_build-6d397ced66ab758f.build_script_build1-256dc693ab5b3adb707a7dfdd0acca56.rs.rcgu.o" "/home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f/build_script_build-6d397ced66ab758f.build_script_build10-256dc693ab5b3adb707a7dfdd0acca56.rs.rcgu.o" "/home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f/build_script_build-6d397ced66ab758f.build_script_build11-256dc693ab5b3adb707a7dfdd0acca56.rs.rcgu.o" "/home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f/build_script_build-6d397ced66ab758f.build_script_build12-256dc693ab5b3adb707a7dfdd0acca56.rs.rcgu.o" "/home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f/build_script_build-6d397ced66ab758f.build_script_build13-256dc693ab5b3adb707a7dfdd0acca56.rs.rcgu.o" "/home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f/build_script_build-6d397ced66ab758f.build_script_build14-256dc693ab5b3adb707a7dfdd0acca56.rs.rcgu.o" "/home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f/build_script_build-6d397ced66ab758f.build_script_build15-256dc693ab5b3adb707a7dfdd0acca56.rs.rcgu.o" "/home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f/build_script_build-6d397ced66ab758f.build_script_build2-256dc693ab5b3adb707a7dfdd0acca56.rs.rcgu.o" "/home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f/build_script_build-6d397ced66ab758f.build_script_build3-256dc693ab5b3adb707a7dfdd0acca56.rs.rcgu.o" "/home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f/build_script_build-6d397ced66ab758f.build_script_build4-256dc693ab5b3adb707a7dfdd0acca56.rs.rcgu.o" "/home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f/build_script_build-6d397ced66ab758f.build_script_build5-256dc693ab5b3adb707a7dfdd0acca56.rs.rcgu.o" "/home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f/build_script_build-6d397ced66ab758f.build_script_build6-256dc693ab5b3adb707a7dfdd0acca56.rs.rcgu.o" "/home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f/build_script_build-6d397ced66ab758f.build_script_build7-256dc693ab5b3adb707a7dfdd0acca56.rs.rcgu.o" "/home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f/build_script_build-6d397ced66ab758f.build_script_build8-256dc693ab5b3adb707a7dfdd0acca56.rs.rcgu.o" "/home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f/build_script_build-6d397ced66ab758f.build_script_build9-256dc693ab5b3adb707a7dfdd0acca56.rs.rcgu.o" "-o" "/home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f/build_script_build-6d397ced66ab758f" "/home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f/build_script_build-6d397ced66ab758f.crate.allocator.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-Wl,-O1" "-nodefaultlibs" "-L" "/home/my-aarch64/grin/target/release/deps" "-L" "/home/my-aarch64/grin/target/release/build/libgit2-sys-bac834a99e051d41/out/lib" "-L" "/usr/lib/aarch64-linux-gnu" "-L" "/home/my-aarch64/grin/target/release/build/miniz-sys-936b65cea206d234/out" "-L" "/home/my-aarch64/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/home/my-aarch64/grin/target/release/deps/libtar-4a9f40c0b7408809.rlib" "/home/my-aarch64/grin/target/release/deps/libxattr-5986dc366160fdec.rlib" "/home/my-aarch64/grin/target/release/deps/libfiletime-0a655aa2fe1bdfb4.rlib" "/home/my-aarch64/grin/target/release/deps/libreqwest-1e8eb528f9aa8756.rlib" "/home/my-aarch64/grin/target/release/deps/libuuid-da14e8a77951a04d.rlib" "/home/my-aarch64/grin/target/release/deps/libserde_urlencoded-740b88bae2fac69c.rlib" "/home/my-aarch64/grin/target/release/deps/libserde_json-911c3c416f26eceb.rlib" "/home/my-aarch64/grin/target/release/deps/libitoa-8f61c892cb7aeaa7.rlib" "/home/my-aarch64/grin/target/release/deps/libdtoa-93afbf9f7ac8c8ac.rlib" "/home/my-aarch64/grin/target/release/deps/libmime_guess-977ce62ffe153ec1.rlib" "/home/my-aarch64/grin/target/release/deps/libphf-f2be5594e6a92454.rlib" "/home/my-aarch64/grin/target/release/deps/libphf_shared-09a89b927c8c0bbb.rlib" "/home/my-aarch64/grin/target/release/deps/libunicase-3fcc95a79db3b439.rlib" "/home/my-aarch64/grin/target/release/deps/libsiphasher-8b2de64a8e80b321.rlib" "/home/my-aarch64/grin/target/release/deps/liblibflate-9a495094ca2b7370.rlib" "/home/my-aarch64/grin/target/release/deps/libhyper_tls-dde2011380cd17c7.rlib" "/home/my-aarch64/grin/target/release/deps/libtokio_tls-8589273eb980ed68.rlib" "/home/my-aarch64/grin/target/release/deps/libnative_tls-a730dee75c1ed921.rlib" "/home/my-aarch64/grin/target/release/deps/libopenssl-72f737e990d7bf83.rlib" "/home/my-aarch64/grin/target/release/deps/libopenssl_sys-94c16eda997f26cd.rlib" "/home/my-aarch64/grin/target/release/deps/libforeign_types-bbb21da10a928b49.rlib" "/home/my-aarch64/grin/target/release/deps/libforeign_types_shared-82f7467a9cccc32e.rlib" "/home/my-aarch64/grin/target/release/deps/libbitflags-4623eb59c9352eef.rlib" "/home/my-aarch64/grin/target/release/deps/libhyper-509e4a6e2566c9aa.rlib" "/home/my-aarch64/grin/target/release/deps/libwant-cf86d0739af06575.rlib" "/home/my-aarch64/grin/target/release/deps/libtry_lock-a6f32d489fa1d2fe.rlib" "/home/my-aarch64/grin/target/release/deps/libtokio_service-573b772d385af17b.rlib" "/home/my-aarch64/grin/target/release/deps/libtokio_core-4b9da2f1a1da0cbd.rlib" "/home/my-aarch64/grin/target/release/deps/libscoped_tls-e137836050eef670.rlib" "/home/my-aarch64/grin/target/release/deps/libtokio-af7a8391f2ec778a.rlib" "/home/my-aarch64/grin/target/release/deps/libtokio_udp-10dea8eb4c0f5881.rlib" "/home/my-aarch64/grin/target/release/deps/libtokio_codec-f789f1133727f60f.rlib" "/home/my-aarch64/grin/target/release/deps/libtokio_tcp-02532bd5353b0a0f.rlib" "/home/my-aarch64/grin/target/release/deps/libtokio_timer-a89127371cc3b59f.rlib" "/home/my-aarch64/grin/target/release/deps/libtokio_reactor-51f4f77c7b30f56b.rlib" "/home/my-aarch64/grin/target/release/deps/libtokio_fs-d820eef23af7cbec.rlib" "/home/my-aarch64/grin/target/release/deps/libtokio_threadpool-e775644729b9f5f0.rlib" "/home/my-aarch64/grin/target/release/deps/librand-7eb54f87a58e9ff3.rlib" "/home/my-aarch64/grin/target/release/deps/libcrossbeam_deque-01289676b3764ae3.rlib" "/home/my-aarch64/grin/target/release/deps/libcrossbeam_epoch-8fefee84da505a93.rlib" "/home/my-aarch64/grin/target/release/deps/libscopeguard-fb63a993580bc307.rlib" "/home/my-aarch64/grin/target/release/deps/libmemoffset-f3543a35cd673118.rlib" "/home/my-aarch64/grin/target/release/deps/liblazy_static-e01646966e528a6b.rlib" "/home/my-aarch64/grin/target/release/deps/libcrossbeam_utils-f77a2ba1599aff46.rlib" "/home/my-aarch64/grin/target/release/deps/libarrayvec-6d9752869db46cf0.rlib" "/home/my-aarch64/grin/target/release/deps/libnodrop-45572e44500cb921.rlib" "/home/my-aarch64/grin/target/release/deps/libtokio_executor-0e40b863131ebb82.rlib" "/home/my-aarch64/grin/target/release/deps/libtokio_io-9e3f38a37732eb19.rlib" "/home/my-aarch64/grin/target/release/deps/libmio-1df3e74787b3a558.rlib" "/home/my-aarch64/grin/target/release/deps/libslab-bd9a854057714fc2.rlib" "/home/my-aarch64/grin/target/release/deps/liblazycell-628adbfdecde352d.rlib" "/home/my-aarch64/grin/target/release/deps/librelay-e046b7de4d84f607.rlib" "/home/my-aarch64/grin/target/release/deps/libnet2-060d647abb7ca83e.rlib" "/home/my-aarch64/grin/target/release/deps/libmime-26ba3433904cad0e.rlib" "/home/my-aarch64/grin/target/release/deps/libunicase-f31c75b3af74b583.rlib" "/home/my-aarch64/grin/target/release/deps/liblanguage_tags-4200e3f8e53655b7.rlib" "/home/my-aarch64/grin/target/release/deps/libhttparse-2d7228bfe1f15f51.rlib" "/home/my-aarch64/grin/target/release/deps/libfutures_cpupool-b9aaef170e5b9fc6.rlib" "/home/my-aarch64/grin/target/release/deps/libnum_cpus-490f95194504cf47.rlib" "/home/my-aarch64/grin/target/release/deps/libbase64-da0491f95cfa0663.rlib" "/home/my-aarch64/grin/target/release/deps/libsafemem-c527b724e2baf705.rlib" "/home/my-aarch64/grin/target/release/deps/libfutures-245e65304feed969.rlib" "/home/my-aarch64/grin/target/release/deps/libencoding_rs-676213728e085e12.rlib" "/home/my-aarch64/grin/target/release/deps/libbytes-5ef541b7ed8e0a1e.rlib" "/home/my-aarch64/grin/target/release/deps/libiovec-45865305fc168f0c.rlib" "/home/my-aarch64/grin/target/release/deps/libbyteorder-0c69be4880918ff0.rlib" "/home/my-aarch64/grin/target/release/deps/libflate2-d83c7408a4af6112.rlib" "/home/my-aarch64/grin/target/release/deps/libminiz_oxide_c_api-158b854b68ae8ec2.rlib" "/home/my-aarch64/grin/target/release/deps/libminiz_oxide-3d553285704831c6.rlib" "/home/my-aarch64/grin/target/release/deps/libadler32-b0ddd6d1fc2e9b96.rlib" "/home/my-aarch64/grin/target/release/deps/libcrc-6f7a69c2edcd40fd.rlib" "/home/my-aarch64/grin/target/release/deps/libbuilt-096653dc78084a2e.rlib" "/home/my-aarch64/grin/target/release/deps/libsemver-be246a1f2a908884.rlib" "/home/my-aarch64/grin/target/release/deps/libsemver_parser-a82f01e57c6a57c2.rlib" "/home/my-aarch64/grin/target/release/deps/libgit2-48030efe00a6aea4.rlib" "/home/my-aarch64/grin/target/release/deps/liblog-30be7f36666b74c9.rlib" "/home/my-aarch64/grin/target/release/deps/libcfg_if-d7de2aaf88ab571b.rlib" "/home/my-aarch64/grin/target/release/deps/libbitflags-f7740033ca01d6e3.rlib" "/home/my-aarch64/grin/target/release/deps/liblibgit2_sys-d3ed2c224b501c83.rlib" "/home/my-aarch64/grin/target/release/deps/liblibz_sys-fc69c104b94c1e9d.rlib" "/home/my-aarch64/grin/target/release/deps/liburl-d6bdca4f973d17cf.rlib" "/home/my-aarch64/grin/target/release/deps/libpercent_encoding-47db2f8c1f0b3e7d.rlib" "/home/my-aarch64/grin/target/release/deps/libidna-e9b7652c81941cd0.rlib" "/home/my-aarch64/grin/target/release/deps/libunicode_normalization-d2e9e5f9d9974bc6.rlib" "/home/my-aarch64/grin/target/release/deps/libunicode_bidi-adad61a35733b809.rlib" "/home/my-aarch64/grin/target/release/deps/libmatches-bf6853864fcbf8b8.rlib" "/home/my-aarch64/grin/target/release/deps/libtoml-be2432bf02eed054.rlib" "/home/my-aarch64/grin/target/release/deps/libserde-5cb4455304089d61.rlib" "/home/my-aarch64/grin/target/release/deps/libtime-06ef1aa102e8c6ee.rlib" "/home/my-aarch64/grin/target/release/deps/liblibc-1295d670880fccca.rlib" "-Wl,--start-group" "/home/my-aarch64/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libstd-6189f2be2c0d28d3.rlib" "/home/my-aarch64/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libpanic_unwind-0a9df30e23fb9934.rlib" "/home/my-aarch64/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libunwind-d396f179f24659b4.rlib" "/home/my-aarch64/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/liballoc_system-b60481cd37bb2f9c.rlib" "/home/my-aarch64/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/liblibc-f6720b49dfa826ad.rlib" "/home/my-aarch64/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/liballoc-df62bb65f06c3fce.rlib" "/home/my-aarch64/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libcore-fc975690cfdac0c6.rlib" "-Wl,--end-group" "/home/my-aarch64/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libcompiler_builtins-413f819da6fb7434.rlib" "-Wl,-Bdynamic" "-lssl" "-lcrypto" "-lhttp_parser" "-lz" "-lutil" "-lutil" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-lutil"
  = note: /usr/bin/aarch64-linux-gnu-ld: cannot find -lhttp_parser
          collect2: error: ld returned 1 exit status
          

error: aborting due to previous error

error: Could not compile `grin`.

Caused by:
  process didn't exit successfully: `rustc --crate-name build_script_build src/build/build.rs --crate-type bin --emit=dep-info,link -C opt-level=3 -C metadata=6d397ced66ab758f -C extra-filename=-6d397ced66ab758f --out-dir /home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f -L dependency=/home/my-aarch64/grin/target/release/deps --extern built=/home/my-aarch64/grin/target/release/deps/libbuilt-096653dc78084a2e.rlib --extern flate2=/home/my-aarch64/grin/target/release/deps/libflate2-d83c7408a4af6112.rlib --extern reqwest=/home/my-aarch64/grin/target/release/deps/libreqwest-1e8eb528f9aa8756.rlib --extern tar=/home/my-aarch64/grin/target/release/deps/libtar-4a9f40c0b7408809.rlib -L native=/home/my-aarch64/grin/target/release/build/libgit2-sys-bac834a99e051d41/out/lib -L native=/usr/lib/aarch64-linux-gnu -L native=/home/my-aarch64/grin/target/release/build/miniz-sys-936b65cea206d234/out` (exit code: 1)

If it helps

$ uname -a

returns

Linux renegade 4.4.152-rockchip64 #1 SMP Sun Aug 26 14:40:54 CEST 2018 aarch64 aarch64 aarch64 GNU/Linux

Have no idea how to compile just http_parser lib to see what caused the error :slight_smile: or should i get it from somewhere else. Further, i get

$ whereis nodejs 
nodejs: /usr/bin/nodejs /usr/lib/nodejs /usr/share/man/man1/nodejs.1.gz

Could someone point me in the right direction?

Thanks

Btw. I did get it to compile on different Debian based aarch64 OS, which is not as streamlined as Armbian, but there ./grin server run would print out something about starting UI after which it would not then happen. There ./grin server start would start the process successfully

I’d be surprised if the issue was the node.js HTTP parser. Can you provide the full build logs as an attachment?

node.js seemed like a long shot :upside_down_face:

$ cargo --verbose build --release
       Fresh cc v1.0.18                                                                                                                                                       
       Fresh libc v0.2.42
       Fresh void v1.0.2
       Fresh lazy_static v1.0.2
       Fresh ucd-util v0.1.1
       Fresh glob v0.2.11
       Fresh build_const v0.2.1
       Fresh unicode-width v0.1.5
       Fresh cfg-if v0.1.4
       Fresh quick-error v1.2.2
       Fresh unicode-xid v0.1.0
       Fresh utf8-ranges v1.0.0
       Fresh bitflags v1.0.3
       Fresh adler32 v1.0.3
       Fresh ansi_term v0.11.0
       Fresh termcolor v1.0.1
       Fresh strsim v0.7.0
       Fresh vec_map v0.8.1
       Fresh version_check v0.1.4
       Fresh peeking_take_while v0.1.2
       Fresh gcc v0.3.54
       Fresh unicode-xid v0.0.4
       Fresh nodrop v0.1.12
       Fresh scopeguard v0.3.3
       Fresh quote v0.3.15
       Fresh byteorder v1.2.4
       Fresh dtoa v0.4.3
       Fresh odds v0.2.26
       Fresh memoffset v0.2.1
       Fresh itoa v0.4.2
       Fresh rustc-demangle v0.1.9
       Fresh same-file v1.0.2
       Fresh slog v2.2.3
       Fresh pkg-config v0.3.12
       Fresh lazycell v0.6.0
       Fresh futures v0.1.23
       Fresh rustc-serialize v0.3.24
       Fresh take_mut v0.2.2
       Fresh slab v0.4.0
       Fresh podio v0.1.6
       Fresh constant_time_eq v0.1.3
       Fresh rand_core v0.2.1
       Fresh siphasher v0.2.3
       Fresh foreign-types-shared v0.1.1
       Fresh linked-hash-map v0.4.2
       Fresh supercow v0.1.0
       Fresh matches v0.1.7
       Fresh bitflags v0.9.1
       Fresh fnv v1.0.6
       Fresh unicode-normalization v0.1.7
       Fresh try-lock v0.1.0
       Fresh try-lock v0.2.2
       Fresh scoped-tls v0.1.2
       Fresh safemem v0.2.0
       Fresh string v0.1.1
       Fresh lazy_static v0.2.11
       Fresh indexmap v1.0.1
       Fresh language-tags v0.2.2
       Fresh stable_deref_trait v1.1.0
       Fresh percent-encoding v1.0.1
       Fresh encode_unicode v0.3.1
       Fresh semver-parser v0.7.0
       Fresh crossbeam-utils v0.5.0
       Fresh either v1.5.0
       Fresh bufstream v0.1.3
       Fresh array-macro v1.0.2
       Fresh arc-swap v0.3.0
       Fresh reexport-proc-macro v1.0.5
       Fresh xi-unicode v0.1.0
       Fresh unicode-segmentation v1.2.1
       Fresh maplit v1.0.1
       Fresh cmake v0.1.31
       Fresh memchr v2.0.1
       Fresh memchr v1.0.2
       Fresh atty v0.2.11
       Fresh which v1.0.5
       Fresh time v0.1.40
       Fresh rand v0.4.2
       Fresh iovec v0.1.2
       Fresh isatty v0.1.8
       Fresh num_cpus v1.8.0
       Fresh memmap v0.6.2
       Fresh xattr v0.2.2
       Fresh dirs v1.0.3
       Fresh term_size v0.3.1
       Fresh daemonize v0.3.0
       Fresh unreachable v1.0.0
       Fresh regex-syntax v0.6.2
       Fresh textwrap v0.10.0
       Fresh log v0.4.3
       Fresh crossbeam-utils v0.3.2
       Fresh net2 v0.2.33
       Fresh encoding_rs v0.8.6
       Fresh filetime v0.2.1
       Fresh humantime v1.1.1
       Fresh proc-macro2 v0.3.5
       Fresh proc-macro2 v0.4.9
       Fresh miniz_oxide v0.1.3
       Fresh synom v0.11.3
       Fresh arrayvec v0.4.7
       Fresh term v0.5.1
       Fresh arrayvec v0.3.25
       Fresh walkdir v2.1.4
       Fresh tokio-executor v0.1.2
       Fresh tokio-service v0.1.0
       Fresh relay v0.1.1
       Fresh rand v0.5.5
       Fresh foreign-types v0.3.2
       Fresh lru-cache v0.1.1
       Fresh unicode-bidi v0.3.4
       Fresh base64 v0.9.2
       Fresh owning_ref v0.3.3
       Fresh semver v0.9.0
       Fresh itertools v0.7.8
       Fresh signal-hook v0.1.4
       Fresh aho-corasick v0.6.6
       Fresh nom v3.2.1
       Fresh csv v0.15.0
       Fresh msdos_time v0.1.6
       Fresh rand v0.3.22
       Fresh bytes v0.4.9
       Fresh futures-cpupool v0.1.8
       Fresh thread_local v0.3.5
       Fresh smallvec v0.6.5
       Fresh clap v2.32.0
       Fresh want v0.0.6
       Fresh want v0.0.4
       Fresh log v0.3.9
       Fresh mio v0.6.15
       Fresh tar v0.4.16
       Fresh num-traits v0.2.5
       Fresh quote v0.5.2
       Fresh quote v0.6.4
       Fresh serde v1.0.70
       Fresh syn v0.11.11
       Fresh crossbeam-epoch v0.4.3
       Fresh blake2-rfc v0.2.18
       Fresh crossbeam-epoch v0.5.2
       Fresh tokio-timer v0.2.4
       Fresh idna v0.1.5
       Fresh httparse v1.3.2
       Fresh lock_api v0.1.3
       Fresh nix v0.11.0
       Fresh libloading v0.5.0
       Fresh bzip2-sys v0.1.6
       Fresh miniz-sys v0.1.10
       Fresh backtrace-sys v0.1.23
       Fresh cexpr v0.2.3
       Fresh prettytable-rs v0.7.0
       Fresh tokio-io v0.1.7
       Fresh http v0.1.8
       Fresh regex v1.0.2
       Fresh slog-async v2.3.0
       Fresh parking_lot_core v0.2.14
       Fresh crc v1.8.1
       Fresh num-integer v0.1.39
       Fresh num-traits v0.1.43
       Fresh num-complex v0.1.43
       Fresh num-complex v0.2.0
       Fresh enumset v0.3.11
       Fresh syn v0.14.5
       Fresh serde_json v1.0.24
       Fresh uuid v0.6.5
       Fresh toml v0.4.6
       Fresh unicase v1.4.2
       Fresh unicase v2.1.0
       Fresh rust-crypto v0.2.36
       Fresh liblmdb-sys v0.2.2
       Fresh synstructure v0.6.1
       Fresh crossbeam-deque v0.3.1
       Fresh openssl-sys v0.9.35
       Fresh libz-sys v1.0.18
       Fresh ncurses v5.93.0
       Fresh url v1.7.1
       Fresh ctrlc v3.1.1
       Fresh clang-sys v0.23.0
       Fresh bzip2 v0.3.3
       Fresh backtrace v0.3.9
       Fresh tokio-codec v0.1.0
       Fresh tokio-reactor v0.1.2
       Fresh h2 v0.1.11
       Fresh env_logger v0.5.11
       Fresh parking_lot v0.6.3
       Fresh miniz_oxide_c_api v0.1.3
       Fresh libflate v0.1.16
       Fresh chrono v0.4.5
       Fresh num-bigint v0.1.44
       Fresh num-bigint v0.2.0
       Fresh num-iter v0.1.37
       Fresh num-rational v0.2.1
       Fresh enum_primitive v0.1.1
       Fresh serde_derive v1.0.70
       Fresh enum-map-derive v0.4.0
       Fresh secp256k1zkp v0.7.1 (https://github.com/mimblewimble/rust-secp256k1-zkp?tag=grin_integration_23#6f599fcc)
       Fresh phf_shared v0.7.23
       Fresh mime v0.3.9
       Fresh lmdb-zero v0.4.4
       Fresh failure_derive v0.1.1
       Fresh tokio-threadpool v0.1.5
       Fresh openssl v0.9.24
       Fresh libgit2-sys v0.7.7
       Fresh serde_urlencoded v0.5.3
       Fresh tokio-tcp v0.1.0
       Fresh tokio-udp v0.1.1
       Fresh bindgen v0.37.4
       Fresh crossbeam-channel v0.2.4
       Fresh flate2 v1.0.2
       Fresh slog-term v2.4.0
       Fresh num-rational v0.1.42
       Fresh num v0.2.0
       Fresh jsonrpc-core v8.0.1
       Fresh enum-map v0.4.1
       Fresh phf_generator v0.7.23
       Fresh phf v0.7.23
       Fresh failure v0.1.1
       Fresh tokio-fs v0.1.2
       Fresh native-tls v0.1.5
       Fresh git2 v0.7.4
       Fresh zip v0.4.2
       Fresh num v0.1.42
       Fresh cursive v0.9.0
       Fresh phf_codegen v0.7.23
       Fresh tokio v0.1.7
       Fresh built v0.3.0
       Fresh grin_util v0.3.0 (file:///home/my-aarch64/grin/util)
       Fresh tokio-core v0.1.17
       Fresh hyper v0.12.7
       Fresh croaring-sys v0.3.6
       Fresh grin_keychain v0.3.0 (file:///home/my-aarch64/grin/keychain)
       Fresh hyper v0.11.27
       Fresh tokio-tls v0.1.4
       Fresh tokio-retry v0.1.1
       Fresh hyper-staticfile v0.3.0
       Fresh croaring v0.3.6
       Fresh mime_guess v2.0.0-alpha.6
       Fresh hyper-tls v0.1.4
       Fresh grin_core v0.3.0 (file:///home/my-aarch64/grin/core)
       Fresh reqwest v0.8.8
       Fresh grin_store v0.3.0 (file:///home/my-aarch64/grin/store)
   Compiling grin v0.3.0 (file:///home/my-aarch64/grin)
       Fresh grin_pool v0.3.0 (file:///home/my-aarch64/grin/pool)
       Fresh grin_p2p v0.3.0 (file:///home/my-aarch64/grin/p2p)
       Fresh grin_chain v0.3.0 (file:///home/my-aarch64/grin/chain)
     Running `rustc --crate-name build_script_build src/build/build.rs --crate-type bin --emit=dep-info,link -C opt-level=3 -C metadata=6d397ced66ab758f -C extra-filename=-6d397ced66ab758f --out-dir /home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f -L dependency=/home/my-aarch64/grin/target/release/deps --extern built=/home/my-aarch64/grin/target/release/deps/libbuilt-096653dc78084a2e.rlib --extern flate2=/home/my-aarch64/grin/target/release/deps/libflate2-d83c7408a4af6112.rlib --extern reqwest=/home/my-aarch64/grin/target/release/deps/libreqwest-1e8eb528f9aa8756.rlib --extern tar=/home/my-aarch64/grin/target/release/deps/libtar-4a9f40c0b7408809.rlib -L native=/home/my-aarch64/grin/target/release/build/libgit2-sys-bac834a99e051d41/out/lib -L native=/usr/lib/aarch64-linux-gnu -L native=/home/my-aarch64/grin/target/release/build/miniz-sys-936b65cea206d234/out`
       Fresh grin_api v0.3.0 (file:///home/my-aarch64/grin/api)
       Fresh grin_wallet v0.3.0 (file:///home/my-aarch64/grin/wallet)
       Fresh grin_servers v0.3.0 (file:///home/my-aarch64/grin/servers)
       Fresh grin_config v0.3.0 (file:///home/my-aarch64/grin/config)
error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-L" "/home/my-aarch64/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib" "/home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f/build_script_build-6d397ced66ab758f.build_script_build0-256dc693ab5b3adb707a7dfdd0acca56.rs.rcgu.o" "/home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f/build_script_build-6d397ced66ab758f.build_script_build1-256dc693ab5b3adb707a7dfdd0acca56.rs.rcgu.o" "/home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f/build_script_build-6d397ced66ab758f.build_script_build10-256dc693ab5b3adb707a7dfdd0acca56.rs.rcgu.o" "/home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f/build_script_build-6d397ced66ab758f.build_script_build11-256dc693ab5b3adb707a7dfdd0acca56.rs.rcgu.o" "/home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f/build_script_build-6d397ced66ab758f.build_script_build12-256dc693ab5b3adb707a7dfdd0acca56.rs.rcgu.o" "/home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f/build_script_build-6d397ced66ab758f.build_script_build13-256dc693ab5b3adb707a7dfdd0acca56.rs.rcgu.o" "/home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f/build_script_build-6d397ced66ab758f.build_script_build14-256dc693ab5b3adb707a7dfdd0acca56.rs.rcgu.o" "/home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f/build_script_build-6d397ced66ab758f.build_script_build15-256dc693ab5b3adb707a7dfdd0acca56.rs.rcgu.o" "/home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f/build_script_build-6d397ced66ab758f.build_script_build2-256dc693ab5b3adb707a7dfdd0acca56.rs.rcgu.o" "/home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f/build_script_build-6d397ced66ab758f.build_script_build3-256dc693ab5b3adb707a7dfdd0acca56.rs.rcgu.o" "/home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f/build_script_build-6d397ced66ab758f.build_script_build4-256dc693ab5b3adb707a7dfdd0acca56.rs.rcgu.o" "/home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f/build_script_build-6d397ced66ab758f.build_script_build5-256dc693ab5b3adb707a7dfdd0acca56.rs.rcgu.o" "/home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f/build_script_build-6d397ced66ab758f.build_script_build6-256dc693ab5b3adb707a7dfdd0acca56.rs.rcgu.o" "/home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f/build_script_build-6d397ced66ab758f.build_script_build7-256dc693ab5b3adb707a7dfdd0acca56.rs.rcgu.o" "/home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f/build_script_build-6d397ced66ab758f.build_script_build8-256dc693ab5b3adb707a7dfdd0acca56.rs.rcgu.o" "/home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f/build_script_build-6d397ced66ab758f.build_script_build9-256dc693ab5b3adb707a7dfdd0acca56.rs.rcgu.o" "-o" "/home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f/build_script_build-6d397ced66ab758f" "/home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f/build_script_build-6d397ced66ab758f.crate.allocator.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-Wl,-O1" "-nodefaultlibs" "-L" "/home/my-aarch64/grin/target/release/deps" "-L" "/home/my-aarch64/grin/target/release/build/libgit2-sys-bac834a99e051d41/out/lib" "-L" "/usr/lib/aarch64-linux-gnu" "-L" "/home/my-aarch64/grin/target/release/build/miniz-sys-936b65cea206d234/out" "-L" "/home/my-aarch64/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/home/my-aarch64/grin/target/release/deps/libtar-4a9f40c0b7408809.rlib" "/home/my-aarch64/grin/target/release/deps/libxattr-5986dc366160fdec.rlib" "/home/my-aarch64/grin/target/release/deps/libfiletime-0a655aa2fe1bdfb4.rlib" "/home/my-aarch64/grin/target/release/deps/libreqwest-1e8eb528f9aa8756.rlib" "/home/my-aarch64/grin/target/release/deps/libuuid-da14e8a77951a04d.rlib" "/home/my-aarch64/grin/target/release/deps/libserde_urlencoded-740b88bae2fac69c.rlib" "/home/my-aarch64/grin/target/release/deps/libserde_json-911c3c416f26eceb.rlib" "/home/my-aarch64/grin/target/release/deps/libitoa-8f61c892cb7aeaa7.rlib" "/home/my-aarch64/grin/target/release/deps/libdtoa-93afbf9f7ac8c8ac.rlib" "/home/my-aarch64/grin/target/release/deps/libmime_guess-977ce62ffe153ec1.rlib" "/home/my-aarch64/grin/target/release/deps/libphf-f2be5594e6a92454.rlib" "/home/my-aarch64/grin/target/release/deps/libphf_shared-09a89b927c8c0bbb.rlib" "/home/my-aarch64/grin/target/release/deps/libunicase-3fcc95a79db3b439.rlib" "/home/my-aarch64/grin/target/release/deps/libsiphasher-8b2de64a8e80b321.rlib" "/home/my-aarch64/grin/target/release/deps/liblibflate-9a495094ca2b7370.rlib" "/home/my-aarch64/grin/target/release/deps/libhyper_tls-dde2011380cd17c7.rlib" "/home/my-aarch64/grin/target/release/deps/libtokio_tls-8589273eb980ed68.rlib" "/home/my-aarch64/grin/target/release/deps/libnative_tls-a730dee75c1ed921.rlib" "/home/my-aarch64/grin/target/release/deps/libopenssl-72f737e990d7bf83.rlib" "/home/my-aarch64/grin/target/release/deps/libopenssl_sys-94c16eda997f26cd.rlib" "/home/my-aarch64/grin/target/release/deps/libforeign_types-bbb21da10a928b49.rlib" "/home/my-aarch64/grin/target/release/deps/libforeign_types_shared-82f7467a9cccc32e.rlib" "/home/my-aarch64/grin/target/release/deps/libbitflags-4623eb59c9352eef.rlib" "/home/my-aarch64/grin/target/release/deps/libhyper-509e4a6e2566c9aa.rlib" "/home/my-aarch64/grin/target/release/deps/libwant-cf86d0739af06575.rlib" "/home/my-aarch64/grin/target/release/deps/libtry_lock-a6f32d489fa1d2fe.rlib" "/home/my-aarch64/grin/target/release/deps/libtokio_service-573b772d385af17b.rlib" "/home/my-aarch64/grin/target/release/deps/libtokio_core-4b9da2f1a1da0cbd.rlib" "/home/my-aarch64/grin/target/release/deps/libscoped_tls-e137836050eef670.rlib" "/home/my-aarch64/grin/target/release/deps/libtokio-af7a8391f2ec778a.rlib" "/home/my-aarch64/grin/target/release/deps/libtokio_udp-10dea8eb4c0f5881.rlib" "/home/my-aarch64/grin/target/release/deps/libtokio_codec-f789f1133727f60f.rlib" "/home/my-aarch64/grin/target/release/deps/libtokio_tcp-02532bd5353b0a0f.rlib" "/home/my-aarch64/grin/target/release/deps/libtokio_timer-a89127371cc3b59f.rlib" "/home/my-aarch64/grin/target/release/deps/libtokio_reactor-51f4f77c7b30f56b.rlib" "/home/my-aarch64/grin/target/release/deps/libtokio_fs-d820eef23af7cbec.rlib" "/home/my-aarch64/grin/target/release/deps/libtokio_threadpool-e775644729b9f5f0.rlib" "/home/my-aarch64/grin/target/release/deps/librand-7eb54f87a58e9ff3.rlib" "/home/my-aarch64/grin/target/release/deps/libcrossbeam_deque-01289676b3764ae3.rlib" "/home/my-aarch64/grin/target/release/deps/libcrossbeam_epoch-8fefee84da505a93.rlib" "/home/my-aarch64/grin/target/release/deps/libscopeguard-fb63a993580bc307.rlib" "/home/my-aarch64/grin/target/release/deps/libmemoffset-f3543a35cd673118.rlib" "/home/my-aarch64/grin/target/release/deps/liblazy_static-e01646966e528a6b.rlib" "/home/my-aarch64/grin/target/release/deps/libcrossbeam_utils-f77a2ba1599aff46.rlib" "/home/my-aarch64/grin/target/release/deps/libarrayvec-6d9752869db46cf0.rlib" "/home/my-aarch64/grin/target/release/deps/libnodrop-45572e44500cb921.rlib" "/home/my-aarch64/grin/target/release/deps/libtokio_executor-0e40b863131ebb82.rlib" "/home/my-aarch64/grin/target/release/deps/libtokio_io-9e3f38a37732eb19.rlib" "/home/my-aarch64/grin/target/release/deps/libmio-1df3e74787b3a558.rlib" "/home/my-aarch64/grin/target/release/deps/libslab-bd9a854057714fc2.rlib" "/home/my-aarch64/grin/target/release/deps/liblazycell-628adbfdecde352d.rlib" "/home/my-aarch64/grin/target/release/deps/librelay-e046b7de4d84f607.rlib" "/home/my-aarch64/grin/target/release/deps/libnet2-060d647abb7ca83e.rlib" "/home/my-aarch64/grin/target/release/deps/libmime-26ba3433904cad0e.rlib" "/home/my-aarch64/grin/target/release/deps/libunicase-f31c75b3af74b583.rlib" "/home/my-aarch64/grin/target/release/deps/liblanguage_tags-4200e3f8e53655b7.rlib" "/home/my-aarch64/grin/target/release/deps/libhttparse-2d7228bfe1f15f51.rlib" "/home/my-aarch64/grin/target/release/deps/libfutures_cpupool-b9aaef170e5b9fc6.rlib" "/home/my-aarch64/grin/target/release/deps/libnum_cpus-490f95194504cf47.rlib" "/home/my-aarch64/grin/target/release/deps/libbase64-da0491f95cfa0663.rlib" "/home/my-aarch64/grin/target/release/deps/libsafemem-c527b724e2baf705.rlib" "/home/my-aarch64/grin/target/release/deps/libfutures-245e65304feed969.rlib" "/home/my-aarch64/grin/target/release/deps/libencoding_rs-676213728e085e12.rlib" "/home/my-aarch64/grin/target/release/deps/libbytes-5ef541b7ed8e0a1e.rlib" "/home/my-aarch64/grin/target/release/deps/libiovec-45865305fc168f0c.rlib" "/home/my-aarch64/grin/target/release/deps/libbyteorder-0c69be4880918ff0.rlib" "/home/my-aarch64/grin/target/release/deps/libflate2-d83c7408a4af6112.rlib" "/home/my-aarch64/grin/target/release/deps/libminiz_oxide_c_api-158b854b68ae8ec2.rlib" "/home/my-aarch64/grin/target/release/deps/libminiz_oxide-3d553285704831c6.rlib" "/home/my-aarch64/grin/target/release/deps/libadler32-b0ddd6d1fc2e9b96.rlib" "/home/my-aarch64/grin/target/release/deps/libcrc-6f7a69c2edcd40fd.rlib" "/home/my-aarch64/grin/target/release/deps/libbuilt-096653dc78084a2e.rlib" "/home/my-aarch64/grin/target/release/deps/libsemver-be246a1f2a908884.rlib" "/home/my-aarch64/grin/target/release/deps/libsemver_parser-a82f01e57c6a57c2.rlib" "/home/my-aarch64/grin/target/release/deps/libgit2-48030efe00a6aea4.rlib" "/home/my-aarch64/grin/target/release/deps/liblog-30be7f36666b74c9.rlib" "/home/my-aarch64/grin/target/release/deps/libcfg_if-d7de2aaf88ab571b.rlib" "/home/my-aarch64/grin/target/release/deps/libbitflags-f7740033ca01d6e3.rlib" "/home/my-aarch64/grin/target/release/deps/liblibgit2_sys-d3ed2c224b501c83.rlib" "/home/my-aarch64/grin/target/release/deps/liblibz_sys-fc69c104b94c1e9d.rlib" "/home/my-aarch64/grin/target/release/deps/liburl-d6bdca4f973d17cf.rlib" "/home/my-aarch64/grin/target/release/deps/libpercent_encoding-47db2f8c1f0b3e7d.rlib" "/home/my-aarch64/grin/target/release/deps/libidna-e9b7652c81941cd0.rlib" "/home/my-aarch64/grin/target/release/deps/libunicode_normalization-d2e9e5f9d9974bc6.rlib" "/home/my-aarch64/grin/target/release/deps/libunicode_bidi-adad61a35733b809.rlib" "/home/my-aarch64/grin/target/release/deps/libmatches-bf6853864fcbf8b8.rlib" "/home/my-aarch64/grin/target/release/deps/libtoml-be2432bf02eed054.rlib" "/home/my-aarch64/grin/target/release/deps/libserde-5cb4455304089d61.rlib" "/home/my-aarch64/grin/target/release/deps/libtime-06ef1aa102e8c6ee.rlib" "/home/my-aarch64/grin/target/release/deps/liblibc-1295d670880fccca.rlib" "-Wl,--start-group" "/home/my-aarch64/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libstd-6189f2be2c0d28d3.rlib" "/home/my-aarch64/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libpanic_unwind-0a9df30e23fb9934.rlib" "/home/my-aarch64/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libunwind-d396f179f24659b4.rlib" "/home/my-aarch64/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/liballoc_system-b60481cd37bb2f9c.rlib" "/home/my-aarch64/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/liblibc-f6720b49dfa826ad.rlib" "/home/my-aarch64/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/liballoc-df62bb65f06c3fce.rlib" "/home/my-aarch64/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libcore-fc975690cfdac0c6.rlib" "-Wl,--end-group" "/home/my-aarch64/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libcompiler_builtins-413f819da6fb7434.rlib" "-Wl,-Bdynamic" "-lssl" "-lcrypto" "-lhttp_parser" "-lz" "-lutil" "-lutil" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-lutil"
  = note: /usr/bin/aarch64-linux-gnu-ld: cannot find -lhttp_parser
          collect2: error: ld returned 1 exit status
          

error: aborting due to previous error

error: Could not compile `grin`.

Caused by:
  process didn't exit successfully: `rustc --crate-name build_script_build src/build/build.rs --crate-type bin --emit=dep-info,link -C opt-level=3 -C metadata=6d397ced66ab758f -C extra-filename=-6d397ced66ab758f --out-dir /home/my-aarch64/grin/target/release/build/grin-6d397ced66ab758f -L dependency=/home/my-aarch64/grin/target/release/deps --extern built=/home/my-aarch64/grin/target/release/deps/libbuilt-096653dc78084a2e.rlib --extern flate2=/home/my-aarch64/grin/target/release/deps/libflate2-d83c7408a4af6112.rlib --extern reqwest=/home/my-aarch64/grin/target/release/deps/libreqwest-1e8eb528f9aa8756.rlib --extern tar=/home/my-aarch64/grin/target/release/deps/libtar-4a9f40c0b7408809.rlib -L native=/home/my-aarch64/grin/target/release/build/libgit2-sys-bac834a99e051d41/out/lib -L native=/usr/lib/aarch64-linux-gnu -L native=/home/my-aarch64/grin/target/release/build/miniz-sys-936b65cea206d234/out` (exit code: 1)

Perhaps i can get more elaborate log file somehow?

Hi,
Now it compiles but i get

$ ./grin wallet -p 123456 init
Oct 04 14:15:45.932 WARN Using wallet configuration file at /home/my-aarch64/.grin/grin-wallet.toml
Oct 04 Thread 'main' panicked with message:
"called `Result::unwrap()` on an `Err` value: Error::Code(12, 'Cannot allocate memory')"
See grin.log for further details.
14:15:45.996 ERRO 
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error::Code(12, 'Cannot allocate memory')': libcore/result.rs:945stack backtrace:
   0:       0x556b5e17b7 - backtrace::backtrace::trace::h6a88c4d04d9d9766
   1:       0x556b5e15a3 - <backtrace::capture::Backtrace as core::default::Default>::default::h0dd8b7d51162928b
   2:       0x556b58c6bb - grin_util::logger::send_panic_to_log::{{closure}}::h2f81d4bb793eea88
   3:       0x556b6ce7d7 - std::panicking::rust_panic_with_hook::h22b0068fbbf8b0b4
                        at libstd/panicking.rs:479
   4:       0x556b6ce42b - std::panicking::continue_panic_fmt::h015fb5b89d43591d
                        at libstd/panicking.rs:390
   5:       0x556b6ce337 - rust_begin_unwind
                        at libstd/panicking.rs:325
   6:       0x556b6ef1f3 - core::panicking::panic_fmt::h2c383e888dce42c0
                        at libcore/panicking.rs:77
   7:       0x556b4fb9b7 - core::result::unwrap_failed::h112464dbb0f1cf28
   8:       0x556b4fa3cf - grin_store::lmdb::new_env::hefef7e466626bc40
   9:       0x556b0f766b - <grin_wallet::lmdb_wallet::LMDBBackend<C, K>>::new::haa99d7f2093aed21
  10:       0x556b168c1b - grin::cmd::wallet::wallet_command::hf4febb5b0482ce9f
  11:       0x556b1769b3 - grin::main::h0755ecc1e7e949a3
  12:       0x556b0fa20f - std::rt::lang_start::{{closure}}::h6fe9c44db2e334aa
  13:       0x556b6ce29b - std::rt::lang_start_internal::{{closure}}::h98e7fae73915f60b
                        at libstd/rt.rs:59
                         - std::panicking::try::do_call::h07a81a7df92bbb21
                        at libstd/panicking.rs:310
  14:       0x556b6ebf4b - __rust_maybe_catch_panic
                        at libpanic_unwind/lib.rs:105
  15:       0x556b6ca047 - std::panicking::try::hd2a998dbedd18f5a
                        at libstd/panicking.rs:289
                         - std::panic::catch_unwind::ha5962602c53d1906
                        at libstd/panic.rs:392
                         - std::rt::lang_start_internal::h590ef00f7

For some reason i do not find grin.log file.

When i do

$ ./grin server run
$ ./grin server run
$ ./grin client

nothing happens, i.e.

$ ps aux | grep grin
my-aarch64    2763  0.0  0.0   4376   648 pts/3    S+   14:24   0:00 grep --color=auto grin

But, Armbian is not officially supported for this SBC

Sorry to interject, I havent been following the code for some months now yet I know that there are many great changes that have been made. I would like to ask if the project is now building on windows? Thanks

@goofyclown As an experiment, I’d like you try to edit the following line:

Divide that large number by 2, recompile and try again. If that still doesn’t work, divide it by 2 again. And please report on the results. Can I also ask what are the specs of that machine?

@harry.potter still not unfortunately

That is my supercomputer, having
Rockchip RK3328 SoC

  • 4 ARM Cortex-A53 @ 1.4GHz
    • Cryptography Extensions

4GB variant.

When divided by 2:

$ ./grin wallet -p 123456 init
Oct 05 14:00:49.941 WARN Using wallet configuration file at /home/my-aarch64/.grin/grin-wallet.toml
Oct Thread 'main' panicked with message:
"Failed to init wallet seed file.: Error { inner: 

Wallet seed exists error }"
See grin.log for further details.
05 14:00:50.006 ERRO 
thread 'main' panicked at 'Failed to init wallet seed file.: Error { inner: 

Wallet seed exists error }': libcore/result.rs:945stack backtrace:
   0:       0x55587b97b7 - backtrace::backtrace::trace::h6a88c4d04d9d9766
   1:       0x55587b95a3 - <backtrace::capture::Backtrace as core::default::Default>::default::h0dd8b7d51162928b
   2:       0x55587646bb - grin_util::logger::send_panic_to_log::{{closure}}::h2f81d4bb793eea88
   3:       0x55588a67d7 - std::panicking::rust_panic_with_hook::h22b0068fbbf8b0b4
                        at libstd/panicking.rs:479
   4:       0x55588a642b - std::panicking::continue_panic_fmt::h015fb5b89d43591d
                        at libstd/panicking.rs:390
   5:       0x55588a6337 - rust_begin_unwind
                        at libstd/panicking.rs:325
   6:       0x55588c71f3 - core::panicking::panic_fmt::h2c383e888dce42c0
                        at libcore/panicking.rs:77
   7:       0x555833b60f - core::result::unwrap_failed::hc90324d611667d02
   8:       0x55583413e7 - grin::cmd::wallet::wallet_command::hf4febb5b0482ce9f
   9:       0x555834e9b3 - grin::main::h0755ecc1e7e949a3
  10:       0x55582d220f - std::rt::lang_start::{{closure}}::h6fe9c44db2e334aa
  11:       0x55588a629b - std::rt::lang_start_internal::{{closure}}::h98e7fae73915f60b
                        at libstd/rt.rs:59
                         - std::panicking::try::do_call::h07a81a7df92bbb21
                        at libstd/panicking.rs:310
  12:       0x55588c3f4b - __rust_maybe_catch_panic
                        at libpanic_unwind/lib.rs:105
  13:       0x55588a2047 - std::panicking::try::hd2a998dbedd18f5a
                        at libstd/panicking.rs:289
                         - std::panic::catch_unwind::ha5962602c53d1906
                        at libstd/panic.rs:392
                         - std::rt::lang_start_internal::h590ef00f7df8d401
                        at libstd/rt.rs:58
  14:       0x555834fff3 - main
  15:       0x7f9ac346df - __libc_start_main
  16:       0x5558272c9f - <unknown>

When divided by 4:

$ ./grin wallet -p 123456 init
Oct 05 14:24:49.585 WARN Using wallet configuration file at /home/my-aarch64/.grin/grin-wallet.toml
Oct 05 14:24:49.672 ERRO 
thread 'main' panicked at 'Failed to init wallet seed file.: Error { inner: 

Wallet seed exists error }': libcore/result.rs:945stack backtrace:
   0:       0x555f1347b7 - backtrace::backtrace::trace::h6a88c4d04d9d9766
   1:       0x555f1345a3 - <backtrace::capture::Backtrace as core::default::Default>::default::h0dd8b7d51162928b
   2:       0x555f0df6bb - grin_util::logger::send_panic_to_log::{{closure}}::h2f81d4bb793eea88
   3:       0x555f2217d7 - std::panicking::rust_panic_with_hook::h22b0068fbbf8b0b4
                        at libstd/panicking.rs:479
   4:       0x555f22142b - std::panicking::continue_panic_fmt::h015fb5b89d43591d
                        at libstd/panicking.rs:390
   5:       0x555f221337 - rust_begin_unwind
                        at libstd/panicking.rs:325
   6:       0x555f2421f3 - core::panicking::panic_fmt::h2c383e888dce42c0
                        at libcore/panicking.rs:77
   7:       0x555ecb660f - core::result::unwrap_failed::hc90324d611667d02
   8:       0x555ecbc3e7 - grin::cmd::wallet::wallet_command::hf4febb5b0482ce9f
   9:       0x555ecc99b3 - grin::main::h0755ecc1e7e949a3
  10:       0x555ec4d20f - std::rt::lang_start::{{closure}}::h6fe9c44db2e334aa
  11:       0x555f22129b - std::rt::lang_start_internal::{{closure}}::h98e7fae73915f60b
                        at libstd/rt.rs:59
                         - std::panicking::try::do_call::h07a81a7df92bbb21
                        at libstd/panicking.rs:310
  12:       0x555f23ef4b - __rust_maybe_catch_panic
                        at libpanic_unwind/lib.rs:105
  13:       0x555f21d047 - std::panicking::try::hd2a998dbedd18f5a
                        at libstd/panicking.rs:289
                         - std::panic::catch_unwind::ha5962602c53d1906
                        at libstd/panic.rs:392
                         - std::rt::lang_start_internal::h590ef00f7df8d401
                        at libstd/rt.rs:58
  14:       0x555eccaff3 - main
  15:       0x7f9cba36df - __libc_start_main
  16:       0x555ebedc9f - <unknown>


Thread 'main' panicked with message:
"Failed to init wallet seed file.: Error { inner: 

Wallet seed exists error }"
See grin.log for further details.

Giving it a shot divided by 8, but will report tomorrow.

Please be aware that i have no idea what i am doing :upside_down_face:

It doesn’t look like it but that error seems to say dividing by 2 worked. The wallet init generates a seed, looks like you already have one so it complains. You should be able to try running the server and wallet now.

Can we just move that constant inside the server config? I don’t think we can have a one size fits all solution so on some machines this will have to be adjusted anyway. Do you want me to open a github issue to track it?

I actually wanted to see if we could autodetect a good value based on the environment. Most people won’t know what to do with this as a config parameter.

./grin server run does start the server UI, but as soon as it start to connect to peers it crashes with a message

memory allocation of 8589934600 bytes failedAborted

My supercomputer does not have that much memory, have just 1GB swap :face_with_raised_eyebrow:
Have no clue where does it takes 8GB number from,

$ grep -r 8589934600 *

returns nothing. The same error message is when divided by 2 or 4

I tried to run server without network cable connected and it runs, until i connect the cable. Then, when peer count moves from 0 it crashes with above message