casper-network / casper-db-utils

Utilities to perform operations on the lmdb databases for a casper-node.
Apache License 2.0
1 stars 7 forks source link

Compiler issue / Ubuntu server 20.04 #26

Closed daza85 closed 1 year ago

daza85 commented 1 year ago

This is what i get once i run "cargo build --release"

error: failed to run custom build command for jemalloc-sys v0.3.2

Caused by: process didn't exit successfully: /home/darren/casper-db-utils/target/release/build/jemalloc-sys-d96f0dc68fbad066/build-script-build (exit status: 101)

thread 'main' panicked at 'failed to execute command: No such file or directory (os error 2)', /home/darren/.cargo/registry/src/github.com-1ecc6299db9ec823/jemalloc-sys-0.3.2/build.rs:389:19

Full output from "cargo build --release"

Compiling serde_derive v1.0.152 Compiling ctor v0.1.26 Compiling tokio-macros v1.8.2 Compiling futures-macro v0.3.26 Compiling tracing-attributes v0.1.23 Compiling synstructure v0.12.6 Compiling thiserror-impl v1.0.38 Compiling openssl-macros v0.1.0 Compiling pin-project-internal v1.0.12 Compiling serde_derive_internals v0.25.0 Compiling datasize_derive v0.2.13 Compiling openssl-sys v0.9.80 Compiling vergen v3.2.0 Compiling jemalloc-sys v0.3.2 Compiling num-derive v0.3.3 Compiling lmdb-sys v0.8.0 Compiling regex v1.7.1 Compiling num-rational v0.2.4 Compiling enum-ordinalize v3.1.12 Compiling proc-macro-error v1.0.4 Compiling zstd-sys v2.0.7+zstd.1.5.4 Compiling enum-iterator-derive v0.6.0 Compiling addr2line v0.19.0 Compiling zstd-safe v5.0.2+zstd.1.5.2 Compiling convert_case v0.4.0 Compiling time-core v0.1.0 Compiling termcolor v1.1.3 Compiling rustc-demangle v0.1.21 Compiling lazycell v1.3.0 Compiling signal-hook v0.3.15 Compiling derp v0.0.14 Compiling clap_lex v0.2.4 Compiling quanta v0.7.2 Compiling async-trait v0.1.64 Compiling pem v0.8.3 Compiling sys-info v0.8.0 Compiling serde_repr v0.1.10 Compiling filetime v0.2.20 Compiling xattr v0.2.3 Compiling fs2 v0.4.3 Compiling encoding_rs v0.8.32 Compiling lmdb v0.8.0 Compiling time v0.3.18 Compiling openssl v0.10.45 Compiling native-tls v0.2.11 Compiling tokio-openssl v0.6.3 Compiling wheelbuf v0.2.0 Compiling strsim v0.10.0 Compiling ipnet v2.7.1 Compiling humantime v2.1.0 Compiling backtrace v0.3.67 Compiling structopt-derive v0.4.18 Compiling wasmi v0.8.0 Compiling derive_more v0.99.17 Compiling base64 v0.21.0 Compiling textwrap v0.16.0 Compiling casper-node v1.4.8 Compiling cache-padded v1.2.0 Compiling zstd v0.11.2+zstd.1.5.2 Compiling tar v0.4.38 Compiling ringbuf v0.2.8 Compiling enum-iterator v0.6.0 Compiling zeroize_derive v1.3.3 Compiling value-bag v1.0.0-alpha.9 Compiling educe v0.4.20 Compiling Inflector v0.11.4 Compiling schemars_derive v0.8.5 Compiling futures-util v0.3.26 Compiling zeroize v1.3.0 Compiling thiserror v1.0.38 Compiling pin-project v1.0.12 Compiling casper-node-macros v1.4.3 Compiling elliptic-curve v0.8.5 Compiling curve25519-dalek v3.2.1 Compiling structopt v0.3.26 Compiling ecdsa v0.10.2 Compiling k256 v0.7.3 Compiling serde v1.0.152 Compiling futures-executor v0.3.26 Compiling futures v0.3.26

error: failed to run custom build command for jemalloc-sys v0.3.2

Caused by: process didn't exit successfully: /home/darren/casper-db-utils/target/release/build/jemalloc-sys-d96f0dc68fbad066/build-script-build (exit status: 101) --- stdout TARGET=x86_64-unknown-linux-gnu HOST=x86_64-unknown-linux-gnu NUM_JOBS=40 OUT_DIR="/home/darren/casper-db-utils/target/release/build/jemalloc-sys-840f646a48e6a907/out" BUILD_DIR="/home/darren/casper-db-utils/target/release/build/jemalloc-sys-840f646a48e6a907/out/build" SRC_DIR="/home/darren/.cargo/registry/src/github.com-1ecc6299db9ec823/jemalloc-sys-0.3.2" OPT_LEVEL = Some("3") TARGET = Some("x86_64-unknown-linux-gnu") HOST = Some("x86_64-unknown-linux-gnu") cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu CC_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu CC_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_CC HOST_CC = None cargo:rerun-if-env-changed=CC CC = None cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu CFLAGS_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu CFLAGS_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_CFLAGS HOST_CFLAGS = None cargo:rerun-if-env-changed=CFLAGS CFLAGS = None cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None DEBUG = Some("false") CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2") CC="cc" CFLAGS="-O3 -ffunction-sections -fdata-sections -fPIC -m64 -Wall" JEMALLOC_REPO_DIR="jemalloc" JEMALLOC_SRC_DIR="/home/darren/casper-db-utils/target/release/build/jemalloc-sys-840f646a48e6a907/out/jemalloc" cargo:rustc-cfg=prefixed --with-jemalloc-prefix=rjem running: "sh" "/home/darren/casper-db-utils/target/release/build/jemalloc-sys-840f646a48e6a907/out/jemalloc/configure" "--disable-cxx" "--with-jemalloc-prefix=rjem" "--with-private-namespace=rjem" "--host=x86_64-unknown-linux-gnu" "--build=x86_64-unknown-linux-gnu" "--prefix=/home/darren/casper-db-utils/target/release/build/jemalloc-sys-840f646a48e6a907/out" checking for xsltproc... false checking for x86_64-unknown-linux-gnu-gcc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking whether compiler is cray... no checking whether compiler supports -std=gnu11... yes checking whether compiler supports -Wall... yes checking whether compiler supports -Wshorten-64-to-32... no checking whether compiler supports -Wsign-compare... yes checking whether compiler supports -Wundef... yes checking whether compiler supports -Wno-format-zero-length... yes checking whether compiler supports -pipe... yes checking whether compiler supports -g3... yes checking how to run the C preprocessor... cc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking whether byte ordering is bigendian... no checking size of void ... 8 checking size of int... 4 checking size of long... 8 checking size of long long... 8 checking size of intmax_t... 8 checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking whether pause instruction is compilable... yes checking number of significant virtual address bits... 48 checking for x86_64-unknown-linux-gnu-ar... no checking for ar... ar checking for x86_64-unknown-linux-gnu-nm... no checking for nm... nm checking for gawk... gawk checking malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes checking whether malloc_usable_size definition can use const argument... no checking for library containing log... -lm checking whether attribute syntax is compilable... yes checking whether compiler supports -fvisibility=hidden... yes checking whether compiler supports -fvisibility=hidden... no checking whether compiler supports -Werror... yes checking whether compiler supports -herror_on_warning... no checking whether tls_model attribute is compilable... yes checking whether compiler supports -Werror... yes checking whether compiler supports -herror_on_warning... no checking whether alloc_size attribute is compilable... yes checking whether compiler supports -Werror... yes checking whether compiler supports -herror_on_warning... no checking whether format(gnu_printf, ...) attribute is compilable... yes checking whether compiler supports -Werror... yes checking whether compiler supports -herror_on_warning... no checking whether format(printf, ...) attribute is compilable... yes checking for a BSD-compatible install... /usr/bin/install -c checking for x86_64-unknown-linux-gnu-ranlib... no checking for ranlib... ranlib checking for ld... /usr/bin/ld checking for autoconf... false checking for memalign... yes checking for valloc... yes checking whether compiler supports -O3... yes checking whether compiler supports -O3... no checking whether compiler supports -funroll-loops... yes checking configured backtracing method... N/A checking for sbrk... yes checking whether utrace(2) is compilable... no checking whether a program using builtin_unreachable is compilable... yes checking whether a program using __builtin_ffsl is compilable... yes checking LG_PAGE... 12 checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking for pthread_create in -lpthread... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for dlsym... no checking for dlsym in -ldl... yes checking whether pthread_atfork(3) is compilable... yes checking whether pthread_setname_np(3) is compilable... yes checking for library containing clock_gettime... none required checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable... yes checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable... yes checking whether mach_absolute_time() is compilable... no checking whether compiler supports -Werror... yes checking whether syscall(2) is compilable... yes checking for secure_getenv... yes checking for sched_getcpu... yes checking for sched_setaffinity... yes checking for issetugid... no checking for _malloc_thread_cleanup... no checking for _pthread_mutex_init_calloc_cb... no checking for TLS... yes checking whether C11 atomics is compilable... yes checking whether GCC atomic atomics is compilable... yes checking whether GCC __sync atomics is compilable... yes checking whether Darwin OSAtomic() is compilable... no checking whether madvise(2) is compilable... yes checking whether madvise(..., MADV_FREE) is compilable... yes checking whether madvise(..., MADV_DONTNEED) is compilable... yes checking whether madvise(..., MADVDO[NT]DUMP) is compilable... yes checking whether madvise(..., MADV[NO]HUGEPAGE) is compilable... yes checking whether to force 32-bit sync_{add,sub}_and_fetch()... no checking whether to force 64-bit _sync{add,sub}_and_fetch()... no checking for builtin_clz... yes checking whether Darwin os_unfairlock() is compilable... no checking whether Darwin OSSpin() is compilable... no checking whether glibc malloc hook is compilable... yes checking whether glibc memalign hook is compilable... yes checking whether pthreads adaptive mutexes is compilable... yes checking whether compiler supports -D_GNU_SOURCE... yes checking whether compiler supports -Werror... yes checking whether compiler supports -herror_on_warning... no checking whether strerror_r returns char with gnu source is compilable... yes checking for stdbool.h that conforms to C99... yes checking for _Bool... yes configure: creating ./config.status config.status: creating Makefile config.status: creating jemalloc.pc config.status: creating doc/html.xsl config.status: creating doc/manpages.xsl config.status: creating doc/jemalloc.xml config.status: creating include/jemalloc/jemalloc_macros.h config.status: creating include/jemalloc/jemalloc_protos.h config.status: creating include/jemalloc/jemalloc_typedefs.h config.status: creating include/jemalloc/internal/jemalloc_preamble.h config.status: creating test/test.sh config.status: creating test/include/test/jemalloc_test.h config.status: creating config.stamp config.status: creating bin/jemalloc-config config.status: creating bin/jemalloc.sh config.status: creating bin/jeprof config.status: creating include/jemalloc/jemalloc_defs.h config.status: include/jemalloc/jemalloc_defs.h is unchanged config.status: creating include/jemalloc/internal/jemalloc_internal_defs.h config.status: include/jemalloc/internal/jemalloc_internal_defs.h is unchanged config.status: creating test/include/test/jemalloc_test_defs.h config.status: test/include/test/jemalloc_test_defs.h is unchanged config.status: executing include/jemalloc/internal/public_symbols.txt commands config.status: executing include/jemalloc/internal/private_symbols.awk commands config.status: executing include/jemalloc/internal/private_symbols_jet.awk commands config.status: executing include/jemalloc/internal/public_namespace.h commands config.status: executing include/jemalloc/internal/public_unnamespace.h commands config.status: executing include/jemalloc/internal/size_classes.h commands config.status: executing include/jemalloc/jemalloc_protos_jet.h commands config.status: executing include/jemalloc/jemalloc_rename.h commands config.status: executing include/jemalloc/jemalloc_mangle.h commands config.status: executing include/jemalloc/jemalloc_mangle_jet.h commands config.status: executing include/jemalloc/jemalloc.h commands

jemalloc version : 0.0.0-0-g0000000000000000000000000000000000000000 library revision : 2

CONFIG : --disable-cxx --with-jemalloc-prefix=rjem --with-private-namespace=rjem --host=x86_64-unknown-linux-gnu --build=x86_64-unknown-linux-gnu --prefix=/home/darren/casper-db-utils/target/release/build/jemalloc-sys-840f646a48e6a907/out build_alias=x86_64-unknown-linux-gnu host_alias=x86_64-unknown-linux-gnu CC=cc 'CFLAGS=-O3 -ffunction-sections -fdata-sections -fPIC -m64 -Wall' 'LDFLAGS=-O3 -ffunction-sections -fdata-sections -fPIC -m64 -Wall' 'CPPFLAGS=-O3 -ffunction-sections -fdata-sections -fPIC -m64 -Wall' CC : cc CONFIGURE_CFLAGS : -std=gnu11 -Wall -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops SPECIFIED_CFLAGS : -O3 -ffunction-sections -fdata-sections -fPIC -m64 -Wall EXTRA_CFLAGS : CPPFLAGS : -O3 -ffunction-sections -fdata-sections -fPIC -m64 -Wall -D_GNU_SOURCE -D_REENTRANT CXX : CONFIGURE_CXXFLAGS : SPECIFIED_CXXFLAGS : EXTRA_CXXFLAGS : LDFLAGS : -O3 -ffunction-sections -fdata-sections -fPIC -m64 -Wall EXTRA_LDFLAGS : DSO_LDFLAGS : -shared -Wl,-soname,$(@F) LIBS : -lm -lpthread -ldl RPATH_EXTRA :

XSLTPROC : false XSLROOT :

PREFIX : /home/darren/casper-db-utils/target/release/build/jemalloc-sys-840f646a48e6a907/out BINDIR : /home/darren/casper-db-utils/target/release/build/jemalloc-sys-840f646a48e6a907/out/bin DATADIR : /home/darren/casper-db-utils/target/release/build/jemalloc-sys-840f646a48e6a907/out/share INCLUDEDIR : /home/darren/casper-db-utils/target/release/build/jemalloc-sys-840f646a48e6a907/out/include LIBDIR : /home/darren/casper-db-utils/target/release/build/jemalloc-sys-840f646a48e6a907/out/lib MANDIR : /home/darren/casper-db-utils/target/release/build/jemalloc-sys-840f646a48e6a907/out/share/man

srcroot : /home/darren/casper-db-utils/target/release/build/jemalloc-sys-840f646a48e6a907/out/jemalloc/ abs_srcroot : /home/darren/casper-db-utils/target/release/build/jemalloc-sys-840f646a48e6a907/out/jemalloc/ objroot : abs_objroot : /home/darren/casper-db-utils/target/release/build/jemalloc-sys-840f646a48e6a907/out/build/

JEMALLOC_PREFIX : rjem JEMALLOC_PRIVATE_NAMESPACE : _rjemje install_suffix : malloc_conf : autogen : 0 debug : 0 stats : 1 prof : 0 prof-libunwind : 0 prof-libgcc : 0 prof-gcc : 0 fill : 1 utrace : 0 xmalloc : 0 log : 0 lazy_lock : 0 cache-oblivious : 1 cxx : 0

running: "make" "srcroot=../jemalloc/" "-j" "40"

--- stderr thread 'main' panicked at 'failed to execute command: No such file or directory (os error 2)', /home/darren/.cargo/registry/src/github.com-1ecc6299db9ec823/jemalloc-sys-0.3.2/build.rs:389:19 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace warning: build failed, waiting for other jobs to finish...

daza85 commented 1 year ago

When running "RUST_BACKTRACE=full cargo build --release"

The FULL output is:

Updating crates.io index

Compiling libc v0.2.139 Compiling fs_extra v1.3.0 Compiling cc v1.0.79 Compiling jemalloc-sys v0.3.2 (/home/darren/.cargo/registry/src/github.com-1ecc6299db9ec823/jemalloc-sys-0.3.2) error: failed to run custom build command for jemalloc-sys v0.3.2 (/home/darren/.cargo/registry/src/github.com-1ecc6299db9ec823/jemalloc-sys-0.3.2)

Caused by: process didn't exit successfully: /home/darren/.cargo/registry/src/github.com-1ecc6299db9ec823/jemalloc-sys-0.3.2/target/release/build/jemalloc-sys-b43c89302bec4aab/build-script-build (exit status: 101) --- stdout TARGET=x86_64-unknown-linux-gnu HOST=x86_64-unknown-linux-gnu NUM_JOBS=40 OUT_DIR="/home/darren/.cargo/registry/src/github.com-1ecc6299db9ec823/jemalloc-sys-0.3.2/target/release/build/jemalloc-sys-595ffc14b9f7baef/out" BUILD_DIR="/home/darren/.cargo/registry/src/github.com-1ecc6299db9ec823/jemalloc-sys-0.3.2/target/release/build/jemalloc-sys-595ffc14b9f7baef/out/build" SRC_DIR="/home/darren/.cargo/registry/src/github.com-1ecc6299db9ec823/jemalloc-sys-0.3.2" OPT_LEVEL = Some("3") TARGET = Some("x86_64-unknown-linux-gnu") HOST = Some("x86_64-unknown-linux-gnu") cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu CC_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu CC_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_CC HOST_CC = None cargo:rerun-if-env-changed=CC CC = None cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu CFLAGS_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu CFLAGS_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_CFLAGS HOST_CFLAGS = None cargo:rerun-if-env-changed=CFLAGS CFLAGS = None cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None DEBUG = Some("false") CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2") CC="cc" CFLAGS="-O3 -ffunction-sections -fdata-sections -fPIC -m64 -Wall" JEMALLOC_REPO_DIR="jemalloc" JEMALLOC_SRC_DIR="/home/darren/.cargo/registry/src/github.com-1ecc6299db9ec823/jemalloc-sys-0.3.2/target/release/build/jemalloc-sys-595ffc14b9f7baef/out/jemalloc" cargo:rustc-cfg=prefixed --with-jemalloc-prefix=rjem running: "sh" "/home/darren/.cargo/registry/src/github.com-1ecc6299db9ec823/jemalloc-sys-0.3.2/target/release/build/jemalloc-sys-595ffc14b9f7baef/out/jemalloc/configure" "--disable-cxx" "--with-jemalloc-prefix=rjem" "--with-private-namespace=rjem" "--host=x86_64-unknown-linux-gnu" "--build=x86_64-unknown-linux-gnu" "--prefix=/home/darren/.cargo/registry/src/github.com-1ecc6299db9ec823/jemalloc-sys-0.3.2/target/release/build/jemalloc-sys-595ffc14b9f7baef/out" checking for xsltproc... false checking for x86_64-unknown-linux-gnu-gcc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking whether compiler is cray... no checking whether compiler supports -std=gnu11... yes checking whether compiler supports -Wall... yes checking whether compiler supports -Wshorten-64-to-32... no checking whether compiler supports -Wsign-compare... yes checking whether compiler supports -Wundef... yes checking whether compiler supports -Wno-format-zero-length... yes checking whether compiler supports -pipe... yes checking whether compiler supports -g3... yes checking how to run the C preprocessor... cc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking whether byte ordering is bigendian... no checking size of void ... 8 checking size of int... 4 checking size of long... 8 checking size of long long... 8 checking size of intmax_t... 8 checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking whether pause instruction is compilable... yes checking number of significant virtual address bits... 48 checking for x86_64-unknown-linux-gnu-ar... no checking for ar... ar checking for x86_64-unknown-linux-gnu-nm... no checking for nm... nm checking for gawk... gawk checking malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes checking whether malloc_usable_size definition can use const argument... no checking for library containing log... -lm checking whether attribute syntax is compilable... yes checking whether compiler supports -fvisibility=hidden... yes checking whether compiler supports -fvisibility=hidden... no checking whether compiler supports -Werror... yes checking whether compiler supports -herror_on_warning... no checking whether tls_model attribute is compilable... yes checking whether compiler supports -Werror... yes checking whether compiler supports -herror_on_warning... no checking whether alloc_size attribute is compilable... yes checking whether compiler supports -Werror... yes checking whether compiler supports -herror_on_warning... no checking whether format(gnu_printf, ...) attribute is compilable... yes checking whether compiler supports -Werror... yes checking whether compiler supports -herror_on_warning... no checking whether format(printf, ...) attribute is compilable... yes checking for a BSD-compatible install... /usr/bin/install -c checking for x86_64-unknown-linux-gnu-ranlib... no checking for ranlib... ranlib checking for ld... /usr/bin/ld checking for autoconf... false checking for memalign... yes checking for valloc... yes checking whether compiler supports -O3... yes checking whether compiler supports -O3... no checking whether compiler supports -funroll-loops... yes checking configured backtracing method... N/A checking for sbrk... yes checking whether utrace(2) is compilable... no checking whether a program using builtin_unreachable is compilable... yes checking whether a program using __builtin_ffsl is compilable... yes checking LG_PAGE... 12 Missing VERSION file, and unable to generate it; creating bogus VERSION checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking for pthread_create in -lpthread... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for dlsym... no checking for dlsym in -ldl... yes checking whether pthread_atfork(3) is compilable... yes checking whether pthread_setname_np(3) is compilable... yes checking for library containing clock_gettime... none required checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable... yes checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable... yes checking whether mach_absolute_time() is compilable... no checking whether compiler supports -Werror... yes checking whether syscall(2) is compilable... yes checking for secure_getenv... yes checking for sched_getcpu... yes checking for sched_setaffinity... yes checking for issetugid... no checking for _malloc_thread_cleanup... no checking for _pthread_mutex_init_calloc_cb... no checking for TLS... yes checking whether C11 atomics is compilable... yes checking whether GCC atomic atomics is compilable... yes checking whether GCC __sync atomics is compilable... yes checking whether Darwin OSAtomic() is compilable... no checking whether madvise(2) is compilable... yes checking whether madvise(..., MADV_FREE) is compilable... yes checking whether madvise(..., MADV_DONTNEED) is compilable... yes checking whether madvise(..., MADVDO[NT]DUMP) is compilable... yes checking whether madvise(..., MADV[NO]HUGEPAGE) is compilable... yes checking whether to force 32-bit sync_{add,sub}_and_fetch()... no checking whether to force 64-bit _sync{add,sub}_and_fetch()... no checking for builtin_clz... yes checking whether Darwin os_unfairlock() is compilable... no checking whether Darwin OSSpin() is compilable... no checking whether glibc malloc hook is compilable... yes checking whether glibc memalign hook is compilable... yes checking whether pthreads adaptive mutexes is compilable... yes checking whether compiler supports -D_GNU_SOURCE... yes checking whether compiler supports -Werror... yes checking whether compiler supports -herror_on_warning... no checking whether strerror_r returns char with gnu source is compilable... yes checking for stdbool.h that conforms to C99... yes checking for _Bool... yes configure: creating ./config.status config.status: creating Makefile config.status: creating jemalloc.pc config.status: creating doc/html.xsl config.status: creating doc/manpages.xsl config.status: creating doc/jemalloc.xml config.status: creating include/jemalloc/jemalloc_macros.h config.status: creating include/jemalloc/jemalloc_protos.h config.status: creating include/jemalloc/jemalloc_typedefs.h config.status: creating include/jemalloc/internal/jemalloc_preamble.h config.status: creating test/test.sh config.status: creating test/include/test/jemalloc_test.h config.status: creating config.stamp config.status: creating bin/jemalloc-config config.status: creating bin/jemalloc.sh config.status: creating bin/jeprof config.status: creating include/jemalloc/jemalloc_defs.h config.status: creating include/jemalloc/internal/jemalloc_internal_defs.h config.status: creating test/include/test/jemalloc_test_defs.h config.status: executing include/jemalloc/internal/public_symbols.txt commands config.status: executing include/jemalloc/internal/private_symbols.awk commands config.status: executing include/jemalloc/internal/private_symbols_jet.awk commands config.status: executing include/jemalloc/internal/public_namespace.h commands config.status: executing include/jemalloc/internal/public_unnamespace.h commands config.status: executing include/jemalloc/internal/size_classes.h commands config.status: executing include/jemalloc/jemalloc_protos_jet.h commands config.status: executing include/jemalloc/jemalloc_rename.h commands config.status: executing include/jemalloc/jemalloc_mangle.h commands config.status: executing include/jemalloc/jemalloc_mangle_jet.h commands config.status: executing include/jemalloc/jemalloc.h commands

jemalloc version : 0.0.0-0-g0000000000000000000000000000000000000000 library revision : 2

CONFIG : --disable-cxx --with-jemalloc-prefix=rjem --with-private-namespace=rjem --host=x86_64-unknown-linux-gnu --build=x86_64-unknown-linux-gnu --prefix=/home/darren/.cargo/registry/src/github.com-1ecc6299db9ec823/jemalloc-sys-0.3.2/target/release/build/jemalloc-sys-595ffc14b9f7baef/out build_alias=x86_64-unknown-linux-gnu host_alias=x86_64-unknown-linux-gnu CC=cc 'CFLAGS=-O3 -ffunction-sections -fdata-sections -fPIC -m64 -Wall' 'LDFLAGS=-O3 -ffunction-sections -fdata-sections -fPIC -m64 -Wall' 'CPPFLAGS=-O3 -ffunction-sections -fdata-sections -fPIC -m64 -Wall' CC : cc CONFIGURE_CFLAGS : -std=gnu11 -Wall -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops SPECIFIED_CFLAGS : -O3 -ffunction-sections -fdata-sections -fPIC -m64 -Wall EXTRA_CFLAGS : CPPFLAGS : -O3 -ffunction-sections -fdata-sections -fPIC -m64 -Wall -D_GNU_SOURCE -D_REENTRANT CXX : CONFIGURE_CXXFLAGS : SPECIFIED_CXXFLAGS : EXTRA_CXXFLAGS : LDFLAGS : -O3 -ffunction-sections -fdata-sections -fPIC -m64 -Wall EXTRA_LDFLAGS : DSO_LDFLAGS : -shared -Wl,-soname,$(@F) LIBS : -lm -lpthread -ldl RPATH_EXTRA :

XSLTPROC : false XSLROOT :

PREFIX : /home/darren/.cargo/registry/src/github.com-1ecc6299db9ec823/jemalloc-sys-0.3.2/target/release/build/jemalloc-sys-595ffc14b9f7baef/out BINDIR : /home/darren/.cargo/registry/src/github.com-1ecc6299db9ec823/jemalloc-sys-0.3.2/target/release/build/jemalloc-sys-595ffc14b9f7baef/out/bin DATADIR : /home/darren/.cargo/registry/src/github.com-1ecc6299db9ec823/jemalloc-sys-0.3.2/target/release/build/jemalloc-sys-595ffc14b9f7baef/out/share INCLUDEDIR : /home/darren/.cargo/registry/src/github.com-1ecc6299db9ec823/jemalloc-sys-0.3.2/target/release/build/jemalloc-sys-595ffc14b9f7baef/out/include LIBDIR : /home/darren/.cargo/registry/src/github.com-1ecc6299db9ec823/jemalloc-sys-0.3.2/target/release/build/jemalloc-sys-595ffc14b9f7baef/out/lib MANDIR : /home/darren/.cargo/registry/src/github.com-1ecc6299db9ec823/jemalloc-sys-0.3.2/target/release/build/jemalloc-sys-595ffc14b9f7baef/out/share/man

srcroot : /home/darren/.cargo/registry/src/github.com-1ecc6299db9ec823/jemalloc-sys-0.3.2/target/release/build/jemalloc-sys-595ffc14b9f7baef/out/jemalloc/ abs_srcroot : /home/darren/.cargo/registry/src/github.com-1ecc6299db9ec823/jemalloc-sys-0.3.2/target/release/build/jemalloc-sys-595ffc14b9f7baef/out/jemalloc/ objroot : abs_objroot : /home/darren/.cargo/registry/src/github.com-1ecc6299db9ec823/jemalloc-sys-0.3.2/target/release/build/jemalloc-sys-595ffc14b9f7baef/out/build/

JEMALLOC_PREFIX : rjem JEMALLOC_PRIVATE_NAMESPACE : _rjemje install_suffix : malloc_conf : autogen : 0 debug : 0 stats : 1 prof : 0 prof-libunwind : 0 prof-libgcc : 0 prof-gcc : 0 fill : 1 utrace : 0 xmalloc : 0 log : 0 lazy_lock : 0 cache-oblivious : 1 cxx : 0

running: "make" "srcroot=../jemalloc/" "-j" "40"

--- stderr thread 'main' panicked at 'failed to execute command: No such file or directory (os error 2)', build.rs:389:19 stack backtrace: 0: 0x563acfb2db2a - std::backtrace_rs::backtrace::libunwind::trace::h79937bc171ada62c at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 1: 0x563acfb2db2a - std::backtrace_rs::backtrace::trace_unsynchronized::h2292bca8571cb919 at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 2: 0x563acfb2db2a - std::sys_common::backtrace::_print_fmt::h9c461f248e4ae90d at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/sys_common/backtrace.rs:65:5 3: 0x563acfb2db2a - ::fmt::he9fe6bf1a39182e1 at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/sys_common/backtrace.rs:44:22 4: 0x563acfb4ddae - core::fmt::write::h032658c119c720d7 at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/core/src/fmt/mod.rs:1208:17 5: 0x563acfb2a455 - std::io::Write::write_fmt::h299fc90dfae41c0d at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/io/mod.rs:1682:15 6: 0x563acfb2d8f5 - std::sys_common::backtrace::_print::heb70d25df9937e3f at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/sys_common/backtrace.rs:47:5 7: 0x563acfb2d8f5 - std::sys_common::backtrace::print::had745c0a76b8b521 at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/sys_common/backtrace.rs:34:9 8: 0x563acfb2f27f - std::panicking::default_hook::{{closure}}::h1ea782cdfa2fd097 at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/panicking.rs:267:22 9: 0x563acfb2efbb - std::panicking::default_hook::h1cc3af63455a163c at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/panicking.rs:286:9 10: 0x563acfb2f98c - std::panicking::rust_panic_with_hook::h5cafdc4b3bfd5528 at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/panicking.rs:688:13 11: 0x563acfb2f729 - std::panicking::begin_panic_handler::{{closure}}::hf31c60f40775892c at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/panicking.rs:579:13 12: 0x563acfb2dfdc - std::sys_common::backtrace::__rust_end_short_backtrace::h28a5c7be595826cd at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/sys_common/backtrace.rs:137:18 13: 0x563acfb2f432 - rust_begin_unwind at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/panicking.rs:575:5 14: 0x563acfab26f3 - core::panicking::panic_fmt::h8fa27a0b37dd98b7 at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/core/src/panicking.rs:64:14 15: 0x563acfab7d01 - build_script_build::run::h3e669c4a82ad9594 16: 0x563acfab68cf - build_script_build::main::h673479d94f6d794a 17: 0x563acfac24d3 - core::ops::function::FnOnce::call_once::hda4bc91ba78040e0 18: 0x563acfac2009 - std::sys_common::backtrace::rust_begin_short_backtrace::hba2f4187c334301b 19: 0x563acfabb829 - std::rt::lang_start::{{closure}}::h03a3a6dda7bad05e 20: 0x563acfb2646c - core::ops::function::impls::<impl core::ops::function::FnOnce for &F>::call_once::hfa1c3687c9a20bb8 at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/core/src/ops/function.rs:606:13 21: 0x563acfb2646c - std::panicking::try::do_call::h0497133ebe1341e5 at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/panicking.rs:483:40 22: 0x563acfb2646c - std::panicking::try::h6c3de05c7ca5d07f at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/panicking.rs:447:19 23: 0x563acfb2646c - std::panic::catch_unwind::h969058ecb5334b30 at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/panic.rs:137:14 24: 0x563acfb2646c - std::rt::lang_start_internal::{{closure}}::h0de6d98cafb42a58 at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/rt.rs:148:48 25: 0x563acfb2646c - std::panicking::try::do_call::h77301dcf43953993 at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/panicking.rs:483:40 26: 0x563acfb2646c - std::panicking::try::h45b05523a2fe135a at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/panicking.rs:447:19 27: 0x563acfb2646c - std::panic::catch_unwind::hd95cea544b2b9bd2 at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/panic.rs:137:14 28: 0x563acfb2646c - std::rt::lang_start_internal::hd16e6ff7bf05a444 at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/rt.rs:148:20 29: 0x563acfabb807 - std::rt::lang_start::h124b1dc77da7156a 30: 0x563acfab81e5 - main 31: 0x7f5fe4276083 - libc_start_main 32: 0x563acfab2c5e - _start 33: 0x0 -

daza85 commented 1 year ago

Both these issues were overcome and main document edited to show the issues and changes made to successfully compile the tool.

  1. openssl error - "sudo apt install libssl-dev" as libssl-dev was missing this fixed the openssl error
  2. sudo apt-get install make

the above overcame the issues

georgepisaltu commented 1 year ago

Thanks for opening this issue. I saw this at the time you opened it but I didn't get around to responding. I'm glad you found the root cause. I'm closing this now.