Cannot build Debug build with WITH_GPU=ON due to file truncation
Created by: Sand3r-
System information -PaddlePaddle version 29d9fb53 -CPU: including MKLDNN version 0.17 -GPU: including CUDA 8.0/CUDNN 7 version -OS Platform Ubuntu 16.04 -Python version 2.7.12
- Install method: build from source(without docker)
To Reproduce Run cmake:
cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_GPU=ON -DWITH_MKLDNN=ON -DWITH_TESTING=ON -DWITH_PROFILER=ON -DWITH_STYLE_CHECK=OFF -DWITH_INFERENCE=ON -DWITH_INFERENCE_API_TEST=ON ..
and build with make -j
Describe your current behavior
When GPU build is ran with Debug build type, a linking error occurs:
/usr/bin/ar: /home/mgallus/src/Sander/Paddle/build_gpu_deb/paddle/fluid/inference/libpaddle_fluid.a: File truncated
paddle/fluid/inference/CMakeFiles/paddle_fluid.dir/build.make:4981: recipe for target 'paddle/fluid/inference/libpaddle_fluid.a' failed
make[2]: *** [paddle/fluid/inference/libpaddle_fluid.a] Error 1
make[2]: *** Deleting file 'paddle/fluid/inference/libpaddle_fluid.a'
CMakeFiles/Makefile2:58681: recipe for target 'paddle/fluid/inference/CMakeFiles/paddle_fluid.dir/all' failed
make[1]: *** [paddle/fluid/inference/CMakeFiles/paddle_fluid.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/usr/bin/ar: /home/mgallus/src/Sander/Paddle/build_gpu_deb/paddle/fluid/inference/libpaddle_fluid_origin.a: File truncated
paddle/fluid/inference/CMakeFiles/paddle_fluid_origin.dir/build.make:4909: recipe for target 'paddle/fluid/inference/libpaddle_fluid_origin.a' failed
make[2]: *** [paddle/fluid/inference/libpaddle_fluid_origin.a] Error 1
make[2]: *** Deleting file 'paddle/fluid/inference/libpaddle_fluid_origin.a'
CMakeFiles/Makefile2:59135: recipe for target 'paddle/fluid/inference/CMakeFiles/paddle_fluid_origin.dir/all' failed
make[1]: *** [paddle/fluid/inference/CMakeFiles/paddle_fluid_origin.dir/all] Error 2