Lit test Sema/availability_and_delayed_parsing.swif failing on arm64

Hey,
I'm hitting this issue when running all tests with lit on arm64 Mac.

--
Exit Code: 1

Command Output (stderr):
--
.../test/Sema/availability_and_delayed_parsing.swift:17:13: error: TRC-API: expected string not found in input
// TRC-API: (root versions=[10.10.0,+Inf)
            ^
<stdin>:1:1: note: scanning from here
<unknown>:0: error: could not find module '_Concurrency' for target 'x86_64-apple-macos'; found: arm64-apple-macos, at: BUILD_DIR/lib/swift/macosx/_Concurrency.swiftmodule
^
<stdin>:1:15: note: possible intended match here
<unknown>:0: error: could not find module '_Concurrency' for target 'x86_64-apple-macos'; found: arm64-apple-macos, at: BUILD_DIR/lib/swift/macosx/_Concurrency.swiftmodule
              ^

Input file: <stdin>
Check file: ../test/Sema/availability_and_delayed_parsing.swift

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            1: <unknown>:0: error: could not find module '_Concurrency' for target 'x86_64-apple-macos'; found: arm64-apple-macos, at: BUILD_DIR/lib/swift/macosx/_Concurrency.swiftmodule
check:17'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
check:17'1                   ?                                                                                                                                                             possible intended match
>>>>>>

--

Anyone else hitting this?

Looking at the test it doesn't look like it arch dependent so maybe it would be just fine to run it with %target-cpu since it is already restricted to run on // REQUIRES: OS=macosx. But my understanding on why this module is now trying to be imported is limited, so opening this as more curiosity to understand this better and what would be the correct fix for it. Also can open a SR for tracking this no problem =]

cc @xymus @Varun_Gandhi

I think using %target-cpu should work, I don't see anything architecture specific in that test.

1 Like

Makes sense, thanks @Varun_Gandhi. I have opened a PR with this change.

Terms of Service

Privacy Policy

Cookie Policy