facebookincubator / katran

A high performance layer 4 load balancer
GNU General Public License v2.0
4.75k stars 504 forks source link

build_katran.sh failure - debian12 - aarch64 / arm64 #239

Closed jdoupe closed 1 month ago

jdoupe commented 1 month ago
$ uname -a
Linux node-3 6.1.0-23-arm64 #1 SMP Debian 6.1.99-1 (2024-07-15) aarch64 GNU/Linux

sudo apt-get install git clang llvm libfast-float-dev

In addition to repeating the issue reported in #236 (fast-float, solved by manual install above), build_katran.sh reports the following errors:

...
-- Found folly: /vagrant/katran/_build/deps
-- Found Protobuf: /vagrant/katran/_build/deps/lib/libprotobuf.a (found version "3.21.6")
cmd is /vagrant/katran/_build/deps/bin/protoc
-- Configuring done
CMake Error at example_grpc/CMakeLists.txt:45 (add_library):
  Cannot find source file:

    KatranGrpcService.h

  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 example_grpc/CMakeLists.txt:57 (add_library):
  Cannot find source file:

    GrpcSignalHandler.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 example_grpc/CMakeLists.txt:69 (add_executable):
  Cannot find source file:

    katran_server.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 example_grpc/CMakeLists.txt:45 (add_library):
  No SOURCES given to target: katran_service_handler

CMake Error at example_grpc/CMakeLists.txt:57 (add_library):
  No SOURCES given to target: grpc_signal_handler

CMake Error at example_grpc/CMakeLists.txt:69 (add_executable):
  No SOURCES given to target: katran_server_grpc

CMake Generate step failed.  Build files cannot be regenerated correctly.
jursonovicst commented 1 month ago

It seems to me, that these example files were deleted in 363257169e913f8cf9841e2ab7481d28bf0ad0e9. They were quite helpful trying Karan, I hope this was just a mistake...

Bit-Warrior-X commented 1 month ago

This issue happend to me, but I could see that these files are reverted. Now compile works fine Thanks!

avasylev commented 1 month ago

Thanks for reporting, mistake on our side, bug in dead code detector mistakenly cleaned up these and we missed.