tikv / jemallocator

Rust allocator using jemalloc as a backend
Other
364 stars 62 forks source link

I can't complie tikv-jemmalloc-sys v0.5.4+5.3.0-patched crate successful #106

Closed qumolangmo closed 3 weeks ago

qumolangmo commented 3 weeks ago

cause: ( '没有那个文件或目录' means 'No such file or directory' ) ...... ...... 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 ...... ......

--- stderr cat: include/jemalloc/jemalloc_defs.h: No such file or directory In file included from src/arena.c:1: include/jemalloc/internal/jemalloc_preamble.h:4:10: fatal error: jemalloc_internal_defs.h: 没有那个文件或目录 4 | #include "jemalloc_internal_defs.h" | ^~~~~~ compilation terminated. In file included from src/jemalloc.c:2: include/jemalloc/internal/jemalloc_preamble.h:4:10: fatal error: jemalloc_internal_defs.h: 没有那个文件或目录 4 | #include "jemalloc_internal_defs.h" | ^~~~~~ compilation terminated. In file included from src/bin.c:1: include/jemalloc/internal/jemalloc_preamble.h:4:10: fatal error: jemalloc_internal_defs.h: 没有那个文件或目录 4 | #include "jemalloc_internal_defs.h" | ^~~~~~ compilation terminated. In file included from src/base.c:1: include/jemalloc/internal/jemalloc_preamble.h:4:10: fatal error: jemalloc_internal_defs.h: 没有那个文件或目录 4 | #include "jemalloc_internal_defs.h" | ^~~~~~ compilation terminated. In file included from src/bin_info.c:1: include/jemalloc/internal/jemalloc_preamble.h:4:10: fatal error: jemalloc_internal_defs.h: 没有那个文件或目录 4 | #include "jemalloc_internal_defs.h" | ^~~~~~ compilation terminated. In file included from src/bitmap.c:1: include/jemalloc/internal/jemalloc_preamble.h:4:10: fatal error: jemalloc_internal_defs.h: 没有那个文件或目录 4 | #include "jemalloc_internal_defs.h" | ^~~~~~ compilation terminated. In file included from src/background_thread.c:1: include/jemalloc/internal/jemalloc_preamble.h:4:10: fatal error: jemalloc_internal_defs.h: 没有那个文件或目录 4 | #include "jemalloc_internal_defs.h" | ^~~~~~ compilation terminated. In file included from src/buf_writer.c:1: include/jemalloc/internal/jemalloc_preamble.h:4:10: fatal error: jemalloc_internal_defs.h: 没有那个文件或目录 4 | #include "jemalloc_internal_defs.h" | ^~~~~~ compilation terminated. make: [Makefile:478:src/jemalloc.sym.o] 错误 1 make: 正在等待未完成的任务.... make: [Makefile:478:src/arena.sym.o] 错误 1 make: [Makefile:478:src/background_thread.sym.o] 错误 1 make: [Makefile:478:src/base.sym.o] 错误 1 make: [Makefile:478:src/bin.sym.o] 错误 1 make: [Makefile:478:src/bin_info.sym.o] 错误 1 make: [Makefile:478:src/bitmap.sym.o] 错误 1 In file included from src/cache_bin.c:1: include/jemalloc/internal/jemalloc_preamble.h:4:10: fatal error: jemalloc_internal_defs.h: 没有那个文件或目录 4 | #include "jemalloc_internal_defs.h" | ^~~~~~ compilation terminated. make: [Makefile:479:src/buf_writer.sym.o] 错误 1 make: [Makefile:479:src/cache_bin.sym.o] 错误 1 In file included from src/counter.c:1: include/jemalloc/internal/jemalloc_preamble.h:4:10: fatal error: jemalloc_internal_defs.h: 没有那个文件或目录 4 | #include "jemalloc_internal_defs.h" | ^~~~~~ In file included from src/ckh.c:37: include/jemalloc/internal/jemalloc_preamble.h:4:10: fatal error: jemalloc_internal_defs.h: 没有那个文件或目录 4 | #include "jemalloc_internal_defs.h" | ^~~~~~

///////////////////////////////////////////////////// detail ///////////////////////////////////////////////////// error: failed to run custom build command for tikv-jemalloc-sys v0.5.4+5.3.0-patched

Caused by: process didn't exit successfully: /home/qumolangmo/sourceCode/forerunner/target/debug/build/tikv-jemalloc-sys-8038496458cf4069/build-script-build (exit status: 101) --- stdout TARGET=x86_64-unknown-linux-gnu HOST=x86_64-unknown-linux-gnu NUM_JOBS=16 OUT_DIR="/home/qumolangmo/sourceCode/forerunner/target/debug/build/tikv-jemalloc-sys-bc52d8d1278366e6/out" BUILD_DIR="/home/qumolangmo/sourceCode/forerunner/target/debug/build/tikv-jemalloc-sys-bc52d8d1278366e6/out/build" SRC_DIR="/home/qumolangmo/.cargo/registry/src/mirrors.ustc.edu.cn-4affec411d11e50f/tikv-jemalloc-sys-0.5.4+5.3.0-patched" cargo:rerun-if-env-changed=JEMALLOC_OVERRIDE OPT_LEVEL = Some(0) TARGET = Some(x86_64-unknown-linux-gnu) OUT_DIR = Some(/home/qumolangmo/sourceCode/forerunner/target/debug/build/tikv-jemalloc-sys-bc52d8d1278366e6/out) 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=CC_ENABLE_DEBUG_OUTPUT RUSTC_WRAPPER = None cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None DEBUG = Some(true) CARGO_CFG_TARGET_FEATURE = Some(avx,avx2,bmi1,bmi2,cmpxchg16b,f16c,fma,fxsr,lzcnt,movbe,pclmulqdq,popcnt,rdrand,sse,sse2,sse3,sse4.1,sse4.2,ssse3,xsave,xsaveopt) 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 CC="cc" CFLAGS="-O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -m64 -Wall" JEMALLOC_REPO_DIR="jemalloc" cargo:rerun-if-env-changed=JEMALLOC_SYS_WITH_MALLOC_CONF cargo:rerun-if-env-changed=JEMALLOC_SYS_WITH_LG_PAGE cargo:rerun-if-env-changed=JEMALLOC_SYS_WITH_LG_HUGEPAGE cargo:rerun-if-env-changed=JEMALLOC_SYS_WITH_LG_QUANTUM cargo:rerun-if-env-changed=JEMALLOC_SYS_WITH_LG_VADDR running: cd "/home/qumolangmo/sourceCode/forerunner/target/debug/build/tikv-jemalloc-sys-bc52d8d1278366e6/out/build" && CC="cc" CFLAGS="-O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -m64 -Wall" CPPFLAGS="-O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -m64 -Wall" LDFLAGS="-O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -m64 -Wall" "sh" "/home/qumolangmo/sourceCode/forerunner/target/debug/build/tikv-jemalloc-sys-bc52d8d1278366e6/out/build/configure" "--disable-cxx" "--enable-doc=no" "--enable-shared=no" "--with-private-namespace=rjem" "--host=x86_64-unknown-linux-gnu" "--build=x86_64-unknown-linux-gnu" "--prefix=/home/qumolangmo/sourceCode/forerunner/target/debug/build/tikv-jemalloc-sys-bc52d8d1278366e6/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 -Werror=unknown-warning-option... no checking whether compiler supports -Wall... yes checking whether compiler supports -Wextra... 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 -Wpointer-arith... yes checking whether compiler supports -Wno-missing-braces... yes checking whether compiler supports -Wno-missing-field-initializers... yes checking whether compiler supports -Wno-missing-attributes... 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... yes checking whether tls_model attribute is compilable... yes checking whether compiler supports -Werror... yes checking whether compiler supports -herror_on_warning... yes checking whether alloc_size attribute is compilable... yes checking whether compiler supports -Werror... yes checking whether compiler supports -herror_on_warning... yes checking whether format(gnu_printf, ...) attribute is compilable... yes checking whether compiler supports -Werror... yes checking whether compiler supports -herror_on_warning... yes checking whether format(printf, ...) attribute is compilable... yes checking whether compiler supports -Werror... yes checking whether compiler supports -herror_on_warning... yes checking whether format(printf, ...) attribute is compilable... yes checking whether compiler supports -Wimplicit-fallthrough... yes checking whether fallthrough attribute is compilable... yes checking whether compiler supports -Wimplicit-fallthrough... yes checking whether compiler supports -Wimplicit-fallthrough... no checking whether compiler supports -Werror... yes checking whether compiler supports -herror_on_warning... yes checking whether cold attribute is compilable... yes checking whether vm_make_tag is compilable... no 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 for malloc_size... no checking for libc_calloc... yes checking for __libc_free... yes checking for libc_malloc... yes checking for libc_memalign... yes checking for __libc_realloc... yes checking for libc_valloc... yes checking for posix_memalign... no 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 utrace(2) with label is compilable... no checking whether a program using __builtin_unreachable is compilable... yes checking whether a program using builtin_ffsl is compilable... yes checking whether a program using builtin_popcountl 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... yes checking whether pthread_atfork(3) is compilable... yes checking whether pthread_setname_np(3) is compilable... yes checking whether pthread_getname_np(3) is compilable... yes checking whether pthread_get_name_np(3) is compilable... no 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 clock_gettime(CLOCK_REALTIME, ...) is compilable... yes 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 memcntl... no checking for TLS... yes checking whether C11 atomics is compilable... yes checking whether GCC atomic atomics is compilable... yes checking whether GCC 8-bit atomic atomics is compilable... yes checking whether GCC sync atomics is compilable... yes checking whether GCC 8-bit __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 madvise(..., MADV_[NO]CORE) is compilable... no checking whether mprotect(2) is compilable... yes checking for __builtin_clz... yes checking whether Darwin os_unfairlock*() is compilable... no checking whether glibc malloc hook is compilable... no checking whether glibc memalign hook is compilable... no 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... yes 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/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 : 5.3.0-0-g54eaed1d8b56b1aa528be3bdd1877e59c56fa90c library revision : 2

CONFIG : --disable-cxx --enable-doc=no --enable-shared=no --with-private-namespace=rjem --host=x86_64-unknown-linux-gnu --build=x86_64-unknown-linux-gnu --prefix=/home/qumolangmo/sourceCode/forerunner/target/debug/build/tikv-jemalloc-sys-bc52d8d1278366e6/out build_alias=x86_64-unknown-linux-gnu host_alias=x86_64-unknown-linux-gnu CC=cc 'CFLAGS=-O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -m64 -Wall' 'LDFLAGS=-O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -m64 -Wall' 'CPPFLAGS=-O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -m64 -Wall' CC : cc 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 SPECIFIED_CFLAGS : -O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -m64 -Wall EXTRA_CFLAGS : CPPFLAGS : -O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -m64 -Wall -D_GNU_SOURCE -D_REENTRANT CXX : CONFIGURE_CXXFLAGS : SPECIFIED_CXXFLAGS : EXTRA_CXXFLAGS : LDFLAGS : -O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -m64 -Wall EXTRA_LDFLAGS : DSO_LDFLAGS : -shared -Wl,-soname,$(@F) LIBS : -lm -pthread RPATH_EXTRA :

XSLTPROC : false XSLROOT :

PREFIX : /home/qumolangmo/sourceCode/forerunner/target/debug/build/tikv-jemalloc-sys-bc52d8d1278366e6/out BINDIR : /home/qumolangmo/sourceCode/forerunner/target/debug/build/tikv-jemalloc-sys-bc52d8d1278366e6/out/bin DATADIR : /home/qumolangmo/sourceCode/forerunner/target/debug/build/tikv-jemalloc-sys-bc52d8d1278366e6/out/share INCLUDEDIR : /home/qumolangmo/sourceCode/forerunner/target/debug/build/tikv-jemalloc-sys-bc52d8d1278366e6/out/include LIBDIR : /home/qumolangmo/sourceCode/forerunner/target/debug/build/tikv-jemalloc-sys-bc52d8d1278366e6/out/lib MANDIR : /home/qumolangmo/sourceCode/forerunner/target/debug/build/tikv-jemalloc-sys-bc52d8d1278366e6/out/share/man

srcroot : abs_srcroot : /home/qumolangmo/sourceCode/forerunner/target/debug/build/tikv-jemalloc-sys-bc52d8d1278366e6/out/build/ objroot : abs_objroot : /home/qumolangmo/sourceCode/forerunner/target/debug/build/tikv-jemalloc-sys-bc52d8d1278366e6/out/build/

JEMALLOC_PREFIX : JEMALLOC_PRIVATE_NAMESPACE : _rjemje install_suffix : malloc_conf : documentation : 0 shared libs : 0 static libs : 1 autogen : 0 debug : 0 stats : 1 experimental_smallocx : 0 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: cd "/home/qumolangmo/sourceCode/forerunner/target/debug/build/tikv-jemalloc-sys-bc52d8d1278366e6/out/build" && "make" "-j" "16" cc -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 -O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -m64 -Wall -c -O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -m64 -Wall -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/jemalloc.sym.o src/jemalloc.c cc -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 -O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -m64 -Wall -c -O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -m64 -Wall -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/arena.sym.o src/arena.c cc -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 -O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -m64 -Wall -c -O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -m64 -Wall -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/background_thread.sym.o src/background_thread.c cc -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 -O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -m64 -Wall -c -O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -m64 -Wall -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/base.sym.o src/base.c cc -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 -O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -m64 -Wall -c -O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -m64 -Wall -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/bin.sym.o src/bin.c cc -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 -O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -m64 -Wall -c -O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -m64 -Wall -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/bin_info.sym.o src/bin_info.c cc -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 -O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -m64 -Wall -c -O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -m64 -Wall -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/bitmap.sym.o src/bitmap.c cc -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 -O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -m64 -Wall -c -O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -m64 -Wall -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/buf_writer.sym.o src/buf_writer.c cc -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 -O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -m64 -Wall -c -O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -m64 -Wall -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/cache_bin.sym.o src/cache_bin.c cc -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 -O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -m64 -Wall -c -O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -m64 -Wall -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/ckh.sym.o src/ckh.c cc -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 -O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -m64 -Wall -c -O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -m64 -Wall -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/counter.sym.o src/counter.c

--- stderr cat: include/jemalloc/jemalloc_defs.h: No such file or directory In file included from src/arena.c:1: include/jemalloc/internal/jemalloc_preamble.h:4:10: fatal error: jemalloc_internal_defs.h: 没有那个文件或目录 4 | #include "jemalloc_internal_defs.h" | ^~~~~~ compilation terminated. In file included from src/jemalloc.c:2: include/jemalloc/internal/jemalloc_preamble.h:4:10: fatal error: jemalloc_internal_defs.h: 没有那个文件或目录 4 | #include "jemalloc_internal_defs.h" | ^~~~~~ compilation terminated. In file included from src/bin.c:1: include/jemalloc/internal/jemalloc_preamble.h:4:10: fatal error: jemalloc_internal_defs.h: 没有那个文件或目录 4 | #include "jemalloc_internal_defs.h" | ^~~~~~ compilation terminated. In file included from src/base.c:1: include/jemalloc/internal/jemalloc_preamble.h:4:10: fatal error: jemalloc_internal_defs.h: 没有那个文件或目录 4 | #include "jemalloc_internal_defs.h" | ^~~~~~ compilation terminated. In file included from src/bin_info.c:1: include/jemalloc/internal/jemalloc_preamble.h:4:10: fatal error: jemalloc_internal_defs.h: 没有那个文件或目录 4 | #include "jemalloc_internal_defs.h" | ^~~~~~ compilation terminated. In file included from src/bitmap.c:1: include/jemalloc/internal/jemalloc_preamble.h:4:10: fatal error: jemalloc_internal_defs.h: 没有那个文件或目录 4 | #include "jemalloc_internal_defs.h" | ^~~~~~ compilation terminated. In file included from src/background_thread.c:1: include/jemalloc/internal/jemalloc_preamble.h:4:10: fatal error: jemalloc_internal_defs.h: 没有那个文件或目录 4 | #include "jemalloc_internal_defs.h" | ^~~~~~ compilation terminated. In file included from src/buf_writer.c:1: include/jemalloc/internal/jemalloc_preamble.h:4:10: fatal error: jemalloc_internal_defs.h: 没有那个文件或目录 4 | #include "jemalloc_internal_defs.h" | ^~~~~~ compilation terminated. make: [Makefile:478:src/jemalloc.sym.o] 错误 1 make: 正在等待未完成的任务.... make: [Makefile:478:src/arena.sym.o] 错误 1 make: [Makefile:478:src/background_thread.sym.o] 错误 1 make: [Makefile:478:src/base.sym.o] 错误 1 make: [Makefile:478:src/bin.sym.o] 错误 1 make: [Makefile:478:src/bin_info.sym.o] 错误 1 make: [Makefile:478:src/bitmap.sym.o] 错误 1 In file included from src/cache_bin.c:1: include/jemalloc/internal/jemalloc_preamble.h:4:10: fatal error: jemalloc_internal_defs.h: 没有那个文件或目录 4 | #include "jemalloc_internal_defs.h" | ^~~~~~ compilation terminated. make: [Makefile:479:src/buf_writer.sym.o] 错误 1 make: [Makefile:479:src/cache_bin.sym.o] 错误 1 In file included from src/counter.c:1: include/jemalloc/internal/jemalloc_preamble.h:4:10: fatal error: jemalloc_internal_defs.h: 没有那个文件或目录 4 | #include "jemalloc_internal_defs.h" | ^~~~~~ In file included from src/ckh.c:37: include/jemalloc/internal/jemalloc_preamble.h:4:10: fatal error: jemalloc_internal_defs.h: 没有那个文件或目录 4 | #include "jemalloc_internal_defs.h" | ^~~~~~ compilation terminated. compilation terminated. make: [Makefile:479:src/ckh.sym.o] 错误 1 make: [Makefile:479:src/counter.sym.o] 错误 1 thread 'main' panicked at /home/qumolangmo/.cargo/registry/src/mirrors.ustc.edu.cn-4affec411d11e50f/tikv-jemalloc-sys-0.5.4+5.3.0-patched/build.rs:351:9: command did not execute successfully: cd "/home/qumolangmo/sourceCode/forerunner/target/debug/build/tikv-jemalloc-sys-bc52d8d1278366e6/out/build" && "make" "-j" "16" expected success, got: exit status: 2 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

BusyJay commented 3 weeks ago

config.status: include/jemalloc/internal/jemalloc_internal_defs.h is unchanged

Looks suspicious. This file should not exist. Does it compile if running a cargo clean first? Or maybe delete the crate cache in $HOME/.cargo/registry/src and redownload it again.

qumolangmo commented 3 weeks ago

I have tried many times like you said,but it still stand here

config.status: include/jemalloc/internal/jemalloc_internal_defs.h is unchanged

Looks suspicious. This file should not exist. Does it compile if running a cargo clean first? Or maybe delete the crate cache in $HOME/.cargo/registry/src and redownload it again.

I have tried many time like you said,but it still stand here