[swift-dev] Build toolchain failure for swift-4.0-branch on Mac OSX 10.12.6
Raj Barik
rkbarik at gmail.com
Tue Aug 29 17:59:45 CDT 2017
OSx version: 10.12.6 (16G29)
Steps to reproduce the error:
1)
git clone https://github.com/apple/swift.git
./swift/utils/update-checkout --clone --scheme swift-4.0-branch
2) Edit build-preset.ini to remove tests and assertions:
[preset: mixin_lightweight_assertions]
#assertions
#no-swift-stdlib-assertions
no-assertions
swift-assertions
....
[preset: buildbot_osx_package]
mixin-preset=
mixin_osx_package_base
mixin_lightweight_assertions
...
3) Execute: ./swift/util/build-toolchain local.swift
Error:
/bin/sh -c $HOME/swift-4.0/build/Ninja+cmark-RelWithDebInfo+llvm-
RelWithDebInfo+swift-RelWithDebInfoAssert+stdlib-RelWithDebInfo/lldb-macosx-
x86_64/lldb.build/CustomSwift-Release/lldb-core.build/Script-
261EECA21337D399001D193C.sh
+ '[' CustomSwift-Release == 'CustomSwift-*' ']'
+ /usr/bin/env python $HOME/swift-4.0/lldb/scripts/Xcode/build-llvm.py
Traceback (most recent call last):
File "$HOME/swift-4.0/lldb/scripts/Xcode/build-llvm.py", line 355, in
<module>
write_archives_txt()
File "$HOME/swift-4.0/lldb/scripts/Xcode/build-llvm.py", line 107, in
write_archives_txt
for archive in archive_list():
File "$HOME/swift-4.0/lldb/scripts/Xcode/build-llvm.py", line 101, in
archive_list
archive_lists = [collect_archives_in_path(path) for path in paths]
File "$HOME/swift-4.0/lldb/scripts/Xcode/build-llvm.py", line 85, in
collect_archives_in_path
files = os.listdir(path)
OSError: [Errno 2] No such file or directory: '$HOME/swift-4.0/build/Ninja+
cmark-RelWithDebInfo+llvm-RelWithDebInfo+swift-RelWithDebInfoAssert+stdlib-
RelWithDebInfo/llvm-macosx-x86_64/src'
Command /bin/sh failed with exit code 1
** BUILD FAILED **
The following build commands failed:
PhaseScriptExecution Build\ llvm\ and\ clang $HOME/swift-4.0/build/Ninja+
cmark-RelWithDebInfo+llvm-RelWithDebInfo+swift-RelWithDebInfoAssert+stdlib-
RelWithDebInfo/lldb-macosx-x86_64/lldb.build/CustomSwift-
Release/lldb-core.build/Script-261EECA21337D399001D193C.sh
(1 failure)
./utils/build-script: fatal error: command terminated with a non-zero exit
status 65, aborting
./utils/build-script: fatal error: command terminated with a non-zero exit
status 1, aborting
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20170829/08297bbb/attachment.html>
More information about the swift-dev
mailing list