[swift-dev] Failure when generating Xcode project

Alex Hoppen alex at ateamer.de
Tue Mar 1 14:45:11 CST 2016


When I generate the Xcode project with build support the build script hangs while the first target with name add_custom_target-… is build. The CPU usage eventually drops down to 0% as well and the build script seems to have reached a deadlock. Cancelling the script using Ctrl-C reveals that Python is indeed currently waiting for another process (see the attached command line output). The issue arises both when doing a clean build and limiting the number of parallel build jobs using --build-jobs 1.

Did anybody else encounter this issue or has an idea how to resolve it?

– Alex

Console dump when generating Xcode project with build support using utils/build-script -x — --reconfigure

=== BUILD AGGREGATE TARGET add_custom_command_target-e9921534bbdd1fa0076bd83ddd0b8689-SortedCFDatabase.def OF PROJECT Swift WITH CONFIGURATION Debug ===

Check dependencies

Write auxiliary files
write-file /Users/Alex/Documents/Developer/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/lib/ClangImporter/Swift.build/Debug/add_custom_command_target-e9921534bbdd1fa0076bd83ddd0b8689-SortedCFDatabase.def.build/Script-24E01124975144E9952C17C3.sh
chmod 0755 /Users/Alex/Documents/Developer/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/lib/ClangImporter/Swift.build/Debug/add_custom_command_target-e9921534bbdd1fa0076bd83ddd0b8689-SortedCFDatabase.def.build/Script-24E01124975144E9952C17C3.sh

** BUILD INTERRUPTED **
Traceback (most recent call last):
  File "utils/build-script", line 998, in <module>
    sys.exit(main())
  File "utils/build-script", line 994, in main
    return main_normal()
  File "utils/build-script", line 954, in main_normal
    check_call(build_script_impl_args)
  File "/Users/Alex/Documents/Developer/swift/swift/utils/SwiftBuildSupport.py", line 79, in check_call
    return subprocess.check_call(args)
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 535, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 522, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1384, in wait
    pid, sts = _eintr_retry_call(os.waitpid, self.pid, 0)
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 476, in _eintr_retry_call
    return func(*args)
KeyboardInterrupt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20160301/18febcda/attachment.html>


More information about the swift-dev mailing list