tikv / jemallocator

Rust allocator using jemalloc as a backend
Other
332 stars 52 forks source link

No such file or directory in GH CI #79

Closed TheDan64 closed 2 months ago

TheDan64 commented 2 months ago
#18 80.98   --- stdout
#18 80.98   TARGET=x86_64-unknown-linux-gnu
#18 80.98   HOST=x86_64-unknown-linux-gnu
#18 80.98   NUM_JOBS=4
#18 80.98   OUT_DIR="/project/target/release/build/tikv-jemalloc-sys-86b593aacf9aa27d/out"
#18 80.98   BUILD_DIR="/project/target/release/build/tikv-jemalloc-sys-86b593aacf9aa27d/out/build"
#18 80.98   SRC_DIR="/usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/tikv-jemalloc-sys-0.5.4+5.3.0-patched"
#18 80.98   cargo:rustc-cfg=prefixed
#18 80.98   cargo:rerun-if-env-changed=JEMALLOC_OVERRIDE
#18 80.98   OPT_LEVEL = Some("3")
#18 80.98   TARGET = Some("x86_64-unknown-linux-gnu")
#18 80.98   HOST = Some("x86_64-unknown-linux-gnu")
#18 80.98   cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu
#18 80.98   CC_x86_64-unknown-linux-gnu = None
#18 80.98   cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu
#18 80.98   CC_x86_64_unknown_linux_gnu = None
#18 80.98   cargo:rerun-if-env-changed=HOST_CC
#18 80.98   HOST_CC = None
#18 80.98   cargo:rerun-if-env-changed=CC
#18 80.98   CC = None
#18 80.98   cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu
#18 80.98   CFLAGS_x86_64-unknown-linux-gnu = None
#18 80.98   cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu
#18 80.98   CFLAGS_x86_64_unknown_linux_gnu = None
#18 80.98   cargo:rerun-if-env-changed=HOST_CFLAGS
#18 80.98   HOST_CFLAGS = None
#18 80.98   cargo:rerun-if-env-changed=CFLAGS
#18 80.98   CFLAGS = None
#18 80.98   cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
#18 80.98   CRATE_CC_NO_DEFAULTS = None
#18 80.98   DEBUG = Some("false")
#18 80.98   CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
#18 80.98   CC="cc"
#18 80.98   CFLAGS="-O3 -ffunction-sections -fdata-sections -fPIC -m64 -Wall"
#18 80.98   JEMALLOC_REPO_DIR="jemalloc"
#18 80.98   cargo:rerun-if-env-changed=JEMALLOC_SYS_WITH_MALLOC_CONF
#18 80.98   cargo:rerun-if-env-changed=JEMALLOC_SYS_WITH_LG_PAGE
#18 80.98   cargo:rerun-if-env-changed=JEMALLOC_SYS_WITH_LG_HUGEPAGE
#18 80.98   cargo:rerun-if-env-changed=JEMALLOC_SYS_WITH_LG_QUANTUM
#18 80.98   cargo:rerun-if-env-changed=JEMALLOC_SYS_WITH_LG_VADDR
#18 80.98   --with-jemalloc-prefix=_rjem_
#18 80.98   running: cd "/project/target/release/build/tikv-jemalloc-sys-86b593aacf9aa27d/out/build" && CC="cc" CFLAGS="-O3 -ffunction-sections -fdata-sections -fPIC -m64 -Wall" CPPFLAGS="-O3 -ffunction-sections -fdata-sections -fPIC -m64 -Wall" LDFLAGS="-O3 -ffunction-sections -fdata-sections -fPIC -m64 -Wall" "sh" "/project/target/release/build/tikv-jemalloc-sys-86b593aacf9aa27d/out/build/configure" "--disable-cxx" "--enable-doc=no" "--enable-shared=no" "--with-jemalloc-prefix=_rjem_" "--with-private-namespace=_rjem_" "--host=x86_64-unknown-linux-gnu" "--build=x86_64-unknown-linux-gnu" "--prefix=/project/target/release/build/tikv-jemalloc-sys-86b593aacf9aa27d/out"
#18 80.98   checking for xsltproc... false
#18 80.98   checking for x86_64-unknown-linux-gnu-gcc... cc
#18 80.98   checking whether the C compiler works... yes
#18 80.98   checking for C compiler default output file name... a.out
#18 80.98   checking for suffix of executables... 
#18 80.98   checking whether we are cross compiling... no
#18 80.98   checking for suffix of object files... o
#18 80.98   checking whether we are using the GNU C compiler... yes
#18 80.98   checking whether cc accepts -g... yes
#18 80.98   checking for cc option to accept ISO C89... none needed
#18 80.98   checking whether compiler is cray... no
#18 80.98   checking whether compiler supports -std=gnu11... yes
#18 80.98   checking whether compiler supports -Werror=unknown-warning-option... no
#18 80.98   checking whether compiler supports -Wall... yes
#18 80.98   checking whether compiler supports -Wextra... yes
#18 80.98   checking whether compiler supports -Wshorten-64-to-32... no
#18 80.98   checking whether compiler supports -Wsign-compare... yes
#18 80.98   checking whether compiler supports -Wundef... yes
#18 80.98   checking whether compiler supports -Wno-format-zero-length... yes
#18 80.98   checking whether compiler supports -Wpointer-arith... yes
#18 80.98   checking whether compiler supports -Wno-missing-braces... yes
#18 80.98   checking whether compiler supports -Wno-missing-field-initializers... yes
#18 80.98   checking whether compiler supports -Wno-missing-attributes... yes
#18 80.98   checking whether compiler supports -pipe... yes
#18 80.98   checking whether compiler supports -g3... yes
#18 80.98   checking how to run the C preprocessor... cc -E
#18 80.98   checking for grep that handles long lines and -e... /bin/grep
#18 80.98   checking for egrep... /bin/grep -E
#18 80.98   checking for ANSI C header files... yes
#18 80.98   checking for sys/types.h... yes
#18 80.98   checking for sys/stat.h... yes
#18 80.98   checking for stdlib.h... yes
#18 80.98   checking for string.h... yes
#18 80.98   checking for memory.h... yes
#18 80.98   checking for strings.h... yes
#18 80.98   checking for inttypes.h... yes
#18 80.98   checking for stdint.h... yes
#18 80.98   checking for unistd.h... yes
#18 80.98   checking whether byte ordering is bigendian... no
#18 80.98   checking size of void *... 8
#18 80.98   checking size of int... 4
#18 80.98   checking size of long... 8
#18 80.98   checking size of long long... 8
#18 80.98   checking size of intmax_t... 8
#18 80.98   checking build system type... x86_64-unknown-linux-gnu
#18 80.98   checking host system type... x86_64-unknown-linux-gnu
#18 80.98   checking whether pause instruction is compilable... yes
#18 80.98   checking number of significant virtual address bits... 48
#18 80.98   checking for x86_64-unknown-linux-gnu-ar... no
#18 80.98   checking for ar... ar
#18 80.98   checking for x86_64-unknown-linux-gnu-nm... no
#18 80.98   checking for nm... nm
#18 80.98   checking for gawk... no
#18 80.98   checking for mawk... mawk
#18 80.98   checking malloc.h usability... yes
#18 80.98   checking malloc.h presence... yes
#18 80.98   checking for malloc.h... yes
#18 80.98   checking whether malloc_usable_size definition can use const argument... no
#18 80.98   checking for library containing log... -lm
#18 80.98   checking whether __attribute__ syntax is compilable... yes
#18 80.98   checking whether compiler supports -fvisibility=hidden... yes
#18 80.98   checking whether compiler supports -fvisibility=hidden... no
#18 80.98   checking whether compiler supports -Werror... yes
#18 80.98   checking whether compiler supports -herror_on_warning... no
#18 80.98   checking whether tls_model attribute is compilable... yes
#18 80.98   checking whether compiler supports -Werror... yes
#18 80.98   checking whether compiler supports -herror_on_warning... no
#18 80.98   checking whether alloc_size attribute is compilable... yes
#18 80.98   checking whether compiler supports -Werror... yes
#18 80.98   checking whether compiler supports -herror_on_warning... no
#18 80.98   checking whether format(gnu_printf, ...) attribute is compilable... yes
#18 80.98   checking whether compiler supports -Werror... yes
#18 80.98   checking whether compiler supports -herror_on_warning... no
#18 80.98   checking whether format(printf, ...) attribute is compilable... yes
#18 80.98   checking whether compiler supports -Werror... yes
#18 80.98   checking whether compiler supports -herror_on_warning... no
#18 80.98   checking whether format(printf, ...) attribute is compilable... yes
#18 80.98   checking whether compiler supports -Wimplicit-fallthrough... yes
#18 80.98   checking whether fallthrough attribute is compilable... yes
#18 80.98   checking whether compiler supports -Wimplicit-fallthrough... yes
#18 80.98   checking whether compiler supports -Wimplicit-fallthrough... no
#18 80.98   checking whether compiler supports -Werror... yes
#18 80.98   checking whether compiler supports -herror_on_warning... no
#18 80.98   checking whether cold attribute is compilable... yes
#18 80.98   checking whether vm_make_tag is compilable... no
#18 80.98   checking for a BSD-compatible install... /usr/bin/install -c
#18 80.98   checking for x86_64-unknown-linux-gnu-ranlib... no
#18 80.98   checking for ranlib... ranlib
#18 80.98   checking for ld... /usr/bin/ld
#18 80.98   checking for autoconf... false
#18 80.98   checking for memalign... yes
#18 80.98   checking for valloc... yes
#18 80.98   checking for malloc_size... no
#18 80.98   checking whether compiler supports -O3... yes
#18 80.98   checking whether compiler supports -O3... no
#18 80.98   checking whether compiler supports -funroll-loops... yes
#18 80.98   checking configured backtracing method... N/A
#18 80.98   checking for sbrk... yes
#18 80.98   checking whether utrace(2) is compilable... no
#18 80.98   checking whether utrace(2) with label is compilable... no
#18 80.98   checking whether a program using __builtin_unreachable is compilable... yes
#18 80.98   checking whether a program using __builtin_ffsl is compilable... yes
#18 80.98   checking whether a program using __builtin_popcountl is compilable... yes
#18 80.98   checking LG_PAGE... 12
#18 80.98   checking pthread.h usability... yes
#18 80.98   checking pthread.h presence... yes
#18 80.98   checking for pthread.h... yes
#18 80.98   checking for pthread_create in -lpthread... yes
#18 80.98   checking dlfcn.h usability... yes
#18 80.98   checking dlfcn.h presence... yes
#18 80.98   checking for dlfcn.h... yes
#18 80.98   checking for dlsym... no
#18 80.98   checking for dlsym in -ldl... yes
#18 80.98   checking whether pthread_atfork(3) is compilable... yes
#18 80.98   checking whether pthread_setname_np(3) is compilable... yes
#18 80.98   checking whether pthread_getname_np(3) is compilable... yes
#18 80.98   checking whether pthread_get_name_np(3) is compilable... no
#18 80.98   checking for library containing clock_gettime... none required
#18 80.98   checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable... yes
#18 80.98   checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable... yes
#18 80.98   checking whether mach_absolute_time() is compilable... no
#18 80.98   checking whether clock_gettime(CLOCK_REALTIME, ...) is compilable... yes
#18 80.98   checking whether compiler supports -Werror... yes
#18 80.98   checking whether syscall(2) is compilable... yes
#18 80.98   checking for secure_getenv... yes
#18 80.98   checking for sched_getcpu... yes
#18 80.98   checking for sched_setaffinity... yes
#18 80.98   checking for issetugid... no
#18 80.98   checking for _malloc_thread_cleanup... no
#18 80.98   checking for _pthread_mutex_init_calloc_cb... no
#18 80.98   checking for memcntl... no
#18 80.98   checking for TLS... yes
#18 80.98   checking whether C11 atomics is compilable... yes
#18 80.98   checking whether GCC __atomic atomics is compilable... yes
#18 80.98   checking whether GCC 8-bit __atomic atomics is compilable... yes
#18 80.98   checking whether GCC __sync atomics is compilable... yes
#18 80.98   checking whether GCC 8-bit __sync atomics is compilable... yes
#18 80.98   checking whether Darwin OSAtomic*() is compilable... no
#18 80.98   checking whether madvise(2) is compilable... yes
#18 80.98   checking whether madvise(..., MADV_FREE) is compilable... yes
#18 80.98   checking whether madvise(..., MADV_DONTNEED) is compilable... yes
#18 80.98   checking whether madvise(..., MADV_DO[NT]DUMP) is compilable... yes
#18 80.98   checking whether madvise(..., MADV_[NO]HUGEPAGE) is compilable... yes
#18 80.98   checking whether madvise(..., MADV_[NO]CORE) is compilable... no
#18 80.98   checking whether mprotect(2) is compilable... yes
#18 80.98   checking for __builtin_clz... yes
#18 80.98   checking whether Darwin os_unfair_lock_*() is compilable... no
#18 80.98   checking whether glibc malloc hook is compilable... yes
#18 80.98   checking whether glibc memalign hook is compilable... yes
#18 80.98   checking whether pthreads adaptive mutexes is compilable... yes
#18 80.98   checking whether compiler supports -D_GNU_SOURCE... yes
#18 80.98   checking whether compiler supports -Werror... yes
#18 80.98   checking whether compiler supports -herror_on_warning... no
#18 80.98   checking whether strerror_r returns char with gnu source is compilable... yes
#18 80.98   checking for stdbool.h that conforms to C99... yes
#18 80.98   checking for _Bool... yes
#18 80.98   configure: creating ./config.status
#18 80.98   config.status: creating Makefile
#18 80.98   config.status: creating jemalloc.pc
#18 80.98   config.status: creating doc/html.xsl
#18 80.98   config.status: creating doc/manpages.xsl
#18 80.98   config.status: creating doc/jemalloc.xml
#18 80.98   config.status: creating include/jemalloc/jemalloc_macros.h
#18 80.98   config.status: creating include/jemalloc/jemalloc_protos.h
#18 80.98   config.status: creating include/jemalloc/jemalloc_typedefs.h
#18 80.98   config.status: creating include/jemalloc/internal/jemalloc_preamble.h
#18 80.98   config.status: creating test/test.sh
#18 80.98   config.status: creating test/include/test/jemalloc_test.h
#18 80.98   config.status: creating config.stamp
#18 80.98   config.status: creating bin/jemalloc-config
#18 80.98   config.status: creating bin/jemalloc.sh
#18 80.98   config.status: creating bin/jeprof
#18 80.98   config.status: creating include/jemalloc/jemalloc_defs.h
#18 80.98   config.status: creating include/jemalloc/internal/jemalloc_internal_defs.h
#18 80.98   config.status: creating test/include/test/jemalloc_test_defs.h
#18 80.98   config.status: executing include/jemalloc/internal/public_symbols.txt commands
#18 80.98   config.status: executing include/jemalloc/internal/private_symbols.awk commands
#18 80.98   config.status: executing include/jemalloc/internal/private_symbols_jet.awk commands
#18 80.98   config.status: executing include/jemalloc/internal/public_namespace.h commands
#18 80.98   config.status: executing include/jemalloc/internal/public_unnamespace.h commands
#18 80.98   config.status: executing include/jemalloc/jemalloc_protos_jet.h commands
#18 80.98   config.status: executing include/jemalloc/jemalloc_rename.h commands
#18 80.98   config.status: executing include/jemalloc/jemalloc_mangle.h commands
#18 80.98   config.status: executing include/jemalloc/jemalloc_mangle_jet.h commands
#18 80.98   config.status: executing include/jemalloc/jemalloc.h commands
#18 80.98   ===============================================================================
#18 80.98   jemalloc version   : 5.3.0-0-g54eaed1d8b56b1aa528be3bdd1877e59c56fa90c
#18 80.98   library revision   : 2
#18 80.98 
#18 80.98   CONFIG             : --disable-cxx --enable-doc=no --enable-shared=no --with-jemalloc-prefix=_rjem_ --with-private-namespace=_rjem_ --host=x86_64-unknown-linux-gnu --build=x86_64-unknown-linux-gnu --prefix=/project/target/release/build/tikv-jemalloc-sys-86b593aacf9aa27d/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'
#18 80.98   CC                 : cc
#18 80.98   CONFIGURE_CFLAGS   : -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -Wpointer-arith -Wno-missing-braces -Wno-missing-field-initializers -Wno-missing-attributes -pipe -g3 -fvisibility=hidden -Wimplicit-fallthrough -O3 -funroll-loops
#18 80.98   SPECIFIED_CFLAGS   : -O3 -ffunction-sections -fdata-sections -fPIC -m64 -Wall
#18 80.98   EXTRA_CFLAGS       : 
#18 80.98   CPPFLAGS           : -O3 -ffunction-sections -fdata-sections -fPIC -m64 -Wall -D_GNU_SOURCE -D_REENTRANT
#18 80.98   CXX                : 
#18 80.98   CONFIGURE_CXXFLAGS : 
#18 80.98   SPECIFIED_CXXFLAGS : 
#18 80.98   EXTRA_CXXFLAGS     : 
#18 80.98   LDFLAGS            : -O3 -ffunction-sections -fdata-sections -fPIC -m64 -Wall
#18 80.98   EXTRA_LDFLAGS      : 
#18 80.98   DSO_LDFLAGS        : -shared -Wl,-soname,$(@F)
#18 80.98   LIBS               : -lm  -pthread -ldl
#18 80.98   RPATH_EXTRA        : 
#18 80.98 
#18 80.98   XSLTPROC           : false
#18 80.98   XSLROOT            : 
#18 80.98 
#18 80.98   PREFIX             : /project/target/release/build/tikv-jemalloc-sys-86b593aacf9aa27d/out
#18 80.98   BINDIR             : /project/target/release/build/tikv-jemalloc-sys-86b593aacf9aa27d/out/bin
#18 80.98   DATADIR            : /project/target/release/build/tikv-jemalloc-sys-86b593aacf9aa27d/out/share
#18 80.98   INCLUDEDIR         : /project/target/release/build/tikv-jemalloc-sys-86b593aacf9aa27d/out/include
#18 80.98   LIBDIR             : /project/target/release/build/tikv-jemalloc-sys-86b593aacf9aa27d/out/lib
#18 80.98   MANDIR             : /project/target/release/build/tikv-jemalloc-sys-86b593aacf9aa27d/out/share/man
#18 80.98 
#18 80.98   srcroot            : 
#18 80.98   abs_srcroot        : /project/target/release/build/tikv-jemalloc-sys-86b593aacf9aa27d/out/build/
#18 80.98   objroot            : 
#18 80.98   abs_objroot        : /project/target/release/build/tikv-jemalloc-sys-86b593aacf9aa27d/out/build/
#18 80.98 
#18 80.98   JEMALLOC_PREFIX    : _rjem_
#18 80.98   JEMALLOC_PRIVATE_NAMESPACE
#18 80.98                      : _rjem_je_
#18 80.98   install_suffix     : 
#18 80.98   malloc_conf        : 
#18 80.98   documentation      : 0
#18 80.98   shared libs        : 0
#18 80.98   static libs        : 1
#18 80.98   autogen            : 0
#18 80.98   debug              : 0
#18 80.98   stats              : 1
#18 80.98   experimental_smallocx : 0
#18 80.98   prof               : 0
#18 80.98   prof-libunwind     : 0
#18 80.98   prof-libgcc        : 0
#18 80.98   prof-gcc           : 0
#18 80.98   fill               : 1
#18 80.98   utrace             : 0
#18 80.98   xmalloc            : 0
#18 80.98   log                : 0
#18 80.98   lazy_lock          : 0
#18 80.98   cache-oblivious    : 1
#18 80.98   cxx                : 0
#18 80.98   ===============================================================================
#18 80.98   running: cd "/project/target/release/build/tikv-jemalloc-sys-86b593aacf9aa27d/out/build" && "make" "-j" "4"
#18 80.98 
#18 80.98   --- stderr
#18 80.98   thread 'main' panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/tikv-jemalloc-sys-0.5.4+5.3.0-patched/build.rs:347:19:
#18 80.98   failed to execute command: No such file or directory (os error 2)
#18 80.98   note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

I can't seem to repro this locally in 22.04.1, but happens in GH CI x86_64-unknown-linux-gnu ubuntu 20.04.6 - previous versions of the crate worked fine, I think. Only major difference I see is your CI is running ubuntu-latest?

TheDan64 commented 2 months ago

Bumped CI to 22.04.4, and seeing the same

BusyJay commented 2 months ago

Please make sure make is installed.

TheDan64 commented 2 months ago

@BusyJay it is installed:

make: *** No rule to make target 'build'.  Stop.
TheDan64 commented 2 months ago

It seems like the issue is with the directory it's trying to cd to: "no such file or directory"

BusyJay commented 2 months ago

The directory has to exist when it's successfully configured.

TheDan64 commented 2 months ago

It's not make, but something was missing from build-essential, which fixed it

BusyJay commented 2 months ago

OK, good to hear it's resolved.