{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/251","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/251/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/251/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/251/events","html_url":"https://github.com/tensorflow/tensorflow/issues/251","id":117293654,"number":251,"title":"Install tensorflow from source ","user":{"login":"auroua","id":2869412,"avatar_url":"https://avatars.githubusercontent.com/u/2869412?v=3","gravatar_id":"","url":"https://api.github.com/users/auroua","html_url":"https://github.com/auroua","followers_url":"https://api.github.com/users/auroua/followers","following_url":"https://api.github.com/users/auroua/following{/other_user}","gists_url":"https://api.github.com/users/auroua/gists{/gist_id}","starred_url":"https://api.github.com/users/auroua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/auroua/subscriptions","organizations_url":"https://api.github.com/users/auroua/orgs","repos_url":"https://api.github.com/users/auroua/repos","events_url":"https://api.github.com/users/auroua/events{/privacy}","received_events_url":"https://api.github.com/users/auroua/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tensorflow/tensorflow/labels/installation/startup","name":"installation/startup","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-11-17T06:38:28Z","updated_at":"2015-11-20T15:37:53Z","closed_at":null,"body":"OS: xUbuntu\r\npython-2.7\r\ngcc 4.8\r\nI have installed python-dev\r\n\r\nwhen I build from source using \r\n```\r\nbazel build --jobs 2 -c opt //tensorflow/tools/pip_package:build_pip_package --verbose_failures\r\n```\r\nI got the following errors:\r\n```\r\naurora@aurora-Z170X-UD5:~/workspace/tensorflow/tensorflow$ bazel build --jobs 2 -c opt //tensorflow/tools/pip_package:build_pip_package --verbose_failures\r\n....\r\nINFO: Found 1 target...\r\nINFO: From Compiling tensorflow/python/client/tf_session_helper.cc:\r\nIn file included from tensorflow/python/client/tf_session_helper.cc:1:0:\r\n./tensorflow/python/client/tf_session_helper.h:6:31: fatal error: numpy/arrayobject.h: No such file or directory\r\n #include \"numpy/arrayobject.h\"\r\n                               ^\r\ncompilation terminated.\r\nERROR: /home/aurora/workspace/tensorflow/tensorflow/tensorflow/python/BUILD:698:1: C++ compilation of rule '//tensorflow/python:tf_session_helper' failed: gcc failed: error executing command \r\n  (cd /home/aurora/.cache/bazel/_bazel_aurora/67e9d46b2d6eaad7004805288b920919/tensorflow && \\\r\n  exec env - \\\r\n    INTERCEPT_LOCALLY_EXECUTABLE=1 \\\r\n    PATH=/home/aurora/software/anaconda2/bin:/usr/local/cuda/bin:/home/aurora/software/jdk1.8.0_25/bin:/usr/local/cuda/bin:/home/aurora/software/jdk1.8.0_25/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games \\\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 '-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/gpus/cuda -isystem bazel-out/local_linux-opt/genfiles/third_party/gpus/cuda -isystem third_party/gpus/cuda/include -isystem bazel-out/local_linux-opt/genfiles/third_party/gpus/cuda/include -isystem third_party/eigen3 -isystem bazel-out/local_linux-opt/genfiles/third_party/eigen3 -I/usr/include/python2.7 -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/python/_objs/tf_session_helper/tensorflow/python/client/tf_session_helper.pic.o' -MD -MF bazel-out/local_linux-opt/bin/tensorflow/python/_objs/tf_session_helper/tensorflow/python/client/tf_session_helper.pic.d -fPIC -c tensorflow/python/client/tf_session_helper.cc -o bazel-out/local_linux-opt/bin/tensorflow/python/_objs/tf_session_helper/tensorflow/python/client/tf_session_helper.pic.o): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1: gcc failed: error executing command \r\n  (cd /home/aurora/.cache/bazel/_bazel_aurora/67e9d46b2d6eaad7004805288b920919/tensorflow && \\\r\n  exec env - \\\r\n    INTERCEPT_LOCALLY_EXECUTABLE=1 \\\r\n    PATH=/home/aurora/software/anaconda2/bin:/usr/local/cuda/bin:/home/aurora/software/jdk1.8.0_25/bin:/usr/local/cuda/bin:/home/aurora/software/jdk1.8.0_25/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games \\\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 '-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/gpus/cuda -isystem bazel-out/local_linux-opt/genfiles/third_party/gpus/cuda -isystem third_party/gpus/cuda/include -isystem bazel-out/local_linux-opt/genfiles/third_party/gpus/cuda/include -isystem third_party/eigen3 -isystem bazel-out/local_linux-opt/genfiles/third_party/eigen3 -I/usr/include/python2.7 -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/python/_objs/tf_session_helper/tensorflow/python/client/tf_session_helper.pic.o' -MD -MF bazel-out/local_linux-opt/bin/tensorflow/python/_objs/tf_session_helper/tensorflow/python/client/tf_session_helper.pic.d -fPIC -c tensorflow/python/client/tf_session_helper.cc -o bazel-out/local_linux-opt/bin/tensorflow/python/_objs/tf_session_helper/tensorflow/python/client/tf_session_helper.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\nINFO: Elapsed time: 600.219s, Critical Path: 0.40s\r\n```\r\n\r\nI have installed ananconda and the path of  numpy/arrayobject.h is \r\n```\r\n/software/anaconda2/lib/python2.7/site-packages/numpy/core/include/numpy\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/158435037","html_url":"https://github.com/tensorflow/tensorflow/issues/251#issuecomment-158435037","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/251","id":158435037,"user":{"login":"victorv","id":59046,"avatar_url":"https://avatars.githubusercontent.com/u/59046?v=3","gravatar_id":"","url":"https://api.github.com/users/victorv","html_url":"https://github.com/victorv","followers_url":"https://api.github.com/users/victorv/followers","following_url":"https://api.github.com/users/victorv/following{/other_user}","gists_url":"https://api.github.com/users/victorv/gists{/gist_id}","starred_url":"https://api.github.com/users/victorv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorv/subscriptions","organizations_url":"https://api.github.com/users/victorv/orgs","repos_url":"https://api.github.com/users/victorv/repos","events_url":"https://api.github.com/users/victorv/events{/privacy}","received_events_url":"https://api.github.com/users/victorv/received_events","type":"User","site_admin":false},"created_at":"2015-11-20T15:37:52Z","updated_at":"2015-11-20T15:37:52Z","body":"Are the files different in contents? Even if they are different, it is likely the naming is just not correct on your machine. "}}