From 6cc58e0f19d0e24196841c70e119b20b8c9c4315 Mon Sep 17 00:00:00 2001 From: George Fedoseev Date: Sat, 16 Jun 2018 10:45:25 +0300 Subject: [PATCH] added --copt=-D_GLIBCXX_USE_CXX11_ABI=0 flag to TF pip package compilation to fix missing _ZN10tensorflow8internal21CheckOpMessageBuilder9NewStringEv symbol error --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3e42f5a8..23097aae 100644 --- a/Dockerfile +++ b/Dockerfile @@ -155,7 +155,7 @@ RUN bazel build --config=monolithic --config=cuda -c opt --copt=-O3 --copt="-D_G # Build TF pip package -RUN bazel build --config=opt --config=cuda --copt=-mtune=generic --copt=-march=x86-64 --copt=-msse --copt=-msse2 --copt=-msse3 --copt=-msse4.1 --copt=-msse4.2 --copt=-mavx //tensorflow/tools/pip_package:build_pip_package --verbose_failures --action_env=LD_LIBRARY_PATH=${LD_LIBRARY_PATH} +RUN bazel build --config=opt --config=cuda --copt="-D_GLIBCXX_USE_CXX11_ABI=0" --copt=-mtune=generic --copt=-march=x86-64 --copt=-msse --copt=-msse2 --copt=-msse3 --copt=-msse4.1 --copt=-msse4.2 --copt=-mavx //tensorflow/tools/pip_package:build_pip_package --verbose_failures --action_env=LD_LIBRARY_PATH=${LD_LIBRARY_PATH} # Fix for not found script https://github.com/tensorflow/tensorflow/issues/471 RUN ./configure @@ -200,4 +200,4 @@ RUN rm -rf kenlm \ # Done -WORKDIR /DeepSpeech +WORKDIR /DeepSpeech \ No newline at end of file