<h3 dir="auto">System information</h3>
<ul dir="auto">
<li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>: no</li>
<li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Linux Ubuntu 16.04</li>
<li><strong>TensorFlow installed from (source or binary)</strong>: source</li>
<li><strong>TensorFlow version (use command below)</strong>: 'v1.3.0-rc1-5779-g441571a', '1.4.0'</li>
<li><strong>Python version</strong>: 2.7.12</li>
<li><strong>Bazel version (if compiling from source)</strong>: 0.8.1</li>
<li><strong>GCC/Compiler version (if compiling from source)</strong>: GCC 5.4.0</li>
<li><strong>CUDA/cuDNN version</strong>: CUDA 8.0, CUDNN 6.0.21</li>
<li><strong>GPU model and memory</strong>: GeForce GTX 1080, 8GB</li>
<li><strong>Exact command to reproduce</strong>: cd tensorflow/compiler/aot/tests ; bazel clean ; bazel build all_tests &amp;&gt;gcc5.log</li>
</ul>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto">I am trying to compile AOT examples, but the compilation fails. I tried to use two different compiler versions (GCC 5.4 and GCC 4.8), but I get errors with both versions. I also tried adding --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" option when using bazel with GCC 5.4, but it doesn't help.</p>
<p dir="auto">So the exact commands commands were:<br>
bazel build all_tests &amp;&gt;gcc5.log<br>
bazel build --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" all_tests &amp;&gt;gcc5_abi0.log<br>
bazel build all_tests  # Using GCC 4.8, I copied the output manually to gcc_4.8.txt</p>
<p dir="auto">Tensorflow source code itself was build without any problems both with GCC 5.4 and GCC 4.8. I have built the two versions in separate python virtual environments and afterwards tried to compile aot tests with the corresponding GCC version. I used --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" option when building tensorflow source with GCC 5.4.</p>
<h3 dir="auto">Source code / logs</h3>
<p dir="auto">The logs are attached.<br>
<a href="https://github.com/tensorflow/tensorflow/files/1555478/gcc5.log">gcc5.log</a><br>
<a href="https://github.com/tensorflow/tensorflow/files/1555479/gcc5_abi0.log">gcc5_abi0.log</a><br>
<a href="https://github.com/tensorflow/tensorflow/files/1555485/gcc_4.8.txt">gcc_4.8.txt</a></p>
<p dir="auto">For semantic segmentation, it is very import to syncbn. would you tell us how to do it?</p>