Built and verified Swift 5.0 master on PowerPC(powerpc64le). I was able to run all the samples given in Swift.org - Getting Started which confirms that 'swiftc'(Swift compiler), REPL environment and LLDB debugger are working correctly. Also package manager seems to work fine. Built a sample package using the ported Swift 5.0 binaries.
I also invoked the build-toolchain to run the tests as well :- utils/build-toolchain srtbundle --test
Following is the current status of the tests which are failing so far:-
4 warning(s) in tests.
Testing Time: 1774.53s
Around 5 tests fail with " FileCheck error: '-' is empty. "
Tried adding " -allow-empty " to the FileCheck command line: build/buildbot_linux/llvm-linux-powerpc64le/bin/FileCheck. Still the tests fails on subsequest steps.
The failing tests are:-
swift/test/Driver/fuzzer.swift
swift/test/IRGen/objc_properties_jit.swift
swift/test/Index/Store/output-failure.swift
swift/test/Interpreter/generic_casts.swift
swift/test/remote-run/upload-stderr.test-sh
Most of the "'-' is empty" failures mean that the compiler crashed or exited before it output anything to FileCheck, so you'll have to look at the tests in a little more detail.
LLDB test failures while building Swift 5.0 toolchain.
Sample test failure:-
Testing: 0 .
FAIL: lldb-Suite :: benchmarks/disassembly/TestXcode41Vs42GDBDisassembly.py (116 of 1566)
******************** TEST 'lldb-Suite :: benchmarks/disassembly/TestXcode41Vs42GDBDisassembly.py' FAILED ********************
lldb version 7.0.0 (GitHub - apple/swift-lldb: This is the version of LLDB that supports the Swift programming language & REPL. revision 450ac50b3d6c87b246f22f6a883b15c02f372e0c)
Swift-5.0 (revision f6eeb3adca4f6ed7e66d4463883540c361e8f2cf)
clang revision ad7fb41b1dc11fb61584125212aec259ebc583db
llvm revision f63b283c7143aef31863d5915c28ee79ed390be3
LLDB library dir: /root/swift-source/build/buildbot_linux/lldb-linux-powerpc64le/bin
LLDB import library dir: /root/swift-source/build/buildbot_linux/lldb-linux-powerpc64le/bin
Traceback (most recent call last):
File "/root/swift-source/lldb/test/dotest.py", line 7, in
lldbsuite.test.run_suite()
File "/root/swift-source/lldb/packages/Python/lldbsuite/test/dotest.py", line 1258, in run_suite
import lldb
File "/root/swift-source/build/buildbot_linux/lldb-linux-powerpc64le/lib/python3.5/site-packages/lldb/ init .py", line 53, in
_lldb = swig_import_helper()
File "/root/swift-source/build/buildbot_linux/lldb-linux-powerpc64le/lib/python3.5/site-packages/lldb/ init .py", line 49, in swig_import_helper
_mod = imp.load_module('_lldb', fp, pathname, description)
ImportError: dynamic module does not define init function (init_lldb)