Skip to content

编译C_API时遇到问题, cmake 不能通过 #6167

Closed
@zhipengli0524

Description

@zhipengli0524

cmake 选项
cmake ..
-DWITH_GPU=OFF
-DCMAKE_INSTALL_PREFIX=/home/lizhipeng/tools/paddlei.c_api
-DWITH_C_API=ON
-DWITH_PYTHON=OFF
-DWITH_SWIG=OFF

错误信息:
错误信息:
-- Found Paddle host system: centos, version: 6.3
-- Found Paddle host system's CPU: 8 cores
-- Could NOT find Sphinx (missing: SPHINX_EXECUTABLE)
Boost found.
-- Do not have AVX2 intrinsics and disabled MKL-DNN
-- Protobuf protoc executable: /home/lizhipeng/tools/paddle.c_api/Paddle/build/third_party/install/protobuf/bin/protoc
-- Protobuf library: /home/lizhipeng/tools/paddle.c_api/Paddle/build/third_party/install/protobuf/lib/libprotobuf.a
-- Protobuf version: 3.1
-- Found cblas and lapack in MKLML (include: /home/lizhipeng/tools/paddle.c_api/Paddle/build/third_party/install/mklml/mklml_lnx_2018.0.1.20171007/include, library: /home/lizhipeng/tools/paddle.c_api/Paddle/build/third_party/install/mklml/mklml_lnx_2018.0.1.20171007/lib/libmklml_intel.so)
-- BLAS library: /home/lizhipeng/tools/paddle.c_api/Paddle/build/third_party/install/mklml/mklml_lnx_2018.0.1.20171007/lib/libmklml_intel.so
-- warp-ctc library: /home/lizhipeng/tools/paddle.c_api/Paddle/build/third_party/install/warpctc/lib/libwarpctc.so
-- Enable Intel OpenMP with /home/lizhipeng/tools/paddle.c_api/Paddle/build/third_party/install/mklml/mklml_lnx_2018.0.1.20171007/lib/libiomp5.so
-- Paddle version is 0.10.0
-- Skip compiling with MKLDNNMatrix
-- Skip compiling with MKLDNNLayers and MKLDNNActivations
-- generating grpc send_recv.proto
-- Configuring done
-- Generating done
-- Build files have been written to: /home/lizhipeng/tools/paddle.c_api/Paddle/build
(paddle.c_api) [lizhipeng@cp01-lizhipeng02-linux build]$ ls
CMakeCache.txt CPackConfig.cmake Makefile cmake_command.sh paddle third_party
CMakeFiles CPackSourceConfig.cmake cblas_dummy.c cmake_install.cmake proto
(paddle.c_api) [lizhipeng@cp01-lizhipeng02-linux build]$ mv cmake_command.sh ../
(paddle.c_api) [lizhipeng@cp01-lizhipeng02-linux build]$ rm -rf *
(paddle.c_api) [lizhipeng@cp01-lizhipeng02-linux build]$ mv ../cmake_command.sh ./
(paddle.c_api) [lizhipeng@cp01-lizhipeng02-linux build]$ sh cmake_command.sh
-- Found Paddle host system: centos, version: 6.3
-- Found Paddle host system's CPU: 8 cores
-- The CXX compiler identification is GNU 4.8.2
-- The C compiler identification is GNU 4.8.2
-- The Golang compiler identification is go1.1.2 linux/amd64
-- Check for working Golang compiler: /usr/bin/go
-- Check for working CXX compiler: /opt/compiler/gcc-4.8.2/bin/g++
-- Check for working CXX compiler: /opt/compiler/gcc-4.8.2/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: /opt/compiler/gcc-4.8.2/bin/gcc
-- Check for working C compiler: /opt/compiler/gcc-4.8.2/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Could NOT find Sphinx (missing: SPHINX_EXECUTABLE)
-- Found Git: /usr/bin/git (found version "1.7.1")
-- Looking for pthread.h
-- Looking for 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
Boost found.
-- 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
-- Do not have AVX2 intrinsics and disabled MKL-DNN
-- Protobuf protoc executable: /home/lizhipeng/tools/paddle.c_api/Paddle/build/third_party/install/protobuf/bin/protoc
-- Protobuf library: /home/lizhipeng/tools/paddle.c_api/Paddle/build/third_party/install/protobuf/lib/libprotobuf.a
-- Protobuf version: 3.1
-- Found cblas and lapack in MKLML (include: /home/lizhipeng/tools/paddle.c_api/Paddle/build/third_party/install/mklml/mklml_lnx_2018.0.1.20171007/include, library: /home/lizhipeng/tools/paddle.c_api/Paddle/build/third_party/install/mklml/mklml_lnx_2018.0.1.20171007/lib/libmklml_intel.so)
-- BLAS library: /home/lizhipeng/tools/paddle.c_api/Paddle/build/third_party/install/mklml/mklml_lnx_2018.0.1.20171007/lib/libmklml_intel.so
-- Found SWIG: /home/lizhipeng/local_install/bin/swig (found version "3.0.12")
-- warp-ctc library: /home/lizhipeng/tools/paddle.c_api/Paddle/build/third_party/install/warpctc/lib/libwarpctc.so
-- Enable Intel OpenMP with /home/lizhipeng/tools/paddle.c_api/Paddle/build/third_party/install/mklml/mklml_lnx_2018.0.1.20171007/lib/libiomp5.so
-- Looking for UINT64_MAX
-- Looking for UINT64_MAX - not found
-- Looking for UINT64_MAX
-- Looking for UINT64_MAX - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of pthread_spinlock_t
-- Check size of pthread_spinlock_t - done
-- Check size of pthread_barrier_t
-- Check size of pthread_barrier_t - done
-- 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_parentheses_equality
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wno_error_parentheses_equality - Failed
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wno_error_parentheses_equality
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wno_error_parentheses_equality - Failed
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wno_error_ignored_attributes
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wno_error_ignored_attributes - Failed
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wno_error_ignored_attributes
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wno_error_ignored_attributes - Failed
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wno_error_terminate
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wno_error_terminate - Failed
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wno_error_terminate
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wno_error_terminate - Failed
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wno_error_unused_function
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wno_error_unused_function - Success
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wno_error_array_bounds
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wno_error_array_bounds - Success
-- Paddle version is 0.10.0
-- Skip compiling with MKLDNNMatrix
-- Skip compiling with MKLDNNLayers and MKLDNNActivations
-- generating grpc send_recv.proto
CMake Error at /home/lizhipeng/local_install/share/cmake-3.6/Modules/ExternalProject.cmake:1083 (file):
file problem creating directory: /pip/src/pip-stamp
Call Stack (most recent call first):
/home/lizhipeng/local_install/share/cmake-3.6/Modules/ExternalProject.cmake:2425 (_ep_set_directories)
paddle/api/CMakeLists.txt:96 (ExternalProject_Add)

CMake Error at /home/lizhipeng/local_install/share/cmake-3.6/Modules/ExternalProject.cmake:1085 (message):
dir '/pip/src/pip-stamp' does not exist after file(MAKE_DIRECTORY)
Call Stack (most recent call first):
/home/lizhipeng/local_install/share/cmake-3.6/Modules/ExternalProject.cmake:2425 (_ep_set_directories)
paddle/api/CMakeLists.txt:96 (ExternalProject_Add)

-- Configuring incomplete, errors occurred!
See also "/home/lizhipeng/tools/paddle.c_api/Paddle/build/CMakeFiles/CMakeOutput.log".
See also "/home/lizhipeng/tools/paddle.c_api/Paddle/build/CMakeFiles/CMakeError.log".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions