iOS toolchain Build Failing on...Downloads?

155 views
Skip to first unread message

Marina Nunamaker

unread,
Nov 18, 2015, 8:45:15 PM11/18/15
to Kivy users support
When I try to build the toolchain project for kivy on ios[This command: ./toolchain.py build kivy] the build fails with:

Error extracting the archive /Users/bearnun/code/kivy-ios-master/.cache/sdl2-iOS-improvements.tar.gz
This is usually caused by a corrupt download. The file will be removed and re-downloaded on the next run.

I'm currently in China, so I don't know if this is Great FireWall related.  I'm also concerned that the "Downloading" and "Error extracting" files are not the same name, is that an issue?
Thanks in advance for your help.

Full output around point of failure:

Libtool build/Release-iphoneos/libffi.a normal arm64
    cd /Users/bearnun/code/kivy-ios-master/build/libffi/arm64/libffi-3.2.1
    export IPHONEOS_DEPLOYMENT_TARGET=7.0
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/System/Library/Java/Java/JavaVirtualMachines/1.6.0.jdfk/Contents/Home:/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only arm64 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk -L/Users/bearnun/code/kivy-ios-master/build/libffi/arm64/libffi-3.2.1/build/Release-iphoneos -filelist /Users/bearnun/code/kivy-ios-master/build/libffi/arm64/libffi-3.2.1/build/libffi.build/Release-iphoneos/libffi-iOS.build/Objects-normal/arm64/ffi.LinkFileList -o /Users/bearnun/code/kivy-ios-master/build/libffi/arm64/libffi-3.2.1/build/Release-iphoneos/libffi.a

** BUILD SUCCEEDED **

Postbuild libffi for arm64
Create lipo library for libffi
Lipo libffi to /Users/bearnun/code/kivy-ios-master/dist/lib/libffi.a
Make_lipo libffi
Install include files for libffi
Install_include libffi
Install frameworks for libffi
Install_frameworks libffi
Install sources for libffi
Install_sources libffi
Install libffi
Install libffi
Download sdl2
Error extracting the archive /Users/bearnun/code/kivy-ios-master/.cache/sdl2-iOS-improvements.tar.gz
This is usually caused by a corrupt download. The file will be removed and re-downloaded on the next run.
Traceback (most recent call last):
  File "./toolchain.py", line 1225, in <module>
    ToolchainCL()
  File "./toolchain.py", line 1041, in __init__
    getattr(self, args.command)()
  File "./toolchain.py", line 1065, in build
    build_recipes(args.recipe, ctx)
  File "./toolchain.py", line 934, in build_recipes
    recipe.execute()
  File "/Users/bearnun/code/kivy-ios-master/toolchain.py", line 555, in execute
    self.download()
  File "/Users/bearnun/code/kivy-ios-master/toolchain.py", line 56, in _cache_execution
    f(self, *args, **kwargs)
  File "/Users/bearnun/code/kivy-ios-master/toolchain.py", line 585, in download
    self.ctx.state[key] = self.get_archive_rootdir(self.archive_fn)
  File "/Users/bearnun/code/kivy-ios-master/toolchain.py", line 421, in get_archive_rootdir
    root = archive.next().path.split("/")
UnboundLocalError: local variable 'archive' referenced before assignment
Message has been deleted

Marina Nunamaker

unread,
Nov 18, 2015, 9:44:07 PM11/18/15
to Kivy users support
Trying to find files manually, but when I go to slime73's bitbucket I can't seem to find iOS-improvements.tar.gz...

ZenCODE

unread,
Nov 19, 2015, 1:37:40 AM11/19/15
to Kivy users support
As you say, if the download fails, you can manually download that zip file and place it in the

    /Users/bearnun/code/kivy-ios-master/.cache

folder. Next time you run 'toolchain.py', it will find the zip and not try to download it. We also had various firewall issues that gave the same errors.

Having said that, are you using the standard kivy-ios tooclchain? That URL sounds suspicious and I do not rememeber it from our build....

Good luck

Marina Nunamaker

unread,
Nov 19, 2015, 3:58:51 AM11/19/15
to Kivy users support
When I try to download the files manually in a browser, the names don't seem to match.

As in the example previously posted:

Error extracting the archive /Users/bearnun/code/kivy-ios-master/.cache/sdl2-iOS-improvements.tar.gz

The above link will give me a file named "slime73-sdl-experiments-618662dc9e82.tar.gz", which is strange as it's not "sdl2-iOS-improvements.tar.gz or iOS-improvements.tar.gz... 0.o

I tried going straight to slim73's Bitbucket repo, where sdl-experiments sits, but I can't find anything called "iOS-improvements.tar.gz" in there, at least at that level in the directories.

And I believe I am using the toolchain from the iOS-build docs page.

Marina Nunamaker

unread,
Nov 19, 2015, 4:00:12 AM11/19/15
to Kivy users support
And thank you! :)

Marina Nunamaker

unread,
Nov 19, 2015, 4:08:12 AM11/19/15
to Kivy users support
Will try re-cloning, just in case...

Marina Nunamaker

unread,
Nov 19, 2015, 4:24:09 AM11/19/15
to Kivy users support
Am unable to clone through the terminal because of my firewall issues, so I'm trying to build off of the zip I downloaded from github

Marina Nunamaker

unread,
Nov 19, 2015, 4:38:46 AM11/19/15
to Kivy users support
Re:  "That URL sounds suspicious"


Re:  Manually placing files in .cache directory

I did try this, but there seem to be name clashes, unfortunately. :/

Looking for: iOS-improvements.tar.gz
Extracting: sdl2-iOS.improvements.tar.gz

...from...

Error extracting the archive /Users/bearnun/code/kivy-ios-master/.cache/sdl2-iOS-improvements.tar.gz
This is usually caused by a corrupt download. The file will be removed and re-downloaded on the next run.

And going straight to slim73's bitbucket did not render much help in finding the iOS-improvements.tar.gz either... :(  

Side note: Or should I be paying more attention to the error message on the last line...? 

UnboundLocalError: local variable 'archive' referenced before assignment

Thanks, again for your help. :)

Marina Nunamaker

unread,
Nov 24, 2015, 11:23:10 PM11/24/15
to Kivy users support
Looks like the build fail was in fact due to firewall issues.  Thanks!! :)

ZenCODE

unread,
Nov 25, 2015, 1:36:54 AM11/25/15
to Kivy users support
:-)

surb...@cisinlabs.com

unread,
Jun 20, 2018, 3:43:46 AM6/20/18
to Kivy users support
put it inside kivy-ios/.cache/ than rename it as "sdl2-iOS-improvements.tar.gz" it will work for sure.
Reply all
Reply to author
Forward
0 new messages