-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMake Build Failed: Proto/net.pb.h: No such file or directory #17
Comments
Update: We're getting there, but slowly. As suggested by Borg on the LC0 Help Channel (Discord) I ran the following: This fixed the error with the |
Update: Error is still occurring, updating the compiler to use C17 and using relevant compiler flags to indicate this has not worked, in addition to the failed steps detailed in the previous entry. So far, since the second update, I have tried:
|
For GCC 7 I think you can try replacing |
I gave this a go but it resulted in quite a few syntax errors for filesystem calls, eventually updated to gcc 9.4.0 which got rid of the filesystem.h error, and progressed to the error below. It seems that the BMI2 headers / support is not found.
I am curious, was CMake or Ninja used for your builds? Also thanks for the response! |
After a bit more digging it seems that my machine does not have bmi support (either 1 or 2), verified through running the |
It's CMake. You can set the CPU architecture flags in order to avoid using PEXT. Check https://wiki.gentoo.org/wiki/GCC_optimization#-march. |
I am unfamiliar with this type of application (cpuid2cpuflags) - I have cloned the repository but cannot see a way to build the tool, and just running it as the README suggests is not functioning... |
Hello again, here with another update, I've been testing different compile flags for CMake, as it seems that the root@haelyons-VirtualBox:/trainingdata-tool# rm -rf build && mkdir build && cd build && cmake .. && make -j Any help would be greatly appreciated. |
@haelyons did you manage to train an lc0 model on your games? ± |master U:1 ✗| → make -j I will greatly appreciate any help that you might offer. |
Hello! Thanks for making this tool, I really want to use it to convert my games to the right format to use them in LC0!
I have made a Makefile from the project after installing all the dependencies (and already having LC0 installed), but have been unable to
make
the project due to the following error:(base) haelyons@haelyons-VirtualBox:~/Downloads/trainingdata-tool/build$ make
[ 5%] Building CXX object CMakeFiles/trainingdata-tool.dir/src/PGNGame.cpp.o cc1plus: warning: /lc0/build/release/encoder_test.p/proto/net.pb.h: not a directory In file included from /lc0/src/neural/encoder.h:31:0, from /home/haelyons/Downloads/trainingdata-tool/src/PGNGame.h:4, from /home/haelyons/Downloads/trainingdata-tool/src/PGNGame.cpp:1:
/lc0/src/neural/network.h:33:10: fatal error: proto/net.pb.h: No such file or directory #include "proto/net.pb.h" ^~~~~~~~~~~~~~~~ compilation terminated.
CMakeFiles/trainingdata-tool.dir/build.make:62: recipe for target 'CMakeFiles/trainingdata-tool.dir/src/PGNGame.cpp.o' failed make[2]: *** [CMakeFiles/trainingdata-tool.dir/src/PGNGame.cpp.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/trainingdata-tool.dir/all' failed make[1]: *** [CMakeFiles/trainingdata-tool.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2
The file proto/net.pb.h exists in the following locations within the lc0 directory, and I have tried adding them to my environment variable, and the CMakeLists.txt with little success:
build/release/encoder_test.p/proto
build/release/lc0.p/proto
build/release/liblc0_lib.so.p/proto`
I am running Ubuntu 18.04 LTS and have recloned and rebuilt lc0 to ensure that the correct versions of protobuf were installed and linked. This warning
warning: /lc0/build/release/encoder_test.p/proto/net.pb.h: not a directory
exists as I have tried adding proto/net.pb.h as an include directory, but it does not seem to be recognized.I believe the issue is that the trainingdata-tool Cmake does not recognise the directory in which net.pb.h exists, but do not understand why this is the case (as I have added the correct address in the CMakeLists.txt) or how to fix it.
I hope this is enough information,
Thank you, H.
The text was updated successfully, but these errors were encountered: