Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-15659] Swift Compiler issue on linux with async #57938

Closed
swift-ci opened this issue Dec 27, 2021 · 6 comments
Closed

[SR-15659] Swift Compiler issue on linux with async #57938

swift-ci opened this issue Dec 27, 2021 · 6 comments
Assignees

Comments

@swift-ci
Copy link
Collaborator

@swift-ci swift-ci commented Dec 27, 2021

Previous ID SR-15659
Radar rdar://problem/86945821
Original Reporter kneekey23 (JIRA User)
Type Bug
Status Resolved
Resolution Done

Attachment: Download

Environment

Amazon Linux 2

Swift 5.5.2

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug
Assignee @ktoso
Priority Medium

md5: cd1651916c82cc25cd6c852c75adf283

is duplicated by:

  • SR-15830 error: symbol '$s9ActorTest0A5TACHOC8maxIndexACSi_tYacfcTu' (async function pointer to ActorTest.ActorTACHO.init(maxIndex: Swift.Int) async -> ActorTest.ActorTACHO) is in generated IR file, but not in TBD file

Issue Description:

Getting compiler errors when I try to compile the attached project on Linux - Amazon Linux 2 specifically.

<unknown>:0: error: symbol '$s18AWSRestJsonTestSDK04RestB6ClientC0ebF13ConfigurationC19credentialsProvider16endpointResolver17frameworkMetadata6region0nK013signingRegion13runtimeConfigAE16AWSClientRuntime011CredentialsI0_pSg_AM08EndpointK0_pSgAM09FrameworkM0VSgSSSgAM0pK0_pSgAU0fT0010SDKRuntimeG0_ptYaKcfcTu' (async function pointer to AWSRestJsonTestSDK.RestJsonClient.RestJsonClientConfiguration.init(credentialsProvider: Swift.Optional<AWSClientRuntime.CredentialsProvider>, endpointResolver: Swift.Optional<AWSClientRuntime.EndpointResolver>, frameworkMetadata: Swift.Optional<AWSClientRuntime.FrameworkMetadata>, region: Swift.Optional<Swift.String>, regionResolver: Swift.Optional<AWSClientRuntime.RegionResolver>, signingRegion: Swift.Optional<Swift.String>, runtimeConfig: ClientRuntime.SDKRuntimeConfiguration) async throws -> AWSRestJsonTestSDK.RestJsonClient.RestJsonClientConfiguration) is in generated IR file, but not in TBD file
<unknown>:0: error: please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the project, and add '-Xfrontend -validate-tbd-against-ir=none' to squash the errors
<unknown>:0: error: symbol '$s18AWSRestJsonTestSDK04RestB6ClientC0ebF13ConfigurationC19credentialsProvider16endpointResolver17frameworkMetadata6region0nK013signingRegion13runtimeConfigAE16AWSClientRuntime011CredentialsI0_pSg_AM08EndpointK0_pSgAM09FrameworkM0VSgSSSgAM0pK0_pSgAU0fT0010SDKRuntimeG0_ptYaKcfcTu' (async function pointer to AWSRestJsonTestSDK.RestJsonClient.RestJsonClientConfiguration.init(credentialsProvider: Swift.Optional<AWSClientRuntime.CredentialsProvider>, endpointResolver: Swift.Optional<AWSClientRuntime.EndpointResolver>, frameworkMetadata: Swift.Optional<AWSClientRuntime.FrameworkMetadata>, region: Swift.Optional<Swift.String>, regionResolver: Swift.Optional<AWSClientRuntime.RegionResolver>, signingRegion: Swift.Optional<Swift.String>, runtimeConfig: ClientRuntime.SDKRuntimeConfiguration) async throws -> AWSRestJsonTestSDK.RestJsonClient.RestJsonClientConfiguration) is in generated IR file, but not in TBD file
<unknown>:0: error: please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the project, and add '-Xfrontend -validate-tbd-against-ir=none' to squash the errors
<unknown>:0: error: symbol '$s18AWSRestJsonTestSDK04RestB6ClientC0ebF13ConfigurationC19credentialsProvider16endpointResolver17frameworkMetadata6region0nK013signingRegion13runtimeConfigAE16AWSClientRuntime011CredentialsI0_pSg_AM08EndpointK0_pSgAM09FrameworkM0VSgSSSgAM0pK0_pSgAU0fT0010SDKRuntimeG0_ptYaKcfcTu' (async function pointer to AWSRestJsonTestSDK.RestJsonClient.RestJsonClientConfiguration.init(credentialsProvider: Swift.Optional<AWSClientRuntime.CredentialsProvider>, endpointResolver: Swift.Optional<AWSClientRuntime.EndpointResolver>, frameworkMetadata: Swift.Optional<AWSClientRuntime.FrameworkMetadata>, region: Swift.Optional<Swift.String>, regionResolver: Swift.Optional<AWSClientRuntime.RegionResolver>, signingRegion: Swift.Optional<Swift.String>, runtimeConfig: ClientRuntime.SDKRuntimeConfiguration) async throws -> AWSRestJsonTestSDK.RestJsonClient.RestJsonClientConfiguration) is in generated IR file, but not in TBD file
<unknown>:0: error: please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the project, and add '-Xfrontend -validate-tbd-against-ir=none' to squash the errors

@ktoso
Copy link
Member

@ktoso ktoso commented Dec 28, 2021

Thanks for the report, will try to get it looked at as soon as back from the xmas break

@ktoso
Copy link
Member

@ktoso ktoso commented Dec 28, 2021

@swift-ci create

@DougGregor
Copy link
Member

@DougGregor DougGregor commented Jan 5, 2022

This should have been addressed by #38918 which isn't in Swift 5.5.x.

@swift-ci
Copy link
Collaborator Author

@swift-ci swift-ci commented Jan 5, 2022

Comment by Nicole Stone (JIRA)

@DougGregor will it be in the next version perhaps 5.5.3?

@ktoso
Copy link
Member

@ktoso ktoso commented Jan 7, 2022

Fix has been backported to 5.5 and will be part of the next release.
Thanks for reporting and working with me to reproduce this Nicole!

@ktoso
Copy link
Member

@ktoso ktoso commented Jan 7, 2022

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants