Skip to content

build error "cant find CacheAllocator.cpp" #345

Closed
@Z-Jie2020

Description

@Z-Jie2020

Describe the bug
After git clone the resposity, I went to the Cachelib directory and execute the statement: ./ntrib/build.sh -d -j -v. It ended with an error.

-- Configuring done
CMake Error at allocator/CMakeLists.txt:26 (add_library):
  Cannot find source file:

    CacheAllocator.cpp

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
  .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc


CMake Error at allocator/CMakeLists.txt:26 (add_library):
  No SOURCES given to target: cachelib_allocator


CMake Generate step failed.  Build files cannot be regenerated correctly.
build-package.sh: error: cmake failed on cachelib
build.sh: error: failed to build cachelib

Screenshots
image

Another Problem
What should I do to fix it,There really is no CacheAllocator.cpp in the allocator directory.
Moreover, when I run the statement : ./contrib/build.sh -j -T , it showed another problem:

make[2]: *** [CMakeFiles/logging_unittest.dir/build.make:102: logging_unittest] Error 1
make[1]: *** [CMakeFiles/Makefile2:879: CMakeFiles/logging_unittest.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
build-package.sh: error: make failed
build.sh: error: failed to build dependency 'googlelog'

image

Please give me some advice

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions