Skip to content

Commit 550df41

Browse files
aleistcaisq
authored andcommitted
Added -D_GLIBCXX_USE_CXX11_ABI=0 to bazel build (tensorflow#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#1419. * Split lines to keep line length under 80 chars
1 parent 52ef8d9 commit 550df41

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tensorflow/tools/docker/Dockerfile.devel

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ WORKDIR /tensorflow
9292
ENV CI_BUILD_PYTHON python
9393

9494
RUN tensorflow/tools/ci_build/builds/configured CPU \
95-
bazel build -c opt tensorflow/tools/pip_package:build_pip_package && \
95+
bazel build -c opt --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" \
96+
tensorflow/tools/pip_package:build_pip_package && \
9697
bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/pip && \
9798
pip --no-cache-dir install --upgrade /tmp/pip/tensorflow-*.whl && \
9899
rm -rf /tmp/pip && \

tensorflow/tools/docker/Dockerfile.devel-gpu

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ ENV TF_NEED_CUDA 1
9292
ENV TF_CUDA_COMPUTE_CAPABILITIES=3.0,3.5,5.2,6.0,6.1
9393

9494
RUN tensorflow/tools/ci_build/builds/configured GPU \
95-
bazel build -c opt --config=cuda tensorflow/tools/pip_package:build_pip_package && \
95+
bazel build -c opt --config=cuda --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" \
96+
tensorflow/tools/pip_package:build_pip_package && \
9697
bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/pip && \
9798
pip --no-cache-dir install --upgrade /tmp/pip/tensorflow-*.whl && \
9899
rm -rf /tmp/pip && \

0 commit comments

Comments
 (0)