{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/580","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/580/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/580/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/580/events","html_url":"https://github.com/tensorflow/tensorflow/issues/580","id":123295043,"number":580,"title":"Failed compilation with avx or avx2 on Ubuntu 14.04","user":{"login":"alquraishi","id":5205204,"avatar_url":"https://avatars.githubusercontent.com/u/5205204?v=3","gravatar_id":"","url":"https://api.github.com/users/alquraishi","html_url":"https://github.com/alquraishi","followers_url":"https://api.github.com/users/alquraishi/followers","following_url":"https://api.github.com/users/alquraishi/following{/other_user}","gists_url":"https://api.github.com/users/alquraishi/gists{/gist_id}","starred_url":"https://api.github.com/users/alquraishi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alquraishi/subscriptions","organizations_url":"https://api.github.com/users/alquraishi/orgs","repos_url":"https://api.github.com/users/alquraishi/repos","events_url":"https://api.github.com/users/alquraishi/events{/privacy}","received_events_url":"https://api.github.com/users/alquraishi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"benoitsteiner","id":6969686,"avatar_url":"https://avatars.githubusercontent.com/u/6969686?v=3","gravatar_id":"","url":"https://api.github.com/users/benoitsteiner","html_url":"https://github.com/benoitsteiner","followers_url":"https://api.github.com/users/benoitsteiner/followers","following_url":"https://api.github.com/users/benoitsteiner/following{/other_user}","gists_url":"https://api.github.com/users/benoitsteiner/gists{/gist_id}","starred_url":"https://api.github.com/users/benoitsteiner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benoitsteiner/subscriptions","organizations_url":"https://api.github.com/users/benoitsteiner/orgs","repos_url":"https://api.github.com/users/benoitsteiner/repos","events_url":"https://api.github.com/users/benoitsteiner/events{/privacy}","received_events_url":"https://api.github.com/users/benoitsteiner/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-12-21T15:05:27Z","updated_at":"2016-01-14T15:37:24Z","closed_at":null,"body":"I am unable to compile when passing avx or avx2 to bazel, even though I have an avx2-compatible CPU (Xeon E5-2643 v3). This is the command I'm using to compile:\r\n\r\n    bazel build -c opt --copt=-mavx2 //tensorflow/tools/pip_package:build_pip_package\r\n\r\nAlso I can compile just fine using the default CPU or GPU configurations, i.e. both of these commands work:\r\n\r\n    bazel build -c opt //tensorflow/tools/pip_package:build_pip_package\r\n    bazel build -c opt --config=cuda //tensorflow/tools/pip_package:build_pip_package\r\n\r\nHere is the error message when turning on `verbose_failures`:\r\n\r\n ERROR: /usr/local/tensorflow/tensorflow/core/BUILD:157:1: C++ compilation of rule '//tensorflow/core:framework' failed: gcc failed: error executing command \r\n  (cd /root/.cache/bazel/_bazel_root/e86f6fce5559de9e3e13fb6adb66b858/tensorflow && \\\r\n  exec env - \\\r\n    INTERCEPT_LOCALLY_EXECUTABLE=1 \\\r\n    PATH=/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \\\r\n  /usr/bin/gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -fPIE -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections -mavx2 '-std=c++0x' -iquote . -iquote bazel-out/local_linux-opt/genfiles -isystem google/protobuf/src -isystem bazel-out/local_linux-opt/genfiles/google/protobuf/src -isystem tools/cpp/gcc3 -isystem external/jpeg_archive/jpeg-9a -isystem bazel-out/local_linux-opt/genfiles/external/jpeg_archive/jpeg-9a -isystem external/png_archive/libpng-1.2.53 -isystem bazel-out/local_linux-opt/genfiles/external/png_archive/libpng-1.2.53 -isystem external/re2 -isystem bazel-out/local_linux-opt/genfiles/external/re2 -isystem third_party/eigen3 -isystem bazel-out/local_linux-opt/genfiles/third_party/eigen3 -isystem external/eigen_archive/eigen-eigen-ce5a455b34c0 -isystem bazel-out/local_linux-opt/genfiles/external/eigen_archive/eigen-eigen-ce5a455b34c0 -pthread -fno-exceptions -DEIGEN_AVOID_STL_ARRAY -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE__=\"redacted\"' '-D__TIMESTAMP__=\"redacted\"' '-D__TIME__=\"redacted\"' '-frandom-seed=bazel-out/local_linux-opt/bin/tensorflow/core/_objs/framework/tensorflow/core/framework/kernel_def_builder.pic.o' -MD -MF bazel-out/local_linux-opt/bin/tensorflow/core/_objs/framework/tensorflow/core/framework/kernel_def_builder.pic.d -fPIC -c tensorflow/core/framework/kernel_def_builder.cc -o bazel-out/local_linux-opt/bin/tensorflow/core/_objs/framework/tensorflow/core/framework/kernel_def_builder.pic.o): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1: gcc failed: error executing command \r\n  (cd /root/.cache/bazel/_bazel_root/e86f6fce5559de9e3e13fb6adb66b858/tensorflow && \\\r\n  exec env - \\\r\n    INTERCEPT_LOCALLY_EXECUTABLE=1 \\\r\n    PATH=/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \\\r\n  /usr/bin/gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -fPIE -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections -mavx2 '-std=c++0x' -iquote . -iquote bazel-out/local_linux-opt/genfiles -isystem google/protobuf/src -isystem bazel-out/local_linux-opt/genfiles/google/protobuf/src -isystem tools/cpp/gcc3 -isystem external/jpeg_archive/jpeg-9a -isystem bazel-out/local_linux-opt/genfiles/external/jpeg_archive/jpeg-9a -isystem external/png_archive/libpng-1.2.53 -isystem bazel-out/local_linux-opt/genfiles/external/png_archive/libpng-1.2.53 -isystem external/re2 -isystem bazel-out/local_linux-opt/genfiles/external/re2 -isystem third_party/eigen3 -isystem bazel-out/local_linux-opt/genfiles/third_party/eigen3 -isystem external/eigen_archive/eigen-eigen-ce5a455b34c0 -isystem bazel-out/local_linux-opt/genfiles/external/eigen_archive/eigen-eigen-ce5a455b34c0 -pthread -fno-exceptions -DEIGEN_AVOID_STL_ARRAY -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE__=\"redacted\"' '-D__TIMESTAMP__=\"redacted\"' '-D__TIME__=\"redacted\"' '-frandom-seed=bazel-out/local_linux-opt/bin/tensorflow/core/_objs/framework/tensorflow/core/framework/kernel_def_builder.pic.o' -MD -MF bazel-out/local_linux-opt/bin/tensorflow/core/_objs/framework/tensorflow/core/framework/kernel_def_builder.pic.d -fPIC -c tensorflow/core/framework/kernel_def_builder.cc -o bazel-out/local_linux-opt/bin/tensorflow/core/_objs/framework/tensorflow/core/framework/kernel_def_builder.pic.o): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.\r\nTarget //tensorflow/tools/pip_package:build_pip_package failed to build\r\n"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/171676046","html_url":"https://github.com/tensorflow/tensorflow/issues/580#issuecomment-171676046","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/580","id":171676046,"user":{"login":"alquraishi","id":5205204,"avatar_url":"https://avatars.githubusercontent.com/u/5205204?v=3","gravatar_id":"","url":"https://api.github.com/users/alquraishi","html_url":"https://github.com/alquraishi","followers_url":"https://api.github.com/users/alquraishi/followers","following_url":"https://api.github.com/users/alquraishi/following{/other_user}","gists_url":"https://api.github.com/users/alquraishi/gists{/gist_id}","starred_url":"https://api.github.com/users/alquraishi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alquraishi/subscriptions","organizations_url":"https://api.github.com/users/alquraishi/orgs","repos_url":"https://api.github.com/users/alquraishi/repos","events_url":"https://api.github.com/users/alquraishi/events{/privacy}","received_events_url":"https://api.github.com/users/alquraishi/received_events","type":"User","site_admin":false},"created_at":"2016-01-14T15:37:24Z","updated_at":"2016-01-14T15:37:24Z","body":"Any updates on this?"}}