{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/22954","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/22954/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/22954/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/22954/events","html_url":"https://github.com/tensorflow/tensorflow/issues/22954","id":369715724,"node_id":"MDU6SXNzdWUzNjk3MTU3MjQ=","number":22954,"title":"Error Building from source on Windows / my CPU doesn't have AVX ","user":{"login":"ivopivo","id":19990528,"node_id":"MDQ6VXNlcjE5OTkwNTI4","avatar_url":"https://avatars2.githubusercontent.com/u/19990528?v=4","gravatar_id":"","url":"https://api.github.com/users/ivopivo","html_url":"https://github.com/ivopivo","followers_url":"https://api.github.com/users/ivopivo/followers","following_url":"https://api.github.com/users/ivopivo/following{/other_user}","gists_url":"https://api.github.com/users/ivopivo/gists{/gist_id}","starred_url":"https://api.github.com/users/ivopivo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivopivo/subscriptions","organizations_url":"https://api.github.com/users/ivopivo/orgs","repos_url":"https://api.github.com/users/ivopivo/repos","events_url":"https://api.github.com/users/ivopivo/events{/privacy}","received_events_url":"https://api.github.com/users/ivopivo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"harshini-gadige","id":42781361,"node_id":"MDQ6VXNlcjQyNzgxMzYx","avatar_url":"https://avatars1.githubusercontent.com/u/42781361?v=4","gravatar_id":"","url":"https://api.github.com/users/harshini-gadige","html_url":"https://github.com/harshini-gadige","followers_url":"https://api.github.com/users/harshini-gadige/followers","following_url":"https://api.github.com/users/harshini-gadige/following{/other_user}","gists_url":"https://api.github.com/users/harshini-gadige/gists{/gist_id}","starred_url":"https://api.github.com/users/harshini-gadige/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harshini-gadige/subscriptions","organizations_url":"https://api.github.com/users/harshini-gadige/orgs","repos_url":"https://api.github.com/users/harshini-gadige/repos","events_url":"https://api.github.com/users/harshini-gadige/events{/privacy}","received_events_url":"https://api.github.com/users/harshini-gadige/received_events","type":"User","site_admin":false},"assignees":[{"login":"harshini-gadige","id":42781361,"node_id":"MDQ6VXNlcjQyNzgxMzYx","avatar_url":"https://avatars1.githubusercontent.com/u/42781361?v=4","gravatar_id":"","url":"https://api.github.com/users/harshini-gadige","html_url":"https://github.com/harshini-gadige","followers_url":"https://api.github.com/users/harshini-gadige/followers","following_url":"https://api.github.com/users/harshini-gadige/following{/other_user}","gists_url":"https://api.github.com/users/harshini-gadige/gists{/gist_id}","starred_url":"https://api.github.com/users/harshini-gadige/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harshini-gadige/subscriptions","organizations_url":"https://api.github.com/users/harshini-gadige/orgs","repos_url":"https://api.github.com/users/harshini-gadige/repos","events_url":"https://api.github.com/users/harshini-gadige/events{/privacy}","received_events_url":"https://api.github.com/users/harshini-gadige/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-10-12T21:25:16Z","updated_at":"2018-10-14T10:05:57Z","closed_at":null,"author_association":"NONE","body":"### System information\r\n- **Have I written custom code (as opposed to using a stock example script provided in TensorFlow)**: No\r\n- **OS Platform and Distribution (e.g., Linux Ubuntu 16.04)**:Windows 10\r\n- **Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device**:\r\n- **TensorFlow installed from (source or binary)**:source\r\n- **TensorFlow version (use command below)**:1.11\r\n- **Python version**:3.6.6\r\n- **Bazel version (if compiling from source)**: 0.17.2\r\n- **GCC/Compiler version (if compiling from source)**:\r\n- **CUDA/cuDNN version**:\r\n- **GPU model and memory**:\r\n- **Exact command to reproduce**:  bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package\r\n\r\n### Describe the problem\r\nI can't build from source as it gives me the error\r\nERROR: C:/users/ivo/_bazel_ivo/xv6zejqw/external/protobuf_archive/BUILD:266:1: Executing genrule @protobuf_archive//:generate_js_well_known_types_embed failed (Illegal instruction): bash.exe failed: error executing command\r\nPerhaps because my CPU doesnt have AVX instructions set\r\n\r\non my CPU Supported Instructions sets\tMMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, EM64T\r\nLack of AVX don't allow me to pip install tf>1.5\r\nMy question is how to install from source without AVX instructions set?\r\n\r\n### Source code / logs\r\n\r\nC:\\tensorflow>bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package\r\nStarting local Bazel server and connecting to it...\r\nWARNING: Option 'experimental_shortened_obj_file_path' is deprecated\r\nWARNING: C:/users/ivo/_bazel_ivo/xv6zejqw/external/grpc/BUILD:1992:1: in srcs attribute of cc_library rule @grpc//:grpc_nanopb: please do not import '@grpc//third_party/nanopb:pb_common.c' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'grpc_generate_one_off_targets', the error might have been caused by the macro implementation in C:/users/ivo/_bazel_ivo/xv6zejqw/external/grpc/bazel/grpc_build_system.bzl:172:12\r\nWARNING: C:/users/ivo/_bazel_ivo/xv6zejqw/external/grpc/BUILD:1992:1: in srcs attribute of cc_library rule @grpc//:grpc_nanopb: please do not import '@grpc//third_party/nanopb:pb_decode.c' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'grpc_generate_one_off_targets', the error might have been caused by the macro implementation in C:/users/ivo/_bazel_ivo/xv6zejqw/external/grpc/bazel/grpc_build_system.bzl:172:12\r\nWARNING: C:/users/ivo/_bazel_ivo/xv6zejqw/external/grpc/BUILD:1992:1: in srcs attribute of cc_library rule @grpc//:grpc_nanopb: please do not import '@grpc//third_party/nanopb:pb_encode.c' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'grpc_generate_one_off_targets', the error might have been caused by the macro implementation in C:/users/ivo/_bazel_ivo/xv6zejqw/external/grpc/bazel/grpc_build_system.bzl:172:12\r\nWARNING: C:/tensorflow/tensorflow/python/BUILD:2823:1: in py_library rule //tensorflow/python:standard_ops: target '//tensorflow/python:standard_ops' depends on deprecated target '//tensorflow/python/ops/distributions:distributions': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.distributions will not receive new features, and will be removed by early 2019. You should update all usage of `tf.distributions` to `tfp.distributions`.\r\nWARNING: C:/tensorflow/tensorflow/contrib/metrics/BUILD:16:1: in py_library rule //tensorflow/contrib/metrics:metrics_py: target '//tensorflow/contrib/metrics:metrics_py' depends on deprecated target '//tensorflow/python/ops/distributions:distributions': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.distributions will not receive new features, and will be removed by early 2019. You should update all usage of `tf.distributions` to `tfp.distributions`.\r\nWARNING: C:/tensorflow/tensorflow/python/BUILD:73:1: in py_library rule //tensorflow/python:no_contrib: target '//tensorflow/python:no_contrib' depends on deprecated target '//tensorflow/python/ops/distributions:distributions': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.distributions will not receive new features, and will be removed by early 2019. You should update all usage of `tf.distributions` to `tfp.distributions`.\r\nWARNING: C:/tensorflow/tensorflow/contrib/gan/BUILD:137:1: in py_library rule //tensorflow/contrib/gan:losses_impl: target '//tensorflow/contrib/gan:losses_impl' depends on deprecated target '//tensorflow/python/ops/distributions:distributions': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.distributions will not receive new features, and will be removed by early 2019. You should update all usage of `tf.distributions` to `tfp.distributions`.\r\nWARNING: C:/tensorflow/tensorflow/contrib/gan/BUILD:33:1: in py_library rule //tensorflow/contrib/gan:train: target '//tensorflow/contrib/gan:train' depends on deprecated target '//tensorflow/python/ops/distributions:distributions': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.distributions will not receive new features, and will be removed by early 2019. You should update all usage of `tf.distributions` to `tfp.distributions`.\r\nWARNING: C:/tensorflow/tensorflow/contrib/learn/BUILD:17:1: in py_library rule //tensorflow/contrib/learn:learn: target '//tensorflow/contrib/learn:learn' depends on deprecated target '//tensorflow/contrib/session_bundle:exporter': No longer supported. Switch to SavedModel immediately.\r\nWARNING: C:/tensorflow/tensorflow/contrib/learn/BUILD:17:1: in py_library rule //tensorflow/contrib/learn:learn: target '//tensorflow/contrib/learn:learn' depends on deprecated target '//tensorflow/contrib/session_bundle:gc': No longer supported. Switch to SavedModel immediately.\r\nWARNING: C:/tensorflow/tensorflow/contrib/timeseries/python/timeseries/state_space_models/BUILD:230:1: in py_library rule //tensorflow/contrib/timeseries/python/timeseries/state_space_models:filtering_postprocessor: target '//tensorflow/contrib/timeseries/python/timeseries/state_space_models:filtering_postprocessor' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.\r\nWARNING: C:/tensorflow/tensorflow/contrib/timeseries/python/timeseries/state_space_models/BUILD:73:1: in py_library rule //tensorflow/contrib/timeseries/python/timeseries/state_space_models:kalman_filter: target '//tensorflow/contrib/timeseries/python/timeseries/state_space_models:kalman_filter' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.\r\nWARNING: C:/tensorflow/tensorflow/contrib/timeseries/python/timeseries/BUILD:354:1: in py_library rule //tensorflow/contrib/timeseries/python/timeseries:ar_model: target '//tensorflow/contrib/timeseries/python/timeseries:ar_model' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.\r\nWARNING: C:/tensorflow/tensorflow/contrib/seq2seq/BUILD:23:1: in py_library rule //tensorflow/contrib/seq2seq:seq2seq_py: target '//tensorflow/contrib/seq2seq:seq2seq_py' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.\r\nWARNING: C:/tensorflow/tensorflow/contrib/bayesflow/BUILD:17:1: in py_library rule //tensorflow/contrib/bayesflow:bayesflow_py: target '//tensorflow/contrib/bayesflow:bayesflow_py' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.\r\nWARNING: C:/tensorflow/tensorflow/contrib/seq2seq/BUILD:23:1: in py_library rule //tensorflow/contrib/seq2seq:seq2seq_py: target '//tensorflow/contrib/seq2seq:seq2seq_py' depends on deprecated target '//tensorflow/python/ops/distributions:distributions': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.distributions will not receive new features, and will be removed by early 2019. You should update all usage of `tf.distributions` to `tfp.distributions`.\r\nWARNING: C:/tensorflow/tensorflow/contrib/BUILD:13:1: in py_library rule //tensorflow/contrib:contrib_py: target '//tensorflow/contrib:contrib_py' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.\r\nINFO: Analysed target //tensorflow/tools/pip_package:build_pip_package (303 packages loaded).\r\nINFO: Found 1 target...\r\nINFO: From Compiling external/com_google_absl/absl/base/dynamic_annotations.cc:\r\ncl : Command line warning D9025 : overriding '/w' with '/W3'\r\nERROR: C:/users/ivo/_bazel_ivo/xv6zejqw/external/protobuf_archive/BUILD:266:1: Executing genrule @protobuf_archive//:generate_js_well_known_types_embed failed (Illegal instruction): bash.exe failed: error executing command\r\n  cd C:/users/ivo/_bazel_ivo/xv6zejqw/execroot/org_tensorflow\r\n  SET PATH=C:\\msys64\\usr\\bin;C:\\msys64\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Users\\ivo\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\ivo\\AppData\\Local\\Programs\\Python\\Python36;C:\\Users\\ivo\\AppData\\Local\\Programs\\Python\\Python36\\Scripts;C:\\bazel;C:\\msys64\\usr\\bin\r\n    SET PYTHON_BIN_PATH=C:/Users/ivo/AppData/Local/Programs/Python/Python36/python.exe\r\n    SET PYTHON_LIB_PATH=C:/Users/ivo/AppData/Local/Programs/Python/Python36/lib/site-packages\r\n    SET TF_DOWNLOAD_CLANG=0\r\n    SET TF_NEED_CUDA=0\r\n    SET TF_NEED_OPENCL_SYCL=0\r\n    SET TF_NEED_ROCM=0\r\n  C:/msys64/usr/bin/bash.exe -c source external/bazel_tools/tools/genrule/genrule-setup.sh; bazel-out/x64_windows-opt/bin/external/protobuf_archive/js_embed.exe external/protobuf_archive/src/google/protobuf/compiler/js/well_known_types/any.js external/protobuf_archive/src/google/protobuf/compiler/js/well_known_types/struct.js external/protobuf_archive/src/google/protobuf/compiler/js/well_known_types/timestamp.js > bazel-out/x64_windows-opt/genfiles/external/protobuf_archive/src/google/protobuf/compiler/js/well_known_types_embed.cc: bash.exe failed: error executing command\r\n  cd C:/users/ivo/_bazel_ivo/xv6zejqw/execroot/org_tensorflow\r\n  SET PATH=C:\\msys64\\usr\\bin;C:\\msys64\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Users\\ivo\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\ivo\\AppData\\Local\\Programs\\Python\\Python36;C:\\Users\\ivo\\AppData\\Local\\Programs\\Python\\Python36\\Scripts;C:\\bazel;C:\\msys64\\usr\\bin\r\n    SET PYTHON_BIN_PATH=C:/Users/ivo/AppData/Local/Programs/Python/Python36/python.exe\r\n    SET PYTHON_LIB_PATH=C:/Users/ivo/AppData/Local/Programs/Python/Python36/lib/site-packages\r\n    SET TF_DOWNLOAD_CLANG=0\r\n    SET TF_NEED_CUDA=0\r\n    SET TF_NEED_OPENCL_SYCL=0\r\n    SET TF_NEED_ROCM=0\r\n  C:/msys64/usr/bin/bash.exe -c source external/bazel_tools/tools/genrule/genrule-setup.sh; bazel-out/x64_windows-opt/bin/external/protobuf_archive/js_embed.exe external/protobuf_archive/src/google/protobuf/compiler/js/well_known_types/any.js external/protobuf_archive/src/google/protobuf/compiler/js/well_known_types/struct.js external/protobuf_archive/src/google/protobuf/compiler/js/well_known_types/timestamp.js > bazel-out/x64_windows-opt/genfiles/external/protobuf_archive/src/google/protobuf/compiler/js/well_known_types_embed.cc\r\n/usr/bin/bash: line 1:  7128 Illegal instruction     bazel-out/x64_windows-opt/bin/external/protobuf_archive/js_embed.exe external/protobuf_archive/src/google/protobuf/compiler/js/well_known_types/any.js external/protobuf_archive/src/google/protobuf/compiler/js/well_known_types/struct.js external/protobuf_archive/src/google/protobuf/compiler/js/well_known_types/timestamp.js > bazel-out/x64_windows-opt/genfiles/external/protobuf_archive/src/google/protobuf/compiler/js/well_known_types_embed.cc\r\nTarget //tensorflow/tools/pip_package:build_pip_package failed to build\r\nINFO: Elapsed time: 74.199s, Critical Path: 2.64s\r\nINFO: 42 processes: 42 local.\r\nFAILED: Build did NOT complete successfully"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/429612040","html_url":"https://github.com/tensorflow/tensorflow/issues/22954#issuecomment-429612040","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/22954","id":429612040,"node_id":"MDEyOklzc3VlQ29tbWVudDQyOTYxMjA0MA==","user":{"login":"ivopivo","id":19990528,"node_id":"MDQ6VXNlcjE5OTkwNTI4","avatar_url":"https://avatars2.githubusercontent.com/u/19990528?v=4","gravatar_id":"","url":"https://api.github.com/users/ivopivo","html_url":"https://github.com/ivopivo","followers_url":"https://api.github.com/users/ivopivo/followers","following_url":"https://api.github.com/users/ivopivo/following{/other_user}","gists_url":"https://api.github.com/users/ivopivo/gists{/gist_id}","starred_url":"https://api.github.com/users/ivopivo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivopivo/subscriptions","organizations_url":"https://api.github.com/users/ivopivo/orgs","repos_url":"https://api.github.com/users/ivopivo/repos","events_url":"https://api.github.com/users/ivopivo/events{/privacy}","received_events_url":"https://api.github.com/users/ivopivo/received_events","type":"User","site_admin":false},"created_at":"2018-10-14T10:05:57Z","updated_at":"2018-10-14T10:05:57Z","author_association":"NONE","body":"Thanks for the tip @gunan . It unlocked the build and went further, but broke after some time again\r\n\r\n`C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.15.26726\\include\\xmemory(217): error C2100: illegal indirection\r\nC:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.15.26726\\include\\xmemory(217): error C2062: type 'unknown-type' unexpected\r\nTarget //tensorflow/tools/pip_package:build_pip_package failed to build\r\nINFO: Elapsed time: 15455.294s, Critical Path: 443.06s\r\nINFO: 3314 processes: 3314 local.\r\nFAILED: Build did NOT complete successfully`\r\n\r\nPerhaps I should open different issue for this failure.\r\n"}}
{"actor":{"display_login":"ivopivo"}}