I'm working on the Amazon Linux 2023 swift build.
The details are in this message.
TL;DR, I managed to compile Swift 5.8 and Swift 5.9 on Amazon Linux 2023 x64 and Arm (Amazon Graviton). I have a standalone script for EC2, a PR in progress to produce the RPM, and a build environment for the Swift CI system.
The compilation of the Swift project release/5.8
branch works both on x64 and aarch64 , but I have 4 tests that fail.
********************
Failed Tests (4):
Swift(linux-x86_64) :: Index/Store/output-failure.swift
Swift(linux-x86_64) :: ModuleInterface/ModuleCache/force-module-loading-mode-archs.swift
Swift(linux-x86_64) :: ModuleInterface/ModuleCache/force-module-loading-mode-framework.swift
Swift(linux-x86_64) :: ModuleInterface/ModuleCache/force-module-loading-mode.swift
The output-failure
generates something like
--
Exit Code: 2
Command Output (stderr):
--
FileCheck error: '<stdin>' is empty.
FileCheck command line: /home/build-user/build/buildbot_linux/llvm-linux-x86_64/bin/FileCheck --allow-unused-prefixes /home/build-user/swift/test/Index/Store/output-failure.swift -check-prefix=DIR_ERR
--
And the three module-loading-xxx
generate these :
Command Output (stderr):
--
/home/build-user/swift/test/ModuleInterface/ModuleCache/force-module-loading-mode-framework.swift:96:20: error: NO-SUCH-MODULE: expected string not found in input
// NO-SUCH-MODULE: [[@LINE-1]]:8: error: no such module 'Lib'
^
<stdin>:1:1: note: scanning from here
SOURCE_DIR/test/ModuleInterface/ModuleCache/force-module-loading-mode-framework.swift:101:16: error: cannot convert value of type 'FromInterface' to specified type 'X'
^
<stdin>:1:1: note: with "@LINE-1" equal to "95"
SOURCE_DIR/test/ModuleInterface/ModuleCache/force-module-loading-mode-framework.swift:101:16: error: cannot convert value of type 'FromInterface' to specified type 'X'
^
<stdin>:1:89: note: possible intended match here
SOURCE_DIR/test/ModuleInterface/ModuleCache/force-module-loading-mode-framework.swift:101:16: error: cannot convert value of type 'FromInterface' to specified type 'X'
^
Input file: <stdin>
Check file: /home/build-user/swift/test/ModuleInterface/ModuleCache/force-module-loading-mode-framework.swift
-dump-input=help explains the following input dump.
Input was:
<<<<<<
1: SOURCE_DIR/test/ModuleInterface/ModuleCache/force-module-loading-mode-framework.swift:101:16: error: cannot convert value of type 'FromInterface' to specified type 'X'
check:96'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
check:96'1 with "@LINE-1" equal to "95"
check:96'2 ? possible intended match
2: let _: X = Lib.testValue
check:96'0 ~~~~~~~~~~~~~~~~~~~~~~~~~
3: ~~~~^~~~~~~~~
check:96'0 ~~~~~~~~~~~~~~~
>>>>>>
--
Any idea how to get around these ?