Docker build fails
Created by: helinwang
-
Need Go binary installed into dev image. in PR: https://github.com/PaddlePaddle/Paddle/pull/2236
-
After installing Go inside dev image,
paddle/api/CMakeLists.txt
fails:
docker run -it -v $PWD:/paddle -e "WITH_GPU=OFF" -e "WITH_AVX=OFF" dev
+ '[' OFF == ON ']'
+ BASE_IMAGE=ubuntu:16.04
+ DOCKERFILE_GPU_ENV=
+ DOCKERFILE_CUDNN_DSO=
+ [[ OFF == \O\N ]]
+ mkdir -p /paddle/build
+ cd /paddle/build
+ rm '*.deb'
+ true
+ cat
========================================
Configuring cmake in /paddle/build ...
-DCMAKE_BUILD_TYPE=Release
-DWITH_DOC=OFF
-DWITH_GPU=OFF
-DWITH_AVX=OFF
-DWITH_SWIG_PY=ON
-DCUDNN_ROOT=/usr/
-DWITH_STYLE_CHECK=OFF
-DWITH_TESTING=OFF
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
========================================
+ cmake .. -DCMAKE_BUILD_TYPE=Release -DWITH_DOC=OFF -DWITH_GPU=OFF -DWITH_AVX=OFF -DWITH_SWIG_PY=ON -DCUDNN_ROOT=/usr/ -DWITH_STYLE_CHECK=OFF -DWITH_TESTING=OFF -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
-- Found Paddle host system: ubuntu
-- Found Paddle host system's CPU: 8 cores
-- Found Git: /usr/bin/git (found version "2.7.4")
-- Found Protobuf: /paddle/third_party/install/protobuf/lib/libprotobuf.a (Required is at least version "3.1")
-- Protobuf protoc executable: /paddle/third_party/install/protobuf/bin/protoc
-- Protobuf library: /paddle/third_party/install/protobuf/lib/libprotobuf.a
-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.12", minimum required is "2.7")
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found suitable version "2.7.12", minimum required is "2.7")
-- BLAS library: /paddle/third_party/install/openblas/lib/libopenblas.a
-- Command "/usr/bin/swig2.0 -swiglib" failed with output:
-- Paddle version is 0.10.0
CMake Error at paddle/api/CMakeLists.txt:21 (INCLUDE):
include called with wrong number of arguments. include() only takes one
file.
CMake Error at paddle/api/CMakeLists.txt:55 (SWIG_ADD_MODULE):
Unknown CMake command "SWIG_ADD_MODULE".
-- Configuring incomplete, errors occurred!
See also "/paddle/build/CMakeFiles/CMakeOutput.log".
See also "/paddle/build/CMakeFiles/CMakeError.log".