{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/4399","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/4399/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/4399/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/4399/events","html_url":"https://github.com/tensorflow/tensorflow/issues/4399","id":177259746,"number":4399,"title":"Android build issue: p","user":{"login":"fninsiima","id":5743896,"avatar_url":"https://avatars.githubusercontent.com/u/5743896?v=3","gravatar_id":"","url":"https://api.github.com/users/fninsiima","html_url":"https://github.com/fninsiima","followers_url":"https://api.github.com/users/fninsiima/followers","following_url":"https://api.github.com/users/fninsiima/following{/other_user}","gists_url":"https://api.github.com/users/fninsiima/gists{/gist_id}","starred_url":"https://api.github.com/users/fninsiima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fninsiima/subscriptions","organizations_url":"https://api.github.com/users/fninsiima/orgs","repos_url":"https://api.github.com/users/fninsiima/repos","events_url":"https://api.github.com/users/fninsiima/events{/privacy}","received_events_url":"https://api.github.com/users/fninsiima/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"andrewharp","id":3376817,"avatar_url":"https://avatars.githubusercontent.com/u/3376817?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewharp","html_url":"https://github.com/andrewharp","followers_url":"https://api.github.com/users/andrewharp/followers","following_url":"https://api.github.com/users/andrewharp/following{/other_user}","gists_url":"https://api.github.com/users/andrewharp/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewharp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewharp/subscriptions","organizations_url":"https://api.github.com/users/andrewharp/orgs","repos_url":"https://api.github.com/users/andrewharp/repos","events_url":"https://api.github.com/users/andrewharp/events{/privacy}","received_events_url":"https://api.github.com/users/andrewharp/received_events","type":"User","site_admin":false},"assignees":[{"login":"andrewharp","id":3376817,"avatar_url":"https://avatars.githubusercontent.com/u/3376817?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewharp","html_url":"https://github.com/andrewharp","followers_url":"https://api.github.com/users/andrewharp/followers","following_url":"https://api.github.com/users/andrewharp/following{/other_user}","gists_url":"https://api.github.com/users/andrewharp/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewharp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewharp/subscriptions","organizations_url":"https://api.github.com/users/andrewharp/orgs","repos_url":"https://api.github.com/users/andrewharp/repos","events_url":"https://api.github.com/users/andrewharp/events{/privacy}","received_events_url":"https://api.github.com/users/andrewharp/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2016-09-15T18:57:55Z","updated_at":"2016-09-15T20:51:52Z","closed_at":null,"body":"### What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?\r\nNone relating to permission denied issue\r\n\r\n### Environment info\r\nOperating System: Linux Ubuntu 64-bit \r\n\r\nIf installed from source, provide \r\n\r\n1. The commit hash (`git rev-parse HEAD`)\r\n2. The output of `bazel version`\r\n\r\n### If possible, provide a minimal reproducible example (We usually don't have time to read hundreds of lines of your code)\r\nandroid_sdk_repository(\r\n    name = \"androidsdk\",\r\n    api_level = 23,\r\n    build_tools_version = \"24.0.2\",\r\n    # Replace with path to Android SDK on your system\r\n    path = \"/home/flavia/Documents/android-sdk-linux\",\r\n)\r\n#\r\nandroid_ndk_repository(\r\n    name=\"androidndk\",\r\n    path=\"/home/flavia/Documents/ndk\",\r\n    api_level=21)\r\n\r\n### What other attempted solutions have you tried?\r\nDownloaded NDK version: android-ndk-r12b, unzipped it and renamed it to ndk and pointed to it in workspace\r\nDownloade SDK: 24.4.1, run SDK manager to install build-tools, pointed to the main sdk directory\r\n\r\n### Logs or other output that would be helpful\r\n(If logs are large, please upload as attachment or provide link).\r\nERROR: /home/flavia/.cache/bazel/_bazel_flavia/1fe576225e857ae381761d2049465367/external/protobuf/BUILD:71:1: C++ compilation of rule '@protobuf//:protobuf_lite' failed: arm-linux-androideabi-gcc failed: error executing command \r\n  (cd /home/flavia/.cache/bazel/_bazel_flavia/1fe576225e857ae381761d2049465367/execroot/tensorflow && \\\r\n  exec env - \\\r\n    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games \\\r\n  external/androidndk/ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -fstack-protector-strong -fpic -ffunction-sections -funwind-tables -no-canonical-prefixes -fno-canonical-system-headers '-march=armv7-a' '-mfpu=vfpv3-d16' '-mfloat-abi=softfp' -MD -MF bazel-out/android-arm-linux-androideabi-4.9-v7a-gnu-libstdcpp-fastbuild/bin/external/protobuf/_objs/protobuf_lite/external/protobuf/src/google/protobuf/repeated_field.d '-frandom-seed=bazel-out/android-arm-linux-androideabi-4.9-v7a-gnu-libstdcpp-fastbuild/bin/external/protobuf/_objs/protobuf_lite/external/protobuf/src/google/protobuf/repeated_field.o' -iquote external/protobuf -iquote bazel-out/android-arm-linux-androideabi-4.9-v7a-gnu-libstdcpp-fastbuild/genfiles/external/protobuf -iquote external/bazel_tools -iquote bazel-out/android-arm-linux-androideabi-4.9-v7a-gnu-libstdcpp-fastbuild/genfiles/external/bazel_tools -isystem external/protobuf/src -isystem bazel-out/android-arm-linux-androideabi-4.9-v7a-gnu-libstdcpp-fastbuild/genfiles/external/protobuf/src -isystem external/bazel_tools/tools/cpp/gcc3 -DHAVE_PTHREAD -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare '-Wno-error=unused-function' '--sysroot=external/androidndk/ndk/platforms/android-21/arch-arm' -isystem external/androidndk/ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9/include -isystem external/androidndk/ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9/include-fixed -isystem external/androidndk/ndk/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem external/androidndk/ndk/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -isystem external/androidndk/ndk/sources/cxx-stl/gnu-libstdc++/4.9/include/backward -c external/protobuf/src/google/protobuf/repeated_field.cc -o bazel-out/android-arm-linux-androideabi-4.9-v7a-gnu-libstdcpp-fastbuild/bin/external/protobuf/_objs/protobuf_lite/external/protobuf/src/google/protobuf/repeated_field.o): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.\r\nprocess-wrapper: execvp(\"external/androidndk/ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc\", ...): Permission denied\r\nTarget //tensorflow/examples/android:tensorflow_demo failed to build\r\nINFO: Elapsed time: 1.330s, Critical Path: 0.43s\r\n\r\nBasically, i've failed to decipher the permission denied. I'm no expert at android, but i'm experimenting with tensorflow."},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/247451922","html_url":"https://github.com/tensorflow/tensorflow/issues/4399#issuecomment-247451922","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/4399","id":247451922,"user":{"login":"fninsiima","id":5743896,"avatar_url":"https://avatars.githubusercontent.com/u/5743896?v=3","gravatar_id":"","url":"https://api.github.com/users/fninsiima","html_url":"https://github.com/fninsiima","followers_url":"https://api.github.com/users/fninsiima/followers","following_url":"https://api.github.com/users/fninsiima/following{/other_user}","gists_url":"https://api.github.com/users/fninsiima/gists{/gist_id}","starred_url":"https://api.github.com/users/fninsiima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fninsiima/subscriptions","organizations_url":"https://api.github.com/users/fninsiima/orgs","repos_url":"https://api.github.com/users/fninsiima/repos","events_url":"https://api.github.com/users/fninsiima/events{/privacy}","received_events_url":"https://api.github.com/users/fninsiima/received_events","type":"User","site_admin":false},"created_at":"2016-09-15T20:51:52Z","updated_at":"2016-09-15T20:51:52Z","body":"No, i have yet to try out the quick fix."}}
{"actor":{"display_login":"fninsiima"}}