Paddle分支源代码编译问题_cmake出core make提示o rule to make target `../third_party/install/glog/lib/libglog.a', needed by `paddle/function/MulOpTest'
Created by: xieshufu
从某个分支上将PADDLE代码下载下来, https://github.com/zzsu/Paddle, 然后执行cmake命令cmake .. -DCMAKE_INSTALL_PREFIX=../../../test_exe/ ,提示如下:
-- The CXX compiler identification is GNU 4.8.3
-- The C compiler identification is GNU 4.8.3
-- Check for working CXX compiler: /home/vis/.jumbo/opt/gcc48/bin/g++
-- Check for working CXX compiler: /home/vis/.jumbo/opt/gcc48/bin/g++ -- 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: /home/vis/.jumbo/opt/gcc48/bin/gcc
-- Check for working C compiler: /home/vis/.jumbo/opt/gcc48/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found Sphinx: /home/vis/.jumbo/bin/sphinx-build
-- Found Git: /usr/bin/git (found version "1.7.1")
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found Paddle host system: centos
-- Found Paddle host system's CPU: 12 cores
-- Performing Test MMX_FOUND
-- Performing Test MMX_FOUND - Success
-- Performing Test SSE2_FOUND
-- Performing Test SSE2_FOUND - Success
-- Performing Test SSE3_FOUND
-- Performing Test SSE3_FOUND - Success
-- Performing Test AVX_FOUND
-- Performing Test AVX_FOUND - Success
-- Performing Test AVX2_FOUND
-- Performing Test AVX2_FOUND - Failed
-- Found PythonInterp: /home/vis/.jumbo/bin/python2.7 (found suitable version "2.7.3", minimum required is "2.7")
-- Found PythonLibs: /home/vis/.jumbo/lib/libpython2.7.so (found suitable version "2.7.3", minimum required is "2.7")
-- Found PY_pip: /home/vis/.jumbo/lib/python2.7/site-packages/pip
-- Found PY_numpy: /home/vis/.jumbo/lib/python2.7/site-packages/numpy
-- Found PY_wheel: /home/vis/.jumbo/lib/python2.7/site-packages/wheel
-- Found PY_google.protobuf: /home/vis/.jumbo/lib/python2.7/site-packages/google/protobuf
-- Found NumPy: /home/vis/.jumbo/lib/python2.7/site-packages/numpy/core/include
[Paddle] Python Executable: /home/vis/.jumbo/bin/python2.7
[Paddle] Python Include: /home/vis/.jumbo/include/python2.7
[Paddle] Python Libraries: /home/vis/.jumbo/lib/libpython2.7.so
-- Found MKL (include: /home/vis/mkl/include, library: /home/vis/mkl/lib/libmkl_intel_lp64.a;/home/vis/mkl/lib/libmkl_sequential.a;/home/vis/mkl/lib/libmkl_core.a)
-- Found SWIG: /home/vis/.jumbo/bin/swig (found version "3.0.0")
-- Looking for UINT64_MAX
-- Looking for UINT64_MAX - found
-- Performing Test C_COMPILER_SUPPORT_FLAG__fPIC
-- Performing Test C_COMPILER_SUPPORT_FLAG__fPIC - Success
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__fPIC
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__fPIC - Success
-- Performing Test C_COMPILER_SUPPORT_FLAG__fno_omit_frame_pointer
-- Performing Test C_COMPILER_SUPPORT_FLAG__fno_omit_frame_pointer - Success
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__fno_omit_frame_pointer
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__fno_omit_frame_pointer - Success
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wall
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wall - Success
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wall
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wall - Success
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wextra
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wextra - Success
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wextra
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wextra - Success
-- Performing Test C_COMPILER_SUPPORT_FLAG__Werror
-- Performing Test C_COMPILER_SUPPORT_FLAG__Werror - Success
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Werror
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Werror - Success
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wnon_virtual_dtor
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wnon_virtual_dtor - Failed
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wnon_virtual_dtor
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wnon_virtual_dtor - Success
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wdelete_non_virtual_dtor
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wdelete_non_virtual_dtor - Failed
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wdelete_non_virtual_dtor
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wdelete_non_virtual_dtor - Success
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wno_unused_parameter
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wno_unused_parameter - Success
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wno_unused_parameter
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wno_unused_parameter - Success
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wno_unused_function
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wno_unused_function - Success
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wno_unused_function
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wno_unused_function - Success
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wno_error_literal_suffix
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wno_error_literal_suffix - Success
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wno_error_literal_suffix
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wno_error_literal_suffix - Success
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wno_error_sign_compare
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wno_error_sign_compare - Success
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wno_error_sign_compare
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wno_error_sign_compare - Success
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wno_error_unused_local_typedefs
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wno_error_unused_local_typedefs - Success
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wno_error_unused_local_typedefs
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wno_error_unused_local_typedefs - Success
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wno_error_unused_function
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wno_error_unused_function - Success
-- Current cuDNN header is /home/work/cudnn/cudnn_v5/cuda/include/cudnn.h. Current cuDNN version is v5.
-- Paddle version is 0.9.0a0
-- Found CUDA: /home/work/cuda-7.5 (found version "7.5")
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/vis/xieshufu/paddle/ocr/PaddleSRC/Paddle/build
从信息上看感觉是正常的,但在目录下会有一个core文件:core.31531
然后执行make -j 12命令,编译完成的提示如下:
make[2]: *** No rule to make target `../third_party/install/glog/lib/libglog.a', needed by `paddle/utils/tests/test_Error'. Stop.
make[2]: *** Waiting for unfinished jobs....
[ 81%] Building CXX object paddle/utils/tests/CMakeFiles/test_Error.dir/test_Error.cpp.o
make[2]: *** No rule to make target `../third_party/install/glog/lib/libglog.a', needed by `paddle/function/TensorShapeTest'. Stop.
make[2]: *** Waiting for unfinished jobs....
[ 82%] Building CXX object paddle/function/CMakeFiles/TensorShapeTest.dir/TensorShapeTest.cpp.o
make[2]: *** No rule to make target `../third_party/install/glog/lib/libglog.a', needed by `paddle/utils/tests/test_CustomStackTracePrint'. Stop.
make[2]: *** Waiting for unfinished jobs....
[ 82%] Building CXX object paddle/utils/tests/CMakeFiles/test_CustomStackTracePrint.dir/test_CustomStackTracePrint.cpp.o
make[2]: *** No rule to make target `../third_party/install/glog/lib/libglog.a', needed by `paddle/utils/tests/test_CustomStackTrace'. Stop.
make[2]: *** Waiting for unfinished jobs....
make[2]: *** No rule to make target `../third_party/install/glog/lib/libglog.a', needed by `paddle/function/CrossMapNormalOpTest'. Stop.
make[2]: *** Waiting for unfinished jobs....
make[2]: *** No rule to make target `../third_party/install/glog/lib/libglog.a', needed by `paddle/function/PadOpTest'. Stop.
make[2]: *** Waiting for unfinished jobs....
[ 82%] [ 83%] [ 83%] make[2]: *** No rule to make target `../third_party/install/glog/lib/libglog.a', needed by `paddle/function/BufferArgTest'. Stop.
make[2]: *** Waiting for unfinished jobs....
Building CXX object paddle/utils/tests/CMakeFiles/test_CustomStackTrace.dir/test_CustomStackTrace.cpp.o
[ 83%] Building CXX object paddle/function/CMakeFiles/CrossMapNormalOpTest.dir/CrossMapNormalOpTest.cpp.o
Building CXX object paddle/function/CMakeFiles/PadOpTest.dir/PadOpTest.cpp.o
Building CXX object paddle/function/CMakeFiles/BufferArgTest.dir/BufferArgTest.cpp.o
make[2]: *** No rule to make target `../third_party/install/glog/lib/libglog.a', needed by `paddle/function/CosSimOpTest'. Stop.
make[2]: *** Waiting for unfinished jobs....
[ 83%] make[2]: *** No rule to make target `../third_party/install/glog/lib/libglog.a', needed by `paddle/function/FunctionTest'. Stop.
make[2]: *** Waiting for unfinished jobs....
make[2]: *** No rule to make target `../third_party/install/glog/lib/libglog.a', needed by `paddle/function/TensorTypeTest'. Stop.
make[2]: *** Waiting for unfinished jobs....
[ 83%] [ 83%] Building CXX object paddle/function/CMakeFiles/FunctionTest.dir/FunctionTest.cpp.o
Building CXX object paddle/function/CMakeFiles/TensorTypeTest.dir/TensorTypeTest.cpp.o
Building CXX object paddle/function/CMakeFiles/CosSimOpTest.dir/CosSimOpTest.cpp.o
make[2]: *** No rule to make target `../third_party/install/glog/lib/libglog.a', needed by `paddle/function/MulOpTest'. Stop.
make[2]: *** Waiting for unfinished jobs....
[ 83%] Building CXX object paddle/function/CMakeFiles/MulOpTest.dir/MulOpTest.cpp.o
make[2]: *** No rule to make target `../third_party/install/glog/lib/libglog.a', needed by `paddle/function/ContextProjectionOpTest'. Stop.
make[2]: *** Waiting for unfinished jobs....
[ 83%] Building CXX object paddle/function/CMakeFiles/ContextProjectionOpTest.dir/ContextProjectionOpTest.cpp.o
make[1]: *** [paddle/utils/tests/CMakeFiles/test_Error.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [paddle/function/CMakeFiles/TensorShapeTest.dir/all] Error 2
make[1]: *** [paddle/utils/tests/CMakeFiles/test_CustomStackTracePrint.dir/all] Error 2
make[1]: *** [paddle/function/CMakeFiles/BufferArgTest.dir/all] Error 2
make[1]: *** [paddle/utils/tests/CMakeFiles/test_CustomStackTrace.dir/all] Error 2
make[1]: *** [paddle/function/CMakeFiles/TensorTypeTest.dir/all] Error 2
make[1]: *** [paddle/function/CMakeFiles/PadOpTest.dir/all] Error 2
make[1]: *** [paddle/function/CMakeFiles/CosSimOpTest.dir/all] Error 2
make[1]: *** [paddle/function/CMakeFiles/CrossMapNormalOpTest.dir/all] Error 2
make[1]: *** [paddle/function/CMakeFiles/FunctionTest.dir/all] Error 2
make[1]: *** [paddle/function/CMakeFiles/ContextProjectionOpTest.dir/all] Error 2
make[1]: *** [paddle/function/CMakeFiles/MulOpTest.dir/all] Error 2
make: *** [all] Error 2
试了好几遍,都是这个问题。