Added -D_GLIBCXX_USE_CXX11_ABI=0 to bazel build (#9607)
* Added -D_GLIBCXX_USE_CXX11_ABI=0 to bazel build Fixes issues with missing symbols when compiling with GCC 5.x. See issue tensorflow/tensorflow#1419. * Split lines to keep line length under 80 chars
This commit is contained in:
parent
52ef8d9003
commit
550df41315
@ -92,7 +92,8 @@ WORKDIR /tensorflow
|
||||
ENV CI_BUILD_PYTHON python
|
||||
|
||||
RUN tensorflow/tools/ci_build/builds/configured CPU \
|
||||
bazel build -c opt tensorflow/tools/pip_package:build_pip_package && \
|
||||
bazel build -c opt --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" \
|
||||
tensorflow/tools/pip_package:build_pip_package && \
|
||||
bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/pip && \
|
||||
pip --no-cache-dir install --upgrade /tmp/pip/tensorflow-*.whl && \
|
||||
rm -rf /tmp/pip && \
|
||||
|
@ -92,7 +92,8 @@ ENV TF_NEED_CUDA 1
|
||||
ENV TF_CUDA_COMPUTE_CAPABILITIES=3.0,3.5,5.2,6.0,6.1
|
||||
|
||||
RUN tensorflow/tools/ci_build/builds/configured GPU \
|
||||
bazel build -c opt --config=cuda tensorflow/tools/pip_package:build_pip_package && \
|
||||
bazel build -c opt --config=cuda --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" \
|
||||
tensorflow/tools/pip_package:build_pip_package && \
|
||||
bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/pip && \
|
||||
pip --no-cache-dir install --upgrade /tmp/pip/tensorflow-*.whl && \
|
||||
rm -rf /tmp/pip && \
|
||||
|
Loading…
Reference in New Issue
Block a user