Skip to content
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

0.6.0 version compile error. #11

Open
mc-mong opened this issue Aug 19, 2023 · 2 comments
Open

0.6.0 version compile error. #11

mc-mong opened this issue Aug 19, 2023 · 2 comments

Comments

@mc-mong
Copy link

mc-mong commented Aug 19, 2023

clang-16: error: no such file or directory: 'accuracy/*.cc'

delete.. accuracy/*.cc

After deleting it, an error appears as follows.

$ g++ -std=c++14 -ffast-math -I . -lpthread .cc utils/.cc game/.cc mcts/.cc neural/.cc neural/blas/.cc neural/cuda/.cc pattern/.cc selfplay/*.cc -o Sayuri -O3 -DNDEBUG -DWIN32 -I ../third_party/Eigen -DUSE_BLAS -DUSE_EIGEN
In file included from config.cc:1:
./utils/option.h:162:9: warning: expression result unused [-Wunused-value]
(T)(*this);
^ ~~~~~~~
./utils/option.h:52:20: note: in instantiation of function template specialization 'Option::FancyPush<bool, void>' requested here
FancyPush(val);
^
./utils/option.h:239:20: note: in instantiation of function template specialization 'Option::Option<bool, void>' requested here
auto out = Option(t, val,
^
config.cc:17:36: note: in instantiation of function template specialization 'Option::SetOption<bool, void>' requested here
kOptionsMap["help"] << Option::SetOption(false);
^
In file included from config.cc:1:
./utils/option.h:162:9: warning: expression result unused [-Wunused-value]
(T)(*this);
^ ~~~~~~~
./utils/option.h:52:20: note: in instantiation of function template specialization 'Option::FancyPush<int, void>' requested here
FancyPush(val);
^
./utils/option.h:239:20: note: in instantiation of function template specialization 'Option::Option<int, void>' requested here
auto out = Option(t, val,
^
config.cc:30:50: note: in instantiation of function template specialization 'Option::SetOption<int, void>' requested here
kOptionsMap["fixed_nn_boardsize"] << Option::SetOption(0);
^
In file included from config.cc:1:
./utils/option.h:162:9: warning: expression result unused [-Wunused-value]
(T)(*this);
^ ~~~~~~~
./utils/option.h:52:20: note: in instantiation of function template specialization 'Option::FancyPush<float, void>' requested here
FancyPush(val);
^
./utils/option.h:239:20: note: in instantiation of function template specialization 'Option::Option<float, void>' requested here
auto out = Option(t, val,
^
config.cc:32:44: note: in instantiation of function template specialization 'Option::SetOption<float, void>' requested here
kOptionsMap["defualt_komi"] << Option::SetOption(kDefaultKomi);
^
3 warnings generated.
In file included from main.cc:1:
In file included from C:/Program Files/mingw64/include/c++/v1/memory:898:
In file included from C:/Program Files/mingw64/include/c++/v1/__memory/shared_ptr.h:31:
C:/Program Files/mingw64/include/c++/v1/__memory/unique_ptr.h:65:5: warning: delete called on 'NetworkForwardPipe' that is abstract but has non-virtual destructor [-Wdelete-abstract-non-virtual-dtor]
delete __ptr;
^
C:/Program Files/mingw64/include/c++/v1/__memory/unique_ptr.h:297:7: note: in instantiation of member function 'std::default_delete::operator()' requested here
_ptr.second()(__tmp);
^
C:/Program Files/mingw64/include/c++/v1/__memory/unique_ptr.h:263:75: note: in instantiation of member function 'std::unique_ptr::reset' requested here
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX23 ~unique_ptr() { reset(); }
^
./neural/network.h:15:7: note: in instantiation of member function 'std::unique_ptr::~unique_ptr' requested here
class Network {
^
C:/Program Files/mingw64/include/c++/v1/__memory/unique_ptr.h:297:7: note: in instantiation of member function 'std::default_deleteGtpLoop::Agent::operator()' requested here
_ptr.second()(__tmp);
^
C:/Program Files/mingw64/include/c++/v1/__memory/unique_ptr.h:263:75: note: in instantiation of member function 'std::unique_ptrGtpLoop::Agent::reset' requested here
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX23 ~unique_ptr() { reset(); }
^
./game/gtp.h:53:5: note: in instantiation of member function 'std::unique_ptrGtpLoop::Agent::~unique_ptr' requested here
GtpLoop() {
^
1 warning generated.
game/board.cc:1817:17: warning: ignoring return value of function declared with 'nodiscard' attribute [-Wunused-result]
std::remove(std::begin(strings_head),
^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~
game/board.cc:2068:17: warning: ignoring return value of function declared with 'nodiscard' attribute [-Wunused-result]
std::remove(std::begin(epmty_head),
^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
In file included from game/gtp.cc:1:
In file included from ./game/gtp.h:3:
In file included from ./game/game_state.h:3:
In file included from C:/Program Files/mingw64/include/c++/v1/vector:3359:
In file included from C:/Program Files/mingw64/include/c++/v1/algorithm:1747:
In file included from C:/Program Files/mingw64/include/c++/v1/__algorithm/inplace_merge.h:28:
C:/Program Files/mingw64/include/c++/v1/__memory/unique_ptr.h:65:5: warning: delete called on 'NetworkForwardPipe' that is abstract but has non-virtual destructor [-Wdelete-abstract-non-virtual-dtor]
delete __ptr;
^
C:/Program Files/mingw64/include/c++/v1/__memory/unique_ptr.h:297:7: note: in instantiation of member function 'std::default_delete::operator()' requested here
_ptr.second()(__tmp);
^
C:/Program Files/mingw64/include/c++/v1/__memory/unique_ptr.h:263:75: note: in instantiation of member function 'std::unique_ptr::reset' requested here
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX23 ~unique_ptr() { reset(); }
^
./neural/network.h:15:7: note: in instantiation of member function 'std::unique_ptr::~unique_ptr' requested here
class Network {
^
C:/Program Files/mingw64/include/c++/v1/__memory/unique_ptr.h:297:7: note: in instantiation of member function 'std::default_deleteGtpLoop::Agent::operator()' requested here
_ptr.second()(__tmp);
^
C:/Program Files/mingw64/include/c++/v1/__memory/unique_ptr.h:263:75: note: in instantiation of member function 'std::unique_ptrGtpLoop::Agent::reset' requested here
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX23 ~unique_ptr() { reset(); }
^
./game/gtp.h:53:5: note: in instantiation of member function 'std::unique_ptrGtpLoop::Agent::~unique_ptr' requested here
GtpLoop() {
^
1 warning generated.
In file included from neural/network.cc:6:
In file included from ../third_party/Eigen/Eigen/Dense:1:
In file included from ../third_party/Eigen/Eigen/Core:43:
In file included from C:/Program Files/mingw64/include/c++/v1/complex:243:
In file included from C:/Program Files/mingw64/include/c++/v1/sstream:191:
In file included from C:/Program Files/mingw64/include/c++/v1/istream:165:
In file included from C:/Program Files/mingw64/include/c++/v1/ostream:168:
In file included from C:/Program Files/mingw64/include/c++/v1/__memory/shared_ptr.h:31:
C:/Program Files/mingw64/include/c++/v1/__memory/unique_ptr.h:65:5: warning: delete called on 'NetworkForwardPipe' that is abstract but has non-virtual destructor [-Wdelete-abstract-non-virtual-dtor]
delete __ptr;
^
C:/Program Files/mingw64/include/c++/v1/__memory/unique_ptr.h:297:7: note: in instantiation of member function 'std::default_delete::operator()' requested here
_ptr.second()(__tmp);
^
C:/Program Files/mingw64/include/c++/v1/__memory/unique_ptr.h:241:5: note: in instantiation of member function 'std::unique_ptr::reset' requested here
reset(_u.release());
^
neural/network.cc:68:11: note: in instantiation of function template specialization 'std::unique_ptr::operator=<BlasForwardPipe, std::default_delete, void, void>' requested here
pipe
= std::make_unique();
^
1 warning generated.
In file included from selfplay/engine.cc:1:
In file included from ./selfplay/engine.h:3:
In file included from ./game/game_state.h:3:
In file included from C:/Program Files/mingw64/include/c++/v1/vector:3359:
In file included from C:/Program Files/mingw64/include/c++/v1/algorithm:1747:
In file included from C:/Program Files/mingw64/include/c++/v1/__algorithm/inplace_merge.h:28:
C:/Program Files/mingw64/include/c++/v1/__memory/unique_ptr.h:65:5: warning: delete called on 'NetworkForwardPipe' that is abstract but has non-virtual destructor [-Wdelete-abstract-non-virtual-dtor]
delete __ptr;
^
C:/Program Files/mingw64/include/c++/v1/__memory/unique_ptr.h:297:7: note: in instantiation of member function 'std::default_delete::operator()' requested here
_ptr.second()(__tmp);
^
C:/Program Files/mingw64/include/c++/v1/__memory/unique_ptr.h:263:75: note: in instantiation of member function 'std::unique_ptr::reset' requested here
_LIBCPP_INLINE_VISIBILITY LIBCPP_CONSTEXPR_SINCE_CXX23 ~unique_ptr() { reset(); }
^
./neural/network.h:15:7: note: in instantiation of member function 'std::unique_ptr::~unique_ptr' requested here
class Network {
^
selfplay/engine.cc:25:25: note: in instantiation of function template specialization 'std::make_unique' requested here
network
= std::make_unique();
^
1 warning generated.
In file included from selfplay/pipe.cc:1:
In file included from ./selfplay/pipe.h:3:
In file included from ./selfplay/engine.h:3:
In file included from ./game/game_state.h:3:
In file included from C:/Program Files/mingw64/include/c++/v1/vector:3359:
In file included from C:/Program Files/mingw64/include/c++/v1/algorithm:1747:
In file included from C:/Program Files/mingw64/include/c++/v1/__algorithm/inplace_merge.h:28:
C:/Program Files/mingw64/include/c++/v1/__memory/unique_ptr.h:65:5: warning: delete called on 'NetworkForwardPipe' that is abstract but has non-virtual destructor [-Wdelete-abstract-non-virtual-dtor]
delete __ptr;
^
C:/Program Files/mingw64/include/c++/v1/__memory/unique_ptr.h:297:7: note: in instantiation of member function 'std::default_delete::operator()' requested here
_ptr.second()(__tmp);
^
C:/Program Files/mingw64/include/c++/v1/__memory/unique_ptr.h:263:75: note: in instantiation of member function 'std::unique_ptr::reset' requested here
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX23 ~unique_ptr() { reset(); }
^
./neural/network.h:15:7: note: in instantiation of member function 'std::unique_ptr::~unique_ptr' requested here
class Network {
^
C:/Program Files/mingw64/include/c++/v1/__memory/unique_ptr.h:297:7: note: in instantiation of member function 'std::default_delete::operator()' requested here
_ptr.second()(__tmp);
^
C:/Program Files/mingw64/include/c++/v1/__memory/unique_ptr.h:263:75: note: in instantiation of member function 'std::unique_ptr::reset' requested here
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX23 ~unique_ptr() { reset(); }
^
./selfplay/engine.h:10:7: note: in instantiation of member function 'std::unique_ptr::~unique_ptr' requested here
class Engine {
^
In file included from selfplay/pipe.cc:1:
In file included from ./selfplay/pipe.h:3:
In file included from ./selfplay/engine.h:5:
In file included from ./mcts/search.h:4:
In file included from ./mcts/parameters.h:4:
./utils/option.h:162:9: warning: expression result unused [-Wunused-value]
(T)(*this);
^ ~~~~~~~
./utils/option.h:179:9: note: in instantiation of function template specialization 'Option::FancyPush<bool, void>' requested here
FancyPush(val);
^
./utils/option.h:276:20: note: in instantiation of function template specialization 'Option::Set' requested here
it->second.Set(val);
^
selfplay/pipe.cc:15:5: note: in instantiation of function template specialization 'SetOption<bool, void>' requested here
SetOption("analysis_verbose", false);
^
In file included from selfplay/pipe.cc:1:
In file included from ./selfplay/pipe.h:3:
In file included from ./selfplay/engine.h:5:
In file included from ./mcts/search.h:4:
In file included from ./mcts/parameters.h:4:
./utils/option.h:162:9: warning: expression result unused [-Wunused-value]
(T)(*this);
^ ~~~~~~~
./utils/option.h:179:9: note: in instantiation of function template specialization 'Option::FancyPush<int, void>' requested here
FancyPush(val);
^
./utils/option.h:276:20: note: in instantiation of function template specialization 'Option::Set' requested here
it->second.Set(val);
^
selfplay/pipe.cc:18:5: note: in instantiation of function template specialization 'SetOption<int, void>' requested here
SetOption("threads", 1);
^
3 warnings generated.
ld.lld: error: undefined symbol: ComputeNetAccuracy(Network&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator>)

referenced by C:/Users/mong/AppData/Local/Temp/gtp-b164cf.o:(GtpLoop::Execute(Splitter&, bool&))

ld.lld: error: undefined symbol: ComputeSelfplayAccumulation(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator>)

referenced by C:/Users/mong/AppData/Local/Temp/gtp-b164cf.o:(GtpLoop::Execute(Splitter&, bool&))
clang-16: error: linker command failed with exit code 1 (use -v to see invocation)

@CGLemon
Copy link
Owner

CGLemon commented Aug 20, 2023

Sorry, I forget to update the command. Please use following GCC command instead of the old one.

g++ -std=c++14 -ffast-math -I . -lpthread *.cc utils/*.cc summary/*.cc game/*.cc mcts/*.cc neural/*.cc neural/blas/*.cc neural/cuda/*.cc pattern/*.cc selfplay/*.cc -o Sayuri -O3 -DNDEBUG -DWIN32 -I ../third_party/Eigen -DUSE_BLAS -DUSE_EIGEN

@mc-mong
Copy link
Author

mc-mong commented Aug 20, 2023

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants