PaddlePaddle build fails
Created by: wojtuss
When running PaddlePaddle build on commit 83ddafb5 with cmake options:
cmake -DWITH_DOC=OFF -DWITH_GPU=OFF -DWITH_DISTRIBUTE=OFF -DWITH_MKLDNN=ON -DWITH_GOLANG=OFF -DWITH_SWIG_PY=ON -DWITH_STYLE_CHECK=OFF -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Debug -DWITH_TESTING=ON -DWITH_TIMER=ON -DWITH_PROFILER=ON -DWITH_INFERENCE_API_TEST=ON ..
the make
command fails with:
[ 97%] Linking CXX executable test_analyzer
../api/libpaddle_inference_api.a(api_impl.cc.o): In function `paddle::inference::DescribeZeroCopyTensor(paddle::ZeroCopyTensor const&)':
/home/wojtuss/repos/PaddlePaddle/Paddle/paddle/fluid/inference/api/helper.h:209: undefined reference to `paddle::ZeroCopyTensor::shape() const'
/home/wojtuss/repos/PaddlePaddle/Paddle/paddle/fluid/inference/api/helper.h:211: undefined reference to `paddle::ZeroCopyTensor::lod() const'
/home/wojtuss/repos/PaddlePaddle/Paddle/paddle/fluid/inference/api/helper.h:218: undefined reference to `float* paddle::ZeroCopyTensor::data<float>(paddle::PaddlePlace*, int*) const'
collect2: error: ld returned 1 exit status
paddle/fluid/inference/analysis/CMakeFiles/test_analyzer.dir/build.make:451: recipe for target 'paddle/fluid/inference/analysis/test_analyzer' failed
make[2]: *** [paddle/fluid/inference/analysis/test_analyzer] Error 1
CMakeFiles/Makefile2:47281: recipe for target 'paddle/fluid/inference/analysis/CMakeFiles/test_analyzer.dir/all' failed
make[1]: *** [paddle/fluid/inference/analysis/CMakeFiles/test_analyzer.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2