Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

c++环境编译 #3014

Closed
butterniu opened this issue Jun 3, 2021 · 4 comments
Closed

c++环境编译 #3014

butterniu opened this issue Jun 3, 2021 · 4 comments

Comments

@butterniu
Copy link

您好,我在根据官网cmake的时候发现好多包测试失败,我该如何去解决这些问题,还是可以不管,小白一名,麻烦帮助一下

cmake -DFLUID_INFERENCE_INSTALL_DIR=$PADDLE_ROOT \

  -DCMAKE_BUILD_TYPE=Release \
  -DWITH_PYTHON=OFF \
  -DWITH_MKL=OFF \
  -DWITH_GPU=OFF  \
  -DON_INFER=ON \
  -DWITH_NCCL=OFF \
  .. 

-- Found Paddle host system: , version:
-- Found Paddle host system's CPU: 16 cores
-- The CXX compiler identification is GNU 7.3.0
-- The C compiler identification is GNU 7.3.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/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/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- 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
-- CXX compiler: /usr/bin/c++, version: GNU 7.3.0
-- C compiler: /usr/bin/cc, version: GNU 7.3.0
-- AR tools: /usr/bin/ar
-- Found Git: /usr/bin/git (found version "2.27.0")
-- Performing Test MMX_FOUND
-- Performing Test MMX_FOUND - Failed
-- Performing Test SSE2_FOUND
-- Performing Test SSE2_FOUND - Failed
-- Performing Test SSE3_FOUND
-- Performing Test SSE3_FOUND - Failed
-- Performing Test AVX_FOUND
-- Performing Test AVX_FOUND - Failed
-- Performing Test AVX2_FOUND
-- Performing Test AVX2_FOUND - Failed
-- Performing Test AVX512F_FOUND
-- Performing Test AVX512F_FOUND - Failed
-- Do not have AVX2 intrinsics and disabled MKL-DNN
-- BOOST_VERSION: 1.41.0, BOOST_URL: http://paddlepaddledeps.bj.bcebos.com/boost_1_41_0.tar.gz
-- warp-ctc library: /root/tools/Paddle/build/third_party/install/warpctc/lib/libwarpctc.so
-- Found OpenBLAS (include: /usr/include/openblas, library: /usr/lib64/libopenblas.so)
-- Found lapack in OpenBLAS (include: /usr/include/openblas)
-- Protobuf protoc executable: /root/tools/Paddle/build/third_party/install/protobuf/bin/protoc
-- Protobuf-lite library: /root/tools/Paddle/build/third_party/install/protobuf/lib/libprotobuf-lite.a
-- Protobuf library: /root/tools/Paddle/build/third_party/install/protobuf/lib/libprotobuf.a
-- Protoc library: /root/tools/Paddle/build/third_party/install/protobuf/lib/libprotoc.a
-- Protobuf version: 3.1.0
-- 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 - Failed
-- 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 - Failed
-- 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 - Failed
-- 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 - Failed
-- 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 - Failed
-- 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 - Failed
-- 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 - Failed
-- 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 - Failed
-- 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 - Failed
-- 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 - Failed
-- 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 - Failed
-- 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 - Success
-- 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 - Success
-- 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_int_in_bool_context
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wno_error_int_in_bool_context - Success
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wno_error_int_in_bool_context
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wno_error_int_in_bool_context - Failed
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wimplicit_fallthrough_0
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wimplicit_fallthrough_0 - Success
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wimplicit_fallthrough_0
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wimplicit_fallthrough_0 - Failed
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wno_error_maybe_uninitialized
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wno_error_maybe_uninitialized - Success
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wno_error_maybe_uninitialized
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wno_error_maybe_uninitialized - 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
CMake Warning at cmake/version.cmake:58 (message):
Cannot add paddle version for wrong git branch result
Call Stack (most recent call first):
CMakeLists.txt:231 (include)

-- Paddle version is 0.0.0
-- On inference mode, will take place some specific optimization.
fatal: your current branch 'master' does not have any commits yet
fatal: your current branch 'master' does not have any commits yet
fatal: your current branch 'master' does not have any commits yet
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'
fatal: your current branch 'master' does not have any commits yet
-- commit:
-- branch: HEAD
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

FLUID_INFERENCE_INSTALL_DIR

-- Build files have been written to: /root/tools/Paddle/build

@LDOUBLEV
Copy link
Collaborator

LDOUBLEV commented Jun 3, 2021

能编译成功就不用管,编译失败再去看报了什么错

@butterniu
Copy link
Author

我进行了编译,没有编译成功,麻烦指导一下

make -j4

make[1]: Entering directory '/root/tools/Paddle/build'
make[2]: Entering directory '/root/tools/Paddle/build'
make[2]: Entering directory '/root/tools/Paddle/build'
make[2]: Entering directory '/root/tools/Paddle/build'
make[2]: Entering directory '/root/tools/Paddle/build'
Scanning dependencies of target extern_zlib
Scanning dependencies of target copy_kernels_command
Scanning dependencies of target extern_gflags
Scanning dependencies of target copy_paddle_inference_pass_command
make[2]: Leaving directory '/root/tools/Paddle/build'
make[2]: Leaving directory '/root/tools/Paddle/build'
make[2]: Leaving directory '/root/tools/Paddle/build'
make[2]: Leaving directory '/root/tools/Paddle/build'
make[2]: Entering directory '/root/tools/Paddle/build'
make[2]: Entering directory '/root/tools/Paddle/build'
make[2]: Entering directory '/root/tools/Paddle/build'
make[2]: Entering directory '/root/tools/Paddle/build'
[ 0%] Creating directories for 'extern_zlib'
[ 0%] Creating directories for 'extern_gflags'
[ 0%] copy_if_different /root/tools/Paddle/build/paddle/fluid/inference/api/paddle_inference_pass.h
[ 0%] copy_if_different /root/tools/Paddle/build/paddle/fluid/operators/jit/kernels.h
make[2]: Leaving directory '/root/tools/Paddle/build'
make[2]: Leaving directory '/root/tools/Paddle/build'
[ 0%] Built target copy_paddle_inference_pass_command
[ 0%] Built target copy_kernels_command
make[2]: Entering directory '/root/tools/Paddle/build'
make[2]: Entering directory '/root/tools/Paddle/build'
Scanning dependencies of target copy_pybind_command
make[2]: Leaving directory '/root/tools/Paddle/build'
Scanning dependencies of target extern_eigen3
make[2]: Entering directory '/root/tools/Paddle/build'
make[2]: Leaving directory '/root/tools/Paddle/build'
make[2]: Entering directory '/root/tools/Paddle/build'
[ 0%] copy_if_different /root/tools/Paddle/build/paddle/fluid/pybind/pybind.h
[ 0%] Creating directories for 'extern_eigen3'
make[2]: Leaving directory '/root/tools/Paddle/build'
[ 0%] Built target copy_pybind_command
make[2]: Entering directory '/root/tools/Paddle/build'
Scanning dependencies of target extern_boost
make[2]: Leaving directory '/root/tools/Paddle/build'
make[2]: Entering directory '/root/tools/Paddle/build'
[ 0%] Performing download step (git clone) for 'extern_gflags'
[ 0%] Performing download step (git clone) for 'extern_zlib'
[ 0%] Creating directories for 'extern_boost'
Cloning into 'extern_zlib'...
Cloning into 'extern_gflags'...
[ 0%] Performing download step (git clone) for 'extern_eigen3'
Cloning into 'extern_eigen3'...
[ 0%] Performing download step (download, verify and extract) for 'extern_boost'
-- Downloading...
dst='/root/tools/Paddle/build/third_party/boost/src/extern_boost/boost_1_41_0.tar.gz'
timeout='none'
-- Using src='http://paddlepaddledeps.bj.bcebos.com/boost_1_41_0.tar.gz'
-- Downloading... done
-- extracting...
src='/root/tools/Paddle/build/third_party/boost/src/extern_boost/boost_1_41_0.tar.gz'
dst='/root/tools/Paddle/build/third_party/boost/src/extern_boost'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 1%] No patch step for 'extern_boost'
[ 1%] No update step for 'extern_boost'
[ 1%] No configure step for 'extern_boost'
[ 1%] No build step for 'extern_boost'
[ 1%] No install step for 'extern_boost'
[ 1%] Completed 'extern_boost'
make[2]: Leaving directory '/root/tools/Paddle/build'
[ 1%] Built target extern_boost
make[2]: Entering directory '/root/tools/Paddle/build'
Scanning dependencies of target extern_xbyak
make[2]: Leaving directory '/root/tools/Paddle/build'
make[2]: Entering directory '/root/tools/Paddle/build'
[ 1%] Creating directories for 'extern_xbyak'
[ 1%] Performing download step (git clone) for 'extern_xbyak'
Cloning into 'extern_xbyak'...
Note: switching to 'v5.661'.

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 switching back to a branch.

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

git switch -c

Or undo this operation with:

git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 85767e9 support mingw64
[ 1%] No patch step for 'extern_xbyak'
[ 1%] No update step for 'extern_xbyak'
[ 1%] Performing configure step for 'extern_xbyak'
-- extern_xbyak configure command succeeded. See also /root/tools/Paddle/build/third_party/xbyak/src/extern_xbyak-stamp/extern_xbyak-configure-.log
[ 2%] Performing build step for 'extern_xbyak'
make[3]: Entering directory '/root/tools/Paddle/build/third_party/xbyak/src/extern_xbyak-build'
make[3]: Leaving directory '/root/tools/Paddle/build/third_party/xbyak/src/extern_xbyak-build'
[ 2%] Performing install step for 'extern_xbyak'
-- extern_xbyak install command succeeded. See also /root/tools/Paddle/build/third_party/xbyak/src/extern_xbyak-stamp/extern_xbyak-install-
.log
[ 2%] Completed 'extern_xbyak'
make[2]: Leaving directory '/root/tools/Paddle/build'
[ 2%] Built target extern_xbyak
make[2]: Entering directory '/root/tools/Paddle/build'
Scanning dependencies of target extern_threadpool
make[2]: Leaving directory '/root/tools/Paddle/build'
make[2]: Entering directory '/root/tools/Paddle/build'
[ 2%] Creating directories for 'extern_threadpool'
[ 2%] Performing download step (git clone) for 'extern_threadpool'
Cloning into 'extern_threadpool'...
Note: switching to 'v1.2.8'.

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 switching back to a branch.

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

git switch -c

Or undo this operation with:

git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 5089329 zlib 1.2.8
[ 2%] No patch step for 'extern_zlib'
Note: switching to '9a42ec1329f259a5f4881a291db1dcb8f2ad9040'.

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 switching back to a branch.

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

git switch -c

Or undo this operation with:

git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 9a42ec1 changed typedef to using
[ 2%] No update step for 'extern_zlib'
[ 2%] Performing configure step for 'extern_zlib'
[ 2%] No patch step for 'extern_threadpool'
[ 2%] No update step for 'extern_threadpool'
[ 2%] No configure step for 'extern_threadpool'
[ 2%] No build step for 'extern_threadpool'
[ 2%] No install step for 'extern_threadpool'
[ 2%] No test step for 'extern_threadpool'
[ 2%] Completed 'extern_threadpool'
make[2]: Leaving directory '/root/tools/Paddle/build'
[ 2%] Built target extern_threadpool
make[2]: Entering directory '/root/tools/Paddle/build'
Scanning dependencies of target extern_dlpack
make[2]: Leaving directory '/root/tools/Paddle/build'
make[2]: Entering directory '/root/tools/Paddle/build'
[ 2%] Creating directories for 'extern_dlpack'
[ 2%] Performing download step (git clone) for 'extern_dlpack'
Cloning into 'extern_dlpack'...
-- extern_zlib configure command succeeded. See also /root/tools/Paddle/build/third_party/zlib/src/extern_zlib-stamp/extern_zlib-configure-*.log
[ 2%] Performing build step for 'extern_zlib'
make[3]: Entering directory '/root/tools/Paddle/build/third_party/zlib/src/extern_zlib-build'
make[4]: Entering directory '/root/tools/Paddle/build/third_party/zlib/src/extern_zlib-build'
make[5]: Entering directory '/root/tools/Paddle/build/third_party/zlib/src/extern_zlib-build'
Scanning dependencies of target zlibstatic
make[5]: Leaving directory '/root/tools/Paddle/build/third_party/zlib/src/extern_zlib-build'
make[5]: Entering directory '/root/tools/Paddle/build/third_party/zlib/src/extern_zlib-build'
[ 2%] Building C object CMakeFiles/zlibstatic.dir/adler32.o
[ 5%] Building C object CMakeFiles/zlibstatic.dir/compress.o
[ 7%] Building C object CMakeFiles/zlibstatic.dir/crc32.o
[ 10%] Building C object CMakeFiles/zlibstatic.dir/deflate.o
[ 12%] Building C object CMakeFiles/zlibstatic.dir/gzclose.o
[ 15%] Building C object CMakeFiles/zlibstatic.dir/gzlib.o
[ 17%] Building C object CMakeFiles/zlibstatic.dir/gzread.o
Note: switching to 'v0.2'.

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 switching back to a branch.

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

git switch -c

Or undo this operation with:

git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 10892ac small fix to NEWS.md (#24)
[ 2%] No patch step for 'extern_dlpack'
[ 2%] No update step for 'extern_dlpack'
[ 20%] Building C object CMakeFiles/zlibstatic.dir/gzwrite.o
[ 2%] No configure step for 'extern_dlpack'
[ 2%] No build step for 'extern_dlpack'
[ 2%] No install step for 'extern_dlpack'
[ 2%] No test step for 'extern_dlpack'
[ 2%] Completed 'extern_dlpack'
[ 22%] Building C object CMakeFiles/zlibstatic.dir/inflate.o
make[2]: Leaving directory '/root/tools/Paddle/build'
[ 2%] Built target extern_dlpack
[ 25%] Building C object CMakeFiles/zlibstatic.dir/infback.o
make[5]: Entering directory '/root/tools/Paddle/build/third_party/zlib/src/extern_zlib-build'
Scanning dependencies of target zlib
make[5]: Leaving directory '/root/tools/Paddle/build/third_party/zlib/src/extern_zlib-build'
make[5]: Entering directory '/root/tools/Paddle/build/third_party/zlib/src/extern_zlib-build'
[ 27%] Building C object CMakeFiles/zlib.dir/adler32.o
[ 30%] Building C object CMakeFiles/zlib.dir/compress.o
[ 32%] Building C object CMakeFiles/zlib.dir/crc32.o
[ 35%] Building C object CMakeFiles/zlib.dir/deflate.o
[ 37%] Building C object CMakeFiles/zlibstatic.dir/inftrees.o
[ 40%] Building C object CMakeFiles/zlibstatic.dir/inffast.o
[ 42%] Building C object CMakeFiles/zlibstatic.dir/trees.o
[ 45%] Building C object CMakeFiles/zlib.dir/gzclose.o
[ 47%] Building C object CMakeFiles/zlibstatic.dir/uncompr.o
[ 50%] Building C object CMakeFiles/zlib.dir/gzlib.o
[ 52%] Building C object CMakeFiles/zlibstatic.dir/zutil.o
[ 55%] Linking C static library libz.a
make[5]: Leaving directory '/root/tools/Paddle/build/third_party/zlib/src/extern_zlib-build'
[ 55%] Built target zlibstatic
make[2]: Entering directory '/root/tools/Paddle/build'
Scanning dependencies of target extern_cryptopp
make[2]: Leaving directory '/root/tools/Paddle/build'
make[2]: Entering directory '/root/tools/Paddle/build'
[ 2%] Creating directories for 'extern_cryptopp'
[ 57%] Building C object CMakeFiles/zlib.dir/gzread.o
[ 2%] Performing download step (git clone) for 'extern_cryptopp'
Cloning into 'extern_cryptopp'...
[ 60%] Building C object CMakeFiles/zlib.dir/gzwrite.o
[ 62%] Building C object CMakeFiles/zlib.dir/inflate.o
[ 65%] Building C object CMakeFiles/zlib.dir/infback.o
[ 67%] Building C object CMakeFiles/zlib.dir/inftrees.o
[ 70%] Building C object CMakeFiles/zlib.dir/inffast.o
[ 72%] Building C object CMakeFiles/zlib.dir/trees.o
[ 75%] Building C object CMakeFiles/zlib.dir/uncompr.o
[ 77%] Building C object CMakeFiles/zlib.dir/zutil.o
[ 80%] Linking C shared library libz.so
make[5]: Leaving directory '/root/tools/Paddle/build/third_party/zlib/src/extern_zlib-build'
[ 80%] Built target zlib
make[5]: Entering directory '/root/tools/Paddle/build/third_party/zlib/src/extern_zlib-build'
Scanning dependencies of target example
make[5]: Leaving directory '/root/tools/Paddle/build/third_party/zlib/src/extern_zlib-build'
make[5]: Entering directory '/root/tools/Paddle/build/third_party/zlib/src/extern_zlib-build'
[ 82%] Building C object CMakeFiles/example.dir/test/example.o
[ 85%] Linking C executable example
make[5]: Leaving directory '/root/tools/Paddle/build/third_party/zlib/src/extern_zlib-build'
[ 85%] Built target example
make[5]: Entering directory '/root/tools/Paddle/build/third_party/zlib/src/extern_zlib-build'
Scanning dependencies of target minigzip
make[5]: Leaving directory '/root/tools/Paddle/build/third_party/zlib/src/extern_zlib-build'
make[5]: Entering directory '/root/tools/Paddle/build/third_party/zlib/src/extern_zlib-build'
[ 87%] Building C object CMakeFiles/minigzip.dir/test/minigzip.o
[ 90%] Linking C executable minigzip
make[5]: Leaving directory '/root/tools/Paddle/build/third_party/zlib/src/extern_zlib-build'
[ 90%] Built target minigzip
make[5]: Entering directory '/root/tools/Paddle/build/third_party/zlib/src/extern_zlib-build'
Scanning dependencies of target minigzip64
make[5]: Leaving directory '/root/tools/Paddle/build/third_party/zlib/src/extern_zlib-build'
make[5]: Entering directory '/root/tools/Paddle/build/third_party/zlib/src/extern_zlib-build'
[ 92%] Building C object CMakeFiles/minigzip64.dir/test/minigzip.o
[ 95%] Linking C executable minigzip64
make[5]: Leaving directory '/root/tools/Paddle/build/third_party/zlib/src/extern_zlib-build'
[ 95%] Built target minigzip64
make[5]: Entering directory '/root/tools/Paddle/build/third_party/zlib/src/extern_zlib-build'
Scanning dependencies of target example64
make[5]: Leaving directory '/root/tools/Paddle/build/third_party/zlib/src/extern_zlib-build'
make[5]: Entering directory '/root/tools/Paddle/build/third_party/zlib/src/extern_zlib-build'
[ 97%] Building C object CMakeFiles/example64.dir/test/example.o
[100%] Linking C executable example64
make[5]: Leaving directory '/root/tools/Paddle/build/third_party/zlib/src/extern_zlib-build'
[100%] Built target example64
make[4]: Leaving directory '/root/tools/Paddle/build/third_party/zlib/src/extern_zlib-build'
make[3]: Leaving directory '/root/tools/Paddle/build/third_party/zlib/src/extern_zlib-build'
[ 2%] Performing install step for 'extern_zlib'
-- extern_zlib install command succeeded. See also /root/tools/Paddle/build/third_party/zlib/src/extern_zlib-stamp/extern_zlib-install-*.log
[ 2%] Completed 'extern_zlib'
make[2]: Leaving directory '/root/tools/Paddle/build'
[ 2%] Built target extern_zlib
make[2]: Entering directory '/root/tools/Paddle/build'
Scanning dependencies of target extern_warpctc
make[2]: Leaving directory '/root/tools/Paddle/build'
make[2]: Entering directory '/root/tools/Paddle/build'
[ 2%] Creating directories for 'extern_warpctc'
[ 2%] Performing download step (git clone) for 'extern_warpctc'
Cloning into 'extern_warpctc'...
Note: switching to 'CRYPTOPP_8_2_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 switching back to a branch.

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

git switch -c

Or undo this operation with:

git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 9dcc26c5 Prepare for Crypto++ 8.2 release Make ConstBytePtr return non-NULL pointer
[ 2%] Performing patch step for 'extern_cryptopp'
Cloning into '/root/tools/Paddle/build/third_party/cryptopp/src/extern_cryptopp/cmake'...
Note: switching to '4da2c6b1974827b1999bab652a3d4703e1992d26'.

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 switching back to a branch.

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

git switch -c

Or undo this operation with:

git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 4da2c6b19 Remove reference to non-existent unary_op_base class.
[ 2%] Performing patch step for 'extern_eigen3'
[ 2%] No update step for 'extern_eigen3'
[ 2%] No configure step for 'extern_eigen3'
[ 2%] No build step for 'extern_eigen3'
[ 2%] No install step for 'extern_eigen3'
[ 3%] No test step for 'extern_eigen3'
[ 3%] Completed 'extern_eigen3'
make[2]: Leaving directory '/root/tools/Paddle/build'
[ 3%] Built target extern_eigen3
make[2]: Entering directory '/root/tools/Paddle/build'
Scanning dependencies of target extern_gloo
make[2]: Leaving directory '/root/tools/Paddle/build'
make[2]: Entering directory '/root/tools/Paddle/build'
[ 3%] Creating directories for 'extern_gloo'
[ 3%] Performing download step (git clone) for 'extern_gloo'
Cloning into 'gloo'...
fatal: unable to access 'https://github.com/baidu-research/warp-ctc.git/': Failed to connect to github.com port 443: Connection timed out
Cloning into 'extern_warpctc'...
-- Had to git clone more than once:
2 times.
Note: switching to '95a461eddeabd51099ef059dcfada1117eb1bfb8'.

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 switching back to a branch.

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

git switch -c

Or undo this operation with:

git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 95a461e Add interface supporting double type (#163)
[ 3%] No patch step for 'extern_warpctc'
[ 3%] Performing update step for 'extern_warpctc'
-- extern_warpctc update command succeeded. See also /root/tools/Paddle/build/third_party/warpctc/src/extern_warpctc-stamp/extern_warpctc-update-.log
[ 3%] Performing configure step for 'extern_warpctc'
-- extern_warpctc configure command succeeded. See also /root/tools/Paddle/build/third_party/warpctc/src/extern_warpctc-stamp/extern_warpctc-configure-
.log
[ 3%] Performing build step for 'extern_warpctc'
make[3]: Entering directory '/root/tools/Paddle/build/third_party/warpctc/src/extern_warpctc-build'
make[4]: Entering directory '/root/tools/Paddle/build/third_party/warpctc/src/extern_warpctc-build'
make[5]: Entering directory '/root/tools/Paddle/build/third_party/warpctc/src/extern_warpctc-build'
Scanning dependencies of target warpctc
make[5]: Leaving directory '/root/tools/Paddle/build/third_party/warpctc/src/extern_warpctc-build'
make[5]: Entering directory '/root/tools/Paddle/build/third_party/warpctc/src/extern_warpctc-build'
[ 50%] Building CXX object CMakeFiles/warpctc.dir/src/ctc_entrypoint.cpp.o
fatal: unable to access 'https://github.com/noloader/cryptopp-cmake/': Failed to connect to github.com port 443: Connection timed out
make[2]: *** [CMakeFiles/extern_cryptopp.dir/build.make:101: third_party/cryptopp/src/extern_cryptopp-stamp/extern_cryptopp-patch] Error 128
make[2]: Leaving directory '/root/tools/Paddle/build'
make[1]: *** [CMakeFiles/Makefile2:2549: CMakeFiles/extern_cryptopp.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[100%] Linking CXX shared library libwarpctc.so
make[5]: Leaving directory '/root/tools/Paddle/build/third_party/warpctc/src/extern_warpctc-build'
[100%] Built target warpctc
make[4]: Leaving directory '/root/tools/Paddle/build/third_party/warpctc/src/extern_warpctc-build'
make[3]: Leaving directory '/root/tools/Paddle/build/third_party/warpctc/src/extern_warpctc-build'
[ 3%] Performing install step for 'extern_warpctc'
-- extern_warpctc install command succeeded. See also /root/tools/Paddle/build/third_party/warpctc/src/extern_warpctc-stamp/extern_warpctc-install-*.log
[ 3%] Completed 'extern_warpctc'
make[2]: Leaving directory '/root/tools/Paddle/build'
[ 3%] Built target extern_warpctc
fatal: unable to access 'https://github.com/gflags/gflags.git/': Empty reply from server
Cloning into 'extern_gflags'...
-- Had to git clone more than once:
2 times.
Note: switching to '77592648e3f3be87d6c7123eb81cbad75f9aef5a'.

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 switching back to a branch.

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

git switch -c

Or undo this operation with:

git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 7759264 repair wrong namespace problem
Submodule 'doc' (https://github.com/gflags/gflags.git) registered for path 'doc'
Cloning into '/root/tools/Paddle/build/third_party/gflags/src/extern_gflags/doc'...
Submodule path 'doc': checked out '971dd2a4fadac9cdab174c523c22df79efd63aa5'
[ 3%] No patch step for 'extern_gflags'
[ 3%] No update step for 'extern_gflags'
[ 3%] Performing configure step for 'extern_gflags'
-- extern_gflags configure command succeeded. See also /root/tools/Paddle/build/third_party/gflags/src/extern_gflags-stamp/extern_gflags-configure-.log
[ 3%] Performing build step for 'extern_gflags'
make[3]: Entering directory '/root/tools/Paddle/build/third_party/gflags/src/extern_gflags-build'
make[4]: Entering directory '/root/tools/Paddle/build/third_party/gflags/src/extern_gflags-build'
make[5]: Entering directory '/root/tools/Paddle/build/third_party/gflags/src/extern_gflags-build'
make[5]: Entering directory '/root/tools/Paddle/build/third_party/gflags/src/extern_gflags-build'
Scanning dependencies of target gflags_nothreads_static
Scanning dependencies of target gflags_static
make[5]: Leaving directory '/root/tools/Paddle/build/third_party/gflags/src/extern_gflags-build'
make[5]: Leaving directory '/root/tools/Paddle/build/third_party/gflags/src/extern_gflags-build'
make[5]: Entering directory '/root/tools/Paddle/build/third_party/gflags/src/extern_gflags-build'
make[5]: Entering directory '/root/tools/Paddle/build/third_party/gflags/src/extern_gflags-build'
[ 12%] Building CXX object CMakeFiles/gflags_nothreads_static.dir/src/gflags_reporting.cc.o
[ 37%] Building CXX object CMakeFiles/gflags_static.dir/src/gflags.cc.o
[ 37%] Building CXX object CMakeFiles/gflags_nothreads_static.dir/src/gflags.cc.o
[ 50%] Building CXX object CMakeFiles/gflags_nothreads_static.dir/src/gflags_completions.cc.o
[ 62%] Building CXX object CMakeFiles/gflags_static.dir/src/gflags_reporting.cc.o
[ 75%] Building CXX object CMakeFiles/gflags_static.dir/src/gflags_completions.cc.o
[ 87%] Linking CXX static library lib/libgflags_nothreads.a
make[5]: Leaving directory '/root/tools/Paddle/build/third_party/gflags/src/extern_gflags-build'
[ 87%] Built target gflags_nothreads_static
[100%] Linking CXX static library lib/libgflags.a
make[5]: Leaving directory '/root/tools/Paddle/build/third_party/gflags/src/extern_gflags-build'
[100%] Built target gflags_static
make[4]: Leaving directory '/root/tools/Paddle/build/third_party/gflags/src/extern_gflags-build'
make[3]: Leaving directory '/root/tools/Paddle/build/third_party/gflags/src/extern_gflags-build'
[ 3%] Performing install step for 'extern_gflags'
-- extern_gflags install command succeeded. See also /root/tools/Paddle/build/third_party/gflags/src/extern_gflags-stamp/extern_gflags-install-
.log
[ 3%] Completed 'extern_gflags'
make[2]: Leaving directory '/root/tools/Paddle/build'
[ 3%] Built target extern_gflags
fatal: unable to access 'https://github.com/sandyhouse/gloo.git/': Empty reply from server
Cloning into 'gloo'...
fatal: unable to access 'https://github.com/sandyhouse/gloo.git/': Empty reply from server
Cloning into 'gloo'...
-- Had to git clone more than once:
3 times.
Note: switching to 'v0.0.2'.

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 switching back to a branch.

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

git switch -c

Or undo this operation with:

git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 1da51bb replace auto with size_t
[ 3%] No update step for 'extern_gloo'
[ 3%] No patch step for 'extern_gloo'
[ 3%] No configure step for 'extern_gloo'
[ 3%] Performing build step for 'extern_gloo'
-- The CXX compiler identification is GNU 7.3.0
-- The C compiler identification is GNU 7.3.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/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/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Build type not set -- defaulting to Release
-- Configuring done
-- Generating done
-- Build files have been written to: /root/tools/Paddle/build/third_party/gloo/src/extern_gloo/gloo/build
make[3]: Entering directory '/root/tools/Paddle/build/third_party/gloo/src/extern_gloo/gloo/build'
make[4]: Entering directory '/root/tools/Paddle/build/third_party/gloo/src/extern_gloo/gloo/build'
make[5]: Entering directory '/root/tools/Paddle/build/third_party/gloo/src/extern_gloo/gloo/build'
Scanning dependencies of target gloo
make[5]: Leaving directory '/root/tools/Paddle/build/third_party/gloo/src/extern_gloo/gloo/build'
make[5]: Entering directory '/root/tools/Paddle/build/third_party/gloo/src/extern_gloo/gloo/build'
[ 8%] Building CXX object gloo/CMakeFiles/gloo.dir/allreduce.cc.o
[ 8%] Building CXX object gloo/CMakeFiles/gloo.dir/algorithm.cc.o
[ 8%] Building CXX object gloo/CMakeFiles/gloo.dir/allgatherv.cc.o
[ 11%] Building CXX object gloo/CMakeFiles/gloo.dir/allgather.cc.o
[ 14%] Building CXX object gloo/CMakeFiles/gloo.dir/allreduce_local.cc.o
[ 17%] Building CXX object gloo/CMakeFiles/gloo.dir/barrier.cc.o
[ 20%] Building CXX object gloo/CMakeFiles/gloo.dir/broadcast.cc.o
[ 22%] Building CXX object gloo/CMakeFiles/gloo.dir/context.cc.o
[ 25%] Building CXX object gloo/CMakeFiles/gloo.dir/gather.cc.o
[ 28%] Building CXX object gloo/CMakeFiles/gloo.dir/reduce.cc.o
[ 31%] Building CXX object gloo/CMakeFiles/gloo.dir/scatter.cc.o
[ 34%] Building CXX object gloo/CMakeFiles/gloo.dir/types.cc.o
[ 37%] Building CXX object gloo/CMakeFiles/gloo.dir/common/logging.cc.o
[ 40%] Building CXX object gloo/CMakeFiles/gloo.dir/common/print_logging.cc.o
[ 42%] Building CXX object gloo/CMakeFiles/gloo.dir/common/linux.cc.o
[ 45%] Building CXX object gloo/CMakeFiles/gloo.dir/rendezvous/context.cc.o
[ 48%] Building CXX object gloo/CMakeFiles/gloo.dir/rendezvous/file_store.cc.o
[ 51%] Building CXX object gloo/CMakeFiles/gloo.dir/rendezvous/hash_store.cc.o
[ 54%] Building CXX object gloo/CMakeFiles/gloo.dir/rendezvous/prefix_store.cc.o
[ 57%] Building CXX object gloo/CMakeFiles/gloo.dir/rendezvous/store.cc.o
[ 60%] Building CXX object gloo/CMakeFiles/gloo.dir/rendezvous/http_store.cc.o
[ 62%] Building CXX object gloo/CMakeFiles/gloo.dir/transport/address.cc.o
[ 65%] Building CXX object gloo/CMakeFiles/gloo.dir/transport/buffer.cc.o
[ 68%] Building CXX object gloo/CMakeFiles/gloo.dir/transport/context.cc.o
[ 71%] Building CXX object gloo/CMakeFiles/gloo.dir/transport/device.cc.o
[ 74%] Building CXX object gloo/CMakeFiles/gloo.dir/transport/pair.cc.o
[ 77%] Building CXX object gloo/CMakeFiles/gloo.dir/transport/unbound_buffer.cc.o
[ 80%] Building CXX object gloo/CMakeFiles/gloo.dir/transport/tcp/address.cc.o
[ 82%] Building CXX object gloo/CMakeFiles/gloo.dir/transport/tcp/buffer.cc.o
[ 85%] Building CXX object gloo/CMakeFiles/gloo.dir/transport/tcp/context.cc.o
[ 88%] Building CXX object gloo/CMakeFiles/gloo.dir/transport/tcp/device.cc.o
[ 91%] Building CXX object gloo/CMakeFiles/gloo.dir/transport/tcp/loop.cc.o
[ 94%] Building CXX object gloo/CMakeFiles/gloo.dir/transport/tcp/pair.cc.o
[ 97%] Building CXX object gloo/CMakeFiles/gloo.dir/transport/tcp/unbound_buffer.cc.o
[100%] Linking CXX static library libgloo.a
make[5]: Leaving directory '/root/tools/Paddle/build/third_party/gloo/src/extern_gloo/gloo/build'
[100%] Built target gloo
make[4]: Leaving directory '/root/tools/Paddle/build/third_party/gloo/src/extern_gloo/gloo/build'
make[3]: Leaving directory '/root/tools/Paddle/build/third_party/gloo/src/extern_gloo/gloo/build'
[ 3%] Performing install step for 'extern_gloo'
-- extern_gloo install command succeeded. See also /root/tools/Paddle/build/third_party/gloo/src/extern_gloo-stamp/extern_gloo-install-*.log
[ 3%] Completed 'extern_gloo'
make[2]: Leaving directory '/root/tools/Paddle/build'
[ 3%] Built target extern_gloo
make[1]: Leaving directory '/root/tools/Paddle/build'
make: *** [Makefile:130: all] Error 2

@Evezerest
Copy link
Collaborator

可以到Paddle repo下提问

@Evezerest
Copy link
Collaborator

The issue will be closed, if it is not solved or there is a follow-up one, please reopen it at any time and we will continue to follow up. It is recommended to pull and try the latest code first.
该问题将会被关闭,若问题未解决或有后续问题,请随时重新打开(建议先拉取最新代码进行尝试),我们会继续跟进。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants