PaddlePaddle / Paddle

PArallel Distributed Deep LEarning: Machine Learning Framework from Industrial Practice (『飞桨』核心框架,深度学习&机器学习高性能单机、分布式训练和跨平台部署)
http://www.paddlepaddle.org/
Apache License 2.0
22.23k stars 5.58k forks source link

编译错误 #18338

Closed TheodoreG closed 4 years ago

TheodoreG commented 5 years ago
[  5%] Built target extern_threadpool
Scanning dependencies of target enforce
make[2]: *** No rule to make target '../paddle/fluid/platform/enforce.cc', needed by 'paddle/fluid/platform/CMakeFiles/enforce.dir/enforce.cc.o'.  Stop.
CMakeFiles/Makefile2:3407: recipe for target 'paddle/fluid/platform/CMakeFiles/enforce.dir/all' failed
make[1]: *** [paddle/fluid/platform/CMakeFiles/enforce.dir/all] Error 2
Makefile:149: recipe for target 'all' failed

如何解决 环境:paddlepaddle/paddle:latest-gpu-cuda9.0-cudnn7-dev paddle版本:1.4.1 cmake指令:cmake .. -DPY_VERSION=2.7 -DWITH_FLUID_ONLY=ON -DWITH_GPU=ON -DWITH_TESTING=OFF -DCMAKE_BUILD_TYPE=Release

jerrywgz commented 5 years ago

-DWITH_FLUID_ONLY=ON 这个选项关掉试下呢

JiabinYang commented 5 years ago

cmake正常执行了么,能否吧完整的log发一下呢

TheodoreG commented 5 years ago
-- Found Paddle host system: ubuntu, version: 16.04.6
-- Found Paddle host system's CPU: 38 cores
-- CXX compiler: /usr/bin/c++, version: GNU 5.4.0
-- C compiler: /usr/bin/cc, version: GNU 5.4.0
-- AR tools: /usr/bin/ar
-- MKLML_VER: Glibc225_vsErf_mklml_lnx_2019.0.1.20181227, MKLML_URL: http://paddlepaddledeps.bj.bcebos.com/Glibc225_vsErf_mklml_lnx_2019.0.1.20181227.tgz
-- Protobuf protoc executable: /home/work/gaochenhao/code/paddle_versions/Paddle_1.4/build/third_party/install/protobuf/bin/protoc
-- Protobuf-lite library: /home/work/gaochenhao/code/paddle_versions/Paddle_1.4/build/third_party/install/protobuf/lib/libprotobuf-lite.a
-- Protobuf library: /home/work/gaochenhao/code/paddle_versions/Paddle_1.4/build/third_party/install/protobuf/lib/libprotobuf.a
-- Protoc library: /home/work/gaochenhao/code/paddle_versions/Paddle_1.4/build/third_party/install/protobuf/lib/libprotoc.a
-- Protobuf version: 3.1.0
-- Found cblas and lapack in MKLML (include: /home/work/gaochenhao/code/paddle_versions/Paddle_1.4/build/third_party/install/mklml/include, library: /home/work/gaochenhao/code/paddle_versions/Paddle_1.4/build/third_party/install/mklml/lib/libmklml_intel.so)
-- BLAS library: /home/work/gaochenhao/code/paddle_versions/Paddle_1.4/build/third_party/install/mklml/lib/libmklml_intel.so
-- BLAS Include: /home/work/gaochenhao/code/paddle_versions/Paddle_1.4/build/third_party/install/mklml/include
-- Set /home/work/gaochenhao/code/paddle_versions/Paddle_1.4/build/third_party/install/mkldnn/llib to runtime path
-- Build MKLDNN with MKLML /home/work/gaochenhao/code/paddle_versions/Paddle_1.4/build/third_party/install/mklml
-- MKLDNN library: /home/work/gaochenhao/code/paddle_versions/Paddle_1.4/build/third_party/install/mkldnn/lib/libmkldnn.so
-- BOOST_TAR: boost_1_41_0, BOOST_URL: http://paddlepaddledeps.bj.bcebos.com/boost_1_41_0.tar.gz
-- warp-ctc library: /home/work/gaochenhao/code/paddle_versions/Paddle_1.4/build/third_party/install/warpctc/lib/libwarpctc.so
-- Current cuDNN header is /usr/include/cudnn.h. Current cuDNN version is v7. 
-- Enable Intel OpenMP with /home/work/gaochenhao/code/paddle_versions/Paddle_1.4/build/third_party/install/mklml/lib/libiomp5.so
-- CUDA detected: 9.0
-- Added CUDA NVCC flags for: sm_70
-- Current TensorRT header is /usr/include/NvInfer.h. Current TensorRT version is v5. 
-- add dgc lib.
-- Ccache is founded, use ccache to speed up compile.
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:230 (include)

-- Paddle version is 0.0.0
fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
CMake Warning at CMakeLists.txt:252 (message):
  On inference mode, will take place some specific optimization.  Turn on the
  ON_INFER flag when building inference_lib only.

-- add pass graph_to_program_pass base
-- add pass graph_viz_pass base
-- add pass lock_free_optimize_pass base
-- add pass fc_fuse_pass inference
-- add pass attention_lstm_fuse_pass inference
-- add pass infer_clean_graph_pass inference
-- add pass fc_lstm_fuse_pass inference
-- add pass embedding_fc_lstm_fuse_pass inference
-- add pass fc_gru_fuse_pass inference
-- add pass seq_concat_fc_fuse_pass inference
-- add pass multi_batch_merge_pass base
-- add pass conv_bn_fuse_pass inference
-- add pass seqconv_eltadd_relu_fuse_pass inference
-- add pass seqpool_concat_fuse_pass inference
-- add pass repeated_fc_relu_fuse_pass inference
-- add pass squared_mat_sub_fuse_pass inference
-- add pass is_test_pass base
-- add pass conv_elementwise_add_act_fuse_pass inference
-- add pass conv_elementwise_add2_act_fuse_pass inference
-- add pass conv_elementwise_add_fuse_pass inference
-- add pass conv_affine_channel_fuse_pass inference
-- add pass transpose_flatten_concat_fuse_pass inference
-- add pass identity_scale_op_clean_pass base
-- add pass sync_batch_norm_pass base
-- add pass runtime_context_cache_pass base
-- add pass quant_conv2d_dequant_fuse_pass inference
-- add pass fillconstant_elementwisemul_fuse inference
-- add pass shuffle_channel_detect_pass inference
-- add pass mkldnn_placement_pass base
-- add pass depthwise_conv_mkldnn_pass base
-- add pass conv_bias_mkldnn_fuse_pass inference
-- add pass conv_relu_mkldnn_fuse_pass inference
-- add pass conv_elementwise_add_mkldnn_fuse_pass inference
-- add pass cpu_quantize_placement_pass base
-- add pass cpu_quantize_pass inference
-- add pass cpu_quantize_squash_pass inference
fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
-- commit: 
-- branch: 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/work/gaochenhao/code/paddle_versions/Paddle_1.4/build
[  0%] Built target extern_xxhash
[  1%] Built target extern_pybind
[  1%] Built target extern_boost
[  1%] Built target extern_gflags
[  1%] Built target extern_glog
Scanning dependencies of target boost
[  1%] Building C object CMakeFiles/boost.dir/boost_dummy.c.o
[  1%] Linking C static library libboost.a
[  1%] Built target boost
[  1%] Built target extern_zlib
[  1%] Built target extern_protobuf
[  1%] Built target extern_cub
[  1%] Built target extern_mklml
[  1%] Built target extern_mkldnn
Scanning dependencies of target mkldnn
[  1%] Building C object CMakeFiles/mkldnn.dir/mkldnn_dummy.c.o
[  1%] Linking C static library libmkldnn.a
[  1%] Built target mkldnn
[  1%] Built target extern_warpctc
[  1%] Generating third_party/install/mkldnn/libmkldnn.so.0
[  1%] Built target mkldnn_shared_lib
[  2%] Built target extern_xbyak
[  2%] Built target extern_snappy
[  2%] Built target extern_gtest
[  2%] Built target extern_threadpool
make[2]: *** No rule to make target '../paddle/fluid/platform/enforce.cc', needed by 'paddle/fluid/platform/CMakeFiles/enforce.dir/enforce.cc.o'.  Stop.
CMakeFiles/Makefile2:5238: recipe for target 'paddle/fluid/platform/CMakeFiles/enforce.dir/all' failed
make[1]: *** [paddle/fluid/platform/CMakeFiles/enforce.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
JiabinYang commented 5 years ago

cmake没有正常执行,请参考文档:http://paddlepaddle.org/documentation/docs/zh/1.4/beginners_guide/install/compile/compile_Ubuntu.html#permalink-5--docker-

paddle-bot-old[bot] commented 4 years ago

Since you haven\'t replied for more than a year, we have closed this issue/pr. If the problem is not solved or there is a follow-up one, please reopen it at any time and we will continue to follow up. 由于您超过一年未回复,我们将关闭这个issue/pr。 若问题未解决或有后续问题,请随时重新打开,我们会继续跟进。