{"action":"created","issue":{"url":"https://api.github.com/repos/kivy/kivy-ios/issues/162","labels_url":"https://api.github.com/repos/kivy/kivy-ios/issues/162/labels{/name}","comments_url":"https://api.github.com/repos/kivy/kivy-ios/issues/162/comments","events_url":"https://api.github.com/repos/kivy/kivy-ios/issues/162/events","html_url":"https://github.com/kivy/kivy-ios/issues/162","id":108479235,"number":162,"title":"Fatal error in ./toolchain.py build kivy","user":{"login":"othalan","id":50383,"avatar_url":"https://avatars.githubusercontent.com/u/50383?v=3","gravatar_id":"","url":"https://api.github.com/users/othalan","html_url":"https://github.com/othalan","followers_url":"https://api.github.com/users/othalan/followers","following_url":"https://api.github.com/users/othalan/following{/other_user}","gists_url":"https://api.github.com/users/othalan/gists{/gist_id}","starred_url":"https://api.github.com/users/othalan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/othalan/subscriptions","organizations_url":"https://api.github.com/users/othalan/orgs","repos_url":"https://api.github.com/users/othalan/repos","events_url":"https://api.github.com/users/othalan/events{/privacy}","received_events_url":"https://api.github.com/users/othalan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-09-26T16:37:48Z","updated_at":"2015-10-04T21:54:14Z","closed_at":null,"body":"I am attempting to build kivy-ios and receiving a fatal error building python.\r\n\r\nSystem:  OSX 10.10.5\r\nXcode: 7.0\r\n```\r\nclang -Qunused-arguments -fcolor-diagnostics -lsqlite3 -lffi -L/Users/morrisde/contract/src/kivy-ios/dist/lib  -o python.exe \\\r\n\t\t\tModules/python.o \\\r\n\t\t\tlibpython2.7.a -ldl  -framework CoreFoundation -L/Users/morrisde/contract/src/kivy-ios/dist/hostpython/lib -lz\r\nld: warning: directory not found for option '-L/Users/morrisde/contract/src/kivy-ios/dist/hostpython/lib'\r\nld: in /Users/morrisde/contract/src/kivy-ios/dist/lib/libffi.a(ffi64_x86_64.o), building for OSX, but linking in object file built for iOS, for architecture x86_64\r\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\r\nmake: *** [python.exe] Error 1\r\nTraceback (most recent call last):\r\n  File \"./toolchain.py\", line 1224, in <module>\r\n    ToolchainCL()\r\n  File \"./toolchain.py\", line 1040, in __init__\r\n    getattr(self, args.command)()\r\n  File \"./toolchain.py\", line 1064, in build\r\n    build_recipes(args.recipe, ctx)\r\n  File \"./toolchain.py\", line 933, in build_recipes\r\n    recipe.execute()\r\n  File \"/Users/morrisde/contract/src/kivy-ios/toolchain.py\", line 556, in execute\r\n    self.build_all()\r\n  File \"/Users/morrisde/contract/src/kivy-ios/toolchain.py\", line 56, in _cache_execution\r\n    f(self, *args, **kwargs)\r\n  File \"/Users/morrisde/contract/src/kivy-ios/toolchain.py\", line 643, in build_all\r\n    self.build(arch)\r\n  File \"/Users/morrisde/contract/src/kivy-ios/toolchain.py\", line 56, in _cache_execution\r\n    f(self, *args, **kwargs)\r\n  File \"/Users/morrisde/contract/src/kivy-ios/toolchain.py\", line 630, in build\r\n    self.build_arch(arch)\r\n  File \"/Users/morrisde/contract/src/kivy-ios/toolchain.py\", line 678, in build_arch\r\n    getattr(self, build)()\r\n  File \"/Users/morrisde/contract/src/kivy-ios/recipes/hostpython/__init__.py\", line 68, in build_i386\r\n    _env=build_env)\r\n  File \"/Users/morrisde/contract/src/kivy-ios/toolchain.py\", line 39, in shprint\r\n    for line in command(*args, **kwargs):\r\n  File \"./tools/external/sh.py\", line 565, in next\r\n    self.wait()\r\n  File \"./tools/external/sh.py\", line 500, in wait\r\n    self.handle_command_exit_code(exit_code)\r\n  File \"./tools/external/sh.py\", line 516, in handle_command_exit_code\r\n    raise exc(self.ran, self.process.stdout, self.process.stderr)\r\nsh.ErrorReturnCode_2:\r\n\r\n  RAN: '/usr/bin/make -C /Users/morrisde/contract/src/kivy-ios/build/hostpython/i386/Python-2.7.1 -j4 python.exe Parser/pgen'\r\n\r\n  STDOUT:\r\nMakefile:1393: warning: overriding commands for target `Modules/posixmodule.o'\r\nMakefile:1285: warning: ignoring old commands for target `Modules/posixmodule.o'\r\nMakefile:1394: warning: overriding commands for target `Modules/posixmodule.so'\r\nMakefile:1286: warning: ignoring old commands for target `Modules/posixmodule.so'\r\nMakefile:1395: warning: overriding commands for target `Modules/errnomodule.o'\r\nMakefile:1287: warning: ignoring old commands for target `Modules/errnomodule.o'\r\nMakefile:1396: warning: overriding commands for target `Modules/errnomodule.so'\r\nMakefile:1288: warning: ignoring old commands for target `Modules/errnomodule.so'\r\nMakefile:1397: warning: overriding commands for target `Modules/pwdmodule.o'\r\nMakefile:1289: warning: ignor... (77699 more, please see e.stdout)\r\n\r\n  STDERR:\r\n\r\n```\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/26969942-fatal-error-in-toolchain-py-build-kivy?utm_campaign=plugin&utm_content=tracker%2F9081&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F9081&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/kivy/kivy-ios/issues/comments/145391670","html_url":"https://github.com/kivy/kivy-ios/issues/162#issuecomment-145391670","issue_url":"https://api.github.com/repos/kivy/kivy-ios/issues/162","id":145391670,"user":{"login":"diegopelusa","id":14968461,"avatar_url":"https://avatars.githubusercontent.com/u/14968461?v=3","gravatar_id":"","url":"https://api.github.com/users/diegopelusa","html_url":"https://github.com/diegopelusa","followers_url":"https://api.github.com/users/diegopelusa/followers","following_url":"https://api.github.com/users/diegopelusa/following{/other_user}","gists_url":"https://api.github.com/users/diegopelusa/gists{/gist_id}","starred_url":"https://api.github.com/users/diegopelusa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diegopelusa/subscriptions","organizations_url":"https://api.github.com/users/diegopelusa/orgs","repos_url":"https://api.github.com/users/diegopelusa/repos","events_url":"https://api.github.com/users/diegopelusa/events{/privacy}","received_events_url":"https://api.github.com/users/diegopelusa/received_events","type":"User","site_admin":false},"created_at":"2015-10-04T21:54:14Z","updated_at":"2015-10-04T21:54:14Z","body":"Hi!\r\nI am running in similar problems as shown in this thread.\r\nThe main issue that I am finding is that libraries are tried to be built with objects/libs from another platform. Message like:\r\n\"building for OSX, but linking in object file built for iOS\"\r\nis the one shown in many cases.\r\nThanks! (I can spend 1-2 days helping if someone can advice me a little)"}}