Skip to content

Instantly share code, notes, and snippets.

@wongzigii
Last active July 17, 2021 06:08
Show Gist options
  • Save wongzigii/42e82df60130a1f4630af0b400430040 to your computer and use it in GitHub Desktop.
Save wongzigii/42e82df60130a1f4630af0b400430040 to your computer and use it in GitHub Desktop.
➜ swift git:(main) ✗ utils/run-test --lit ../llvm-project/llvm/utils/lit/lit.py \
../build/Ninja-RelWithDebInfoAssert/swift-macosx-$(uname -m)/test-macosx-$(uname -m)
--- Building test dependencies all, SwiftUnitTests, swift-test-stdlib-macosx-x86_64 ---
+ cmake --build /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64 -- -j8 all SwiftUnitTests swift-test-stdlib-macosx-x86_64
ninja: no work to do.
+ cmake --build /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64 -- -j8 upload-stdlib-macosx-x86_64
ninja: no work to do.
--- Build finished ---
+ /usr/local/opt/python@3.9/bin/python3.9 ../llvm-project/llvm/utils/lit/lit.py -sv --param swift_test_mode=optimize_none --param swift_test_subset=primary /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/test-macosx-x86_64
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:216: note: Using cmake: /usr/local/Cellar/cmake/3.20.3/bin/cmake
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:279: note: using swift-frontend: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/bin/swift-frontend
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:279: note: using swift: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/bin/swift
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:279: note: using swiftc: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/bin/swiftc
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:279: note: using sil-opt: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/bin/sil-opt
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:279: note: using sil-func-extractor: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/bin/sil-func-extractor
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:279: note: using sil-llvm-gen: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/bin/sil-llvm-gen
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:279: note: using sil-nm: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/bin/sil-nm
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:279: note: using sil-passpipeline-dumper: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/bin/sil-passpipeline-dumper
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:279: note: using lldb-moduleimport-test: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/bin/lldb-moduleimport-test
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:279: note: using swift-ide-test: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/bin/swift-ide-test
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:279: note: using swift-dependency-tool: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/bin/swift-dependency-tool
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:279: note: using swift-syntax-test: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/bin/swift-syntax-test
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:279: note: using swift-syntax-parser-test: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/bin/swift-syntax-parser-test
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:279: note: using swift-reflection-dump: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/bin/swift-reflection-dump
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:279: note: using swift-remoteast-test: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/bin/swift-remoteast-test
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:279: note: using swift-indent: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/bin/swift-indent
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:279: note: using swift-symbolgraph-extract: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/bin/swift-symbolgraph-extract
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:279: note: using swift-api-extract: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/bin/swift-api-extract
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:279: note: using clang: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/llvm-macosx-x86_64/bin/clang
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:279: note: using llvm-link: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/llvm-macosx-x86_64/bin/llvm-link
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:279: note: using swift-llvm-opt: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/bin/swift-llvm-opt
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:279: note: using llvm-profdata: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/llvm-macosx-x86_64/bin/llvm-profdata
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:279: note: using llvm-cov: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/llvm-macosx-x86_64/bin/llvm-cov
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:279: note: using llvm-strings: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/llvm-macosx-x86_64/bin/llvm-strings
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:279: note: using FileCheck: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/llvm-macosx-x86_64/bin/FileCheck
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:279: note: using llvm-dwarfdump: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/llvm-macosx-x86_64/bin/llvm-dwarfdump
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:279: note: using llvm-readelf: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/llvm-macosx-x86_64/bin/llvm-readelf
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:279: note: using llvm-dis: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/llvm-macosx-x86_64/bin/llvm-dis
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:279: note: using llvm-nm: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/llvm-macosx-x86_64/bin/llvm-nm
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:279: note: using sourcekitd-test: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/bin/sourcekitd-test
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:279: note: using complete-test: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/bin/complete-test
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:279: note: using swift-api-digester: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/bin/swift-api-digester
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:279: note: using swift-refactor: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/bin/swift-refactor
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:279: note: using swift-demangle-yamldump: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/bin/swift-demangle-yamldump
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:279: note: using swift-demangle: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/bin/swift-demangle
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:282: warning: couldn't find 'Benchmark_O' program, try setting BENCHMARK_O in your environment
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:282: warning: couldn't find 'Benchmark_Driver' program, try setting BENCHMARK_DRIVER in your environment
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:282: warning: couldn't find 'wasmer' program, try setting WASMER in your environment
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:282: warning: couldn't find 'wasm-ld' program, try setting WASM_LD in your environment
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:359: note: Using resource dir: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/lib/swift
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:406: note: Compiling with -swift-version 4
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:437: note: Using Clang module cache: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/swift-test-results/x86_64-apple-macosx10.9/clang-module-cache
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:438: note: Using test results dir: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/./swift-test-results/x86_64-apple-macosx10.9
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:443: note: Using code completion cache: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/swift-test-results/x86_64-apple-macosx10.9/completion-cache
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:1040: note: Testing OS X x86_64-apple-macosx10.9
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:1091: note: Running tests on macOS version 11.4 (20F71)
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:1853: note: Using platform module dir: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/lib/swift/macosx
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:1878: note: Testing with the just-built libraries at /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/lib/swift/macosx
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:279: note: using swift-reflection-test-macosx-x86_64: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/bin/swift-reflection-test-macosx-x86_64
lit.py: /Users/zigiiwong/new-swift/swift/test/lit.cfg:2300: note: Available features: CMAKE_GENERATOR=Ninja, CODEGENERATOR=AArch64, CODEGENERATOR=ARM, CODEGENERATOR=Mips, CODEGENERATOR=PowerPC, CODEGENERATOR=SystemZ, CODEGENERATOR=X86, CPU=x86_64, OS=macosx, PTRSIZE=64, SWIFT_VERSION=4, VENDOR=apple, asan_runtime, asserts, c_runtime, concurrency, cplusplus_driver, crash-recovery, differentiable_programming, distributed, executable_test, foundation, fuzzer_runtime, libdispatch, libxml2, lld_lto, no_asan, no_lto, nonexecutable_test, objc_interop, optimized_stdlib, optimized_stdlib_x86_64, profile_runtime, reflection_test_support, runtime_function_counters, sftp_server, shell, sourcekit, swift-remoteast-test, swift_interpreter, swift_repl, swift_stable_abi, swift_stdlib_asserts, swift_test_mode_optimize_none, swift_test_mode_optimize_none_x86_64, swift_tools_extra, syntax_parser_lib, tsan_runtime, ubsan_runtime
objc[50395]: Class __SwiftNSErrorLayoutStandin is implemented in both /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/lib/swift/macosx/libswiftCore.dylib (0x10482cc20) and /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/unittests/runtime/./SwiftRuntimeTests (0x103f82ac8). One of the two will be used. Which one is undefined.
objc[50395]: Class __SwiftNativeNSError is implemented in both /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/lib/swift/macosx/libswiftCore.dylib (0x10482cc48) and /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/unittests/runtime/./SwiftRuntimeTests (0x103f82af0). One of the two will be used. Which one is undefined.
objc[50395]: Class _TtCs12_SwiftObject is implemented in both /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/lib/swift/macosx/libswiftCore.dylib (0x10482cc98) and /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/unittests/runtime/./SwiftRuntimeTests (0x103f82b40). One of the two will be used. Which one is undefined.
objc[50395]: Class __SwiftValue is implemented in both /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/lib/swift/macosx/libswiftCore.dylib (0x10482cd10) and /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/unittests/runtime/./SwiftRuntimeTests (0x103f82bb8). One of the two will be used. Which one is undefined.
FAIL: Swift(macosx-x86_64) :: ModuleInterface/build-alternative-interface-framework.swift (5386 of 7757)
******************** TEST 'Swift(macosx-x86_64) :: ModuleInterface/build-alternative-interface-framework.swift' FAILED ********************
Script:
--
: 'RUN: at line 2'; rm -rf "/Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/test-macosx-x86_64/ModuleInterface/Output/build-alternative-interface-framework.swift.tmp/module-cache" && mkdir -p "/Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/test-macosx-x86_64/ModuleInterface/Output/build-alternative-interface-framework.swift.tmp/module-cache"
: 'RUN: at line 3'; not /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/bin/swift-frontend -target x86_64-apple-macosx10.9 -module-cache-path /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/swift-test-results/x86_64-apple-macosx10.9/clang-module-cache -sdk '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk' -swift-version 4 -define-availability 'SwiftStdlib 5.5:macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0' -typo-correction-limit 10 -typecheck -disable-implicit-concurrency-module-import -target arm64-apple-macosx13.0 -F /Users/zigiiwong/new-swift/swift/test/ModuleInterface/Inputs /Users/zigiiwong/new-swift/swift/test/ModuleInterface/build-alternative-interface-framework.swift -module-cache-path /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/test-macosx-x86_64/ModuleInterface/Output/build-alternative-interface-framework.swift.tmp/module-cache
: 'RUN: at line 4'; /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/bin/swift-frontend -target x86_64-apple-macosx10.9 -module-cache-path /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/swift-test-results/x86_64-apple-macosx10.9/clang-module-cache -sdk '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk' -swift-version 4 -define-availability 'SwiftStdlib 5.5:macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0' -typo-correction-limit 10 -typecheck -disable-implicit-concurrency-module-import -target arm64-apple-macosx13.0 -F /Users/zigiiwong/new-swift/swift/test/ModuleInterface/Inputs /Users/zigiiwong/new-swift/swift/test/ModuleInterface/build-alternative-interface-framework.swift -module-cache-path /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/test-macosx-x86_64/ModuleInterface/Output/build-alternative-interface-framework.swift.tmp/module-cache -backup-module-interface-path /Users/zigiiwong/new-swift/swift/test/ModuleInterface/Inputs/alternative-interfaces
--
Exit Code: 1
Command Output (stderr):
--
<unknown>:0: error: could not find module 'Swift' for target 'arm64-apple-macos'; found: x86_64-apple-macos, at: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/lib/swift/macosx/Swift.swiftmodule
<unknown>:0: error: could not find module 'Swift' for target 'arm64-apple-macos'; found: x86_64-apple-macos, at: /Users/zigiiwong/new-swift/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/lib/swift/macosx/Swift.swiftmodule
--
********************
********************
Failed Tests (1):
Swift(macosx-x86_64) :: ModuleInterface/build-alternative-interface-framework.swift
Testing Time: 853.80s
Unsupported : 239
Passed : 7491
Expectedly Failed: 26
Failed : 1
4 warning(s) in tests
ERROR: command terminated with a non-zero exit status 1, aborting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment