{"action":"created","issue":{"url":"https://api.github.com/repos/PaddlePaddle/Paddle/issues/10680","repository_url":"https://api.github.com/repos/PaddlePaddle/Paddle","labels_url":"https://api.github.com/repos/PaddlePaddle/Paddle/issues/10680/labels{/name}","comments_url":"https://api.github.com/repos/PaddlePaddle/Paddle/issues/10680/comments","events_url":"https://api.github.com/repos/PaddlePaddle/Paddle/issues/10680/events","html_url":"https://github.com/PaddlePaddle/Paddle/issues/10680","id":323445111,"number":10680,"title":"use fluid capi build issue?","user":{"login":"gramce","id":17009832,"avatar_url":"https://avatars2.githubusercontent.com/u/17009832?v=4","gravatar_id":"","url":"https://api.github.com/users/gramce","html_url":"https://github.com/gramce","followers_url":"https://api.github.com/users/gramce/followers","following_url":"https://api.github.com/users/gramce/following{/other_user}","gists_url":"https://api.github.com/users/gramce/gists{/gist_id}","starred_url":"https://api.github.com/users/gramce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gramce/subscriptions","organizations_url":"https://api.github.com/users/gramce/orgs","repos_url":"https://api.github.com/users/gramce/repos","events_url":"https://api.github.com/users/gramce/events{/privacy}","received_events_url":"https://api.github.com/users/gramce/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-16T02:14:33Z","updated_at":"2018-05-16T02:30:52Z","closed_at":null,"author_association":"NONE","body":"The code is \r\n\r\n#include \"paddle/fluid/framework/init.h\"\r\n#include \"paddle/fluid/platform/place.h\"\r\n#include \"paddle/fluid/framework/executor.h\"\r\n#include \"paddle/fluid/framework/scope.h\"\r\nusing namespace std;\r\n\r\n\r\nint main()\r\n{\r\n    paddle::framework::InitDevices(false);\r\n    auto place    = paddle::platform::CPUPlace();\r\n    auto executor = paddle::framework::Executor(place);\r\n    auto *scope   = new paddle::framework::Scope();\r\n    return(0);\r\n}\r\n\r\nerror is:\r\nundefined reference to `paddle::framework::Executor::Executor(boost::variant<paddle::platform::CUDAPlace, paddle::platform::CPUPlace, paddle::platform::CUDAPinnedPlace> const&)'"},"comment":{"url":"https://api.github.com/repos/PaddlePaddle/Paddle/issues/comments/389375330","html_url":"https://github.com/PaddlePaddle/Paddle/issues/10680#issuecomment-389375330","issue_url":"https://api.github.com/repos/PaddlePaddle/Paddle/issues/10680","id":389375330,"user":{"login":"gramce","id":17009832,"avatar_url":"https://avatars2.githubusercontent.com/u/17009832?v=4","gravatar_id":"","url":"https://api.github.com/users/gramce","html_url":"https://github.com/gramce","followers_url":"https://api.github.com/users/gramce/followers","following_url":"https://api.github.com/users/gramce/following{/other_user}","gists_url":"https://api.github.com/users/gramce/gists{/gist_id}","starred_url":"https://api.github.com/users/gramce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gramce/subscriptions","organizations_url":"https://api.github.com/users/gramce/orgs","repos_url":"https://api.github.com/users/gramce/repos","events_url":"https://api.github.com/users/gramce/events{/privacy}","received_events_url":"https://api.github.com/users/gramce/received_events","type":"User","site_admin":false},"created_at":"2018-05-16T02:30:52Z","updated_at":"2018-05-16T02:30:52Z","author_association":"NONE","body":"And I had to add CONFIGS(\"third-64/boost@boost_1-57-0-200_PD_BL\") in the bcloud file\r\notherwise\r\n\r\nfail to analyze target: /home/map/gumeichuan_git/bc_out/baidu/eta/route-dnn/src/baidu_eta_route-dnn_route-dnn_app_main.cpp.o, error:\r\nIn file included from baidu/eta/route-dnn/paddle/paddle/fluid/platform/place.h:20:0,\r\n                 from baidu/eta/route-dnn/src/main.cpp:4:\r\nbaidu/eta/route-dnn/paddle/paddle/fluid/platform/variant.h:28:28: fatal error: boost/config.hpp: No such file or directory\r\n #include \"boost/config.hpp\"\r\n                            ^\r\ncompilation terminated.\r\n:\r\n/opt/compiler/gcc-4.8.2/bin/g++ -M baidu/eta/route-dnn/src/main.cpp -Ibaidu/eta/route-dnn -Ibaidu/eta/route-dnn/include -Ibc_out/baidu/eta/route-dnn/output/include -Ibaidu/eta/route-dnn/paddle -Ibaidu/eta/route-dnn/paddle/third_party/install/gflags/include -Ibaidu/eta/route-dnn/paddle/third_party/install/glog/include -Ibaidu/eta/route-dnn/paddle/third_party/install/protobuf/include -Ibaidu/eta/route-dnn/paddle/third_party/eigen3 -DBCLOUD -D__const__= -DNDEBUG -w -g -O2 -pipe -fPIC -std=c++11 -w"}}
{"actor":{"display_login":"gramce"}}