xmr-rs / xmr

Monero node.
Apache License 2.0
30 stars 9 forks source link

Can't build xmr on x86-64 #8

Closed shopglobal closed 6 years ago

shopglobal commented 6 years ago

Looking good, I am all set up with rust and cargo, but upon cargo install this is the output:

user@userd:~/xmr$ git clone https://github.com/xmr-rs/xmr
user@userd:~/xmr$cd xmr
user@userd:~/xmr$ cargo install
  Installing xmr v0.1.0 (file:///home/user/xmr)
 Downloading clap v2.31.2
 Downloading env_logger v0.5.6
 Downloading serde v1.0.34
 Downloading rustc-demangle v0.1.7
 Downloading iovec v0.1.2
 Downloading num v0.1.42
 Downloading num-complex v0.1.43
 Downloading num-iter v0.1.35
 Downloading num-integer v0.1.36
 Downloading num-rational v0.1.42
 Downloading num-bigint v0.1.43
 Downloading num-traits v0.2.2
 Downloading libc v0.2.39
 Downloading cc v1.0.9
 Downloading parking_lot_core v0.2.13
 Downloading tokio-core v0.1.16
 Downloading futures v0.1.19
 Downloading serde_derive v1.0.34
 Downloading tokio-io v0.1.6
 Downloading tokio v0.1.4
 Downloading tokio-reactor v0.1.1
 Downloading tokio-executor v0.1.1
 Downloading scoped-tls v0.1.1
 Downloading mio v0.6.14
 Downloading tokio-threadpool v0.1.1
 Downloading tokio-udp v0.1.0
 Downloading tokio-tcp v0.1.0
 Downloading crossbeam-deque v0.3.0
 Downloading crossbeam-epoch v0.4.1
 Downloading crossbeam-utils v0.2.2
 Downloading crossbeam-utils v0.3.2
 Downloading memoffset v0.2.1
 Downloading scopeguard v0.3.3
 Downloading arrayvec v0.4.7
 Downloading nodrop v0.1.12
 Downloading net2 v0.2.32
 Downloading linked-hash-map v0.5.1
 Downloading serde_derive_internals v0.22.0
 Downloading syn v0.12.14
 Downloading quote v0.4.2
 Downloading proc-macro2 v0.2.3
 Downloading unicode-xid v0.1.0
 Downloading atty v0.2.8
 Downloading strsim v0.7.0
 Downloading termcolor v0.3.5
 Downloading regex v0.2.10
 Downloading humantime v1.1.1
 Downloading regex-syntax v0.5.3
 Downloading ucd-util v0.1.1
 Downloading quick-error v1.2.1
 Downloading ansi_term v0.11.0
   Compiling num-traits v0.2.2
   Compiling regex v0.2.10
   Compiling scoped-tls v0.1.1
   Compiling rustc-demangle v0.1.7
   Compiling nodrop v0.1.12
   Compiling ucd-util v0.1.1
   Compiling quick-error v1.2.1
   Compiling futures v0.1.19
   Compiling unicode-xid v0.1.0
   Compiling termcolor v0.3.5
   Compiling cc v1.0.9
   Compiling scopeguard v0.3.3
   Compiling serde v1.0.34
   Compiling linked-hash-map v0.5.1
   Compiling strsim v0.7.0
   Compiling memoffset v0.2.1
   Compiling libc v0.2.39
   Compiling ansi_term v0.11.0
   Compiling arrayvec v0.4.7
   Compiling humantime v1.1.1
   Compiling proc-macro2 v0.2.3
   Compiling regex-syntax v0.5.3
   Compiling num-complex v0.1.43
   Compiling num-integer v0.1.36
   Compiling crossbeam-utils v0.2.2
   Compiling crossbeam-utils v0.3.2
   Compiling net2 v0.2.32
   Compiling atty v0.2.8
   Compiling memmap v0.6.2
   Compiling iovec v0.1.2
   Compiling fs2 v0.4.3
   Compiling rand v0.4.2
   Compiling memchr v2.0.1
   Compiling num_cpus v1.8.0
   Compiling tokio-executor v0.1.1
   Compiling num-iter v0.1.35
   Compiling crossbeam-epoch v0.4.1
   Compiling clap v2.31.2
   Compiling bytes v0.4.6
   Compiling xmr-crypto v0.1.0 (file:///home/user/xmr/crypto)
   Compiling backtrace-sys v0.1.16
   Compiling mio v0.6.14
   Compiling aho-corasick v0.6.4
   Compiling synstructure v0.6.1
   Compiling futures-cpupool v0.1.8
   Compiling num-bigint v0.1.43
   Compiling sanakirja v0.8.16
   Compiling parking_lot_core v0.2.13
   Compiling quote v0.4.2
   Compiling crossbeam-deque v0.3.0
   Compiling tokio-io v0.1.6
   Compiling parking_lot v0.4.8
   Compiling failure_derive v0.1.1
   Compiling num-rational v0.1.42
error: failed to run custom build command for `xmr-crypto v0.1.0 (file:///home/user/xmr/crypto)`
process didn't exit successfully: `/home/user/xmr/target/release/build/xmr-crypto-54a379aac8c23f9b/build-script-build` (exit code: 101)
--- stdout
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("false")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/release/build/xmr-crypto-f021d8ba2443549e/out/sys/aesb.o" "-c" "sys/aesb.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("false")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/release/build/xmr-crypto-f021d8ba2443549e/out/sys/blake256.o" "-c" "sys/blake256.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("false")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/release/build/xmr-crypto-f021d8ba2443549e/out/sys/crypto-ops-data.o" "-c" "sys/crypto-ops-data.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("false")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/release/build/xmr-crypto-f021d8ba2443549e/out/sys/crypto-ops.o" "-c" "sys/crypto-ops.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("false")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/release/build/xmr-crypto-f021d8ba2443549e/out/sys/groestl.o" "-c" "sys/groestl.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("false")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/release/build/xmr-crypto-f021d8ba2443549e/out/sys/hash-extra-blake.o" "-c" "sys/hash-extra-blake.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("false")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/release/build/xmr-crypto-f021d8ba2443549e/out/sys/hash-extra-groestl.o" "-c" "sys/hash-extra-groestl.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("false")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/release/build/xmr-crypto-f021d8ba2443549e/out/sys/hash-extra-jh.o" "-c" "sys/hash-extra-jh.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("false")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/release/build/xmr-crypto-f021d8ba2443549e/out/sys/hash-extra-skein.o" "-c" "sys/hash-extra-skein.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("false")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/release/build/xmr-crypto-f021d8ba2443549e/out/sys/hash.o" "-c" "sys/hash.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("false")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/release/build/xmr-crypto-f021d8ba2443549e/out/sys/jh.o" "-c" "sys/jh.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("false")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/release/build/xmr-crypto-f021d8ba2443549e/out/sys/keccak.o" "-c" "sys/keccak.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("false")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/release/build/xmr-crypto-f021d8ba2443549e/out/sys/oaes_lib.o" "-c" "sys/oaes_lib.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("false")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/release/build/xmr-crypto-f021d8ba2443549e/out/sys/random.o" "-c" "sys/random.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("false")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/release/build/xmr-crypto-f021d8ba2443549e/out/sys/skein.o" "-c" "sys/skein.c"
cargo:warning=sys/skein.c: In function ‘Skein_256_Final’:
cargo:warning=sys/skein.c:1360:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
cargo:warning=         ((u64b_t *)ctx->b)[0]= Skein_Swap64((u64b_t) i); /* build the counter block */
cargo:warning=         ^
cargo:warning=sys/skein.c: In function ‘Skein_512_Final’:
cargo:warning=sys/skein.c:1560:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
cargo:warning=         ((u64b_t *)ctx->b)[0]= Skein_Swap64((u64b_t) i); /* build the counter block */
cargo:warning=         ^
cargo:warning=sys/skein.c: In function ‘Skein1024_Final’:
cargo:warning=sys/skein.c:1758:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
cargo:warning=         ((u64b_t *)ctx->b)[0]= Skein_Swap64((u64b_t) i); /* build the counter block */
cargo:warning=         ^
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("false")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/release/build/xmr-crypto-f021d8ba2443549e/out/sys/slow-hash.o" "-c" "sys/slow-hash.c"
cargo:warning=sys/slow-hash.c: In function ‘cn_slow_hash’:
cargo:warning=sys/slow-hash.c:576:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
cargo:warning=     U64(a)[0] = U64(&state.k[0])[0] ^ U64(&state.k[32])[0];
cargo:warning=     ^
cargo:warning=sys/slow-hash.c:576:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
cargo:warning=sys/slow-hash.c:578:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
cargo:warning=     U64(b)[0] = U64(&state.k[16])[0] ^ U64(&state.k[48])[0];
cargo:warning=     ^
cargo:warning=sys/slow-hash.c:578:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
cargo:warning=In file included from sys/slow-hash.c:73:0:
cargo:warning=sys/slow-hash.c: In function ‘aes_256_assist2’:
cargo:warning=/usr/lib/gcc/x86_64-linux-gnu/5/include/wmmintrin.h:87:1: error: inlining failed in call to always_inline ‘_mm_aeskeygenassist_si128’: target specific option mismatch
cargo:warning= _mm_aeskeygenassist_si128 (__m128i __X, const int __C)
cargo:warning= ^
cargo:warning=sys/slow-hash.c:239:8: error: called from here
cargo:warning=     t4 = _mm_aeskeygenassist_si128(*t1, 0x00);
cargo:warning=        ^
exit code: 1

--- stderr
thread 'main' panicked at '

Internal error occurred: Command "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/release/build/xmr-crypto-f021d8ba2443549e/out/sys/slow-hash.o" "-c" "sys/slow-hash.c" with args "cc" did not execute successfully (status code exit code: 1).

', /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/cc-1.0.9/src/lib.rs:2070:4
note: Run with `RUST_BACKTRACE=1` for a backtrace.

warning: build failed, waiting for other jobs to finish...
error: failed to compile `xmr v0.1.0 (file:///home/user/xmr)`, intermediate artifacts can be found at `/home/user/xmr/target`

Have you encountered the above? Any assistance would be great, looking forward to testing and contributing. If I get it working I will pull request.

shopglobal commented 6 years ago

and output for cargo build

rustup: installing toolchain for 'stable'
rustup: extracting installer
install: creating uninstall script at /usr/local/lib/rustlib/uninstall.sh
install: installing component 'rustc'
install: installing component 'cargo'
install: installing component 'rls-preview'
install: installing component 'rustfmt-preview'
install: installing component 'rust-analysis-x86_64-unknown-linux-gnu'
install: installing component 'rust-std-x86_64-unknown-linux-gnu'
install: installing component 'rust-docs'

    Rust is ready to roll.

user@userd:~/xmr$ cargo build
   Compiling num-traits v0.2.2
   Compiling linked-hash-map v0.5.1
   Compiling nodrop v0.1.12
   Compiling unicode-xid v0.0.4
   Compiling ucd-util v0.1.1
   Compiling vec_map v0.8.0
   Compiling stable_deref_trait v1.0.0
   Compiling unicode-width v0.1.4
   Compiling bitflags v1.0.1
   Compiling slab v0.4.0
   Compiling byteorder v1.2.1
   Compiling lazy_static v1.0.0
   Compiling xdg v2.1.0
   Compiling cfg-if v0.1.2
   Compiling utf8-ranges v1.0.0
   Compiling lazycell v0.6.0
   Compiling rustc-serialize v0.3.24
   Compiling regex v0.2.10
   Compiling strsim v0.7.0
   Compiling rustc-demangle v0.1.7
   Compiling serde v1.0.34
   Compiling termcolor v0.3.5
   Compiling quote v0.3.15
   Compiling crossbeam v0.3.2
   Compiling smallvec v0.6.0
   Compiling ansi_term v0.11.0
   Compiling void v1.0.2
   Compiling xmr-rct v0.1.0 (file:///home/user/xmr/rct)
   Compiling futures v0.1.19
   Compiling libc v0.2.39
   Compiling uuid v0.5.1
   Compiling scopeguard v0.3.3
   Compiling unicode-xid v0.1.0
   Compiling quick-error v1.2.1
   Compiling memoffset v0.2.1
   Compiling cc v1.0.9
   Compiling scoped-tls v0.1.1
   Compiling arrayvec v0.4.7
   Compiling synom v0.11.3
   Compiling owning_ref v0.3.3
   Compiling regex-syntax v0.5.3
   Compiling textwrap v0.9.0
   Compiling crossbeam-utils v0.3.2
   Compiling crossbeam-utils v0.2.2
   Compiling log v0.4.1
   Compiling app_dirs v1.1.1
   Compiling num-integer v0.1.36
   Compiling unreachable v1.0.0
   Compiling proc-macro2 v0.2.3
   Compiling humantime v1.1.1
   Compiling iovec v0.1.2
   Compiling atty v0.2.8
   Compiling rand v0.4.2
   Compiling fs2 v0.4.3
   Compiling net2 v0.2.32
   Compiling memchr v2.0.1
   Compiling memmap v0.6.2
   Compiling num_cpus v1.8.0
   Compiling num-complex v0.1.43
   Compiling syn v0.11.11
   Compiling backtrace-sys v0.1.16
   Compiling xmr-crypto v0.1.0 (file:///home/user/xmr/crypto)
   Compiling tokio-executor v0.1.1
   Compiling crossbeam-epoch v0.4.1
   Compiling log v0.3.9
   Compiling thread_local v0.3.5
   Compiling num-iter v0.1.35
   Compiling bytes v0.4.6
   Compiling clap v2.31.2
   Compiling quote v0.4.2
   Compiling num-bigint v0.1.43
   Compiling parking_lot_core v0.2.13
   Compiling mio v0.6.14
   Compiling aho-corasick v0.6.4
   Compiling sanakirja v0.8.16
   Compiling futures-cpupool v0.1.8
   Compiling crossbeam-deque v0.3.0
error: failed to run custom build command for `xmr-crypto v0.1.0 (file:///home/user/xmr/crypto)`
process didn't exit successfully: `/home/user/xmr/target/debug/build/xmr-crypto-d0e3c4f42fee1239/build-script-build` (exit code: 101)
--- stdout
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/debug/build/xmr-crypto-6001af946545c1b8/out/sys/aesb.o" "-c" "sys/aesb.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/debug/build/xmr-crypto-6001af946545c1b8/out/sys/blake256.o" "-c" "sys/blake256.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/debug/build/xmr-crypto-6001af946545c1b8/out/sys/crypto-ops-data.o" "-c" "sys/crypto-ops-data.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/debug/build/xmr-crypto-6001af946545c1b8/out/sys/crypto-ops.o" "-c" "sys/crypto-ops.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/debug/build/xmr-crypto-6001af946545c1b8/out/sys/groestl.o" "-c" "sys/groestl.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/debug/build/xmr-crypto-6001af946545c1b8/out/sys/hash-extra-blake.o" "-c" "sys/hash-extra-blake.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/debug/build/xmr-crypto-6001af946545c1b8/out/sys/hash-extra-groestl.o" "-c" "sys/hash-extra-groestl.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/debug/build/xmr-crypto-6001af946545c1b8/out/sys/hash-extra-jh.o" "-c" "sys/hash-extra-jh.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/debug/build/xmr-crypto-6001af946545c1b8/out/sys/hash-extra-skein.o" "-c" "sys/hash-extra-skein.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/debug/build/xmr-crypto-6001af946545c1b8/out/sys/hash.o" "-c" "sys/hash.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/debug/build/xmr-crypto-6001af946545c1b8/out/sys/jh.o" "-c" "sys/jh.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/debug/build/xmr-crypto-6001af946545c1b8/out/sys/keccak.o" "-c" "sys/keccak.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/debug/build/xmr-crypto-6001af946545c1b8/out/sys/oaes_lib.o" "-c" "sys/oaes_lib.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/debug/build/xmr-crypto-6001af946545c1b8/out/sys/random.o" "-c" "sys/random.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/debug/build/xmr-crypto-6001af946545c1b8/out/sys/skein.o" "-c" "sys/skein.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/debug/build/xmr-crypto-6001af946545c1b8/out/sys/slow-hash.o" "-c" "sys/slow-hash.c"
cargo:warning=In file included from sys/slow-hash.c:73:0:
cargo:warning=sys/slow-hash.c: In function ‘aes_pseudo_round’:
cargo:warning=/usr/lib/gcc/x86_64-linux-gnu/5/include/wmmintrin.h:61:1: error: inlining failed in call to always_inline ‘_mm_aesenc_si128’: target specific option mismatch
cargo:warning= _mm_aesenc_si128 (__m128i __X, __m128i __Y)
cargo:warning= ^
cargo:warning=sys/slow-hash.c:346:11: error: called from here
cargo:warning=         d = _mm_aesenc_si128(d, *R128(&k[9]));
cargo:warning=           ^
cargo:warning=In file included from sys/slow-hash.c:73:0:
cargo:warning=/usr/lib/gcc/x86_64-linux-gnu/5/include/wmmintrin.h:61:1: error: inlining failed in call to always_inline ‘_mm_aesenc_si128’: target specific option mismatch
cargo:warning= _mm_aesenc_si128 (__m128i __X, __m128i __Y)
cargo:warning= ^
cargo:warning=sys/slow-hash.c:345:11: error: called from here
cargo:warning=         d = _mm_aesenc_si128(d, *R128(&k[8]));
cargo:warning=           ^
cargo:warning=In file included from sys/slow-hash.c:73:0:
cargo:warning=/usr/lib/gcc/x86_64-linux-gnu/5/include/wmmintrin.h:61:1: error: inlining failed in call to always_inline ‘_mm_aesenc_si128’: target specific option mismatch
cargo:warning= _mm_aesenc_si128 (__m128i __X, __m128i __Y)
cargo:warning= ^
cargo:warning=sys/slow-hash.c:344:11: error: called from here
cargo:warning=         d = _mm_aesenc_si128(d, *R128(&k[7]));
cargo:warning=           ^
cargo:warning=In file included from sys/slow-hash.c:73:0:
cargo:warning=/usr/lib/gcc/x86_64-linux-gnu/5/include/wmmintrin.h:61:1: error: inlining failed in call to always_inline ‘_mm_aesenc_si128’: target specific option mismatch
cargo:warning= _mm_aesenc_si128 (__m128i __X, __m128i __Y)
cargo:warning= ^
cargo:warning=sys/slow-hash.c:343:11: error: called from here
cargo:warning=         d = _mm_aesenc_si128(d, *R128(&k[6]));
cargo:warning=           ^
cargo:warning=In file included from sys/slow-hash.c:73:0:
cargo:warning=/usr/lib/gcc/x86_64-linux-gnu/5/include/wmmintrin.h:61:1: error: inlining failed in call to always_inline ‘_mm_aesenc_si128’: target specific option mismatch
cargo:warning= _mm_aesenc_si128 (__m128i __X, __m128i __Y)
cargo:warning= ^
cargo:warning=sys/slow-hash.c:342:11: error: called from here
cargo:warning=         d = _mm_aesenc_si128(d, *R128(&k[5]));
cargo:warning=           ^
cargo:warning=In file included from sys/slow-hash.c:73:0:
cargo:warning=/usr/lib/gcc/x86_64-linux-gnu/5/include/wmmintrin.h:61:1: error: inlining failed in call to always_inline ‘_mm_aesenc_si128’: target specific option mismatch
cargo:warning= _mm_aesenc_si128 (__m128i __X, __m128i __Y)
cargo:warning= ^
cargo:warning=sys/slow-hash.c:341:11: error: called from here
cargo:warning=         d = _mm_aesenc_si128(d, *R128(&k[4]));
cargo:warning=           ^
cargo:warning=In file included from sys/slow-hash.c:73:0:
cargo:warning=/usr/lib/gcc/x86_64-linux-gnu/5/include/wmmintrin.h:61:1: error: inlining failed in call to always_inline ‘_mm_aesenc_si128’: target specific option mismatch
cargo:warning= _mm_aesenc_si128 (__m128i __X, __m128i __Y)
cargo:warning= ^
cargo:warning=sys/slow-hash.c:340:11: error: called from here
cargo:warning=         d = _mm_aesenc_si128(d, *R128(&k[3]));
cargo:warning=           ^
cargo:warning=In file included from sys/slow-hash.c:73:0:
cargo:warning=/usr/lib/gcc/x86_64-linux-gnu/5/include/wmmintrin.h:61:1: error: inlining failed in call to always_inline ‘_mm_aesenc_si128’: target specific option mismatch
cargo:warning= _mm_aesenc_si128 (__m128i __X, __m128i __Y)
cargo:warning= ^
cargo:warning=sys/slow-hash.c:339:11: error: called from here
cargo:warning=         d = _mm_aesenc_si128(d, *R128(&k[2]));
cargo:warning=           ^
cargo:warning=In file included from sys/slow-hash.c:73:0:
cargo:warning=/usr/lib/gcc/x86_64-linux-gnu/5/include/wmmintrin.h:61:1: error: inlining failed in call to always_inline ‘_mm_aesenc_si128’: target specific option mismatch
cargo:warning= _mm_aesenc_si128 (__m128i __X, __m128i __Y)
cargo:warning= ^
cargo:warning=sys/slow-hash.c:338:11: error: called from here
cargo:warning=         d = _mm_aesenc_si128(d, *R128(&k[1]));
cargo:warning=           ^
cargo:warning=In file included from sys/slow-hash.c:73:0:
cargo:warning=/usr/lib/gcc/x86_64-linux-gnu/5/include/wmmintrin.h:61:1: error: inlining failed in call to always_inline ‘_mm_aesenc_si128’: target specific option mismatch
cargo:warning= _mm_aesenc_si128 (__m128i __X, __m128i __Y)
cargo:warning= ^
cargo:warning=sys/slow-hash.c:337:11: error: called from here
cargo:warning=         d = _mm_aesenc_si128(d, *R128(&k[0]));
cargo:warning=           ^
cargo:warning=In file included from sys/slow-hash.c:73:0:
cargo:warning=/usr/lib/gcc/x86_64-linux-gnu/5/include/wmmintrin.h:61:1: error: inlining failed in call to always_inline ‘_mm_aesenc_si128’: target specific option mismatch
cargo:warning= _mm_aesenc_si128 (__m128i __X, __m128i __Y)
cargo:warning= ^
cargo:warning=sys/slow-hash.c:346:11: error: called from here
cargo:warning=         d = _mm_aesenc_si128(d, *R128(&k[9]));
cargo:warning=           ^
cargo:warning=In file included from sys/slow-hash.c:73:0:
cargo:warning=/usr/lib/gcc/x86_64-linux-gnu/5/include/wmmintrin.h:61:1: error: inlining failed in call to always_inline ‘_mm_aesenc_si128’: target specific option mismatch
cargo:warning= _mm_aesenc_si128 (__m128i __X, __m128i __Y)
cargo:warning= ^
cargo:warning=sys/slow-hash.c:345:11: error: called from here
cargo:warning=         d = _mm_aesenc_si128(d, *R128(&k[8]));
cargo:warning=           ^
cargo:warning=In file included from sys/slow-hash.c:73:0:
cargo:warning=/usr/lib/gcc/x86_64-linux-gnu/5/include/wmmintrin.h:61:1: error: inlining failed in call to always_inline ‘_mm_aesenc_si128’: target specific option mismatch
cargo:warning= _mm_aesenc_si128 (__m128i __X, __m128i __Y)
cargo:warning= ^
cargo:warning=sys/slow-hash.c:344:11: error: called from here
cargo:warning=         d = _mm_aesenc_si128(d, *R128(&k[7]));
cargo:warning=           ^
cargo:warning=In file included from sys/slow-hash.c:73:0:
cargo:warning=/usr/lib/gcc/x86_64-linux-gnu/5/include/wmmintrin.h:61:1: error: inlining failed in call to always_inline ‘_mm_aesenc_si128’: target specific option mismatch
cargo:warning= _mm_aesenc_si128 (__m128i __X, __m128i __Y)
cargo:warning= ^
cargo:warning=sys/slow-hash.c:343:11: error: called from here
cargo:warning=         d = _mm_aesenc_si128(d, *R128(&k[6]));
cargo:warning=           ^
cargo:warning=In file included from sys/slow-hash.c:73:0:
cargo:warning=/usr/lib/gcc/x86_64-linux-gnu/5/include/wmmintrin.h:61:1: error: inlining failed in call to always_inline ‘_mm_aesenc_si128’: target specific option mismatch
cargo:warning= _mm_aesenc_si128 (__m128i __X, __m128i __Y)
cargo:warning= ^
cargo:warning=sys/slow-hash.c:342:11: error: called from here
cargo:warning=         d = _mm_aesenc_si128(d, *R128(&k[5]));
cargo:warning=           ^
cargo:warning=In file included from sys/slow-hash.c:73:0:
cargo:warning=/usr/lib/gcc/x86_64-linux-gnu/5/include/wmmintrin.h:61:1: error: inlining failed in call to always_inline ‘_mm_aesenc_si128’: target specific option mismatch
cargo:warning= _mm_aesenc_si128 (__m128i __X, __m128i __Y)
cargo:warning= ^
cargo:warning=sys/slow-hash.c:341:11: error: called from here
cargo:warning=         d = _mm_aesenc_si128(d, *R128(&k[4]));
cargo:warning=           ^
cargo:warning=In file included from sys/slow-hash.c:73:0:
cargo:warning=/usr/lib/gcc/x86_64-linux-gnu/5/include/wmmintrin.h:61:1: error: inlining failed in call to always_inline ‘_mm_aesenc_si128’: target specific option mismatch
cargo:warning= _mm_aesenc_si128 (__m128i __X, __m128i __Y)
cargo:warning= ^
cargo:warning=sys/slow-hash.c:340:11: error: called from here
cargo:warning=         d = _mm_aesenc_si128(d, *R128(&k[3]));
cargo:warning=           ^
cargo:warning=In file included from sys/slow-hash.c:73:0:
cargo:warning=/usr/lib/gcc/x86_64-linux-gnu/5/include/wmmintrin.h:61:1: error: inlining failed in call to always_inline ‘_mm_aesenc_si128’: target specific option mismatch
cargo:warning= _mm_aesenc_si128 (__m128i __X, __m128i __Y)
cargo:warning= ^
cargo:warning=sys/slow-hash.c:339:11: error: called from here
cargo:warning=         d = _mm_aesenc_si128(d, *R128(&k[2]));
cargo:warning=           ^
cargo:warning=In file included from sys/slow-hash.c:73:0:
cargo:warning=/usr/lib/gcc/x86_64-linux-gnu/5/include/wmmintrin.h:61:1: error: inlining failed in call to always_inline ‘_mm_aesenc_si128’: target specific option mismatch
cargo:warning= _mm_aesenc_si128 (__m128i __X, __m128i __Y)
cargo:warning= ^
cargo:warning=sys/slow-hash.c:338:11: error: called from here
cargo:warning=         d = _mm_aesenc_si128(d, *R128(&k[1]));
cargo:warning=           ^
cargo:warning=In file included from sys/slow-hash.c:73:0:
cargo:warning=/usr/lib/gcc/x86_64-linux-gnu/5/include/wmmintrin.h:61:1: error: inlining failed in call to always_inline ‘_mm_aesenc_si128’: target specific option mismatch
cargo:warning= _mm_aesenc_si128 (__m128i __X, __m128i __Y)
cargo:warning= ^
cargo:warning=sys/slow-hash.c:337:11: error: called from here
cargo:warning=         d = _mm_aesenc_si128(d, *R128(&k[0]));
cargo:warning=           ^
exit code: 1

--- stderr
thread 'main' panicked at '

Internal error occurred: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/debug/build/xmr-crypto-6001af946545c1b8/out/sys/slow-hash.o" "-c" "sys/slow-hash.c" with args "cc" did not execute successfully (status code exit code: 1).

', /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/cc-1.0.9/src/lib.rs:2070:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.

warning: build failed, waiting for other jobs to finish...
error: build failed
jeandudey commented 6 years ago

Hi! thanks for pointing this out. I haven't seen this error before let me investigate what could be causing it, it may be GCC error due to not passing the correct flags, i probably didn't noticed since that code was copied as in from the Monero source code with little modifications to have it standalone. In other news I'm going to update the slow_hash function in xmr-crypto due to the changes in Monero PoW. Also I think I'm going to setup CI today to catch these errors early because I'm on 32 bits arch.

Also don't try to cargo install yet, the synchronization node isn't complete yet, it's on early stages and I'm prototyping and refactoring yet.

shopglobal commented 6 years ago

Hey there. Thanks for your two cents. If I can get it running I would be able to diagnose points of concern. Please let me know what I can do to improve or simply help get it working on x86-64. Is there a preferred build method? I guess it's working as is on 32 bit chips?

shopglobal commented 6 years ago

Going to try with: 00a3027285888c16550cf69535c6d995372d362c

jeandudey commented 6 years ago

@shopglobal I think I've got it right with 4ac5f885, please try with it :+1:

shopglobal commented 6 years ago

@jeandudey success on @x86-64, after running cargo build now my build seems operational.

8 solved