PaddlePaddle / PaddleFL

Federated Deep Learning in PaddlePaddle
Apache License 2.0
496 stars 121 forks source link

Compilation failure from source code and pip #166

Open YueWang1996 opened 3 years ago

YueWang1996 commented 3 years ago

Environment

Ubuntu 20.04.2 LTS Python 3.7.7 pip 21.0.1 g++ (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0 Redis server v=5.0.8 PaddlePaddle 1.8.0 cmake version 3.16.0

Compilation error message

/PaddleFL/build# cmake ../ -DPYTHON_EXECUTABLE=/root/miniconda/bin/python3 -DPYTHON_INCLUDE_DIRS=/root/miniconda/include/python3.7m -DCMAKE_CXX_COMPILER=/usr/bin/g++
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- 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
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using paddlepaddle installation of 1.8.0
-- paddlepaddle include directory: /root/miniconda/lib/python3.7/site-packages/paddle/include
-- paddlepaddle libraries directory: /root/miniconda/lib/python3.7/site-packages/paddle/libs
-- python libraries directory: /root/miniconda/lib/python3.7/site-packages
-- Do not have AVX2 intrinsics and disabled MKL-DNN
-- use pre defined download url
-- GLOO_NAME: gloo, GLOO_URL: https://paddlefl.bj.bcebos.com/gloo.tar.gz
-- use pre defined download url
-- 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
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- Configuring done
-- Generating done
-- Build files have been written to: /PaddleFL/build
/PaddleFL/build# make -j$(nproc)
...
/root/miniconda/lib/python3.7/site-packages/paddle/include/paddle/fluid/platform/device_context.h:32:10: fatal error: mkldnn.hpp: No such file or directory
   32 | #include "mkldnn.hpp"
      |          ^~~~~~~~~~~~
compilation terminated.
[ 32%] Building CXX object core/paddlefl_mpc/operators/CMakeFiles/mpc_ops_o.dir/conv_op.cc.o
make[2]: *** [core/paddlefl_mpc/mpc_protocol/CMakeFiles/mpc_protocol_o.dir/build.make:63: core/paddlefl_mpc/mpc_protocol/CMakeFiles/mpc_protocol_o.dir/aby3_protocol.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [core/paddlefl_mpc/mpc_protocol/CMakeFiles/mpc_protocol_o.dir/build.make:102: core/paddlefl_mpc/mpc_protocol/CMakeFiles/mpc_protocol_o.dir/context_holder.cc.o] Error 1
In file included from /root/miniconda/lib/python3.7/site-packages/paddle/include/paddle/fluid/framework/tensor.h:27,
                 from /PaddleFL/./core/paddlefl_mpc/mpc_protocol/mpc_operators.h:20,
                 from /PaddleFL/./core/paddlefl_mpc/mpc_protocol/mpc_protocol.h:23,
                 from /PaddleFL/core/paddlefl_mpc/mpc_protocol/mpc_instance.h:20,
                 from /PaddleFL/core/paddlefl_mpc/mpc_protocol/mpc_instance.cc:15:
/root/miniconda/lib/python3.7/site-packages/paddle/include/paddle/fluid/platform/device_context.h:32:10: fatal error: mkldnn.hpp: No such file or directory
   32 | #include "mkldnn.hpp"
      |          ^~~~~~~~~~~~
compilation terminated.
[ 32%] Building CXX object core/paddlefl_mpc/operators/CMakeFiles/mpc_ops_o.dir/mpc_adam_op.cc.o
make[2]: *** [core/paddlefl_mpc/mpc_protocol/CMakeFiles/mpc_protocol_o.dir/build.make:115: core/paddlefl_mpc/mpc_protocol/CMakeFiles/mpc_protocol_o.dir/mpc_instance.cc.o] Error 1
[ 33%] Building CXX object core/paddlefl_mpc/operators/CMakeFiles/mpc_ops_o.dir/mpc_batch_norm_op.cc.o
[ 34%] Building CXX object core/paddlefl_mpc/operators/CMakeFiles/mpc_ops_o.dir/mpc_compare_op.cc.o
In file included from /root/miniconda/lib/python3.7/site-packages/paddle/include/paddle/fluid/framework/tensor.h:27,
                 from /root/miniconda/lib/python3.7/site-packages/paddle/include/paddle/fluid/framework/eigen.h:17,
                 from /PaddleFL/core/paddlefl_mpc/operators/./conv_op.h:21,
                 from /PaddleFL/core/paddlefl_mpc/operators/conv_op.cc:15:
/root/miniconda/lib/python3.7/site-packages/paddle/include/paddle/fluid/platform/device_context.h:32:10: fatal error: mkldnn.hpp: No such file or directory
   32 | #include "mkldnn.hpp"
      |          ^~~~~~~~~~~~
compilation terminated.
make[2]: *** [core/paddlefl_mpc/operators/CMakeFiles/mpc_ops_o.dir/build.make:63: core/paddlefl_mpc/operators/CMakeFiles/mpc_ops_o.dir/conv_op.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
.....

Please have a look and give some help :) Thanks!

YueWang1996 commented 3 years ago

Updates: The above error is solved by apt-get install libmkldnn-dev libmkldnn1 But another error occurs:

root@db18d9071604:/PaddleFL/build# cmake ../ -DPYTHON_EXECUTABLE=/root/miniconda/bin/python3 -DPYTHON_INCLUDE_DIRS=/root/miniconda/include/python3.7m -DCMAKE_CXX_COMPILER=/usr/bin/g++
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- 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
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using paddlepaddle installation of 1.8.0
-- paddlepaddle include directory: /root/miniconda/lib/python3.7/site-packages/paddle/include
-- paddlepaddle libraries directory: /root/miniconda/lib/python3.7/site-packages/paddle/libs
-- python libraries directory: /root/miniconda/lib/python3.7/site-packages
-- Do not have AVX2 intrinsics and disabled MKL-DNN
-- use pre defined download url
-- GLOO_NAME: gloo, GLOO_URL: https://paddlefl.bj.bcebos.com/gloo.tar.gz
-- use pre defined download url
-- 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
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- Configuring done
-- Generating done
-- Build files have been written to: /PaddleFL/build
root@db18d9071604:/PaddleFL/build# make -j$(nproc)
...
/usr/bin/ld: libmpc_protocol.a(aby3_protocol.cc.o): in function `aby3::FixedPointTensor<long, 16ul>::calc_precision_recall(aby3::FixedPointTensor<long, 16ul> const*, common::TensorAdapter<long>*)':
aby3_protocol.cc:(.text._ZN4aby316FixedPointTensorIlLm16EE21calc_precision_recallEPKS1_PN6common13TensorAdapterIlEE[_ZN4aby316FixedPointTensorIlLm16EE21calc_precision_recallEPKS1_PN6common13TensorAdapterIlEE]+0x6c2): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: aby3_protocol.cc:(.text._ZN4aby316FixedPointTensorIlLm16EE21calc_precision_recallEPKS1_PN6common13TensorAdapterIlEE[_ZN4aby316FixedPointTensorIlLm16EE21calc_precision_recallEPKS1_PN6common13TensorAdapterIlEE]+0x7fd): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: aby3_protocol.cc:(.text._ZN4aby316FixedPointTensorIlLm16EE21calc_precision_recallEPKS1_PN6common13TensorAdapterIlEE[_ZN4aby316FixedPointTensorIlLm16EE21calc_precision_recallEPKS1_PN6common13TensorAdapterIlEE]+0x8b8): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: aby3_protocol.cc:(.text._ZN4aby316FixedPointTensorIlLm16EE21calc_precision_recallEPKS1_PN6common13TensorAdapterIlEE[_ZN4aby316FixedPointTensorIlLm16EE21calc_precision_recallEPKS1_PN6common13TensorAdapterIlEE]+0xab6): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: libmpc_protocol.a(aby3_protocol.cc.o):aby3_protocol.cc:(.text._ZNK6common12PaddleTensorIlE10bitwise_orEPKNS_13TensorAdapterIlEEPS3_[_ZNK6common12PaddleTensorIlE10bitwise_orEPKNS_13TensorAdapterIlEEPS3_]+0x259): more undefined references to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const' follow
/usr/bin/ld: libmpc_protocol.a(mesh_network.cc.o): in function `paddle::mpc::MeshNetwork::init()':
mesh_network.cc:(.text+0x13b): undefined reference to `gloo::rendezvous::PrefixStore::PrefixStore(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, gloo::rendezvous::Store&)'
/usr/bin/ld: libmpc_protocol.a(mesh_network.cc.o): in function `paddle::mpc::MeshNetwork::send(unsigned long, void const*, unsigned long)':
mesh_network.cc:(.text+0x3b9): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: libmpc_protocol.a(mesh_network.cc.o): in function `paddle::mpc::MeshNetwork::recv(unsigned long, void*, unsigned long)':
mesh_network.cc:(.text+0x4e9): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: libmpc_protocol.a(mesh_network.cc.o): in function `paddle::mpc::MeshNetwork::send(unsigned long, void const*, unsigned long) [clone .cold]':
mesh_network.cc:(.text.unlikely+0xa6): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: libmpc_protocol.a(mesh_network.cc.o): in function `paddle::mpc::MeshNetwork::recv(unsigned long, void*, unsigned long) [clone .cold]':
mesh_network.cc:(.text.unlikely+0x286): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: libmpc_protocol.a(elementwise_op.cc.o): in function `paddle::operators::aby3::add(paddle::framework::Tensor const*, paddle::framework::Tensor const*, paddle::framework::Tensor*, int)':
elementwise_op.cc:(.text+0x732): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: libmpc_protocol.a(elementwise_op.cc.o):elementwise_op.cc:(.text+0x127d): more undefined references to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const' follow
/usr/bin/ld: libmpc_protocol.a(elementwise_op.cc.o): in function `paddle::operators::aby3::add(paddle::framework::Tensor const*, paddle::framework::Tensor const*, paddle::framework::Tensor*, int)':
elementwise_op.cc:(.text+0x2150): undefined reference to `paddle::framework::DataTypeToString[abi:cxx11](paddle::framework::proto::VarType_Type)'
/usr/bin/ld: elementwise_op.cc:(.text+0x2165): undefined reference to `paddle::framework::DataTypeToString[abi:cxx11](paddle::framework::proto::VarType_Type)'
/usr/bin/ld: elementwise_op.cc:(.text+0x224c): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: elementwise_op.cc:(.text+0x22d0): undefined reference to `paddle::framework::DataTypeToString[abi:cxx11](paddle::framework::proto::VarType_Type)'
/usr/bin/ld: elementwise_op.cc:(.text+0x22e5): undefined reference to `paddle::framework::DataTypeToString[abi:cxx11](paddle::framework::proto::VarType_Type)'
/usr/bin/ld: elementwise_op.cc:(.text+0x23cc): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: elementwise_op.cc:(.text+0x2400): undefined reference to `paddle::framework::DataTypeToString[abi:cxx11](paddle::framework::proto::VarType_Type)'
/usr/bin/ld: elementwise_op.cc:(.text+0x2415): undefined reference to `paddle::framework::DataTypeToString[abi:cxx11](paddle::framework::proto::VarType_Type)'
/usr/bin/ld: elementwise_op.cc:(.text+0x24fc): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: libmpc_protocol.a(elementwise_op.cc.o): in function `paddle::operators::aby3::add_grad(paddle::framework::Tensor const*, paddle::framework::Tensor const*, paddle::framework::Tensor const*, paddle::framework::Tensor*, paddle::framework::Tensor*, int)':
elementwise_op.cc:(.text+0x2d4a): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: libmpc_protocol.a(elementwise_op.cc.o): in function `paddle::operators::aby3::add(paddle::framework::Tensor const*, paddle::framework::Tensor const*, paddle::framework::Tensor*, int) [clone .cold]':
elementwise_op.cc:(.text.unlikely+0xc8): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: elementwise_op.cc:(.text.unlikely+0x62b): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: elementwise_op.cc:(.text.unlikely+0x781): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: libmpc_protocol.a(elementwise_op.cc.o):elementwise_op.cc:(.text.unlikely+0x910): more undefined references to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const' follow
/usr/bin/ld: libmpc_protocol.a(elementwise_op.cc.o): in function `paddle::operators::aby3::add_grad(paddle::framework::Tensor const*, paddle::framework::Tensor const*, paddle::framework::Tensor const*, paddle::framework::Tensor*, paddle::framework::Tensor*, int) [clone .cold]':
elementwise_op.cc:(.text.unlikely+0x1205): undefined reference to `paddle::framework::DataTypeToString[abi:cxx11](paddle::framework::proto::VarType_Type)'
/usr/bin/ld: elementwise_op.cc:(.text.unlikely+0x1217): undefined reference to `paddle::framework::DataTypeToString[abi:cxx11](paddle::framework::proto::VarType_Type)'
/usr/bin/ld: elementwise_op.cc:(.text.unlikely+0x1299): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: ../../common/libmpc_tensor.a(paddle_tensor.cc.o): in function `unsigned char* paddle::framework::Tensor::data<unsigned char>()':
paddle_tensor.cc:(.text._ZN6paddle9framework6Tensor4dataIhEEPT_v[_ZN6paddle9framework6Tensor4dataIhEEPT_v]+0x76): undefined reference to `paddle::framework::DataTypeToString[abi:cxx11](paddle::framework::proto::VarType_Type)'
/usr/bin/ld: paddle_tensor.cc:(.text._ZN6paddle9framework6Tensor4dataIhEEPT_v[_ZN6paddle9framework6Tensor4dataIhEEPT_v]+0x86): undefined reference to `paddle::framework::DataTypeToString[abi:cxx11](paddle::framework::proto::VarType_Type)'
/usr/bin/ld: paddle_tensor.cc:(.text._ZN6paddle9framework6Tensor4dataIhEEPT_v[_ZN6paddle9framework6Tensor4dataIhEEPT_v]+0xf7): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: ../../common/libmpc_tensor.a(paddle_tensor.cc.o): in function `unsigned char const* paddle::framework::Tensor::data<unsigned char>() const':
paddle_tensor.cc:(.text._ZNK6paddle9framework6Tensor4dataIhEEPKT_v[_ZNK6paddle9framework6Tensor4dataIhEEPKT_v]+0xcf): undefined reference to `paddle::framework::DataTypeToString[abi:cxx11](paddle::framework::proto::VarType_Type)'
/usr/bin/ld: paddle_tensor.cc:(.text._ZNK6paddle9framework6Tensor4dataIhEEPKT_v[_ZNK6paddle9framework6Tensor4dataIhEEPKT_v]+0xe1): undefined reference to `paddle::framework::DataTypeToString[abi:cxx11](paddle::framework::proto::VarType_Type)'
/usr/bin/ld: paddle_tensor.cc:(.text._ZNK6paddle9framework6Tensor4dataIhEEPKT_v[_ZNK6paddle9framework6Tensor4dataIhEEPKT_v]+0x10c): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: ../../common/libmpc_tensor.a(paddle_tensor.cc.o): in function `common::PaddleTensor<unsigned char>::div(common::TensorAdapter<unsigned char> const*, common::TensorAdapter<unsigned char>*) const':
paddle_tensor.cc:(.text._ZNK6common12PaddleTensorIhE3divEPKNS_13TensorAdapterIhEEPS3_[_ZNK6common12PaddleTensorIhE3divEPKNS_13TensorAdapterIhEEPS3_]+0x255): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: ../../common/libmpc_tensor.a(paddle_tensor.cc.o): in function `common::PaddleTensor<unsigned char>::mul128_with_truncate(common::TensorAdapter<unsigned char> const*, common::TensorAdapter<unsigned char>*, bool, bool) const':
paddle_tensor.cc:(.text._ZNK6common12PaddleTensorIhE20mul128_with_truncateEPKNS_13TensorAdapterIhEEPS3_bb[_ZNK6common12PaddleTensorIhE20mul128_with_truncateEPKNS_13TensorAdapterIhEEPS3_bb]+0x51e): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: ../../common/libmpc_tensor.a(paddle_tensor.cc.o): in function `common::PaddleTensor<unsigned char>::bitwise_xor(common::TensorAdapter<unsigned char> const*, common::TensorAdapter<unsigned char>*) const':
paddle_tensor.cc:(.text._ZNK6common12PaddleTensorIhE11bitwise_xorEPKNS_13TensorAdapterIhEEPS3_[_ZNK6common12PaddleTensorIhE11bitwise_xorEPKNS_13TensorAdapterIhEEPS3_]+0x265): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: ../../common/libmpc_tensor.a(paddle_tensor.cc.o): in function `common::PaddleTensor<unsigned char>::sub128(common::TensorAdapter<unsigned char> const*, common::TensorAdapter<unsigned char>*, bool, bool) const':
paddle_tensor.cc:(.text._ZNK6common12PaddleTensorIhE6sub128EPKNS_13TensorAdapterIhEEPS3_bb[_ZNK6common12PaddleTensorIhE6sub128EPKNS_13TensorAdapterIhEEPS3_bb]+0x472): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: ../../common/libmpc_tensor.a(paddle_tensor.cc.o):paddle_tensor.cc:(.text._ZNK6common12PaddleTensorIhE11bitwise_andEPKNS_13TensorAdapterIhEEPS3_[_ZNK6common12PaddleTensorIhE11bitwise_andEPKNS_13TensorAdapterIhEEPS3_]+0x265): more undefined references to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const' follow
collect2: error: ld returned 1 exit status
make[2]: *** [core/paddlefl_mpc/mpc_protocol/CMakeFiles/mpc_instance_test.dir/build.make:96: core/paddlefl_mpc/mpc_protocol/mpc_instance_test] Error 1
make[1]: *** [CMakeFiles/Makefile2:1105: core/paddlefl_mpc/mpc_protocol/CMakeFiles/mpc_instance_test.dir/all] Error 2
[ 89%] Linking CXX executable boolean_tensor_test
/usr/bin/ld: CMakeFiles/boolean_tensor_test.dir/boolean_tensor_test.cc.o: in function `paddle::mpc::AbstractContext::set_random_seed(long long __vector(2) const&, unsigned long)':
boolean_tensor_test.cc:(.text._ZN6paddle3mpc15AbstractContext15set_random_seedERKDv2_xm[_ZN6paddle3mpc15AbstractContext15set_random_seedERKDv2_xm]+0x100): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: CMakeFiles/boolean_tensor_test.dir/boolean_tensor_test.cc.o: in function `aby3::FixedPointTensor<long, 32ul>::share(unsigned long) const':
boolean_tensor_test.cc:(.text._ZNK4aby316FixedPointTensorIlLm32EE5shareEm[_ZNK4aby316FixedPointTensorIlLm32EE5shareEm]+0xd1): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: CMakeFiles/boolean_tensor_test.dir/boolean_tensor_test.cc.o: in function `aby3::FixedPointTensor<long, 32ul>::mutable_share(unsigned long)':
boolean_tensor_test.cc:(.text._ZN4aby316FixedPointTensorIlLm32EE13mutable_shareEm[_ZN4aby316FixedPointTensorIlLm32EE13mutable_shareEm]+0xd1): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: ../paddlefl_mpc/mpc_protocol/libmpc_protocol.a(mesh_network.cc.o): in function `paddle::mpc::MeshNetwork::init()':
mesh_network.cc:(.text+0x13b): undefined reference to `gloo::rendezvous::PrefixStore::PrefixStore(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, gloo::rendezvous::Store&)'
/usr/bin/ld: ../paddlefl_mpc/mpc_protocol/libmpc_protocol.a(mesh_network.cc.o): in function `paddle::mpc::MeshNetwork::send(unsigned long, void const*, unsigned long)':
mesh_network.cc:(.text+0x3b9): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: ../paddlefl_mpc/mpc_protocol/libmpc_protocol.a(mesh_network.cc.o): in function `paddle::mpc::MeshNetwork::recv(unsigned long, void*, unsigned long)':
mesh_network.cc:(.text+0x4e9): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: ../paddlefl_mpc/mpc_protocol/libmpc_protocol.a(mesh_network.cc.o): in function `paddle::mpc::MeshNetwork::send(unsigned long, void const*, unsigned long) [clone .cold]':
mesh_network.cc:(.text.unlikely+0xa6): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: ../paddlefl_mpc/mpc_protocol/libmpc_protocol.a(mesh_network.cc.o): in function `paddle::mpc::MeshNetwork::recv(unsigned long, void*, unsigned long) [clone .cold]':
mesh_network.cc:(.text.unlikely+0x286): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: ../common/libmpc_tensor.a(paddle_tensor.cc.o): in function `paddle::platform::EnforceNotMet::EnforceNotMet(paddle::platform::ErrorSummary const&, char const*, int)':
paddle_tensor.cc:(.text._ZN6paddle8platform13EnforceNotMetC2ERKNS0_12ErrorSummaryEPKci[_ZN6paddle8platform13EnforceNotMetC5ERKNS0_12ErrorSummaryEPKci]+0x3d): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: ../common/libmpc_tensor.a(paddle_tensor.cc.o):paddle_tensor.cc:(.text._ZNK6paddle9framework6Tensor5placeEv[_ZNK6paddle9framework6Tensor5placeEv]+0x86): more undefined references to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const' follow
/usr/bin/ld: ../common/libmpc_tensor.a(paddle_tensor.cc.o): in function `unsigned char* paddle::framework::Tensor::data<unsigned char>()':
paddle_tensor.cc:(.text._ZN6paddle9framework6Tensor4dataIhEEPT_v[_ZN6paddle9framework6Tensor4dataIhEEPT_v]+0x76): undefined reference to `paddle::framework::DataTypeToString[abi:cxx11](paddle::framework::proto::VarType_Type)'
/usr/bin/ld: paddle_tensor.cc:(.text._ZN6paddle9framework6Tensor4dataIhEEPT_v[_ZN6paddle9framework6Tensor4dataIhEEPT_v]+0x86): undefined reference to `paddle::framework::DataTypeToString[abi:cxx11](paddle::framework::proto::VarType_Type)'
/usr/bin/ld: paddle_tensor.cc:(.text._ZN6paddle9framework6Tensor4dataIhEEPT_v[_ZN6paddle9framework6Tensor4dataIhEEPT_v]+0xf7): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: ../common/libmpc_tensor.a(paddle_tensor.cc.o): in function `long* paddle::framework::Tensor::data<long>()':
paddle_tensor.cc:(.text._ZN6paddle9framework6Tensor4dataIlEEPT_v[_ZN6paddle9framework6Tensor4dataIlEEPT_v]+0x76): undefined reference to `paddle::framework::DataTypeToString[abi:cxx11](paddle::framework::proto::VarType_Type)'
/usr/bin/ld: paddle_tensor.cc:(.text._ZN6paddle9framework6Tensor4dataIlEEPT_v[_ZN6paddle9framework6Tensor4dataIlEEPT_v]+0x86): undefined reference to `paddle::framework::DataTypeToString[abi:cxx11](paddle::framework::proto::VarType_Type)'
/usr/bin/ld: paddle_tensor.cc:(.text._ZN6paddle9framework6Tensor4dataIlEEPT_v[_ZN6paddle9framework6Tensor4dataIlEEPT_v]+0xf7): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: ../common/libmpc_tensor.a(paddle_tensor.cc.o): in function `unsigned char const* paddle::framework::Tensor::data<unsigned char>() const':
paddle_tensor.cc:(.text._ZNK6paddle9framework6Tensor4dataIhEEPKT_v[_ZNK6paddle9framework6Tensor4dataIhEEPKT_v]+0xcf): undefined reference to `paddle::framework::DataTypeToString[abi:cxx11](paddle::framework::proto::VarType_Type)'
/usr/bin/ld: paddle_tensor.cc:(.text._ZNK6paddle9framework6Tensor4dataIhEEPKT_v[_ZNK6paddle9framework6Tensor4dataIhEEPKT_v]+0xe1): undefined reference to `paddle::framework::DataTypeToString[abi:cxx11](paddle::framework::proto::VarType_Type)'
/usr/bin/ld: paddle_tensor.cc:(.text._ZNK6paddle9framework6Tensor4dataIhEEPKT_v[_ZNK6paddle9framework6Tensor4dataIhEEPKT_v]+0x10c): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: ../common/libmpc_tensor.a(paddle_tensor.cc.o): in function `common::PaddleTensor<unsigned char>::div(common::TensorAdapter<unsigned char> const*, common::TensorAdapter<unsigned char>*) const':
paddle_tensor.cc:(.text._ZNK6common12PaddleTensorIhE3divEPKNS_13TensorAdapterIhEEPS3_[_ZNK6common12PaddleTensorIhE3divEPKNS_13TensorAdapterIhEEPS3_]+0x255): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: ../common/libmpc_tensor.a(paddle_tensor.cc.o): in function `common::PaddleTensor<unsigned char>::mul128_with_truncate(common::TensorAdapter<unsigned char> const*, common::TensorAdapter<unsigned char>*, bool, bool) const':
paddle_tensor.cc:(.text._ZNK6common12PaddleTensorIhE20mul128_with_truncateEPKNS_13TensorAdapterIhEEPS3_bb[_ZNK6common12PaddleTensorIhE20mul128_with_truncateEPKNS_13TensorAdapterIhEEPS3_bb]+0x51e): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: ../common/libmpc_tensor.a(paddle_tensor.cc.o): in function `common::PaddleTensor<unsigned char>::bitwise_xor(common::TensorAdapter<unsigned char> const*, common::TensorAdapter<unsigned char>*) const':
paddle_tensor.cc:(.text._ZNK6common12PaddleTensorIhE11bitwise_xorEPKNS_13TensorAdapterIhEEPS3_[_ZNK6common12PaddleTensorIhE11bitwise_xorEPKNS_13TensorAdapterIhEEPS3_]+0x265): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: ../common/libmpc_tensor.a(paddle_tensor.cc.o): in function `common::PaddleTensor<unsigned char>::sub128(common::TensorAdapter<unsigned char> const*, common::TensorAdapter<unsigned char>*, bool, bool) const':
paddle_tensor.cc:(.text._ZNK6common12PaddleTensorIhE6sub128EPKNS_13TensorAdapterIhEEPS3_bb[_ZNK6common12PaddleTensorIhE6sub128EPKNS_13TensorAdapterIhEEPS3_bb]+0x472): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: ../common/libmpc_tensor.a(paddle_tensor.cc.o):paddle_tensor.cc:(.text._ZNK6common12PaddleTensorIhE11bitwise_andEPKNS_13TensorAdapterIhEEPS3_[_ZNK6common12PaddleTensorIhE11bitwise_andEPKNS_13TensorAdapterIhEEPS3_]+0x265): more undefined references to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const' follow
/usr/bin/ld: ../common/libmpc_tensor.a(paddle_tensor.cc.o): in function `long const* paddle::framework::Tensor::data<long>() const':
paddle_tensor.cc:(.text._ZNK6paddle9framework6Tensor4dataIlEEPKT_v[_ZNK6paddle9framework6Tensor4dataIlEEPKT_v]+0xcf): undefined reference to `paddle::framework::DataTypeToString[abi:cxx11](paddle::framework::proto::VarType_Type)'
/usr/bin/ld: paddle_tensor.cc:(.text._ZNK6paddle9framework6Tensor4dataIlEEPKT_v[_ZNK6paddle9framework6Tensor4dataIlEEPKT_v]+0xe1): undefined reference to `paddle::framework::DataTypeToString[abi:cxx11](paddle::framework::proto::VarType_Type)'
/usr/bin/ld: paddle_tensor.cc:(.text._ZNK6paddle9framework6Tensor4dataIlEEPKT_v[_ZNK6paddle9framework6Tensor4dataIlEEPKT_v]+0x10c): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: ../common/libmpc_tensor.a(paddle_tensor.cc.o): in function `common::PaddleTensor<long>::bitwise_or(common::TensorAdapter<long> const*, common::TensorAdapter<long>*) const':
paddle_tensor.cc:(.text._ZNK6common12PaddleTensorIlE10bitwise_orEPKNS_13TensorAdapterIlEEPS3_[_ZNK6common12PaddleTensorIlE10bitwise_orEPKNS_13TensorAdapterIlEEPS3_]+0x259): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: ../common/libmpc_tensor.a(paddle_tensor.cc.o): in function `common::PaddleTensor<long>::bitwise_xor(common::TensorAdapter<long> const*, common::TensorAdapter<long>*) const':
paddle_tensor.cc:(.text._ZNK6common12PaddleTensorIlE11bitwise_xorEPKNS_13TensorAdapterIlEEPS3_[_ZNK6common12PaddleTensorIlE11bitwise_xorEPKNS_13TensorAdapterIlEEPS3_]+0x259): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: ../common/libmpc_tensor.a(paddle_tensor.cc.o): in function `common::PaddleTensor<long>::bitwise_and(common::TensorAdapter<long> const*, common::TensorAdapter<long>*) const':
paddle_tensor.cc:(.text._ZNK6common12PaddleTensorIlE11bitwise_andEPKNS_13TensorAdapterIlEEPS3_[_ZNK6common12PaddleTensorIlE11bitwise_andEPKNS_13TensorAdapterIlEEPS3_]+0x259): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: ../common/libmpc_tensor.a(paddle_tensor.cc.o): in function `common::PaddleTensor<long>::div(common::TensorAdapter<long> const*, common::TensorAdapter<long>*) const':
paddle_tensor.cc:(.text._ZNK6common12PaddleTensorIlE3divEPKNS_13TensorAdapterIlEEPS3_[_ZNK6common12PaddleTensorIlE3divEPKNS_13TensorAdapterIlEEPS3_]+0x275): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: ../common/libmpc_tensor.a(paddle_tensor.cc.o):paddle_tensor.cc:(.text._ZNK6common12PaddleTensorIlE6add128EPKNS_13TensorAdapterIlEEPS3_bb[_ZNK6common12PaddleTensorIlE6add128EPKNS_13TensorAdapterIlEEPS3_bb]+0x4d5): more undefined references to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const' follow
collect2: error: ld returned 1 exit status
make[2]: *** [core/privc3/CMakeFiles/boolean_tensor_test.dir/build.make:95: core/privc3/boolean_tensor_test] Error 1
make[1]: *** [CMakeFiles/Makefile2:875: core/privc3/CMakeFiles/boolean_tensor_test.dir/all] Error 2
/usr/bin/ld: CMakeFiles/fixedpoint_tensor_test.dir/fixedpoint_tensor_test.cc.o: in function `long* paddle::framework::Tensor::data<long>()':
fixedpoint_tensor_test.cc:(.text._ZN6paddle9framework6Tensor4dataIlEEPT_v[_ZN6paddle9framework6Tensor4dataIlEEPT_v]+0x76): undefined reference to `paddle::framework::DataTypeToString[abi:cxx11](paddle::framework::proto::VarType_Type)'
/usr/bin/ld: fixedpoint_tensor_test.cc:(.text._ZN6paddle9framework6Tensor4dataIlEEPT_v[_ZN6paddle9framework6Tensor4dataIlEEPT_v]+0x86): undefined reference to `paddle::framework::DataTypeToString[abi:cxx11](paddle::framework::proto::VarType_Type)'
/usr/bin/ld: fixedpoint_tensor_test.cc:(.text._ZN6paddle9framework6Tensor4dataIlEEPT_v[_ZN6paddle9framework6Tensor4dataIlEEPT_v]+0xf7): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: CMakeFiles/fixedpoint_tensor_test.dir/fixedpoint_tensor_test.cc.o: in function `paddle::framework::Tensor::place() const':
fixedpoint_tensor_test.cc:(.text._ZNK6paddle9framework6Tensor5placeEv[_ZNK6paddle9framework6Tensor5placeEv]+0x86): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: CMakeFiles/fixedpoint_tensor_test.dir/fixedpoint_tensor_test.cc.o: in function `paddle::platform::EnforceNotMet::EnforceNotMet(paddle::platform::ErrorSummary const&, char const*, int)':
fixedpoint_tensor_test.cc:(.text._ZN6paddle8platform13EnforceNotMetC2ERKNS0_12ErrorSummaryEPKci[_ZN6paddle8platform13EnforceNotMetC5ERKNS0_12ErrorSummaryEPKci]+0x3d): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: CMakeFiles/fixedpoint_tensor_test.dir/fixedpoint_tensor_test.cc.o: in function `paddle::mpc::AbstractContext::set_random_seed(long long __vector(2) const&, unsigned long)':
fixedpoint_tensor_test.cc:(.text._ZN6paddle3mpc15AbstractContext15set_random_seedERKDv2_xm[_ZN6paddle3mpc15AbstractContext15set_random_seedERKDv2_xm]+0x2bc): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: CMakeFiles/fixedpoint_tensor_test.dir/fixedpoint_tensor_test.cc.o: in function `aby3::FixedPointTensor<long, 16ul>::add(common::TensorAdapter<long> const*, aby3::FixedPointTensor<long, 16ul>*) const':
fixedpoint_tensor_test.cc:(.text._ZNK4aby316FixedPointTensorIlLm16EE3addEPKN6common13TensorAdapterIlEEPS1_[_ZNK4aby316FixedPointTensorIlLm16EE3addEPKN6common13TensorAdapterIlEEPS1_]+0x185): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: CMakeFiles/fixedpoint_tensor_test.dir/fixedpoint_tensor_test.cc.o:fixedpoint_tensor_test.cc:(.text._ZNK4aby316FixedPointTensorIlLm16EE3subEPKN6common13TensorAdapterIlEEPS1_[_ZNK4aby316FixedPointTensorIlLm16EE3subEPKN6common13TensorAdapterIlEEPS1_]+0x185): more undefined references to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const' follow
/usr/bin/ld: CMakeFiles/fixedpoint_tensor_test.dir/fixedpoint_tensor_test.cc.o: in function `long const* paddle::framework::Tensor::data<long>() const':
fixedpoint_tensor_test.cc:(.text._ZNK6paddle9framework6Tensor4dataIlEEPKT_v[_ZNK6paddle9framework6Tensor4dataIlEEPKT_v]+0xcf): undefined reference to `paddle::framework::DataTypeToString[abi:cxx11](paddle::framework::proto::VarType_Type)'
/usr/bin/ld: fixedpoint_tensor_test.cc:(.text._ZNK6paddle9framework6Tensor4dataIlEEPKT_v[_ZNK6paddle9framework6Tensor4dataIlEEPKT_v]+0xe1): undefined reference to `paddle::framework::DataTypeToString[abi:cxx11](paddle::framework::proto::VarType_Type)'
/usr/bin/ld: fixedpoint_tensor_test.cc:(.text._ZNK6paddle9framework6Tensor4dataIlEEPKT_v[_ZNK6paddle9framework6Tensor4dataIlEEPKT_v]+0x16c): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: CMakeFiles/fixedpoint_tensor_test.dir/fixedpoint_tensor_test.cc.o: in function `common::PaddleTensor<long>::mat_mul(common::TensorAdapter<long> const*, common::TensorAdapter<long>*, bool, bool) const::{lambda(paddle::framework::Tensor const&)#2}::operator()(paddle::framework::Tensor const&) const':
fixedpoint_tensor_test.cc:(.text._ZZNK6common12PaddleTensorIlE7mat_mulEPKNS_13TensorAdapterIlEEPS3_bbENKUlRKN6paddle9framework6TensorEE0_clESB_[_ZZNK6common12PaddleTensorIlE7mat_mulEPKNS_13TensorAdapterIlEEPS3_bbENKUlRKN6paddle9framework6TensorEE0_clESB_]+0x170): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: CMakeFiles/fixedpoint_tensor_test.dir/fixedpoint_tensor_test.cc.o: in function `void aby3::FixedPointTensor<long, 16ul>::dot_mul<common::TensorAdapter>(common::TensorAdapter<long> const*, aby3::FixedPointTensor<long, 16ul>*) const':
fixedpoint_tensor_test.cc:(.text._ZNK4aby316FixedPointTensorIlLm16EE7dot_mulIN6common13TensorAdapterEJEEEvPKT_IlJXspT0_EEEPS1_[_ZNK4aby316FixedPointTensorIlLm16EE7dot_mulIN6common13TensorAdapterEJEEEvPKT_IlJXspT0_EEEPS1_]+0x2e6): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: CMakeFiles/fixedpoint_tensor_test.dir/fixedpoint_tensor_test.cc.o: in function `void aby3::FixedPointTensor<long, 16ul>::dot_mul<aby3::FixedPointTensor, 16ul>(aby3::FixedPointTensor<long, 16ul> const*, aby3::FixedPointTensor<long, 16ul>*) const':
fixedpoint_tensor_test.cc:(.text._ZNK4aby316FixedPointTensorIlLm16EE7dot_mulIS0_JLm16EEEEvPKT_IlJXspT0_EEEPS1_[_ZNK4aby316FixedPointTensorIlLm16EE7dot_mulIS0_JLm16EEEEvPKT_IlJXspT0_EEEPS1_]+0x2e6): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: CMakeFiles/fixedpoint_tensor_test.dir/fixedpoint_tensor_test.cc.o: in function `aby3::FixedPointTensor<long, 16ul>::div(common::TensorAdapter<long> const*, aby3::FixedPointTensor<long, 16ul>*) const':
fixedpoint_tensor_test.cc:(.text._ZNK4aby316FixedPointTensorIlLm16EE3divEPKN6common13TensorAdapterIlEEPS1_[_ZNK4aby316FixedPointTensorIlLm16EE3divEPKN6common13TensorAdapterIlEEPS1_]+0x3b0): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: CMakeFiles/fixedpoint_tensor_test.dir/fixedpoint_tensor_test.cc.o:fixedpoint_tensor_test.cc:(.text._ZNK6common12PaddleTensorIlE10bitwise_orEPKNS_13TensorAdapterIlEEPS3_[_ZNK6common12PaddleTensorIlE10bitwise_orEPKNS_13TensorAdapterIlEEPS3_]+0x259): more undefined references to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const' follow
/usr/bin/ld: ../paddlefl_mpc/mpc_protocol/libmpc_protocol.a(mesh_network.cc.o): in function `paddle::mpc::MeshNetwork::init()':
mesh_network.cc:(.text+0x13b): undefined reference to `gloo::rendezvous::PrefixStore::PrefixStore(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, gloo::rendezvous::Store&)'
/usr/bin/ld: ../paddlefl_mpc/mpc_protocol/libmpc_protocol.a(mesh_network.cc.o): in function `paddle::mpc::MeshNetwork::send(unsigned long, void const*, unsigned long)':
mesh_network.cc:(.text+0x3b9): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: ../paddlefl_mpc/mpc_protocol/libmpc_protocol.a(mesh_network.cc.o): in function `paddle::mpc::MeshNetwork::recv(unsigned long, void*, unsigned long)':
mesh_network.cc:(.text+0x4e9): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: ../paddlefl_mpc/mpc_protocol/libmpc_protocol.a(mesh_network.cc.o): in function `paddle::mpc::MeshNetwork::send(unsigned long, void const*, unsigned long) [clone .cold]':
mesh_network.cc:(.text.unlikely+0xa6): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: ../paddlefl_mpc/mpc_protocol/libmpc_protocol.a(mesh_network.cc.o): in function `paddle::mpc::MeshNetwork::recv(unsigned long, void*, unsigned long) [clone .cold]':
mesh_network.cc:(.text.unlikely+0x286): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: ../common/libmpc_tensor.a(paddle_tensor.cc.o): in function `unsigned char* paddle::framework::Tensor::data<unsigned char>()':
paddle_tensor.cc:(.text._ZN6paddle9framework6Tensor4dataIhEEPT_v[_ZN6paddle9framework6Tensor4dataIhEEPT_v]+0x76): undefined reference to `paddle::framework::DataTypeToString[abi:cxx11](paddle::framework::proto::VarType_Type)'
/usr/bin/ld: paddle_tensor.cc:(.text._ZN6paddle9framework6Tensor4dataIhEEPT_v[_ZN6paddle9framework6Tensor4dataIhEEPT_v]+0x86): undefined reference to `paddle::framework::DataTypeToString[abi:cxx11](paddle::framework::proto::VarType_Type)'
/usr/bin/ld: paddle_tensor.cc:(.text._ZN6paddle9framework6Tensor4dataIhEEPT_v[_ZN6paddle9framework6Tensor4dataIhEEPT_v]+0xf7): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: ../common/libmpc_tensor.a(paddle_tensor.cc.o): in function `unsigned char const* paddle::framework::Tensor::data<unsigned char>() const':
paddle_tensor.cc:(.text._ZNK6paddle9framework6Tensor4dataIhEEPKT_v[_ZNK6paddle9framework6Tensor4dataIhEEPKT_v]+0xcf): undefined reference to `paddle::framework::DataTypeToString[abi:cxx11](paddle::framework::proto::VarType_Type)'
/usr/bin/ld: paddle_tensor.cc:(.text._ZNK6paddle9framework6Tensor4dataIhEEPKT_v[_ZNK6paddle9framework6Tensor4dataIhEEPKT_v]+0xe1): undefined reference to `paddle::framework::DataTypeToString[abi:cxx11](paddle::framework::proto::VarType_Type)'
/usr/bin/ld: paddle_tensor.cc:(.text._ZNK6paddle9framework6Tensor4dataIhEEPKT_v[_ZNK6paddle9framework6Tensor4dataIhEEPKT_v]+0x10c): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: ../common/libmpc_tensor.a(paddle_tensor.cc.o): in function `common::PaddleTensor<unsigned char>::div(common::TensorAdapter<unsigned char> const*, common::TensorAdapter<unsigned char>*) const':
paddle_tensor.cc:(.text._ZNK6common12PaddleTensorIhE3divEPKNS_13TensorAdapterIhEEPS3_[_ZNK6common12PaddleTensorIhE3divEPKNS_13TensorAdapterIhEEPS3_]+0x255): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: ../common/libmpc_tensor.a(paddle_tensor.cc.o): in function `common::PaddleTensor<unsigned char>::mul128_with_truncate(common::TensorAdapter<unsigned char> const*, common::TensorAdapter<unsigned char>*, bool, bool) const':
paddle_tensor.cc:(.text._ZNK6common12PaddleTensorIhE20mul128_with_truncateEPKNS_13TensorAdapterIhEEPS3_bb[_ZNK6common12PaddleTensorIhE20mul128_with_truncateEPKNS_13TensorAdapterIhEEPS3_bb]+0x51e): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: ../common/libmpc_tensor.a(paddle_tensor.cc.o): in function `common::PaddleTensor<unsigned char>::bitwise_xor(common::TensorAdapter<unsigned char> const*, common::TensorAdapter<unsigned char>*) const':
paddle_tensor.cc:(.text._ZNK6common12PaddleTensorIhE11bitwise_xorEPKNS_13TensorAdapterIhEEPS3_[_ZNK6common12PaddleTensorIhE11bitwise_xorEPKNS_13TensorAdapterIhEEPS3_]+0x265): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: ../common/libmpc_tensor.a(paddle_tensor.cc.o): in function `common::PaddleTensor<unsigned char>::sub128(common::TensorAdapter<unsigned char> const*, common::TensorAdapter<unsigned char>*, bool, bool) const':
paddle_tensor.cc:(.text._ZNK6common12PaddleTensorIhE6sub128EPKNS_13TensorAdapterIhEEPS3_bb[_ZNK6common12PaddleTensorIhE6sub128EPKNS_13TensorAdapterIhEEPS3_bb]+0x472): undefined reference to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const'
/usr/bin/ld: ../common/libmpc_tensor.a(paddle_tensor.cc.o):paddle_tensor.cc:(.text._ZNK6common12PaddleTensorIhE11bitwise_andEPKNS_13TensorAdapterIhEEPS3_[_ZNK6common12PaddleTensorIhE11bitwise_andEPKNS_13TensorAdapterIhEEPS3_]+0x265): more undefined references to `paddle::platform::ErrorSummary::ToString[abi:cxx11]() const' follow
collect2: error: ld returned 1 exit status
make[2]: *** [core/privc3/CMakeFiles/fixedpoint_tensor_test.dir/build.make:95: core/privc3/fixedpoint_tensor_test] Error 1
make[1]: *** [CMakeFiles/Makefile2:943: core/privc3/CMakeFiles/fixedpoint_tensor_test.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
...

There are many "undefined reference" errors.

kaih70 commented 3 years ago

We are working on building with higher version of gcc. Before that please try building with gcc 4.8.5. Sorry for the inconvenience.

YueWang1996 commented 3 years ago

We are working on building with higher version of gcc. Before that please try building with gcc 4.8.5. Sorry for the inconvenience.

Got it.Thanks for your reply!

I also try pip installation and meet the error as below:

root@7b51df152217:/PaddleFL/python/paddle_fl/mpc/examples/model_encryption/train# python3
Python 3.7.7 (default, Mar 23 2020, 22:36:06)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import paddle_fl
/root/miniconda/lib/python3.7/site-packages/paddle/fluid/framework.py:299: UserWarning: You are using GPU version Paddle, but your CUDA device is not set properly. CPU device will be used by default.
  "You are using GPU version Paddle, but your CUDA device is not set properly. CPU device will be used by default."
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/root/miniconda/lib/python3.7/site-packages/paddle_fl/__init__.py", line 15, in <module>
    from . import mpc
  File "/root/miniconda/lib/python3.7/site-packages/paddle_fl/mpc/__init__.py", line 59, in <module>
    fluid.load_op_library(_paddle_enc_lib)
AttributeError: module 'paddle.fluid' has no attribute 'load_op_library'
>>> exit()
root@7b51df152217:/PaddleFL/python/paddle_fl/mpc/examples/model_encryption/train# python3 -c "import paddle; paddle.fluid.load_op_library()"
/root/miniconda/lib/python3.7/site-packages/paddle/fluid/framework.py:299: UserWarning: You are using GPU version Paddle, but your CUDA device is not set properly. CPU device will be used by default.
  "You are using GPU version Paddle, but your CUDA device is not set properly. CPU device will be used by default."
Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: module 'paddle.fluid' has no attribute 'load_op_library'

Does the pip installation method also require a gcc-4.8.5 version?

jhjiangcs commented 3 years ago

Can you try to double check the version of PaddlePaddle by print(paddle.__version__), and check the output of from paddle.fluid import load_op_library ?

YueWang1996 commented 3 years ago

Can you try to double check the version of PaddlePaddle by print(paddle.__version__), and check the output of from paddle.fluid import load_op_library ?

root@7b51df152217:/# python3
Python 3.7.7 (default, Mar 23 2020, 22:36:06)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import paddle.fluid as fluid
/root/miniconda/lib/python3.7/site-packages/paddle/fluid/framework.py:299: UserWarning: You are using GPU version Paddle, but your CUDA device is not set properly. CPU device will be used by default.
  "You are using GPU version Paddle, but your CUDA device is not set properly. CPU device will be used by default."
>>> fluid.install_check.run_check()
Running Verify Fluid Program ...
Your Paddle Fluid works well on SINGLE GPU or CPU.
WARNING:root:Your Paddle Fluid has some problem with multiple GPU. This may be caused by:
 1. There is only 1 or 0 GPU visible on your Device;
 2. No.1 or No.2 GPU or both of them are occupied now
 3. Wrong installation of NVIDIA-NCCL2, please follow instruction on https://github.com/NVIDIA/nccl-tests
 to test your NCCL, or reinstall it following https://docs.nvidia.com/deeplearning/sdk/nccl-install-guide/index.html

 Original Error is: No places for execution.
Your Paddle Fluid is installed successfully ONLY for SINGLE GPU or CPU!
 Let's start deep Learning with Paddle Fluid now
>>> print(paddle.__version__)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'paddle' is not defined
>>> from paddle.fluid import load_op_library
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'load_op_library' from 'paddle.fluid' (/root/miniconda/lib/python3.7/site-packages/paddle/fluid/__init__.py)

Is that what you want?

jhjiangcs commented 3 years ago

check PaddlePaddle version: import paddle print(paddle.__version__)

jhjiangcs commented 3 years ago

Multiple paddlepaddle with different versions (GPU and CPU) have been installed. You should reinstall paddlepaddle1.8.0.

  1. Uninstall: pip uninstall paddlepaddle, pip uninstall paddlepaddle-gpu
  2. Check: import paddle, output: ImportError: No module named paddle
  3. install: pip install paddlepaddle==1.8.0
YueWang1996 commented 3 years ago

Multiple paddlepaddle with different versions (GPU and CPU) have been installed. You should reinstall paddlepaddle1.8.0.

  1. Uninstall: pip uninstall paddlepaddle, pip uninstall paddlepaddle-gpu
  2. Check: import paddle, output: ImportError: No module named paddle
  3. install: pip install paddlepaddle==1.8.0

Thanks for your reply! I retry it and find an interesting thing: Before I use pip install paddle_fl, I check my paddlepaddle version is 1.8.0. While after executing pip install paddle_fl, my paddlepaddle version is automatically upgraded into 2.1.0. The details of the commands are shown as below:

root@72bac38dbdfb:/# python3
Python 3.7.7 (default, Mar 23 2020, 22:36:06)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import paddle
>>> print(paddle.__version__)
1.8.0
>>> from paddle.fluid import load_op_library
>>> exit()

root@72bac38dbdfb:/# pip install paddle_fl
Collecting paddle_fl
  Downloading paddle_fl-1.1.0-py3-none-any.whl (6.2 MB)
     |████████████████████████████████| 6.2 MB 4.6 MB/s
Requirement already satisfied: paddlepaddle>=1.8.0 in /root/miniconda/lib/python3.7/site-packages (from paddle_fl) (1.8.0)
Requirement already satisfied: six>=1.10.0 in /root/miniconda/lib/python3.7/site-packages (from paddle_fl) (1.15.0)
Requirement already satisfied: numpy in /root/miniconda/lib/python3.7/site-packages (from paddle_fl) (1.20.3)
Collecting unittest2
  Downloading unittest2-1.1.0-py2.py3-none-any.whl (96 kB)
     |████████████████████████████████| 96 kB 9.1 MB/s
Collecting paddlepaddle-gpu>=1.8
  Downloading paddlepaddle_gpu-2.1.0-cp37-cp37m-manylinux1_x86_64.whl (349.2 MB)
     |████████████████████████████████| 349.2 MB 54 kB/s
Requirement already satisfied: protobuf>=3.1.0 in /root/miniconda/lib/python3.7/site-packages (from paddle_fl) (3.17.0)
Requirement already satisfied: opencv-python in /root/miniconda/lib/python3.7/site-packages (from paddlepaddle>=1.8.0->paddle_fl) (4.5.2.52)
Requirement already satisfied: astor in /root/miniconda/lib/python3.7/site-packages (from paddlepaddle>=1.8.0->paddle_fl) (0.8.1)
Requirement already satisfied: requests>=2.20.0 in /root/miniconda/lib/python3.7/site-packages (from paddlepaddle>=1.8.0->paddle_fl) (2.25.1)
Requirement already satisfied: scipy<=1.3.1 in /root/miniconda/lib/python3.7/site-packages (from paddlepaddle>=1.8.0->paddle_fl) (1.3.1)
Requirement already satisfied: decorator in /root/miniconda/lib/python3.7/site-packages (from paddlepaddle>=1.8.0->paddle_fl) (5.0.9)
Requirement already satisfied: pyyaml in /root/miniconda/lib/python3.7/site-packages (from paddlepaddle>=1.8.0->paddle_fl) (5.4.1)
Requirement already satisfied: matplotlib in /root/miniconda/lib/python3.7/site-packages (from paddlepaddle>=1.8.0->paddle_fl) (3.4.2)
Requirement already satisfied: pathlib in /root/miniconda/lib/python3.7/site-packages (from paddlepaddle>=1.8.0->paddle_fl) (1.0.1)
Requirement already satisfied: Pillow in /root/miniconda/lib/python3.7/site-packages (from paddlepaddle>=1.8.0->paddle_fl) (8.2.0)
Requirement already satisfied: gast>=0.3.3 in /root/miniconda/lib/python3.7/site-packages (from paddlepaddle>=1.8.0->paddle_fl) (0.4.0)
Requirement already satisfied: prettytable in /root/miniconda/lib/python3.7/site-packages (from paddlepaddle>=1.8.0->paddle_fl) (2.1.0)
Requirement already satisfied: nltk in /root/miniconda/lib/python3.7/site-packages (from paddlepaddle>=1.8.0->paddle_fl) (3.6.2)
Requirement already satisfied: rarfile in /root/miniconda/lib/python3.7/site-packages (from paddlepaddle>=1.8.0->paddle_fl) (4.0)
Requirement already satisfied: objgraph in /root/miniconda/lib/python3.7/site-packages (from paddlepaddle>=1.8.0->paddle_fl) (3.5.0)
Requirement already satisfied: funcsigs in /root/miniconda/lib/python3.7/site-packages (from paddlepaddle>=1.8.0->paddle_fl) (1.0.2)
Requirement already satisfied: graphviz in /root/miniconda/lib/python3.7/site-packages (from paddlepaddle>=1.8.0->paddle_fl) (0.16)
Collecting decorator
  Downloading decorator-4.4.2-py2.py3-none-any.whl (9.2 kB)
Requirement already satisfied: chardet<5,>=3.0.2 in /root/miniconda/lib/python3.7/site-packages (from requests>=2.20.0->paddlepaddle>=1.8.0->paddle_fl) (4.0.0)
Requirement already satisfied: idna<3,>=2.5 in /root/miniconda/lib/python3.7/site-packages (from requests>=2.20.0->paddlepaddle>=1.8.0->paddle_fl) (2.10)
Requirement already satisfied: certifi>=2017.4.17 in /root/miniconda/lib/python3.7/site-packages (from requests>=2.20.0->paddlepaddle>=1.8.0->paddle_fl) (2020.12.5)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /root/miniconda/lib/python3.7/site-packages (from requests>=2.20.0->paddlepaddle>=1.8.0->paddle_fl) (1.26.4)
Requirement already satisfied: pyparsing>=2.2.1 in /root/miniconda/lib/python3.7/site-packages (from matplotlib->paddlepaddle>=1.8.0->paddle_fl) (2.4.7)
Requirement already satisfied: kiwisolver>=1.0.1 in /root/miniconda/lib/python3.7/site-packages (from matplotlib->paddlepaddle>=1.8.0->paddle_fl) (1.3.1)
Requirement already satisfied: cycler>=0.10 in /root/miniconda/lib/python3.7/site-packages (from matplotlib->paddlepaddle>=1.8.0->paddle_fl) (0.10.0)
Requirement already satisfied: python-dateutil>=2.7 in /root/miniconda/lib/python3.7/site-packages (from matplotlib->paddlepaddle>=1.8.0->paddle_fl) (2.8.1)
Requirement already satisfied: click in /root/miniconda/lib/python3.7/site-packages (from nltk->paddlepaddle>=1.8.0->paddle_fl) (8.0.1)
Requirement already satisfied: tqdm in /root/miniconda/lib/python3.7/site-packages (from nltk->paddlepaddle>=1.8.0->paddle_fl) (4.42.1)
Requirement already satisfied: joblib in /root/miniconda/lib/python3.7/site-packages (from nltk->paddlepaddle>=1.8.0->paddle_fl) (1.0.1)
Requirement already satisfied: regex in /root/miniconda/lib/python3.7/site-packages (from nltk->paddlepaddle>=1.8.0->paddle_fl) (2021.4.4)
Requirement already satisfied: importlib-metadata in /root/miniconda/lib/python3.7/site-packages (from click->nltk->paddlepaddle>=1.8.0->paddle_fl) (4.0.1)
Requirement already satisfied: zipp>=0.5 in /root/miniconda/lib/python3.7/site-packages (from importlib-metadata->click->nltk->paddlepaddle>=1.8.0->paddle_fl) (3.4.1)
Requirement already satisfied: typing-extensions>=3.6.4 in /root/miniconda/lib/python3.7/site-packages (from importlib-metadata->click->nltk->paddlepaddle>=1.8.0->paddle_fl) (3.10.0.0)
Requirement already satisfied: wcwidth in /root/miniconda/lib/python3.7/site-packages (from prettytable->paddlepaddle>=1.8.0->paddle_fl) (0.2.5)
Collecting traceback2
  Downloading traceback2-1.4.0-py2.py3-none-any.whl (16 kB)
Collecting argparse
  Downloading argparse-1.4.0-py2.py3-none-any.whl (23 kB)
Collecting linecache2
  Downloading linecache2-1.0.0-py2.py3-none-any.whl (12 kB)
Installing collected packages: linecache2, traceback2, decorator, argparse, unittest2, paddlepaddle-gpu, paddle-fl
  Attempting uninstall: decorator
    Found existing installation: decorator 5.0.9
    Uninstalling decorator-5.0.9:
      Successfully uninstalled decorator-5.0.9
Successfully installed argparse-1.4.0 decorator-4.4.2 linecache2-1.0.0 paddle-fl-1.1.0 paddlepaddle-gpu-2.1.0 traceback2-1.4.0 unittest2-1.1.0

root@72bac38dbdfb:/# python3
Python 3.7.7 (default, Mar 23 2020, 22:36:06)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import paddle
/root/miniconda/lib/python3.7/site-packages/paddle/fluid/framework.py:299: UserWarning: You are using GPU version Paddle, but your CUDA device is not set properly. CPU device will be used by default.
  "You are using GPU version Paddle, but your CUDA device is not set properly. CPU device will be used by default."
>>> print(paddle.__version__)
2.1.0
>>> from paddle.fluid import load_op_library
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'load_op_library' from 'paddle.fluid' (/root/miniconda/lib/python3.7/site-packages/paddle/fluid/__init__.py)
>>> import paddle_fl
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/root/miniconda/lib/python3.7/site-packages/paddle_fl/__init__.py", line 15, in <module>
    from . import mpc
  File "/root/miniconda/lib/python3.7/site-packages/paddle_fl/mpc/__init__.py", line 59, in <module>
    fluid.load_op_library(_paddle_enc_lib)
AttributeError: module 'paddle.fluid' has no attribute 'load_op_library'
>>> exit()

Then I execute pip uninstall paddle_fl and recheck my paddlepaddle version, it still stays in 2.1.0.

Therefore, I execute pip uninstall paddlepaddle and reinstall paddlepaddle 1.8.0 using pip install paddlepaddle==1.8.0. And I import paddle_fl again

root@1728b45a522c:/# python3
Python 3.7.7 (default, Mar 23 2020, 22:36:06)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import paddle
>>> print(paddle.__version__)
1.8.0
>>> from paddle.fluid import load_op_library
>>> import paddle_fl
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/root/miniconda/lib/python3.7/site-packages/paddle_fl/__init__.py", line 15, in <module>
    from . import mpc
  File "/root/miniconda/lib/python3.7/site-packages/paddle_fl/mpc/__init__.py", line 61, in <module>
    from .data import *
  File "/root/miniconda/lib/python3.7/site-packages/paddle_fl/mpc/data.py", line 22, in <module>
    from .mpc_layer_helper import MpcLayerHelper
  File "/root/miniconda/lib/python3.7/site-packages/paddle_fl/mpc/mpc_layer_helper.py", line 32, in <module>
    from .initializer import XavierInitializer
  File "/root/miniconda/lib/python3.7/site-packages/paddle_fl/mpc/initializer.py", line 19, in <module>
    import mpc_data_utils as mdu
ImportError: Python version mismatch: module was compiled for version 3.6, while the interpreter is running version 3.7.
>>> from paddle.fluid import load_op_library
>>> import paddle_fl
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/root/miniconda/lib/python3.7/site-packages/paddle_fl/__init__.py", line 15, in <module>
    from . import mpc
  File "/root/miniconda/lib/python3.7/site-packages/paddle_fl/mpc/__init__.py", line 59, in <module>
    fluid.load_op_library(_paddle_enc_lib)
  File "/root/miniconda/lib/python3.7/site-packages/paddle/fluid/framework.py", line 5162, in load_op_library
    core.load_op_library(lib_filename)
paddle.fluid.core_avx.EnforceNotMet:

--------------------------------------------
C++ Call Stacks (More useful to developers):
--------------------------------------------
0   std::string paddle::platform::GetTraceBackString<std::string>(std::string&&, char const*, int)
1   paddle::platform::EnforceNotMet::EnforceNotMet(paddle::platform::ErrorSummary const&, char const*, int)
2   paddle::framework::LoadOpLib(std::string const&)

----------------------
Error Message Summary:
----------------------
Error: Op  at (/paddle/paddle/fluid/framework/load_op_lib.h:67)

Any help here please?

jhjiangcs commented 3 years ago

While after executing pip install paddle_fl, my paddlepaddle version is automatically upgraded into 2.1.0. 2.1.0 is the version of paddlepaddle-gpu. After pip install paddle_fl, uninstall paddle: pip uninstall paddlepaddle, pip uninstall paddlepaddle-gpu install paddle1.8.0: pip install paddlepaddle==1.8.0.

YueWang1996 commented 3 years ago

While after executing pip install paddle_fl, my paddlepaddle version is automatically upgraded into 2.1.0. 2.1.0 is the version of paddlepaddle-gpu. After pip install paddle_fl, uninstall paddle: pip uninstall paddlepaddle, pip uninstall paddlepaddle-gpu install paddle1.8.0: pip install paddlepaddle==1.8.0.

Follow your commands:

pip install paddle_fl --> succeed
pip uninstall paddlepaddle --> succeed
pip uninstall paddlepaddle-gpu --> succeed
pip install paddlepaddle==1.8.0 --> output as below:

root@694b6b549efa:/# pip install paddlepaddle==1.8.0
Collecting paddlepaddle==1.8.0
  Downloading paddlepaddle-1.8.0-cp37-cp37m-manylinux1_x86_64.whl (111.2 MB)
     |████████████████████████████████| 111.2 MB 63 kB/s
Requirement already satisfied: nltk in /root/miniconda/lib/python3.7/site-packages (from paddlepaddle==1.8.0) (3.6.2)
Requirement already satisfied: matplotlib in /root/miniconda/lib/python3.7/site-packages (from paddlepaddle==1.8.0) (3.4.2)
Requirement already satisfied: gast>=0.3.3 in /root/miniconda/lib/python3.7/site-packages (from paddlepaddle==1.8.0) (0.4.0)
Requirement already satisfied: numpy>=1.12 in /root/miniconda/lib/python3.7/site-packages (from paddlepaddle==1.8.0) (1.20.3)
Requirement already satisfied: astor in /root/miniconda/lib/python3.7/site-packages (from paddlepaddle==1.8.0) (0.8.1)
Requirement already satisfied: graphviz in /root/miniconda/lib/python3.7/site-packages (from paddlepaddle==1.8.0) (0.16)
Requirement already satisfied: scipy<=1.3.1 in /root/miniconda/lib/python3.7/site-packages (from paddlepaddle==1.8.0) (1.3.1)
Requirement already satisfied: protobuf>=3.1.0 in /root/miniconda/lib/python3.7/site-packages (from paddlepaddle==1.8.0) (3.17.0)
Requirement already satisfied: requests>=2.20.0 in /root/miniconda/lib/python3.7/site-packages (from paddlepaddle==1.8.0) (2.25.1)
Requirement already satisfied: six in /root/miniconda/lib/python3.7/site-packages (from paddlepaddle==1.8.0) (1.15.0)
Requirement already satisfied: Pillow in /root/miniconda/lib/python3.7/site-packages (from paddlepaddle==1.8.0) (8.2.0)
Requirement already satisfied: funcsigs in /root/miniconda/lib/python3.7/site-packages (from paddlepaddle==1.8.0) (1.0.2)
Requirement already satisfied: rarfile in /root/miniconda/lib/python3.7/site-packages (from paddlepaddle==1.8.0) (4.0)
Requirement already satisfied: opencv-python in /root/miniconda/lib/python3.7/site-packages (from paddlepaddle==1.8.0) (4.5.2.52)
Requirement already satisfied: prettytable in /root/miniconda/lib/python3.7/site-packages (from paddlepaddle==1.8.0) (2.1.0)
Requirement already satisfied: pyyaml in /root/miniconda/lib/python3.7/site-packages (from paddlepaddle==1.8.0) (5.4.1)
Requirement already satisfied: objgraph in /root/miniconda/lib/python3.7/site-packages (from paddlepaddle==1.8.0) (3.5.0)
Requirement already satisfied: decorator in /root/miniconda/lib/python3.7/site-packages (from paddlepaddle==1.8.0) (4.4.2)
Requirement already satisfied: pathlib in /root/miniconda/lib/python3.7/site-packages (from paddlepaddle==1.8.0) (1.0.1)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /root/miniconda/lib/python3.7/site-packages (from requests>=2.20.0->paddlepaddle==1.8.0) (1.26.4)
Requirement already satisfied: certifi>=2017.4.17 in /root/miniconda/lib/python3.7/site-packages (from requests>=2.20.0->paddlepaddle==1.8.0) (2020.12.5)
Requirement already satisfied: chardet<5,>=3.0.2 in /root/miniconda/lib/python3.7/site-packages (from requests>=2.20.0->paddlepaddle==1.8.0) (4.0.0)
Requirement already satisfied: idna<3,>=2.5 in /root/miniconda/lib/python3.7/site-packages (from requests>=2.20.0->paddlepaddle==1.8.0) (2.10)
Requirement already satisfied: kiwisolver>=1.0.1 in /root/miniconda/lib/python3.7/site-packages (from matplotlib->paddlepaddle==1.8.0) (1.3.1)
Requirement already satisfied: cycler>=0.10 in /root/miniconda/lib/python3.7/site-packages (from matplotlib->paddlepaddle==1.8.0) (0.10.0)
Requirement already satisfied: python-dateutil>=2.7 in /root/miniconda/lib/python3.7/site-packages (from matplotlib->paddlepaddle==1.8.0) (2.8.1)
Requirement already satisfied: pyparsing>=2.2.1 in /root/miniconda/lib/python3.7/site-packages (from matplotlib->paddlepaddle==1.8.0) (2.4.7)
Requirement already satisfied: joblib in /root/miniconda/lib/python3.7/site-packages (from nltk->paddlepaddle==1.8.0) (1.0.1)
Requirement already satisfied: regex in /root/miniconda/lib/python3.7/site-packages (from nltk->paddlepaddle==1.8.0) (2021.4.4)
Requirement already satisfied: click in /root/miniconda/lib/python3.7/site-packages (from nltk->paddlepaddle==1.8.0) (8.0.1)
Requirement already satisfied: tqdm in /root/miniconda/lib/python3.7/site-packages (from nltk->paddlepaddle==1.8.0) (4.42.1)
Requirement already satisfied: importlib-metadata in /root/miniconda/lib/python3.7/site-packages (from click->nltk->paddlepaddle==1.8.0) (4.0.1)
Requirement already satisfied: zipp>=0.5 in /root/miniconda/lib/python3.7/site-packages (from importlib-metadata->click->nltk->paddlepaddle==1.8.0) (3.4.1)
Requirement already satisfied: typing-extensions>=3.6.4 in /root/miniconda/lib/python3.7/site-packages (from importlib-metadata->click->nltk->paddlepaddle==1.8.0) (3.10.0.0)
Requirement already satisfied: wcwidth in /root/miniconda/lib/python3.7/site-packages (from prettytable->paddlepaddle==1.8.0) (0.2.5)
Installing collected packages: paddlepaddle
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
paddle-fl 1.1.0 requires paddlepaddle-gpu>=1.8, which is not installed.
Successfully installed paddlepaddle-1.8.0

Then I try to import paddle_fl:

root@1a197955a67b:/# python3
Python 3.7.7 (default, Mar 23 2020, 22:36:06)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import paddle
>>> print(paddle.__version__)
1.8.0
>>> import paddle_fl
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/root/miniconda/lib/python3.7/site-packages/paddle_fl/__init__.py", line 15, in <module>
    from . import mpc
  File "/root/miniconda/lib/python3.7/site-packages/paddle_fl/mpc/__init__.py", line 61, in <module>
    from .data import *
  File "/root/miniconda/lib/python3.7/site-packages/paddle_fl/mpc/data.py", line 22, in <module>
    from .mpc_layer_helper import MpcLayerHelper
  File "/root/miniconda/lib/python3.7/site-packages/paddle_fl/mpc/mpc_layer_helper.py", line 32, in <module>
    from .initializer import XavierInitializer
  File "/root/miniconda/lib/python3.7/site-packages/paddle_fl/mpc/initializer.py", line 19, in <module>
    import mpc_data_utils as mdu
ImportError: Python version mismatch: module was compiled for version 3.6, while the interpreter is running version 3.7.

orz

jhjiangcs commented 3 years ago

ImportError: Python version mismatch: module was compiled for version 3.6, while the interpreter is running version 3.7. The paddle_fl-1.1.0 installation package does not support python3.7. You can compile and install PaddleFL in the way of source code compilation.