{"action":"created","issue":{"url":"https://api.github.com/repos/pytorch/translate/issues/253","repository_url":"https://api.github.com/repos/pytorch/translate","labels_url":"https://api.github.com/repos/pytorch/translate/issues/253/labels{/name}","comments_url":"https://api.github.com/repos/pytorch/translate/issues/253/comments","events_url":"https://api.github.com/repos/pytorch/translate/issues/253/events","html_url":"https://github.com/pytorch/translate/issues/253","id":378585290,"node_id":"MDU6SXNzdWUzNzg1ODUyOTA=","number":253,"title":"build translate fail under gcc 5.3.1","user":{"login":"wincent8","id":37363908,"node_id":"MDQ6VXNlcjM3MzYzOTA4","avatar_url":"https://avatars3.githubusercontent.com/u/37363908?v=4","gravatar_id":"","url":"https://api.github.com/users/wincent8","html_url":"https://github.com/wincent8","followers_url":"https://api.github.com/users/wincent8/followers","following_url":"https://api.github.com/users/wincent8/following{/other_user}","gists_url":"https://api.github.com/users/wincent8/gists{/gist_id}","starred_url":"https://api.github.com/users/wincent8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wincent8/subscriptions","organizations_url":"https://api.github.com/users/wincent8/orgs","repos_url":"https://api.github.com/users/wincent8/repos","events_url":"https://api.github.com/users/wincent8/events{/privacy}","received_events_url":"https://api.github.com/users/wincent8/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-11-08T05:32:50Z","updated_at":"2018-11-24T15:45:16Z","closed_at":null,"author_association":"NONE","body":"when i build translate with cuda 9.0, i meet below issues, did anyone meet the same issue?\r\n\r\n-- The C compiler identification is GNU 5.3.1\r\n-- The CXX compiler identification is GNU 5.3.1\r\n-- Check for working C compiler: /opt/rh/devtoolset-4/root/usr/bin/cc\r\n-- Check for working C compiler: /opt/rh/devtoolset-4/root/usr/bin/cc -- works\r\n-- Detecting C compiler ABI info\r\n-- Detecting C compiler ABI info - done\r\n-- Detecting C compile features\r\n-- Detecting C compile features - done\r\n-- Check for working CXX compiler: /opt/rh/devtoolset-4/root/usr/bin/c++\r\n-- Check for working CXX compiler: /opt/rh/devtoolset-4/root/usr/bin/c++ -- works\r\n-- Detecting CXX compiler ABI info\r\n-- Detecting CXX compiler ABI info - done\r\n-- Detecting CXX compile features\r\n-- Detecting CXX compile features - done\r\n-- Looking for pthread.h\r\n-- Looking for pthread.h - found\r\n-- Looking for pthread_create\r\n-- Looking for pthread_create - not found\r\n-- Looking for pthread_create in pthreads\r\n-- Looking for pthread_create in pthreads - not found\r\n-- Looking for pthread_create in pthread\r\n-- Looking for pthread_create in pthread - found\r\n-- Found Threads: TRUE  \r\n-- Caffe2: Found gflags with new-style gflags target.\r\n-- Caffe2: Cannot find glog automatically. Using legacy find.\r\n-- Found glog: /usr/include  \r\n-- Caffe2: Found glog (include: /usr/include, library: /usr/lib64/libglog.so)\r\n-- Caffe2: Found protobuf with new-style protobuf targets.\r\n-- Caffe2: Protobuf version 3.5.0\r\n-- Found CUDA: /usr/local/cuda (found suitable version \"9.0\", minimum required is \"7.0\") \r\n-- Caffe2: CUDA detected: 9.0\r\n-- Caffe2: CUDA nvcc is: /usr/local/cuda/bin/nvcc\r\n-- Caffe2: CUDA toolkit directory: /usr/local/cuda\r\n-- Caffe2: Header version is: 9.0\r\n-- Found CUDNN: /usr/local/cuda/include  \r\n-- Found cuDNN: v7.1.2  (include: /usr/local/cuda/include, library: /usr/local/cuda/lib64/libcudnn.so)\r\n-- Autodetected CUDA architecture(s): 6.0 \r\n-- Added CUDA NVCC flags for: -gencode;arch=compute_60,code=sm_60\r\n-- Summary:\r\n--   CMake version        : 3.11.1\r\n--   CMake command        : /home/wliao2/local/bin/cmake\r\n--   System name          : Linux\r\n--   C++ compiler         : /opt/rh/devtoolset-4/root/usr/bin/c++\r\n--   C++ compiler version : 5.3.1\r\n--   CXX flags            :  -std=c++11 -O2 -fPIC -Wno-narrowing\r\n--   Caffe2 version       : 0.8.2\r\n--   Caffe2 include path  : /home/wliao2/anaconda3/envs/translate/include\r\n--   Have CUDA            : \r\n-- Configuring done\r\n-- Generating done\r\n-- Build files have been written to: /home/wliao2/translate/pytorch_translate/cpp/build\r\n(translate) [xxx]$ make 2>&1 | tee MAKE_OUT\r\nScanning dependencies of target translation_decoder\r\n[ 16%] Building CXX object CMakeFiles/translation_decoder.dir/Decoder.cpp.o\r\n/home/wliao2/translate/pytorch_translate/cpp/Decoder.cpp:38:18: error: expected constructor, destructor, or type conversion before ‘(’ token\r\n C10_DEFINE_string(encoder_model, \"\", \"Encoder model path\");\r\n                  ^\r\n/home/wliao2/translate/pytorch_translate/cpp/Decoder.cpp:39:18: error: expected constructor, destructor, or type conversion before ‘(’ token\r\n C10_DEFINE_string(decoder_step_model, \"\", \"Decoder step model path\");\r\n                  ^\r\n/home/wliao2/translate/pytorch_translate/cpp/Decoder.cpp:40:18: error: expected constructor, destructor, or type conversion before ‘(’ token\r\n C10_DEFINE_string(source_vocab_path, \"\", \"Source vocab file\");\r\n                  ^\r\n/home/wliao2/translate/pytorch_translate/cpp/Decoder.cpp:41:18: error: expected constructor, destructor, or type conversion before ‘(’ token\r\n C10_DEFINE_string(target_vocab_path, \"\", \"Target vocab file\");\r\n                  ^\r\n/home/wliao2/translate/pytorch_translate/cpp/Decoder.cpp:43:15: error: expected constructor, destructor, or type conversion before ‘(’ token\r\n C10_DEFINE_int(beam_size, -1, \"Beam size\");\r\n               ^\r\n/home/wliao2/translate/pytorch_translate/cpp/Decoder.cpp:44:18: error: expected constructor, destructor, or type conversion before ‘(’ token\r\n C10_DEFINE_double(\r\n                  ^\r\n/home/wliao2/translate/pytorch_translate/cpp/Decoder.cpp:50:15: error: expected constructor, destructor, or type conversion before ‘(’ token\r\n C10_DEFINE_int(\r\n               ^\r\n/home/wliao2/translate/pytorch_translate/cpp/Decoder.cpp:57:16: error: expected constructor, destructor, or type conversion before ‘(’ token\r\n C10_DEFINE_bool(\r\n                ^\r\n/home/wliao2/translate/pytorch_translate/cpp/Decoder.cpp:61:16: error: expected constructor, destructor, or type conversion before ‘(’ token\r\n C10_DEFINE_bool(\r\n                ^\r\n/home/wliao2/translate/pytorch_translate/cpp/Decoder.cpp:65:16: error: expected constructor, destructor, or type conversion before ‘(’ token\r\n C10_DEFINE_bool(\r\n                ^\r\n/home/wliao2/translate/pytorch_translate/cpp/Decoder.cpp:69:18: error: expected constructor, destructor, or type conversion before ‘(’ token\r\n C10_DEFINE_double(\r\n                  ^\r\n/home/wliao2/translate/pytorch_translate/cpp/Decoder.cpp: In function ‘int main(int, char**)’:\r\n/home/wliao2/translate/pytorch_translate/cpp/Decoder.cpp:78:7: error: ‘FLAGS_source_vocab_path’ is not a member of ‘c10’\r\n   if (c10::FLAGS_source_vocab_path.empty() ||\r\n       ^\r\n/home/wliao2/translate/pytorch_translate/cpp/Decoder.cpp:79:7: error: ‘FLAGS_target_vocab_path’ is not a member of ‘c10’\r\n       c10::FLAGS_target_vocab_path.empty() ||\r\n       ^\r\n/home/wliao2/translate/pytorch_translate/cpp/Decoder.cpp:80:7: error: ‘FLAGS_encoder_model’ is not a member of ‘c10’\r\n       c10::FLAGS_encoder_model.empty() ||\r\n       ^\r\n/home/wliao2/translate/pytorch_translate/cpp/Decoder.cpp:81:7: error: ‘FLAGS_decoder_step_model’ is not a member of ‘c10’\r\n       c10::FLAGS_decoder_step_model.empty()) {\r\n       ^\r\n/home/wliao2/translate/pytorch_translate/cpp/Decoder.cpp:85:38: error: ‘FLAGS_source_vocab_path’ is not a member of ‘c10’\r\n         << \"(source_vocab_path='\" << c10::FLAGS_source_vocab_path\r\n                                      ^\r\n/home/wliao2/translate/pytorch_translate/cpp/Decoder.cpp:86:40: error: ‘FLAGS_target_vocab_path’ is not a member of ‘c10’\r\n         << \"', target_vocab_path='\" << c10::FLAGS_target_vocab_path\r\n                                        ^\r\n/home/wliao2/translate/pytorch_translate/cpp/Decoder.cpp:87:36: error: ‘FLAGS_encoder_model’ is not a member of ‘c10’\r\n         << \"', encoder_model='\" << c10::FLAGS_encoder_model\r\n                                    ^\r\n/home/wliao2/translate/pytorch_translate/cpp/Decoder.cpp:88:41: error: ‘FLAGS_decoder_step_model’ is not a member of ‘c10’\r\n         << \"', decoder_step_model='\" << c10::FLAGS_decoder_step_model << \"')\";\r\n                                         ^\r\n/home/wliao2/translate/pytorch_translate/cpp/Decoder.cpp:92:41: error: ‘FLAGS_source_vocab_path’ is not a member of ‘c10’\r\n       std::make_shared<pyt::Dictionary>(c10::FLAGS_source_vocab_path);\r\n                                         ^\r\n/home/wliao2/translate/pytorch_translate/cpp/Decoder.cpp:94:41: error: ‘FLAGS_target_vocab_path’ is not a member of ‘c10’\r\n       std::make_shared<pyt::Dictionary>(c10::FLAGS_target_vocab_path);\r\n                                         ^\r\n/home/wliao2/translate/pytorch_translate/cpp/Decoder.cpp:96:7: error: ‘FLAGS_beam_size’ is not a member of ‘c10’\r\n       c10::FLAGS_beam_size,\r\n       ^\r\n/home/wliao2/translate/pytorch_translate/cpp/Decoder.cpp:97:7: error: ‘FLAGS_max_out_seq_len_mult’ is not a member of ‘c10’\r\n       c10::FLAGS_max_out_seq_len_mult,\r\n       ^\r\n/home/wliao2/translate/pytorch_translate/cpp/Decoder.cpp:98:7: error: ‘FLAGS_max_out_seq_len_bias’ is not a member of ‘c10’\r\n       c10::FLAGS_max_out_seq_len_bias,\r\n       ^\r\n/home/wliao2/translate/pytorch_translate/cpp/Decoder.cpp:101:7: error: ‘FLAGS_encoder_model’ is not a member of ‘c10’\r\n       c10::FLAGS_encoder_model,\r\n       ^\r\n/home/wliao2/translate/pytorch_translate/cpp/Decoder.cpp:102:7: error: ‘FLAGS_decoder_step_model’ is not a member of ‘c10’\r\n       c10::FLAGS_decoder_step_model,\r\n       ^\r\n/home/wliao2/translate/pytorch_translate/cpp/Decoder.cpp:103:7: error: ‘FLAGS_reverse_source’ is not a member of ‘c10’\r\n       c10::FLAGS_reverse_source,\r\n       ^\r\n/home/wliao2/translate/pytorch_translate/cpp/Decoder.cpp:104:7: error: ‘FLAGS_stop_at_eos’ is not a member of ‘c10’\r\n       c10::FLAGS_stop_at_eos,\r\n       ^\r\n/home/wliao2/translate/pytorch_translate/cpp/Decoder.cpp:105:7: error: ‘FLAGS_append_eos_to_source’ is not a member of ‘c10’\r\n       c10::FLAGS_append_eos_to_source,\r\n       ^\r\n/home/wliao2/translate/pytorch_translate/cpp/Decoder.cpp:106:7: error: ‘FLAGS_length_penalty’ is not a member of ‘c10’\r\n       c10::FLAGS_length_penalty);\r\n       ^\r\nmake[2]: *** [CMakeFiles/translation_decoder.dir/Decoder.cpp.o] Error 1\r\nmake[1]: *** [CMakeFiles/translation_decoder.dir/all] Error 2\r\nmake: *** [all] Error 2\r\n"},"comment":{"url":"https://api.github.com/repos/pytorch/translate/issues/comments/441376452","html_url":"https://github.com/pytorch/translate/issues/253#issuecomment-441376452","issue_url":"https://api.github.com/repos/pytorch/translate/issues/253","id":441376452,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTM3NjQ1Mg==","user":{"login":"Faery-fire","id":45142184,"node_id":"MDQ6VXNlcjQ1MTQyMTg0","avatar_url":"https://avatars3.githubusercontent.com/u/45142184?v=4","gravatar_id":"","url":"https://api.github.com/users/Faery-fire","html_url":"https://github.com/Faery-fire","followers_url":"https://api.github.com/users/Faery-fire/followers","following_url":"https://api.github.com/users/Faery-fire/following{/other_user}","gists_url":"https://api.github.com/users/Faery-fire/gists{/gist_id}","starred_url":"https://api.github.com/users/Faery-fire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Faery-fire/subscriptions","organizations_url":"https://api.github.com/users/Faery-fire/orgs","repos_url":"https://api.github.com/users/Faery-fire/repos","events_url":"https://api.github.com/users/Faery-fire/events{/privacy}","received_events_url":"https://api.github.com/users/Faery-fire/received_events","type":"User","site_admin":false},"created_at":"2018-11-24T15:45:16Z","updated_at":"2018-11-24T15:45:16Z","author_association":"NONE","body":"Thanks!\r\n\r\nDo you know if it is possible to train the model without this stuff then export it later?\r\nAlso do you know if the transformer model will export to onnx?"}}
{"actor":{"display_login":"faerie-fire"}}