Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Error when try to compile Go game #116

Open
alatyshe opened this issue Oct 12, 2018 · 0 comments
Open

Error when try to compile Go game #116

alatyshe opened this issue Oct 12, 2018 · 0 comments

Comments

@alatyshe
Copy link

alatyshe commented Oct 12, 2018

Does anybody have this problem?
How can i fix it?
cmake version 3.13.0-rc1
gcc (Ubuntu 7.3.0-21ubuntu1~16.04) 7.3.0

Scanning dependencies of target go_game
[  5%] Building CXX object CMakeFiles/go_game.dir/board.cc.o
[ 11%] Building CXX object CMakeFiles/go_game.dir/board_feature.cc.o
[ 17%] Building CXX object CMakeFiles/go_game.dir/common.cc.o
[ 23%] Building CXX object CMakeFiles/go_game.dir/default_policy.cc.o
[ 29%] Building CXX object CMakeFiles/go_game.dir/game.cc.o
[ 35%] Building CXX object CMakeFiles/go_game.dir/game_selfplay.cc.o
[ 41%] Building CXX object CMakeFiles/go_game.dir/go_state.cc.o
[ 47%] Building CXX object CMakeFiles/go_game.dir/offpolicy_loader.cc.o


In file included from /home/ubuntu/arvi_andrey/elf/facebook_elf/elf/../elf/replay_loader.h:3:0,
                 from /home/ubuntu/arvi_andrey/elf/facebook_elf/go/offpolicy_loader.h:3,
                 from /home/ubuntu/arvi_andrey/elf/facebook_elf/go/offpolicy_loader.cc:1:

/home/ubuntu/arvi_andrey/elf/facebook_elf/elf/../elf/shared_replay_buffer.h:10:26: error: 'function' in namespace 'std' does not name a template type
     using GenFunc = std::function<std::unique_ptr<Record> (const Key &)>;
                          ^~~~~~~~

/home/ubuntu/arvi_andrey/elf/facebook_elf/elf/../elf/shared_replay_buffer.h:12:32: error: expected ')' before 'gen'
     SharedReplayBuffer(GenFunc gen) : _gen(gen)
                                ^~~

/home/ubuntu/arvi_andrey/elf/facebook_elf/elf/../elf/shared_replay_buffer.h:40:5: error: 'GenFunc' does not name a type
     GenFunc _gen;
     ^~~~~~~

In file included from /usr/include/c++/7/cassert:44:0,
                 from /home/ubuntu/arvi_andrey/elf/facebook_elf/elf/../elf/shared_replay_buffer.h:5,
                 from /home/ubuntu/arvi_andrey/elf/facebook_elf/elf/../elf/replay_loader.h:3,
                 from /home/ubuntu/arvi_andrey/elf/facebook_elf/go/offpolicy_loader.h:3,
                 from /home/ubuntu/arvi_andrey/elf/facebook_elf/go/offpolicy_loader.cc:1:

/home/ubuntu/arvi_andrey/elf/facebook_elf/elf/../elf/shared_replay_buffer.h: In member function 'typename SharedReplayBuffer<Key, Record>::BufferType::const_iterator SharedReplayBuffer<Key, Record>::add_record_no_lock(const Key&)':
/home/ubuntu/arvi_andrey/elf/facebook_elf/elf/../elf/shared_replay_buffer.h:43:16: error: '_gen' was not declared in this scope
         assert(_gen != nullptr);
                ^

In file included from /home/ubuntu/arvi_andrey/elf/facebook_elf/go/offpolicy_loader.h:3:0,
                 from /home/ubuntu/arvi_andrey/elf/facebook_elf/go/offpolicy_loader.cc:1:

/home/ubuntu/arvi_andrey/elf/facebook_elf/elf/../elf/replay_loader.h: In instantiation of 'class elf::ReplayLoaderT<std::__cxx11::basic_string<char>, Sgf>':
/home/ubuntu/arvi_andrey/elf/facebook_elf/go/offpolicy_loader.h:9:75:   required from here
/home/ubuntu/arvi_andrey/elf/facebook_elf/elf/../elf/replay_loader.h:14:46: error: no type named 'GenFunc' in 'class SharedReplayBuffer<std::__cxx11::basic_string<char>, Sgf>'
     using GenFunc = typename RBuffer::GenFunc;
                                              ^

/home/ubuntu/arvi_andrey/elf/facebook_elf/go/offpolicy_loader.cc: In static member function 'static void OfflineLoader::InitSharedBuffer(const string&)':
/home/ubuntu/arvi_andrey/elf/facebook_elf/go/offpolicy_loader.cc:59:19: error: 'Init' is not a member of 'OfflineLoader::ReplayLoader {aka elf::ReplayLoaderT<std::__cxx11::basic_string<char>, Sgf>}'
     ReplayLoader::Init(gen);
                   ^~~~

CMakeFiles/go_game.dir/build.make:153: recipe for target 'CMakeFiles/go_game.dir/offpolicy_loader.cc.o' failed

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

No branches or pull requests

1 participant