Giter Site home page Giter Site logo

how to run demo about anyq HOT 38 CLOSED

baidu avatar baidu commented on May 18, 2024
how to run demo

from anyq.

Comments (38)

yinweichong avatar yinweichong commented on May 18, 2024

host = ip or hostname of your own machine
port = 8999 ( configed in example/conf/anyq_brpc.conf )

from anyq.

DebbieDebbieli avatar DebbieDebbieli commented on May 18, 2024

I have a try:
screenshot from 2018-07-26 05-14-01
Besides all is in the virtual machine, does it matter ?

from anyq.

yinweichong avatar yinweichong commented on May 18, 2024

Make sure you have correct http access to your virtual machine.
Maybe you need port mapping / forward between virtual machine and local one.

from anyq.

DebbieDebbieli avatar DebbieDebbieli commented on May 18, 2024

The virtual machine can surf the internet.

from anyq.

yinweichong avatar yinweichong commented on May 18, 2024

You need to find out how to access your virtual machine from your local one.

Anyway, you can use "curl" to check the demo on your virtual machine

curl "127.0.0.1:8999/anyq?question=需要使用什么账号登录"

from anyq.

DebbieDebbieli avatar DebbieDebbieli commented on May 18, 2024

Test "curl "127.0.0.1:8999/anyq?question=需要使用什么账号登录" in virtual machine, get the result:
curl: (7) Failed to connect to 127.0.0.1 port 8999: Connection refused

from anyq.

yinweichong avatar yinweichong commented on May 18, 2024
  1. ./run_server 启动anyq的服务,然后测试;
  2. 虚拟机上本机的地址可能是,0.0.0.0 / localhost 等;

ps: 虚拟机访问问题,可以搜索:"虚拟机端口映射" 等关键词,查询相关信息

from anyq.

DebbieDebbieli avatar DebbieDebbieli commented on May 18, 2024
  1. 运行./run_server出现错误bash: ./run_server: No such file or directory
  2. 所有操作都是在虚拟机里,和虚拟机的端口映射还有关系吗?

from anyq.

yinweichong avatar yinweichong commented on May 18, 2024
  1. 确认下编译目录下(按照README.md是build),有没有产出run_server吧

  2. 我还以为你是在本地的浏览器访问虚拟机端口,理解错了

from anyq.

DebbieDebbieli avatar DebbieDebbieli commented on May 18, 2024

确实是没有run_server。又重新编译时,遇到下面问题
[ 5%] Built target extern_xgboost
[ 9%] Built target extern_zlib
[ 13%] Built target extern_protobuf
[libprotobuf WARNING /home/lbb/Downloads/AnyQ-master/build/third_party/protobuf/src/extern_protobuf/src/google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: anyq.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING /home/lbb/Downloads/AnyQ-master/build/third_party/protobuf/src/extern_protobuf/src/google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: http_service.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[ 17%] Built target proto_build
[ 21%] Built target extern_eigen
[ 25%] Built target extern_gtest
[ 30%] Built target extern_gflags
[ 35%] Built target extern_openssl
[ 39%] Built target extern_glog
[ 43%] Built target extern_leveldb
[ 47%] Built target extern_brpc
[ 52%] Built target extern_curl
[ 53%] Performing build step for 'extern_paddle'
[ 1%] Built target extern_eigen3
[ 1%] Built target extern_gflags
[ 2%] Built target extern_threadpool
[ 5%] Built target extern_boost
[ 3%] Built target extern_snappy
[ 3%] Built target extern_zlib
[ 3%] Built target extern_mklml
[ 4%] Built target swig
[ 6%] Built target extern_warpctc
[ 7%] Built target extern_lib_any
[ 7%] Built target framework_py_proto_init
[ 7%] Built target profiler_py_proto_init
paddle/fluid/framework/CMakeFiles/framework_py_proto.dir/build.make:60: *** target pattern contains no '%'. Stop.
CMakeFiles/Makefile2:2402: recipe for target 'paddle/fluid/framework/CMakeFiles/framework_py_proto.dir/all' failed
make[4]: *** [paddle/fluid/framework/CMakeFiles/framework_py_proto.dir/all] Error 2
make[4]: *** Waiting for unfinished jobs....
paddle/fluid/platform/CMakeFiles/profiler_py_proto.dir/build.make:60: *** target pattern contains no '%'. Stop.
CMakeFiles/Makefile2:1751: recipe for target 'paddle/fluid/platform/CMakeFiles/profiler_py_proto.dir/all' failed
make[4]: *** [paddle/fluid/platform/CMakeFiles/profiler_py_proto.dir/all] Error 2
[ 8%] Built target extern_glog
[ 8%] Built target extern_snappystream
[ 9%] Built target extern_protobuf
Makefile:105: recipe for target 'all' failed
make[3]: *** [all] Error 2
CMakeFiles/extern_paddle.dir/build.make:111: recipe for target 'third_party/paddle/src/extern_paddle-stamp/extern_paddle-build' failed
make[2]: *** [third_party/paddle/src/extern_paddle-stamp/extern_paddle-build] Error 2
CMakeFiles/Makefile2:857: recipe for target 'CMakeFiles/extern_paddle.dir/all' failed
make[1]: *** [CMakeFiles/extern_paddle.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

from anyq.

zhanghan1992 avatar zhanghan1992 commented on May 18, 2024

这个错误是跟cmake版本有关系,建议使用cmake 3.2.2

from anyq.

DebbieDebbieli avatar DebbieDebbieli commented on May 18, 2024

换了cmake3.2.2, 遇到下面问题:
[ 4%] Built target extern_eigen
[ 9%] Built target extern_curl
[ 14%] Built target extern_boost
[ 18%] Built target extern_xgboost
[ 23%] Built target extern_gtest
[ 23%] Performing build step for 'extern_paddle'
[ 1%] [ 2%] [ 3%] [ 4%] [ 5%] [ 6%] [ 7%] [ 8%] Built target swig
Built target extern_lib_any
[ 9%] Built target extern_zlib
Built target extern_threadpool
Built target extern_warpctc
[ 9%] Built target extern_eigen3
Built target extern_gflags
Built target extern_mklml
Built target extern_snappy
Built target extern_boost
[ 9%] [ 9%] Built target framework_py_proto_init
Built target profiler_py_proto_init
[ 9%] [ 10%] [ 11%] Built target extern_protobuf
Built target extern_glog
Built target extern_snappystream
[ 12%] [ 13%] [ 13%] Scanning dependencies of target gen_proto_py
Scanning dependencies of target framework_py_proto
Scanning dependencies of target profiler_py_proto
Running C++ protocol buffer compiler on framework.proto
[ 15%] [ 15%] [ 15%] [ 15%] [ 14%] Running C++ protocol buffer compiler on /home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/proto/ModelConfig.proto
Running C++ protocol buffer compiler on /home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/proto/ParameterServerConfig.proto
[ 15%] [ 15%] [ 15%] Built target lib_any
[ 15%] [ 15%] [ 15%] Built target eigen3
Built target boost
Built target cblas
[ 15%] Built target stringpiece
Built target simple_threadpool
Built target memory_block
[ 15%] [ 15%] [ 15%] Built target enforce
[ 16%] [ 16%] Running Python protocol buffer compiler on framework.proto
Running C++ protocol buffer compiler on /home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/proto/DataConfig.proto
[ 15%] Generating ../paddle/python/paddle/proto/ParameterServerConfig_pb2.py
[ 16%] Building CXX object paddle/fluid/recordio/CMakeFiles/header.dir/header.cc.o
[ 16%] Running C++ protocol buffer compiler on /home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/proto/OptimizerConfig.proto
Running C++ protocol buffer compiler on /home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/proto/ParameterConfig.proto
Built target activation_functions
Running Python protocol buffer compiler on profiler.proto
Generating ../paddle/python/paddle/proto/TrainerConfig_pb2.py
Running C++ protocol buffer compiler on /home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/proto/DataFormat.proto
[ 16%] Running C++ protocol buffer compiler on /home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/proto/ParameterService.proto
Generating ../paddle/python/paddle/proto/ParameterService_pb2.py
Copy generated python proto into directory paddle/fluid/proto.
Running C++ protocol buffer compiler on /home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/proto/TrainerConfig.proto
[ 16%] Copy generated python proto into directory paddle/fluid/proto/profiler.
Generating ../paddle/python/paddle/proto/DataFormat_pb2.py
Scanning dependencies of target framework_proto
[ 16%] [ 16%] [ 16%] [ 16%] [ 16%] [ 16%] Built target profiler_py_proto
[ 16%] Built target framework_py_proto
Generating ../paddle/python/paddle/proto/DataConfig_pb2.py
Generating ../paddle/python/paddle/proto/ParameterConfig_pb2.py
Generating ../paddle/python/paddle/proto/OptimizerConfig_pb2.py
Generating ../paddle/python/paddle/proto/ModelConfig_pb2.py
Building CXX object paddle/fluid/framework/CMakeFiles/threadpool.dir/threadpool.cc.o
[ 17%] Built target cpu_info
[ 17%] [ 17%] [ 18%] Scanning dependencies of target paddle_proto
Building CXX object paddle/fluid/platform/dynload/CMakeFiles/dynamic_loader.dir/dynamic_loader.cc.o
[ 18%] Building CXX object paddle/fluid/framework/CMakeFiles/ddim.dir/ddim.cc.o
Building CXX object paddle/fluid/framework/CMakeFiles/framework_proto.dir/framework.pb.cc.o
Built target gen_proto_py
[ 18%] Built target place
[ 18%] Building CXX object paddle/fluid/memory/detail/CMakeFiles/system_allocator.dir/system_allocator.cc.o
[ 18%] Built target var_handle
[ 18%] Built target memcpy
[ 18%] [ 18%] [ 18%] [ 18%] [ 18%] [ 18%] [ 18%] [ 18%] Building CXX object proto/CMakeFiles/paddle_proto.dir/ModelConfig.pb.cc.o
Building CXX object proto/CMakeFiles/paddle_proto.dir/DataConfig.pb.cc.o
Building CXX object proto/CMakeFiles/paddle_proto.dir/ParameterServerConfig.pb.cc.o
Building CXX object proto/CMakeFiles/paddle_proto.dir/ParameterConfig.pb.cc.o
Building CXX object proto/CMakeFiles/paddle_proto.dir/DataFormat.pb.cc.o
Building CXX object proto/CMakeFiles/paddle_proto.dir/OptimizerConfig.pb.cc.o
Building CXX object proto/CMakeFiles/paddle_proto.dir/ParameterService.pb.cc.o
Building CXX object proto/CMakeFiles/paddle_proto.dir/TrainerConfig.pb.cc.o
In file included from /home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/printf.h:76:0,
from /home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/platform/enforce.h:40,
from /home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/recordio/header.cc:19:
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h: In function ‘const char* paddle::string::tinyformat::detail::streamStateFromFormat(std::ostream&, bool&, int&, const char*, const paddle::string::tinyformat::detail::FormatArg*, int&, int)’:
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:673:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
out.setf(std::ios::uppercase);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:674:5: note: here
case 'x':
^~~~
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:680:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
out.setf(std::ios::uppercase);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:681:5: note: here
case 'e':
^~~~
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:686:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
out.setf(std::ios::uppercase);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:687:5: note: here
case 'f':
^~~~
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:691:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
out.setf(std::ios::uppercase);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:692:5: note: here
case 'g':
^~~~
In file included from /home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/printf.h:76:0,
from /home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/platform/enforce.h:40,
from /home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/memory/detail/system_allocator.cc:24:
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h: In function ‘const char* paddle::string::tinyformat::detail::streamStateFromFormat(std::ostream&, bool&, int&, const char*, const paddle::string::tinyformat::detail::FormatArg*, int&, int)’:
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:673:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
out.setf(std::ios::uppercase);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:674:5: note: here
case 'x':
^~~~
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:680:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
out.setf(std::ios::uppercase);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:681:5: note: here
case 'e':
^~~~
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:686:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
out.setf(std::ios::uppercase);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:687:5: note: here
case 'f':
^~~~
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:691:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
out.setf(std::ios::uppercase);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:692:5: note: here
case 'g':
^~~~
In file included from /home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/printf.h:76:0,
from /home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/platform/enforce.h:40,
from /home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/platform/dynload/dynamic_loader.cc:25:
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h: In function ‘const char* paddle::string::tinyformat::detail::streamStateFromFormat(std::ostream&, bool&, int&, const char*, const paddle::string::tinyformat::detail::FormatArg*, int&, int)’:
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:673:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
out.setf(std::ios::uppercase);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:674:5: note: here
case 'x':
^~~~
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:680:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
out.setf(std::ios::uppercase);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:681:5: note: here
case 'e':
^~~~
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:686:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
out.setf(std::ios::uppercase);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:687:5: note: here
case 'f':
^~~~
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:691:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
out.setf(std::ios::uppercase);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:692:5: note: here
case 'g':
^~~~
In file included from /home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/printf.h:76:0,
from /home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/platform/enforce.h:40,
from /home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/framework/threadpool.h:25,
from /home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/framework/threadpool.cc:15:
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h: In function ‘const char* paddle::string::tinyformat::detail::streamStateFromFormat(std::ostream&, bool&, int&, const char*, const paddle::string::tinyformat::detail::FormatArg*, int&, int)’:
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:673:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
out.setf(std::ios::uppercase);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:674:5: note: here
case 'x':
^~~~
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:680:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
out.setf(std::ios::uppercase);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:681:5: note: here
case 'e':
^~~~
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:686:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
out.setf(std::ios::uppercase);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:687:5: note: here
case 'f':
^~~~
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:691:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
out.setf(std::ios::uppercase);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:692:5: note: here
case 'g':
^~~~
cc1plus: all warnings being treated as errors
paddle/fluid/recordio/CMakeFiles/header.dir/build.make:54: recipe for target 'paddle/fluid/recordio/CMakeFiles/header.dir/header.cc.o' failed
make[5]: *** [paddle/fluid/recordio/CMakeFiles/header.dir/header.cc.o] Error 1
CMakeFiles/Makefile2:21800: recipe for target 'paddle/fluid/recordio/CMakeFiles/header.dir/all' failed
make[4]: *** [paddle/fluid/recordio/CMakeFiles/header.dir/all] Error 2
make[4]: *** Waiting for unfinished jobs....
In file included from /home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/printf.h:76:0,
from /home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/platform/enforce.h:40,
from /home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/framework/ddim.h:21,
from /home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/framework/ddim.cc:15:
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h: In function ‘const char* paddle::string::tinyformat::detail::streamStateFromFormat(std::ostream&, bool&, int&, const char*, const paddle::string::tinyformat::detail::FormatArg*, int&, int)’:
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:673:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
out.setf(std::ios::uppercase);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:674:5: note: here
case 'x':
^~~~
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:680:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
out.setf(std::ios::uppercase);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:681:5: note: here
case 'e':
^~~~
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:686:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
out.setf(std::ios::uppercase);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:687:5: note: here
case 'f':
^~~~
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:691:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
out.setf(std::ios::uppercase);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/home/lbb/Downloads/AnyQ-master/build/third_party/paddle/src/extern_paddle/paddle/fluid/string/tinyformat/tinyformat.h:692:5: note: here
case 'g':
^~~~
cc1plus: all warnings being treated as errors
paddle/fluid/memory/detail/CMakeFiles/system_allocator.dir/build.make:54: recipe for target 'paddle/fluid/memory/detail/CMakeFiles/system_allocator.dir/system_allocator.cc.o' failed
make[5]: *** [paddle/fluid/memory/detail/CMakeFiles/system_allocator.dir/system_allocator.cc.o] Error 1
CMakeFiles/Makefile2:1648: recipe for target 'paddle/fluid/memory/detail/CMakeFiles/system_allocator.dir/all' failed
make[4]: *** [paddle/fluid/memory/detail/CMakeFiles/system_allocator.dir/all] Error 2
cc1plus: all warnings being treated as errors
paddle/fluid/platform/dynload/CMakeFiles/dynamic_loader.dir/build.make:54: recipe for target 'paddle/fluid/platform/dynload/CMakeFiles/dynamic_loader.dir/dynamic_loader.cc.o' failed
make[5]: *** [paddle/fluid/platform/dynload/CMakeFiles/dynamic_loader.dir/dynamic_loader.cc.o] Error 1
CMakeFiles/Makefile2:2090: recipe for target 'paddle/fluid/platform/dynload/CMakeFiles/dynamic_loader.dir/all' failed
make[4]: *** [paddle/fluid/platform/dynload/CMakeFiles/dynamic_loader.dir/all] Error 2
cc1plus: all warnings being treated as errors
paddle/fluid/framework/CMakeFiles/threadpool.dir/build.make:54: recipe for target 'paddle/fluid/framework/CMakeFiles/threadpool.dir/threadpool.cc.o' failed
make[5]: *** [paddle/fluid/framework/CMakeFiles/threadpool.dir/threadpool.cc.o] Error 1
CMakeFiles/Makefile2:3721: recipe for target 'paddle/fluid/framework/CMakeFiles/threadpool.dir/all' failed
make[4]: *** [paddle/fluid/framework/CMakeFiles/threadpool.dir/all] Error 2
cc1plus: all warnings being treated as errors
paddle/fluid/framework/CMakeFiles/ddim.dir/build.make:54: recipe for target 'paddle/fluid/framework/CMakeFiles/ddim.dir/ddim.cc.o' failed
make[5]: *** [paddle/fluid/framework/CMakeFiles/ddim.dir/ddim.cc.o] Error 1
CMakeFiles/Makefile2:2544: recipe for target 'paddle/fluid/framework/CMakeFiles/ddim.dir/all' failed
make[4]: *** [paddle/fluid/framework/CMakeFiles/ddim.dir/all] Error 2
Linking CXX static library libframework_proto.a
[ 18%] Built target framework_proto
Linking CXX static library libpaddle_proto.a
[ 18%] Built target paddle_proto
Makefile:95: recipe for target 'all' failed
make[3]: *** [all] Error 2
CMakeFiles/extern_paddle.dir/build.make:109: recipe for target 'third_party/paddle/src/extern_paddle-stamp/extern_paddle-build' failed
make[2]: *** [third_party/paddle/src/extern_paddle-stamp/extern_paddle-build] Error 2
CMakeFiles/Makefile2:598: recipe for target 'CMakeFiles/extern_paddle.dir/all' failed
make[1]: *** [CMakeFiles/extern_paddle.dir/all] Error 2
Makefile:75: recipe for target 'all' failed
make: *** [all] Error 2

from anyq.

zhanghan1992 avatar zhanghan1992 commented on May 18, 2024

你的gcc会默认把一些warning当作error。改一下环境变量:
export CFLAGS="-Wno-error"
export CXXFLAGS="-Wno-error"
然后继续编译

from anyq.

DebbieDebbieli avatar DebbieDebbieli commented on May 18, 2024

改了环境变量,遇到这个错误,是缺少什么第三方库吗?
[ 13%] Completed 'swig'
[ 13%] Built target swig
Makefile:95: recipe for target 'all' failed
make[3]: *** [all] Error 2
CMakeFiles/extern_paddle.dir/build.make:109: recipe for target 'third_party/paddle/src/extern_paddle-stamp/extern_paddle-build' failed
make[2]: *** [third_party/paddle/src/extern_paddle-stamp/extern_paddle-build] Error 2
CMakeFiles/Makefile2:598: recipe for target 'CMakeFiles/extern_paddle.dir/all' failed
make[1]: *** [CMakeFiles/extern_paddle.dir/all] Error 2
Makefile:75: recipe for target 'all' failed
make: *** [all] Error 2

from anyq.

zhanghan1992 avatar zhanghan1992 commented on May 18, 2024

你贴的错误信息不全,把完整的错误信息贴一下。

from anyq.

DebbieDebbieli avatar DebbieDebbieli commented on May 18, 2024

应该还是cc1plus: all warnings being treated as errors这个错误,在/etc/profile中设置了CFLAGS和CXXFLAGS还是有这个错误

from anyq.

zhanghan1992 avatar zhanghan1992 commented on May 18, 2024

echo $CFLAGS
echo $CXXFLAGS
看一下环境变量是否配置生效

from anyq.

DebbieDebbieli avatar DebbieDebbieli commented on May 18, 2024

image

from anyq.

zhanghan1992 avatar zhanghan1992 commented on May 18, 2024

改了环境变量以后是不是没有重新cmake?

from anyq.

DebbieDebbieli avatar DebbieDebbieli commented on May 18, 2024

重新cmake ... && make了好几遍

from anyq.

yinweichong avatar yinweichong commented on May 18, 2024

make的时候可以尝试命令行指定(来自搜索结果):
make CFLAGS="... -Wno-error" CXXFLAGS="... -Wno-error"

如果条件允许的话,可以使用docker方式安装AnyQ,编译简单一些,参考README.md;

from anyq.

Bingogogogogo avatar Bingogogogogo commented on May 18, 2024

也碰到了跟@BeibeiLi一样的问题
sed -i "s/-Werror/ /g" grep "Werror" -rl ./ & make
用这个笨办法把makefile的所有-Werror替换掉,这部分编译过了

但后面有其他错误
正克隆到 'lac'...
remote: Counting objects: 122, done.
remote: Compressing objects: 100% (83/83), done.
remote: Total 122 (delta 33), reused 111 (delta 29), pack-reused 0
接收对象中: 100% (122/122), 363.99 KiB | 220.00 KiB/s, done.
处理 delta 中: 100% (33/33), done.
Note: checking out 'v1.0.0'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

git checkout -b new_branch_name

HEAD 目前位于 6d193d4... add word_emb file
[ 33%] No patch step for 'extern_lac'
[ 33%] No update step for 'extern_lac'
[ 33%] No configure step for 'extern_lac'
[ 34%] Performing build step for 'extern_lac'
-- The CXX compiler identification is GNU 4.8.2
-- The C compiler identification is GNU 4.8.2
-- Check for working CXX compiler: /usr/local/bin/c++
-- Check for working CXX compiler: /usr/local/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/local/bin/gcc
-- Check for working C compiler: /usr/local/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- CXX compiler: /usr/local/bin/c++, version: GNU 4.8.2
-- C compiler: /usr/local/bin/gcc, version: GNU 4.8.2
-- $PADDLE_ROOT is set to '/home/XXX/github/AnyQ/build/third_party/install/paddle/fluid_install_dir'
-- MKLDNN lib not found.
-- MKLML lib found.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/XXX/github/AnyQ/build/third_party/lac/src/lac
[ 35%] Performing install step for 'extern_lac'
Scanning dependencies of target lac
[ 12%] Building CXX object CMakeFiles/lac.dir/src/customization_tagger.cpp.o
[ 25%] Building CXX object CMakeFiles/lac.dir/src/ilac.cpp.o
[ 37%] Building CXX object CMakeFiles/lac.dir/src/lac.cpp.o
[ 50%] Building CXX object CMakeFiles/lac.dir/src/lac_util.cpp.o
[ 62%] Building CXX object CMakeFiles/lac.dir/src/main_tagger.cpp.o
[ 75%] Linking CXX static library liblac.a
[ 75%] Built target lac
Scanning dependencies of target lac_demo
[ 87%] Building CXX object CMakeFiles/lac_demo.dir/test/src/lac_demo.cpp.o
[100%] Linking CXX executable lac_demo
/home/XXX/github/AnyQ/build/third_party/install/paddle/fluid_install_dir/third_party/install/mklml/lib/libiomp5.so: file not recognized: 不可识别的文件格式
collect2: 错误:ld 返回 1
make[5]: *** [lac_demo] 错误 1
make[4]: *** [CMakeFiles/lac_demo.dir/all] 错误 2
make[3]: *** [all] 错误 2
make[2]: *** [third_party/lac/src/extern_lac-stamp/extern_lac-install] 错误 2
make[1]: *** [CMakeFiles/extern_lac.dir/all] 错误 2
make: *** [all] 错误 2

from anyq.

yinweichong avatar yinweichong commented on May 18, 2024

@k0k0xili 看这个错误可能是你的操作系统版本过低,mklml库不支持导致;
请提供下操作系统相关信息,可以通过如下命令:

cat /etc/issue.net
uname -a

from anyq.

Bingogogogogo avatar Bingogogogogo commented on May 18, 2024

@yinweichong

[XXX@XX-Worker-Server07 lib]$ cat /etc/issue.net
uname -a\S
Kernel \r on an \m
[XXX@XX-Worker-Server07 lib]$ uname -a
Linux XX-Worker-Server07 3.10.0-693.11.6.el7.x86_64 #1 SMP Thu Jan 4 01:06:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

from anyq.

zhanghan1992 avatar zhanghan1992 commented on May 18, 2024

@k0k0xili 我测试了一下,你这种方式sed会把libiomp5.so也给改了。试一下:

sed -i "s/-Werror / /g" `find ./ -name "Makefile"` `find ./ -name "*.mk"`

from anyq.

Bingogogogogo avatar Bingogogogogo commented on May 18, 2024

@zhanghan1992
测试好几次,这个方法好像行不通,后来我自己装了一个mkl-dnn,再把报错目录下的libiomp5.so删掉,编译通过了,但后面报了跟这个issu类似错误:https://github.com/baidu/AnyQ/issues/14

from anyq.

zhanghan1992 avatar zhanghan1992 commented on May 18, 2024

@k0k0xili 你也是编译glog报的错误?贴一下

from anyq.

Bingogogogogo avatar Bingogogogogo commented on May 18, 2024

@zhanghan1992

Scanning dependencies of target extern_glog
[ 57%] Creating directories for 'extern_glog'
[ 58%] Performing download step for 'extern_glog'
Archive:  glog-0.3.5.zip
a6a166db069520dbbd653c97c2e5b12e08a8bb26
   creating: glog-0.3.5/
  inflating: glog-0.3.5/.gitignore   
  inflating: glog-0.3.5/AUTHORS      
  inflating: glog-0.3.5/CMakeLists.txt  
  inflating: glog-0.3.5/CONTRIBUTING.md  
  inflating: glog-0.3.5/CONTRIBUTORS  
  inflating: glog-0.3.5/COPYING      
  inflating: glog-0.3.5/ChangeLog    
  inflating: glog-0.3.5/INSTALL      
  inflating: glog-0.3.5/Makefile.am  
  inflating: glog-0.3.5/Makefile.in  
 extracting: glog-0.3.5/NEWS         
  inflating: glog-0.3.5/README       
  inflating: glog-0.3.5/README.windows  
  inflating: glog-0.3.5/aclocal.m4   
   creating: glog-0.3.5/cmake/
  inflating: glog-0.3.5/cmake/DetermineGflagsNamespace.cmake  
  inflating: glog-0.3.5/cmake/INSTALL.md  
  inflating: glog-0.3.5/compile      
  inflating: glog-0.3.5/config.guess  
  inflating: glog-0.3.5/config.sub   
  inflating: glog-0.3.5/configure    
  inflating: glog-0.3.5/configure.ac  
  inflating: glog-0.3.5/depcomp      
   creating: glog-0.3.5/doc/
  inflating: glog-0.3.5/doc/designstyle.css  
  inflating: glog-0.3.5/doc/glog.html  
  inflating: glog-0.3.5/glog-config.cmake.in  
  inflating: glog-0.3.5/google-glog.sln  
  inflating: glog-0.3.5/install-sh   
  inflating: glog-0.3.5/libglog.pc.in  
  inflating: glog-0.3.5/ltmain.sh    
   creating: glog-0.3.5/m4/
  inflating: glog-0.3.5/m4/ac_have_attribute.m4  
  inflating: glog-0.3.5/m4/ac_have_builtin_expect.m4  
  inflating: glog-0.3.5/m4/ac_have_sync_val_compare_and_swap.m4  
  inflating: glog-0.3.5/m4/ac_rwlock.m4  
  inflating: glog-0.3.5/m4/acx_pthread.m4  
  inflating: glog-0.3.5/m4/google_namespace.m4  
  inflating: glog-0.3.5/m4/libtool.m4  
  inflating: glog-0.3.5/m4/ltoptions.m4  
  inflating: glog-0.3.5/m4/ltsugar.m4  
  inflating: glog-0.3.5/m4/ltversion.m4  
  inflating: glog-0.3.5/m4/lt~obsolete.m4  
  inflating: glog-0.3.5/m4/namespaces.m4  
  inflating: glog-0.3.5/m4/pc_from_ucontext.m4  
  inflating: glog-0.3.5/m4/stl_namespace.m4  
  inflating: glog-0.3.5/m4/using_operator.m4  
  inflating: glog-0.3.5/missing      
  inflating: glog-0.3.5/mkinstalldirs  
   creating: glog-0.3.5/packages/
  inflating: glog-0.3.5/packages/deb.sh  
   creating: glog-0.3.5/packages/deb/
  inflating: glog-0.3.5/packages/deb/README  
  inflating: glog-0.3.5/packages/deb/changelog  
 extracting: glog-0.3.5/packages/deb/compat  
  inflating: glog-0.3.5/packages/deb/control  
  inflating: glog-0.3.5/packages/deb/copyright  
  inflating: glog-0.3.5/packages/deb/docs  
  inflating: glog-0.3.5/packages/deb/libgoogle-glog-dev.dirs  
  inflating: glog-0.3.5/packages/deb/libgoogle-glog-dev.install  
 extracting: glog-0.3.5/packages/deb/libgoogle-glog0.dirs  
  inflating: glog-0.3.5/packages/deb/libgoogle-glog0.install  
  inflating: glog-0.3.5/packages/deb/rules  
  inflating: glog-0.3.5/packages/rpm.sh  
   creating: glog-0.3.5/packages/rpm/
  inflating: glog-0.3.5/packages/rpm/rpm.spec  
   creating: glog-0.3.5/src/
   creating: glog-0.3.5/src/base/
  inflating: glog-0.3.5/src/base/commandlineflags.h  
  inflating: glog-0.3.5/src/base/googleinit.h  
  inflating: glog-0.3.5/src/base/mutex.h  
  inflating: glog-0.3.5/src/config.h.cmake.in  
  inflating: glog-0.3.5/src/config.h.in  
  inflating: glog-0.3.5/src/config_for_unittests.h  
  inflating: glog-0.3.5/src/demangle.cc  
  inflating: glog-0.3.5/src/demangle.h  
  inflating: glog-0.3.5/src/demangle_unittest.cc  
  inflating: glog-0.3.5/src/demangle_unittest.sh  
  inflating: glog-0.3.5/src/demangle_unittest.txt  
   creating: glog-0.3.5/src/glog/
  inflating: glog-0.3.5/src/glog/log_severity.h  
  inflating: glog-0.3.5/src/glog/logging.h.in  
  inflating: glog-0.3.5/src/glog/raw_logging.h.in  
  inflating: glog-0.3.5/src/glog/stl_logging.h.in  
  inflating: glog-0.3.5/src/glog/vlog_is_on.h.in  
  inflating: glog-0.3.5/src/googletest.h  
  inflating: glog-0.3.5/src/logging.cc  
  inflating: glog-0.3.5/src/logging_striplog_test.sh  
  inflating: glog-0.3.5/src/logging_striptest10.cc  
  inflating: glog-0.3.5/src/logging_striptest2.cc  
  inflating: glog-0.3.5/src/logging_striptest_main.cc  
  inflating: glog-0.3.5/src/logging_unittest.cc  
  inflating: glog-0.3.5/src/logging_unittest.err  
  inflating: glog-0.3.5/src/mock-log.h  
  inflating: glog-0.3.5/src/mock-log_test.cc  
  inflating: glog-0.3.5/src/raw_logging.cc  
  inflating: glog-0.3.5/src/signalhandler.cc  
  inflating: glog-0.3.5/src/signalhandler_unittest.cc  
  inflating: glog-0.3.5/src/signalhandler_unittest.sh  
  inflating: glog-0.3.5/src/stacktrace.h  
  inflating: glog-0.3.5/src/stacktrace_generic-inl.h  
  inflating: glog-0.3.5/src/stacktrace_libunwind-inl.h  
  inflating: glog-0.3.5/src/stacktrace_powerpc-inl.h  
  inflating: glog-0.3.5/src/stacktrace_unittest.cc  
  inflating: glog-0.3.5/src/stacktrace_x86-inl.h  
  inflating: glog-0.3.5/src/stacktrace_x86_64-inl.h  
  inflating: glog-0.3.5/src/stl_logging_unittest.cc  
  inflating: glog-0.3.5/src/symbolize.cc  
  inflating: glog-0.3.5/src/symbolize.h  
  inflating: glog-0.3.5/src/symbolize_unittest.cc  
  inflating: glog-0.3.5/src/utilities.cc  
  inflating: glog-0.3.5/src/utilities.h  
  inflating: glog-0.3.5/src/utilities_unittest.cc  
  inflating: glog-0.3.5/src/vlog_is_on.cc  
   creating: glog-0.3.5/src/windows/
  inflating: glog-0.3.5/src/windows/config.h  
   creating: glog-0.3.5/src/windows/glog/
  inflating: glog-0.3.5/src/windows/glog/log_severity.h  
  inflating: glog-0.3.5/src/windows/glog/logging.h  
  inflating: glog-0.3.5/src/windows/glog/raw_logging.h  
  inflating: glog-0.3.5/src/windows/glog/stl_logging.h  
  inflating: glog-0.3.5/src/windows/glog/vlog_is_on.h  
  inflating: glog-0.3.5/src/windows/port.cc  
  inflating: glog-0.3.5/src/windows/port.h  
  inflating: glog-0.3.5/src/windows/preprocess.sh  
    linking: glog-0.3.5/test-driver  -> /usr/share/automake-1.14/test-driver 
   creating: glog-0.3.5/vsprojects/
   creating: glog-0.3.5/vsprojects/libglog/
  inflating: glog-0.3.5/vsprojects/libglog/libglog.vcproj  
   creating: glog-0.3.5/vsprojects/libglog_static/
  inflating: glog-0.3.5/vsprojects/libglog_static/libglog_static.vcproj  
   creating: glog-0.3.5/vsprojects/logging_unittest/
  inflating: glog-0.3.5/vsprojects/logging_unittest/logging_unittest.vcproj  
   creating: glog-0.3.5/vsprojects/logging_unittest_static/
  inflating: glog-0.3.5/vsprojects/logging_unittest_static/logging_unittest_static.vcproj  
finishing deferred symbolic links:
  glog-0.3.5/test-driver -> /usr/share/automake-1.14/test-driver
[ 59%] No patch step for 'extern_glog'
[ 59%] No update step for 'extern_glog'
[ 59%] No configure step for 'extern_glog'
[ 60%] No build step for 'extern_glog'
[ 61%] Performing install step for 'extern_glog'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/home/XXX/github/AnyQ/build/third_party/glog/src/glog-0.3.5/missing: Unknown `--is-lightweight' option
Try `/home/XXX/github/AnyQ/build/third_party/glog/src/glog-0.3.5/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking for ANSI C header files... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for ANSI C header files... (cached) no
checking for stdint.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for unistd.h... (cached) yes
checking syscall.h usability... yes
checking syscall.h presence... yes
checking for syscall.h... yes
checking sys/syscall.h usability... yes
checking sys/syscall.h presence... yes
checking for sys/syscall.h... yes
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking libunwind.h usability... no
checking libunwind.h presence... no
checking for libunwind.h... no
checking ucontext.h usability... yes
checking ucontext.h presence... yes
checking for ucontext.h... yes
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking glob.h usability... yes
checking glob.h presence... yes
checking for glob.h... yes
checking unwind.h usability... yes
checking unwind.h presence... yes
checking for unwind.h... yes
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking size of void *... 8
checking for uint16_t... yes
checking for u_int16_t... yes
checking for __uint16... no
checking for sigaltstack... yes
checking for sigaction... yes
checking for dladdr... no
checking for fcntl... yes
checking for pread... yes
checking for pwrite... yes
checking for __attribute__... yes
checking for __builtin_expect... yes
checking for __sync_val_compare_and_swap... yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking whether to check for GCC pthread/shared inconsistencies... yes
checking whether -pthread is sufficient with -shared... yes
checking for pthread_self in -lpthread... yes
checking for main in -lgflags... yes
checking for gtest-config... no
checking for main in -lgtest... no
checking support for pthread_rwlock_* functions... yes
checking whether the compiler implements namespaces... yes
checking what namespace STL code is in... std
checking whether compiler supports using ::operator<<... 1
checking for ucontext.h... (cached) yes
checking sys/ucontext.h usability... yes
checking sys/ucontext.h presence... yes
checking for sys/ucontext.h... yes
checking how to access the program counter from a struct ucontext... uc_mcontext.gregs[REG_RIP]
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/glog/logging.h
config.status: creating src/glog/raw_logging.h
config.status: creating src/glog/vlog_is_on.h
config.status: creating src/glog/stl_logging.h
config.status: creating libglog.pc
config.status: creating src/config.h
config.status: executing depfiles commands
config.status: executing libtool commands
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -Wno-error -MT src/libglog_la-logging.lo -MD -MP -MF src/.deps/libglog_la-logging.Tpo -c src/logging.cc  -fPIC -DPIC -o src/.libs/libglog_la-logging.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -Wno-error -MT src/libglog_la-logging.lo -MD -MP -MF src/.deps/libglog_la-logging.Tpo -c src/logging.cc -o src/libglog_la-logging.o >/dev/null 2>&1
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -Wno-error -MT src/libglog_la-raw_logging.lo -MD -MP -MF src/.deps/libglog_la-raw_logging.Tpo -c src/raw_logging.cc  -fPIC -DPIC -o src/.libs/libglog_la-raw_logging.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -Wno-error -MT src/libglog_la-raw_logging.lo -MD -MP -MF src/.deps/libglog_la-raw_logging.Tpo -c src/raw_logging.cc -o src/libglog_la-raw_logging.o >/dev/null 2>&1
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -Wno-error -MT src/libglog_la-vlog_is_on.lo -MD -MP -MF src/.deps/libglog_la-vlog_is_on.Tpo -c src/vlog_is_on.cc  -fPIC -DPIC -o src/.libs/libglog_la-vlog_is_on.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -Wno-error -MT src/libglog_la-vlog_is_on.lo -MD -MP -MF src/.deps/libglog_la-vlog_is_on.Tpo -c src/vlog_is_on.cc -o src/libglog_la-vlog_is_on.o >/dev/null 2>&1
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -Wno-error -MT src/libglog_la-utilities.lo -MD -MP -MF src/.deps/libglog_la-utilities.Tpo -c src/utilities.cc  -fPIC -DPIC -o src/.libs/libglog_la-utilities.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -Wno-error -MT src/libglog_la-utilities.lo -MD -MP -MF src/.deps/libglog_la-utilities.Tpo -c src/utilities.cc -o src/libglog_la-utilities.o >/dev/null 2>&1
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -Wno-error -MT src/libglog_la-demangle.lo -MD -MP -MF src/.deps/libglog_la-demangle.Tpo -c src/demangle.cc  -fPIC -DPIC -o src/.libs/libglog_la-demangle.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -Wno-error -MT src/libglog_la-demangle.lo -MD -MP -MF src/.deps/libglog_la-demangle.Tpo -c src/demangle.cc -o src/libglog_la-demangle.o >/dev/null 2>&1
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -Wno-error -MT src/libglog_la-symbolize.lo -MD -MP -MF src/.deps/libglog_la-symbolize.Tpo -c src/symbolize.cc  -fPIC -DPIC -o src/.libs/libglog_la-symbolize.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -Wno-error -MT src/libglog_la-symbolize.lo -MD -MP -MF src/.deps/libglog_la-symbolize.Tpo -c src/symbolize.cc -o src/libglog_la-symbolize.o >/dev/null 2>&1
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -Wno-error -MT src/libglog_la-signalhandler.lo -MD -MP -MF src/.deps/libglog_la-signalhandler.Tpo -c src/signalhandler.cc  -fPIC -DPIC -o src/.libs/libglog_la-signalhandler.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -Wno-error -MT src/libglog_la-signalhandler.lo -MD -MP -MF src/.deps/libglog_la-signalhandler.Tpo -c src/signalhandler.cc -o src/libglog_la-signalhandler.o >/dev/null 2>&1
libtool: link: g++  -fPIC -DPIC -shared -nostdlib /lib/../lib64/crti.o /usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/crtbeginS.o  src/.libs/libglog_la-logging.o src/.libs/libglog_la-raw_logging.o src/.libs/libglog_la-vlog_is_on.o src/.libs/libglog_la-utilities.o src/.libs/libglog_la-demangle.o src/.libs/libglog_la-symbolize.o src/.libs/libglog_la-signalhandler.o   -Wl,-rpath -Wl,/usr/local/lib/../lib64 -Wl,-rpath -Wl,/usr/local/lib/../lib64 -lgflags -lpthread -L/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.8.2 -L/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../.. /usr/local/lib/../lib64/libstdc++.so -lm -lc -lgcc_s /usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/crtendS.o /lib/../lib64/crtn.o    -Wl,-soname -Wl,libglog.so.0 -o .libs/libglog.so.0.0.0
libtool: link: (cd ".libs" && rm -f "libglog.so.0" && ln -s "libglog.so.0.0.0" "libglog.so.0")
libtool: link: (cd ".libs" && rm -f "libglog.so" && ln -s "libglog.so.0.0.0" "libglog.so")
libtool: link: ar cru .libs/libglog.a  src/libglog_la-logging.o src/libglog_la-raw_logging.o src/libglog_la-vlog_is_on.o src/libglog_la-utilities.o src/libglog_la-demangle.o src/libglog_la-symbolize.o src/libglog_la-signalhandler.o
libtool: link: ranlib .libs/libglog.a
libtool: link: ( cd ".libs" && rm -f "libglog.la" && ln -s "../libglog.la" "libglog.la" )
In file included from src/utilities.h:82:0,
                 from src/logging_unittest.cc:33:
src/logging_unittest.cc: 在函数‘void TestLogging(bool)’中:
src/glog/logging.h:943:30: 警告:typedef ‘INVALID_REQUESTED_LOG_SEVERITY’ locally defined but not used [-Wunused-local-typedefs]
                              INVALID_REQUESTED_LOG_SEVERITY);           \
                              ^
src/glog/logging.h:938:73: 附注:in definition of macro ‘GOOGLE_GLOG_COMPILE_ASSERT’
   typedef google::glog_internal_namespace_::CompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1]
                                                                         ^
src/logging_unittest.cc:255:5: 附注:in expansion of macro ‘LOG_EVERY_N’
     LOG_EVERY_N(ERROR, 4) << "Log every 4, iteration " << COUNTER << endl;
     ^
libtool: link: g++ -pthread -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -Wno-error -pthread -o .libs/logging_unittest src/logging_unittest-logging_unittest.o  ./.libs/libglog.so -lgflags -lpthread -pthread -Wl,-rpath -Wl,/home/XXX/github/AnyQ/build/third_party/lib
src/logging_unittest-logging_unittest.o: In function `main':
logging_unittest.cc:(.text+0x2ea3): undefined reference to `google::ParseCommandLineFlags(int*, char***, bool)'
src/logging_unittest-logging_unittest.o: In function `TestRawLogging()':
logging_unittest.cc:(.text+0x402c): undefined reference to `google::FlagSaver::FlagSaver()'
logging_unittest.cc:(.text+0x4695): undefined reference to `google::FlagSaver::~FlagSaver()'
logging_unittest.cc:(.text+0x46f6): undefined reference to `google::FlagSaver::~FlagSaver()'
src/logging_unittest-logging_unittest.o: In function `LogWithLevels(int, int, bool, bool)':
logging_unittest.cc:(.text+0x47a3): undefined reference to `google::FlagSaver::FlagSaver()'
logging_unittest.cc:(.text+0x6026): undefined reference to `google::FlagSaver::~FlagSaver()'
logging_unittest.cc:(.text+0x6332): undefined reference to `google::FlagSaver::~FlagSaver()'
src/logging_unittest-logging_unittest.o: In function `__static_initialization_and_destruction_0(int, int)':
logging_unittest.cc:(.text+0xe0d6): undefined reference to `google::FlagRegisterer::FlagRegisterer<std::string>(char const*, char const*, char const*, std::string*, std::string*)'
logging_unittest.cc:(.text+0xe179): undefined reference to `google::FlagRegisterer::FlagRegisterer<std::string>(char const*, char const*, char const*, std::string*, std::string*)'
logging_unittest.cc:(.text+0xe1d4): undefined reference to `google::FlagRegisterer::FlagRegisterer<bool>(char const*, char const*, char const*, bool*, bool*)'
logging_unittest.cc:(.text+0xe1f9): undefined reference to `google::FlagRegisterer::FlagRegisterer<int>(char const*, char const*, char const*, int*, int*)'
src/logging_unittest-logging_unittest.o: In function `Test_DeathNoAllocNewHook_logging::Run()':
logging_unittest.cc:(.text._ZN32Test_DeathNoAllocNewHook_logging3RunEv[_ZN32Test_DeathNoAllocNewHook_logging3RunEv]+0x11): undefined reference to `google::FlagSaver::FlagSaver()'
logging_unittest.cc:(.text._ZN32Test_DeathNoAllocNewHook_logging3RunEv[_ZN32Test_DeathNoAllocNewHook_logging3RunEv]+0x22): undefined reference to `google::FlagSaver::~FlagSaver()'
logging_unittest.cc:(.text._ZN32Test_DeathNoAllocNewHook_logging3RunEv[_ZN32Test_DeathNoAllocNewHook_logging3RunEv]+0x33): undefined reference to `google::FlagSaver::~FlagSaver()'
src/logging_unittest-logging_unittest.o: In function `Test_DeathRawCHECK_logging::Run()':
logging_unittest.cc:(.text._ZN26Test_DeathRawCHECK_logging3RunEv[_ZN26Test_DeathRawCHECK_logging3RunEv]+0x11): undefined reference to `google::FlagSaver::FlagSaver()'
logging_unittest.cc:(.text._ZN26Test_DeathRawCHECK_logging3RunEv[_ZN26Test_DeathRawCHECK_logging3RunEv]+0x22): undefined reference to `google::FlagSaver::~FlagSaver()'
logging_unittest.cc:(.text._ZN26Test_DeathRawCHECK_logging3RunEv[_ZN26Test_DeathRawCHECK_logging3RunEv]+0x33): undefined reference to `google::FlagSaver::~FlagSaver()'
src/logging_unittest-logging_unittest.o: In function `Test_DeathSTREQ_logging::Run()':
logging_unittest.cc:(.text._ZN23Test_DeathSTREQ_logging3RunEv[_ZN23Test_DeathSTREQ_logging3RunEv]+0x11): undefined reference to `google::FlagSaver::FlagSaver()'
logging_unittest.cc:(.text._ZN23Test_DeathSTREQ_logging3RunEv[_ZN23Test_DeathSTREQ_logging3RunEv]+0x22): undefined reference to `google::FlagSaver::~FlagSaver()'
logging_unittest.cc:(.text._ZN23Test_DeathSTREQ_logging3RunEv[_ZN23Test_DeathSTREQ_logging3RunEv]+0x33): undefined reference to `google::FlagSaver::~FlagSaver()'
src/logging_unittest-logging_unittest.o: In function `Test_CheckNOTNULL_Simple::Run()':
logging_unittest.cc:(.text._ZN24Test_CheckNOTNULL_Simple3RunEv[_ZN24Test_CheckNOTNULL_Simple3RunEv]+0x11): undefined reference to `google::FlagSaver::FlagSaver()'
logging_unittest.cc:(.text._ZN24Test_CheckNOTNULL_Simple3RunEv[_ZN24Test_CheckNOTNULL_Simple3RunEv]+0x22): undefined reference to `google::FlagSaver::~FlagSaver()'
logging_unittest.cc:(.text._ZN24Test_CheckNOTNULL_Simple3RunEv[_ZN24Test_CheckNOTNULL_Simple3RunEv]+0x33): undefined reference to `google::FlagSaver::~FlagSaver()'
src/logging_unittest-logging_unittest.o: In function `Test_DeathCheckNN_Simple::Run()':
logging_unittest.cc:(.text._ZN24Test_DeathCheckNN_Simple3RunEv[_ZN24Test_DeathCheckNN_Simple3RunEv]+0x11): undefined reference to `google::FlagSaver::FlagSaver()'
logging_unittest.cc:(.text._ZN24Test_DeathCheckNN_Simple3RunEv[_ZN24Test_DeathCheckNN_Simple3RunEv]+0x22): undefined reference to `google::FlagSaver::~FlagSaver()'
logging_unittest.cc:(.text._ZN24Test_DeathCheckNN_Simple3RunEv[_ZN24Test_DeathCheckNN_Simple3RunEv]+0x33): undefined reference to `google::FlagSaver::~FlagSaver()'
src/logging_unittest-logging_unittest.o: In function `Test_SafeFNMatch_logging::Run()':
logging_unittest.cc:(.text._ZN24Test_SafeFNMatch_logging3RunEv[_ZN24Test_SafeFNMatch_logging3RunEv]+0x11): undefined reference to `google::FlagSaver::FlagSaver()'
logging_unittest.cc:(.text._ZN24Test_SafeFNMatch_logging3RunEv[_ZN24Test_SafeFNMatch_logging3RunEv]+0x22): undefined reference to `google::FlagSaver::~FlagSaver()'
logging_unittest.cc:(.text._ZN24Test_SafeFNMatch_logging3RunEv[_ZN24Test_SafeFNMatch_logging3RunEv]+0x33): undefined reference to `google::FlagSaver::~FlagSaver()'
src/logging_unittest-logging_unittest.o: In function `Test_Strerror_logging::Run()':
logging_unittest.cc:(.text._ZN21Test_Strerror_logging3RunEv[_ZN21Test_Strerror_logging3RunEv]+0x11): undefined reference to `google::FlagSaver::FlagSaver()'
logging_unittest.cc:(.text._ZN21Test_Strerror_logging3RunEv[_ZN21Test_Strerror_logging3RunEv]+0x22): undefined reference to `google::FlagSaver::~FlagSaver()'
logging_unittest.cc:(.text._ZN21Test_Strerror_logging3RunEv[_ZN21Test_Strerror_logging3RunEv]+0x33): undefined reference to `google::FlagSaver::~FlagSaver()'
src/logging_unittest-logging_unittest.o: In function `Test_UserDefinedClass_logging::Run()':
logging_unittest.cc:(.text._ZN29Test_UserDefinedClass_logging3RunEv[_ZN29Test_UserDefinedClass_logging3RunEv]+0x11): undefined reference to `google::FlagSaver::FlagSaver()'
logging_unittest.cc:(.text._ZN29Test_UserDefinedClass_logging3RunEv[_ZN29Test_UserDefinedClass_logging3RunEv]+0x22): undefined reference to `google::FlagSaver::~FlagSaver()'
logging_unittest.cc:(.text._ZN29Test_UserDefinedClass_logging3RunEv[_ZN29Test_UserDefinedClass_logging3RunEv]+0x33): undefined reference to `google::FlagSaver::~FlagSaver()'
collect2: error: ld returned 1 exit status
make[3]: *** [logging_unittest] 错误 1
make[2]: *** [third_party/glog/src/extern_glog-stamp/extern_glog-install] 错误 2
make[1]: *** [CMakeFiles/extern_glog.dir/all] 错误 2
make: *** [all] 错误 2

from anyq.

Bingogogogogo avatar Bingogogogogo commented on May 18, 2024

@zhanghan1992

[  4%] Built target extern_leveldb
[  9%] Built target extern_jsoncpp
[ 13%] Built target extern_gtest
[ 18%] Built target extern_xgboost
[ 22%] Built target extern_eigen
[ 26%] Built target extern_paddle
[ 31%] Built target extern_curl
[ 35%] Built target extern_lac
[ 39%] Built target extern_boost
[ 43%] Built target extern_zlib
[ 47%] Built target extern_protobuf
[ 52%] Built target extern_gflags
[ 57%] Built target extern_openssl
[ 58%] Performing install step for 'extern_glog'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/home/XXX/github/AnyQ/build/third_party/glog/src/glog-0.3.5/missing: Unknown `--is-lightweight' option
Try `/home/XXX/github/AnyQ/build/third_party/glog/src/glog-0.3.5/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking for ANSI C header files... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for ANSI C header files... (cached) no
checking for stdint.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for unistd.h... (cached) yes
checking syscall.h usability... yes
checking syscall.h presence... yes
checking for syscall.h... yes
checking sys/syscall.h usability... yes
checking sys/syscall.h presence... yes
checking for sys/syscall.h... yes
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking libunwind.h usability... no
checking libunwind.h presence... no
checking for libunwind.h... no
checking ucontext.h usability... yes
checking ucontext.h presence... yes
checking for ucontext.h... yes
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking glob.h usability... yes
checking glob.h presence... yes
checking for glob.h... yes
checking unwind.h usability... yes
checking unwind.h presence... yes
checking for unwind.h... yes
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking size of void *... 8
checking for uint16_t... yes
checking for u_int16_t... yes
checking for __uint16... no
checking for sigaltstack... yes
checking for sigaction... yes
checking for dladdr... no
checking for fcntl... yes
checking for pread... yes
checking for pwrite... yes
checking for __attribute__... yes
checking for __builtin_expect... yes
checking for __sync_val_compare_and_swap... yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking whether to check for GCC pthread/shared inconsistencies... yes
checking whether -pthread is sufficient with -shared... yes
checking for pthread_self in -lpthread... yes
checking for main in -lgflags... yes
checking for gtest-config... no
checking for main in -lgtest... no
checking support for pthread_rwlock_* functions... yes
checking whether the compiler implements namespaces... yes
checking what namespace STL code is in... std
checking whether compiler supports using ::operator<<... 1
checking for ucontext.h... (cached) yes
checking sys/ucontext.h usability... yes
checking sys/ucontext.h presence... yes
checking for sys/ucontext.h... yes
checking how to access the program counter from a struct ucontext... uc_mcontext.gregs[REG_RIP]
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/glog/logging.h
config.status: creating src/glog/raw_logging.h
config.status: creating src/glog/vlog_is_on.h
config.status: creating src/glog/stl_logging.h
config.status: creating libglog.pc
config.status: creating src/config.h
config.status: src/config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -Wno-error -MT src/libglog_la-logging.lo -MD -MP -MF src/.deps/libglog_la-logging.Tpo -c src/logging.cc  -fPIC -DPIC -o src/.libs/libglog_la-logging.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -Wno-error -MT src/libglog_la-logging.lo -MD -MP -MF src/.deps/libglog_la-logging.Tpo -c src/logging.cc -o src/libglog_la-logging.o >/dev/null 2>&1
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -Wno-error -MT src/libglog_la-raw_logging.lo -MD -MP -MF src/.deps/libglog_la-raw_logging.Tpo -c src/raw_logging.cc  -fPIC -DPIC -o src/.libs/libglog_la-raw_logging.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -Wno-error -MT src/libglog_la-raw_logging.lo -MD -MP -MF src/.deps/libglog_la-raw_logging.Tpo -c src/raw_logging.cc -o src/libglog_la-raw_logging.o >/dev/null 2>&1
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -Wno-error -MT src/libglog_la-vlog_is_on.lo -MD -MP -MF src/.deps/libglog_la-vlog_is_on.Tpo -c src/vlog_is_on.cc  -fPIC -DPIC -o src/.libs/libglog_la-vlog_is_on.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -Wno-error -MT src/libglog_la-vlog_is_on.lo -MD -MP -MF src/.deps/libglog_la-vlog_is_on.Tpo -c src/vlog_is_on.cc -o src/libglog_la-vlog_is_on.o >/dev/null 2>&1
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -Wno-error -MT src/libglog_la-utilities.lo -MD -MP -MF src/.deps/libglog_la-utilities.Tpo -c src/utilities.cc  -fPIC -DPIC -o src/.libs/libglog_la-utilities.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -Wno-error -MT src/libglog_la-utilities.lo -MD -MP -MF src/.deps/libglog_la-utilities.Tpo -c src/utilities.cc -o src/libglog_la-utilities.o >/dev/null 2>&1
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -Wno-error -MT src/libglog_la-demangle.lo -MD -MP -MF src/.deps/libglog_la-demangle.Tpo -c src/demangle.cc  -fPIC -DPIC -o src/.libs/libglog_la-demangle.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -Wno-error -MT src/libglog_la-demangle.lo -MD -MP -MF src/.deps/libglog_la-demangle.Tpo -c src/demangle.cc -o src/libglog_la-demangle.o >/dev/null 2>&1
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -Wno-error -MT src/libglog_la-symbolize.lo -MD -MP -MF src/.deps/libglog_la-symbolize.Tpo -c src/symbolize.cc  -fPIC -DPIC -o src/.libs/libglog_la-symbolize.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -Wno-error -MT src/libglog_la-symbolize.lo -MD -MP -MF src/.deps/libglog_la-symbolize.Tpo -c src/symbolize.cc -o src/libglog_la-symbolize.o >/dev/null 2>&1
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -Wno-error -MT src/libglog_la-signalhandler.lo -MD -MP -MF src/.deps/libglog_la-signalhandler.Tpo -c src/signalhandler.cc  -fPIC -DPIC -o src/.libs/libglog_la-signalhandler.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -Wno-error -MT src/libglog_la-signalhandler.lo -MD -MP -MF src/.deps/libglog_la-signalhandler.Tpo -c src/signalhandler.cc -o src/libglog_la-signalhandler.o >/dev/null 2>&1
libtool: link: rm -fr  .libs/libglog.a .libs/libglog.la .libs/libglog.lai .libs/libglog.so .libs/libglog.so.0 .libs/libglog.so.0.0.0
libtool: link: g++  -fPIC -DPIC -shared -nostdlib /lib/../lib64/crti.o /usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/crtbeginS.o  src/.libs/libglog_la-logging.o src/.libs/libglog_la-raw_logging.o src/.libs/libglog_la-vlog_is_on.o src/.libs/libglog_la-utilities.o src/.libs/libglog_la-demangle.o src/.libs/libglog_la-symbolize.o src/.libs/libglog_la-signalhandler.o   -Wl,-rpath -Wl,/usr/local/lib/../lib64 -Wl,-rpath -Wl,/usr/local/lib/../lib64 -lgflags -lpthread -L/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.8.2 -L/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../.. /usr/local/lib/../lib64/libstdc++.so -lm -lc -lgcc_s /usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/crtendS.o /lib/../lib64/crtn.o    -Wl,-soname -Wl,libglog.so.0 -o .libs/libglog.so.0.0.0
libtool: link: (cd ".libs" && rm -f "libglog.so.0" && ln -s "libglog.so.0.0.0" "libglog.so.0")
libtool: link: (cd ".libs" && rm -f "libglog.so" && ln -s "libglog.so.0.0.0" "libglog.so")
libtool: link: ar cru .libs/libglog.a  src/libglog_la-logging.o src/libglog_la-raw_logging.o src/libglog_la-vlog_is_on.o src/libglog_la-utilities.o src/libglog_la-demangle.o src/libglog_la-symbolize.o src/libglog_la-signalhandler.o
libtool: link: ranlib .libs/libglog.a
libtool: link: ( cd ".libs" && rm -f "libglog.la" && ln -s "../libglog.la" "libglog.la" )
src/logging_unittest.cc:64:17: 错误:‘GFLAGS_NAMESPACE’不是一个命名空间名
 using namespace GFLAGS_NAMESPACE;
                 ^
src/logging_unittest.cc:64:33: 错误:expected namespace-name before ‘;’ token
 using namespace GFLAGS_NAMESPACE;
                                 ^
src/logging_unittest.cc: 在函数‘int main(int, char**)’中:
src/logging_unittest.cc:180:43: 错误:‘ParseCommandLineFlags’在此作用域中尚未声明
   ParseCommandLineFlags(&argc, &argv, true);
                                           ^
src/logging_unittest.cc:180:43: 附注:建议的替代:
In file included from src/glog/logging.h:86:0,
                 from src/utilities.h:82,
                 from src/logging_unittest.cc:33:
/usr/include/gflags/gflags.h:346:31: 附注:  ‘gflags::ParseCommandLineFlags’
 extern GFLAGS_DLL_DECL uint32 ParseCommandLineFlags(int *argc, char*** argv, bool remove_flags);
                               ^
In file included from src/logging_unittest.cc:58:0:
src/logging_unittest.cc: 在静态成员函数‘static void Test_DeathNoAllocNewHook_logging::Run()’中:
src/googletest.h:177:25: 错误:‘FlagSaver’在此作用域中尚未声明
     static void Run() { FlagSaver fs; RunTest(); }      \
                         ^
src/logging_unittest.cc:297:1: 附注:in expansion of macro ‘TEST’
 TEST(DeathNoAllocNewHook, logging) {
 ^
src/googletest.h:177:25: 附注:建议的替代:
     static void Run() { FlagSaver fs; RunTest(); }      \
                         ^
src/logging_unittest.cc:297:1: 附注:in expansion of macro ‘TEST’
 TEST(DeathNoAllocNewHook, logging) {
 ^
In file included from src/glog/logging.h:86:0,
                 from src/utilities.h:82,
                 from src/logging_unittest.cc:33:
/usr/include/gflags/gflags.h:277:23: 附注:  ‘gflags::FlagSaver’
 class GFLAGS_DLL_DECL FlagSaver {
                       ^
In file included from src/logging_unittest.cc:58:0:
src/googletest.h:177:35: 错误:expected ‘;’ before ‘fs’
     static void Run() { FlagSaver fs; RunTest(); }      \
                                   ^
src/logging_unittest.cc:297:1: 附注:in expansion of macro ‘TEST’
 TEST(DeathNoAllocNewHook, logging) {
 ^
src/logging_unittest.cc: 在函数‘void TestRawLogging()’中:
src/logging_unittest.cc:309:3: 错误:‘FlagSaver’在此作用域中尚未声明
   FlagSaver saver;
   ^
src/logging_unittest.cc:309:3: 附注:建议的替代:
In file included from src/glog/logging.h:86:0,
                 from src/utilities.h:82,
                 from src/logging_unittest.cc:33:
/usr/include/gflags/gflags.h:277:23: 附注:  ‘gflags::FlagSaver’
 class GFLAGS_DLL_DECL FlagSaver {
                       ^
src/logging_unittest.cc:309:13: 错误:expected ‘;’ before ‘saver’
   FlagSaver saver;
             ^
src/logging_unittest.cc: 在函数‘void LogWithLevels(int, int, bool, bool)’中:
src/logging_unittest.cc:364:3: 错误:‘FlagSaver’在此作用域中尚未声明
   FlagSaver saver;
   ^
src/logging_unittest.cc:364:3: 附注:建议的替代:
In file included from src/glog/logging.h:86:0,
                 from src/utilities.h:82,
                 from src/logging_unittest.cc:33:
/usr/include/gflags/gflags.h:277:23: 附注:  ‘gflags::FlagSaver’
 class GFLAGS_DLL_DECL FlagSaver {
                       ^
src/logging_unittest.cc:364:13: 错误:expected ‘;’ before ‘saver’
   FlagSaver saver;
             ^
In file included from src/logging_unittest.cc:58:0:
src/logging_unittest.cc: 在静态成员函数‘static void Test_DeathRawCHECK_logging::Run()’中:
src/googletest.h:177:25: 错误:‘FlagSaver’在此作用域中尚未声明
     static void Run() { FlagSaver fs; RunTest(); }      \
                         ^
src/logging_unittest.cc:437:1: 附注:in expansion of macro ‘TEST’
 TEST(DeathRawCHECK, logging) {
 ^
src/googletest.h:177:25: 附注:建议的替代:
     static void Run() { FlagSaver fs; RunTest(); }      \
                         ^
src/logging_unittest.cc:437:1: 附注:in expansion of macro ‘TEST’
 TEST(DeathRawCHECK, logging) {
 ^
In file included from src/glog/logging.h:86:0,
                 from src/utilities.h:82,
                 from src/logging_unittest.cc:33:
/usr/include/gflags/gflags.h:277:23: 附注:  ‘gflags::FlagSaver’
 class GFLAGS_DLL_DECL FlagSaver {
                       ^
In file included from src/logging_unittest.cc:58:0:
src/googletest.h:177:35: 错误:expected ‘;’ before ‘fs’
     static void Run() { FlagSaver fs; RunTest(); }      \
                                   ^
src/logging_unittest.cc:437:1: 附注:in expansion of macro ‘TEST’
 TEST(DeathRawCHECK, logging) {
 ^
src/logging_unittest.cc: 在静态成员函数‘static void Test_DeathSTREQ_logging::Run()’中:
src/googletest.h:177:25: 错误:‘FlagSaver’在此作用域中尚未声明
     static void Run() { FlagSaver fs; RunTest(); }      \
                         ^
src/logging_unittest.cc:587:1: 附注:in expansion of macro ‘TEST’
 TEST(DeathSTREQ, logging) {
 ^
src/googletest.h:177:25: 附注:建议的替代:
     static void Run() { FlagSaver fs; RunTest(); }      \
                         ^
src/logging_unittest.cc:587:1: 附注:in expansion of macro ‘TEST’
 TEST(DeathSTREQ, logging) {
 ^
In file included from src/glog/logging.h:86:0,
                 from src/utilities.h:82,
                 from src/logging_unittest.cc:33:
/usr/include/gflags/gflags.h:277:23: 附注:  ‘gflags::FlagSaver’
 class GFLAGS_DLL_DECL FlagSaver {
                       ^
In file included from src/logging_unittest.cc:58:0:
src/googletest.h:177:35: 错误:expected ‘;’ before ‘fs’
     static void Run() { FlagSaver fs; RunTest(); }      \
                                   ^
src/logging_unittest.cc:587:1: 附注:in expansion of macro ‘TEST’
 TEST(DeathSTREQ, logging) {
 ^
src/logging_unittest.cc: 在静态成员函数‘static void Test_CheckNOTNULL_Simple::Run()’中:
src/googletest.h:177:25: 错误:‘FlagSaver’在此作用域中尚未声明
     static void Run() { FlagSaver fs; RunTest(); }      \
                         ^
src/logging_unittest.cc:597:1: 附注:in expansion of macro ‘TEST’
 TEST(CheckNOTNULL, Simple) {
 ^
src/googletest.h:177:25: 附注:建议的替代:
     static void Run() { FlagSaver fs; RunTest(); }      \
                         ^
src/logging_unittest.cc:597:1: 附注:in expansion of macro ‘TEST’
 TEST(CheckNOTNULL, Simple) {
 ^
In file included from src/glog/logging.h:86:0,
                 from src/utilities.h:82,
                 from src/logging_unittest.cc:33:
/usr/include/gflags/gflags.h:277:23: 附注:  ‘gflags::FlagSaver’
 class GFLAGS_DLL_DECL FlagSaver {
                       ^
In file included from src/logging_unittest.cc:58:0:
src/googletest.h:177:35: 错误:expected ‘;’ before ‘fs’
     static void Run() { FlagSaver fs; RunTest(); }      \
                                   ^
src/logging_unittest.cc:597:1: 附注:in expansion of macro ‘TEST’
 TEST(CheckNOTNULL, Simple) {
 ^
src/logging_unittest.cc: 在静态成员函数‘static void Test_DeathCheckNN_Simple::Run()’中:
src/googletest.h:177:25: 错误:‘FlagSaver’在此作用域中尚未声明
     static void Run() { FlagSaver fs; RunTest(); }      \
                         ^
src/logging_unittest.cc:608:1: 附注:in expansion of macro ‘TEST’
 TEST(DeathCheckNN, Simple) {
 ^
src/googletest.h:177:25: 附注:建议的替代:
     static void Run() { FlagSaver fs; RunTest(); }      \
                         ^
src/logging_unittest.cc:608:1: 附注:in expansion of macro ‘TEST’
 TEST(DeathCheckNN, Simple) {
 ^
In file included from src/glog/logging.h:86:0,
                 from src/utilities.h:82,
                 from src/logging_unittest.cc:33:
/usr/include/gflags/gflags.h:277:23: 附注:  ‘gflags::FlagSaver’
 class GFLAGS_DLL_DECL FlagSaver {
                       ^
In file included from src/logging_unittest.cc:58:0:
src/googletest.h:177:35: 错误:expected ‘;’ before ‘fs’
     static void Run() { FlagSaver fs; RunTest(); }      \
                                   ^
src/logging_unittest.cc:608:1: 附注:in expansion of macro ‘TEST’
 TEST(DeathCheckNN, Simple) {
 ^
src/logging_unittest.cc: 在静态成员函数‘static void Test_SafeFNMatch_logging::Run()’中:
src/googletest.h:177:25: 错误:‘FlagSaver’在此作用域中尚未声明
     static void Run() { FlagSaver fs; RunTest(); }      \
                         ^
src/logging_unittest.cc:868:1: 附注:in expansion of macro ‘TEST’
 TEST(SafeFNMatch, logging) {
 ^
src/googletest.h:177:25: 附注:建议的替代:
     static void Run() { FlagSaver fs; RunTest(); }      \
                         ^
src/logging_unittest.cc:868:1: 附注:in expansion of macro ‘TEST’
 TEST(SafeFNMatch, logging) {
 ^
In file included from src/glog/logging.h:86:0,
                 from src/utilities.h:82,
                 from src/logging_unittest.cc:33:
/usr/include/gflags/gflags.h:277:23: 附注:  ‘gflags::FlagSaver’
 class GFLAGS_DLL_DECL FlagSaver {
                       ^
In file included from src/logging_unittest.cc:58:0:
src/googletest.h:177:35: 错误:expected ‘;’ before ‘fs’
     static void Run() { FlagSaver fs; RunTest(); }      \
                                   ^
src/logging_unittest.cc:868:1: 附注:in expansion of macro ‘TEST’
 TEST(SafeFNMatch, logging) {
 ^
src/logging_unittest.cc: 在静态成员函数‘static void Test_Strerror_logging::Run()’中:
src/googletest.h:177:25: 错误:‘FlagSaver’在此作用域中尚未声明
     static void Run() { FlagSaver fs; RunTest(); }      \
                         ^
src/logging_unittest.cc:1043:1: 附注:in expansion of macro ‘TEST’
 TEST(Strerror, logging) {
 ^
src/googletest.h:177:25: 附注:建议的替代:
     static void Run() { FlagSaver fs; RunTest(); }      \
                         ^
src/logging_unittest.cc:1043:1: 附注:in expansion of macro ‘TEST’
 TEST(Strerror, logging) {
 ^
In file included from src/glog/logging.h:86:0,
                 from src/utilities.h:82,
                 from src/logging_unittest.cc:33:
/usr/include/gflags/gflags.h:277:23: 附注:  ‘gflags::FlagSaver’
 class GFLAGS_DLL_DECL FlagSaver {
                       ^
In file included from src/logging_unittest.cc:58:0:
src/googletest.h:177:35: 错误:expected ‘;’ before ‘fs’
     static void Run() { FlagSaver fs; RunTest(); }      \
                                   ^
src/logging_unittest.cc:1043:1: 附注:in expansion of macro ‘TEST’
 TEST(Strerror, logging) {
 ^
src/logging_unittest.cc: 在静态成员函数‘static void Test_UserDefinedClass_logging::Run()’中:
src/googletest.h:177:25: 错误:‘FlagSaver’在此作用域中尚未声明
     static void Run() { FlagSaver fs; RunTest(); }      \
                         ^
src/logging_unittest.cc:1209:1: 附注:in expansion of macro ‘TEST’
 TEST(UserDefinedClass, logging) {
 ^
src/googletest.h:177:25: 附注:建议的替代:
     static void Run() { FlagSaver fs; RunTest(); }      \
                         ^
src/logging_unittest.cc:1209:1: 附注:in expansion of macro ‘TEST’
 TEST(UserDefinedClass, logging) {
 ^
In file included from src/glog/logging.h:86:0,
                 from src/utilities.h:82,
                 from src/logging_unittest.cc:33:
/usr/include/gflags/gflags.h:277:23: 附注:  ‘gflags::FlagSaver’
 class GFLAGS_DLL_DECL FlagSaver {
                       ^
In file included from src/logging_unittest.cc:58:0:
src/googletest.h:177:35: 错误:expected ‘;’ before ‘fs’
     static void Run() { FlagSaver fs; RunTest(); }      \
                                   ^
src/logging_unittest.cc:1209:1: 附注:in expansion of macro ‘TEST’
 TEST(UserDefinedClass, logging) {
 ^
make[3]: *** [src/logging_unittest-logging_unittest.o] 错误 1
make[2]: *** [third_party/glog/src/extern_glog-stamp/extern_glog-install] 错误 2
make[1]: *** [CMakeFiles/extern_glog.dir/all] 错误 2
make: *** [all] 错误 2

一开始报的是这个错误,网上查了下,说是gflags版本问题,我自己下源码重新编译安装了一次,就成了上一个comment的错误

from anyq.

zhanghan1992 avatar zhanghan1992 commented on May 18, 2024

@k0k0xili
鉴于系统环境中的gflag可以能会跟glog冲突,我们更新了glog的编译选项,不依赖gflag编译。你可以:

  1. git pull 更新代码
  2. rm -rf third_party/glog
  3. cmake ../
  4. make

from anyq.

xidiandb avatar xidiandb commented on May 18, 2024

make了好几天了 希望出一个详细的文档啊

from anyq.

zhanghan1992 avatar zhanghan1992 commented on May 18, 2024

@xidiandb 贴一下你报的错误
如果条件允许的话,可以使用docker方式安装AnyQ,编译简单一些,参考README.md;

from anyq.

xidiandb avatar xidiandb commented on May 18, 2024

@zhanghan1992
Scanning dependencies of target extern_leveldb
[ 1%] Creating directories for 'extern_leveldb'
[ 1%] Performing download step for 'extern_leveldb'
Cloning into 'leveldb'...
remote: Counting objects: 2029, done.
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
CMakeFiles/extern_leveldb.dir/build.make:88: recipe for target 'third_party/leveldb/src/extern_leveldb-stamp/extern_leveldb-download' failed
make[2]: *** [third_party/leveldb/src/extern_leveldb-stamp/extern_leveldb-download] Error 128
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/extern_leveldb.dir/all' failed
make[1]: *** [CMakeFiles/extern_leveldb.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

这个就是在docker上make出的错

from anyq.

xidiandb avatar xidiandb commented on May 18, 2024

@zhanghan1992
虚机上到这一步卡住了
-- Configuring done
-- Generating done
-- Build files have been written to: /root/AnyQ/build
[ 4%] Built target extern_leveldb
[ 9%] Built target extern_jsoncpp
[ 13%] Built target extern_gtest
[ 13%] Performing install step for 'extern_xgboost'
Makefile:31: MAKE [make] - checked OK

from anyq.

zhanghan1992 avatar zhanghan1992 commented on May 18, 2024

@xidiandb
docker报的错误是因为网络问题下载leveldb失败,可以继续执行"make"重新下载

from anyq.

xidiandb avatar xidiandb commented on May 18, 2024

@zhanghan1992
我编译成功了,但是docker包里面没有java环境我还得搭java环境?

from anyq.

yinweichong avatar yinweichong commented on May 18, 2024

@xidiandb 官网下载,我们也提供了暂存地址

下载
wget http://anyq.bj.bcebos.com/jdk-8u171-linux-x64.tar.gz
解压
tar xzvf jdk-8u171-linux-x64.tar.gz
加到系统路径
export PATH=`pwd`/jdk1.8.0_171/bin:$PATH

from anyq.

xidiandb avatar xidiandb commented on May 18, 2024

@yinweichong
ok跑起来了,谢谢

from anyq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.