{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/3004","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/3004/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/3004/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/3004/events","html_url":"https://github.com/tensorflow/tensorflow/issues/3004","id":161830739,"number":3004,"title":"[iOS] Undefined symbols for architecture armv7 Error","user":{"login":"sitefeng","id":3888042,"avatar_url":"https://avatars.githubusercontent.com/u/3888042?v=3","gravatar_id":"","url":"https://api.github.com/users/sitefeng","html_url":"https://github.com/sitefeng","followers_url":"https://api.github.com/users/sitefeng/followers","following_url":"https://api.github.com/users/sitefeng/following{/other_user}","gists_url":"https://api.github.com/users/sitefeng/gists{/gist_id}","starred_url":"https://api.github.com/users/sitefeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sitefeng/subscriptions","organizations_url":"https://api.github.com/users/sitefeng/orgs","repos_url":"https://api.github.com/users/sitefeng/repos","events_url":"https://api.github.com/users/sitefeng/events{/privacy}","received_events_url":"https://api.github.com/users/sitefeng/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tensorflow/tensorflow/labels/triaged","name":"triaged","color":"c2e0c6"}],"state":"open","locked":false,"assignee":{"login":"petewarden","id":161459,"avatar_url":"https://avatars.githubusercontent.com/u/161459?v=3","gravatar_id":"","url":"https://api.github.com/users/petewarden","html_url":"https://github.com/petewarden","followers_url":"https://api.github.com/users/petewarden/followers","following_url":"https://api.github.com/users/petewarden/following{/other_user}","gists_url":"https://api.github.com/users/petewarden/gists{/gist_id}","starred_url":"https://api.github.com/users/petewarden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petewarden/subscriptions","organizations_url":"https://api.github.com/users/petewarden/orgs","repos_url":"https://api.github.com/users/petewarden/repos","events_url":"https://api.github.com/users/petewarden/events{/privacy}","received_events_url":"https://api.github.com/users/petewarden/received_events","type":"User","site_admin":false},"assignees":[{"login":"petewarden","id":161459,"avatar_url":"https://avatars.githubusercontent.com/u/161459?v=3","gravatar_id":"","url":"https://api.github.com/users/petewarden","html_url":"https://github.com/petewarden","followers_url":"https://api.github.com/users/petewarden/followers","following_url":"https://api.github.com/users/petewarden/following{/other_user}","gists_url":"https://api.github.com/users/petewarden/gists{/gist_id}","starred_url":"https://api.github.com/users/petewarden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petewarden/subscriptions","organizations_url":"https://api.github.com/users/petewarden/orgs","repos_url":"https://api.github.com/users/petewarden/repos","events_url":"https://api.github.com/users/petewarden/events{/privacy}","received_events_url":"https://api.github.com/users/petewarden/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-06-23T03:04:06Z","updated_at":"2016-06-29T04:10:51Z","closed_at":null,"body":"While following the iOS readme installation instructions, the framework didn't compile for iOS. Below are the details.\r\n\r\nOperating System: OS X El Capitan 10.11.5\r\npip package: Mac OS X, CPU only, Python 2.7\r\nTensorFlow version: 0.9.0rc0\r\n\r\n### Steps\r\n1.\r\n```bash\r\nsh tensorflow/contrib/makefile/download_dependencies.sh\r\n```\r\n2.\r\n```bash\r\ncd tensorflow/contrib/makefile/downloads/protobuf/\r\n./autogen.sh\r\n./configure\r\nmake\r\nsudo make install\r\ncd ../../../../..\r\n```\r\n2. `sh tensorflow/contrib/makefile/compile_ios_protobuf.sh`\r\n3. `sh tensorflow/contrib/makefile/compile_ios_tensorflow.sh`\r\n\r\n### Log showing error\r\n```\r\nUndefined symbols for architecture armv7:\r\n  \"tensorflow::shape_inference::UnchangedShape(tensorflow::shape_inference::InferenceContext*)\", referenced from:\r\n      ___cxx_global_var_init.17 in libtensorflow-core-armv7.a(math_ops.o)\r\n      ___cxx_global_var_init.24 in libtensorflow-core-armv7.a(math_ops.o)\r\n      ___cxx_global_var_init.27 in libtensorflow-core-armv7.a(math_ops.o)\r\n      ___cxx_global_var_init.31 in libtensorflow-core-armv7.a(math_ops.o)\r\n      ___cxx_global_var_init.37 in libtensorflow-core-armv7.a(math_ops.o)\r\n      ___cxx_global_var_init.41 in libtensorflow-core-armv7.a(math_ops.o)\r\n      ___cxx_global_var_init.44 in libtensorflow-core-armv7.a(math_ops.o)\r\n      ...\r\nld: symbol(s) not found for architecture armv7\r\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\r\nmake: *** [/Users/Main/Documents/tensorflow/tensorflow/contrib/makefile/gen/bin/benchmark] Error 1\r\narmv7 compilation failed.\r\n```"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/229251625","html_url":"https://github.com/tensorflow/tensorflow/issues/3004#issuecomment-229251625","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/3004","id":229251625,"user":{"login":"sitefeng","id":3888042,"avatar_url":"https://avatars.githubusercontent.com/u/3888042?v=3","gravatar_id":"","url":"https://api.github.com/users/sitefeng","html_url":"https://github.com/sitefeng","followers_url":"https://api.github.com/users/sitefeng/followers","following_url":"https://api.github.com/users/sitefeng/following{/other_user}","gists_url":"https://api.github.com/users/sitefeng/gists{/gist_id}","starred_url":"https://api.github.com/users/sitefeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sitefeng/subscriptions","organizations_url":"https://api.github.com/users/sitefeng/orgs","repos_url":"https://api.github.com/users/sitefeng/repos","events_url":"https://api.github.com/users/sitefeng/events{/privacy}","received_events_url":"https://api.github.com/users/sitefeng/received_events","type":"User","site_admin":false},"created_at":"2016-06-29T04:10:51Z","updated_at":"2016-06-29T04:10:51Z","body":"new error while building the framework: \r\n```bash\r\ngcc --std=c++11 -DIS_SLIM_BUILD  -miphoneos-version-min=9.2 -arch armv7 -D__thread= -Wno-c++11-narrowing -mno-thumb -DTF_LEAN_BINARY -D__ANDROID_TYPES_SLIM__ -DMIN_LOG_LEVEL=0 -fno-exceptions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk -I/usr/local/include -I. -I/Users/Main/Documents/tensorflow/tensorflow/contrib/makefile/downloads/ -I/Users/Main/Documents/tensorflow/tensorflow/contrib/makefile/downloads/eigen-eigen-334b1d428283 -I/Users/Main/Documents/tensorflow/tensorflow/contrib/makefile/gen/proto/ -I/Users/Main/Documents/tensorflow/tensorflow/contrib/makefile/gen/proto_text/ -I/Users/Main/Documents/tensorflow/tensorflow/contrib/makefile/gen/protobuf-host/include -c tensorflow/core/kernels/xent_op.cc -o /Users/Main/Documents/tensorflow/tensorflow/contrib/makefile/gen/obj/tensorflow/core/kernels/xent_op.o\r\nIn file included from tensorflow/core/kernels/xent_op.cc:22:\r\nIn file included from ./tensorflow/core/framework/op_kernel.h:22:\r\nIn file included from ./tensorflow/core/framework/allocator.h:25:\r\nIn file included from ./tensorflow/core/framework/type_traits.h:22:\r\n./tensorflow/core/framework/types.h:31:10: fatal error: 'tensorflow/core/framework/types.pb.h'\r\n      file not found\r\n#include \"tensorflow/core/framework/types.pb.h\"\r\n         ^\r\n1 error generated.\r\nmake: *** [/Users/Main/Documents/tensorflow/tensorflow/contrib/makefile/gen/obj/tensorflow/core/kernels/xent_op.o] Error 1\r\narmv7 compilation failed.\r\n```"}}
{"actor":{"display_login":"sitefeng"}}