编译遇到问题 找不到 UINT64_MAX
Created by: zhipengli0524
cmake 选项
cmake ..
-DWITH_GPU=OFF
-DCMAKE_INSTALL_PREFIX=/home/lizhipeng/tools/paddle
-DWITH_C_API=ON
错误信息: -- extern_gflags configure command succeeded. See also /home/lizhipeng/tools/paddle/Paddle/build/third_party/gflags/src/extern_gflags-stamp/extern_gflags-configure-.log [ 1%] Performing build step for 'extern_gflags' Scanning dependencies of target gflags_static [ 12%] Building CXX object CMakeFiles/gflags_static.dir/src/gflags.cc.o [ 25%] Building CXX object CMakeFiles/gflags_static.dir/src/gflags_reporting.cc.o [ 37%] Building CXX object CMakeFiles/gflags_static.dir/src/gflags_completions.cc.o [ 50%] Linking CXX static library lib/libgflags.a [ 50%] Built target gflags_static Scanning dependencies of target gflags_nothreads_static [ 62%] Building CXX object CMakeFiles/gflags_nothreads_static.dir/src/gflags.cc.o [ 75%] Building CXX object CMakeFiles/gflags_nothreads_static.dir/src/gflags_reporting.cc.o [ 87%] Building CXX object CMakeFiles/gflags_nothreads_static.dir/src/gflags_completions.cc.o [100%] Linking CXX static library lib/libgflags_nothreads.a [100%] Built target gflags_nothreads_static [ 7%] Built target extern_lib_any [ 7%] Built target cblas [ 8%] Built target extern_warpctc [ 9%] Built target extern_pybind [ 9%] Generating ../../paddle/python/paddle/proto/TrainerConfig_pb2.py [ 9%] Generating ../../paddle/python/paddle/proto/ParameterService_pb2.py [ 9%] Generating ../../paddle/python/paddle/proto/ParameterServerConfig_pb2.py [ 9%] Generating ../../paddle/python/paddle/proto/ParameterConfig_pb2.py [ 9%] Generating ../../paddle/python/paddle/proto/OptimizerConfig_pb2.py [ 9%] Generating ../../paddle/python/paddle/proto/ModelConfig_pb2.py [ 9%] Generating ../../paddle/python/paddle/proto/DataFormat_pb2.py [ 10%] Generating ../../paddle/python/paddle/proto/DataConfig_pb2.py [ 10%] Built target gen_proto_py [ 12%] Built target paddle_proto [ 12%] Built target serialization_test [ 13%] Built target paddle_optimizer [ 14%] Built target parameter_optimizer_test [ 14%] Built target paddle_cuda [ 15%] Built target paddle_trainer_lib [ 17%] Built target paddle_function [ 18%] Built target paddle_utils [ 19%] Built target paddle_math [ 19%] Building CXX object paddle/gserver/CMakeFiles/paddle_gserver.dir/dataproviders/PyDataProvider2.cpp.o In file included from /home/lizhipeng/tools/paddle/Paddle/paddle/gserver/dataproviders/PyDataProvider2.cpp:30:0: /home/lizhipeng/tools/paddle/Paddle/paddle/utils/Stat.h: In constructor ‘paddle::StatInfo::StatInfo(paddle::Stat)’:) /home/lizhipeng/tools/paddle/Paddle/paddle/utils/Stat.h:41:12: error: ‘UINT64_MAX’ was not declared in this scopeco min_ = UINT64_MAX; ^ /home/lizhipeng/tools/paddle/Paddle/paddle/utils/Stat.h: In member function ‘void paddle::StatInfo::reset()’:() /home/lizhipeng/tools/paddle/Paddle/paddle/utils/Stat.h:48:12: error: ‘UINT64_MAX’ was not declared in this scopeco min_ = UINT64_MAX; ^ /home/lizhipeng/tools/paddle/Paddle/paddle/gserver/dataproviders/PyDataProvider2.cpp: In member function ‘virtual bool paddle::CacheOnePassInMemory::reset()’:() /home/lizhipeng/tools/paddle/Paddle/paddle/gserver/dataproviders/PyDataProvider2.cpp:1003:3: error: control reaches end of non-void function [-Werror=return-type] } ^ /home/lizhipeng/tools/paddle/Paddle/paddle/gserver/dataproviders/PyDataProvider2.cpp: In static member function ‘static paddle::IPyDataProviderCache paddle::IPyDataProviderCache::create(padd dle::CacheType)’:e /home/lizhipeng/tools/paddle/Paddle/paddle/gserver/dataproviders/PyDataProvider2.cpp:1030:1: error: control reaches end of non-void function [-Werror=return-type] } ^ cc1plus: all warnings being treated as errors make64[2]: *** [paddle/gserver/CMakeFiles/paddle_gserver.dir/dataproviders/PyDataProvider2.cpp.o] Error 1 make64[1]: *** [paddle/gserver/CMakeFiles/paddle_gserver.dir/all] Error 2 make64: *** [all] Error 2