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-15701] Linux: Compile error when cross-compiling with --static-swift-stdlib #57980

Open
mickeyl opened this issue Jan 7, 2022 · 1 comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself

Comments

@mickeyl
Copy link

mickeyl commented Jan 7, 2022

Previous ID SR-15701
Radar None
Original Reporter @mickeyl
Type Bug
Environment

macOS Monterey, Swift 5.5.2

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

md5: e58895e19a12703f88ba9c5627bb1aa3

Issue Description:

I'm trying to cross-compile the SPM project https://github.com/Automotive-Swift/ELMpersonator/tree/master/Sources/ELMpersonator, statically linking the swift libraries.

Invoking this with

swift build -v --static-swift-stdlib --destination /Library/Developer/Destinations/arm64-5.5.2-RELEASE.json

I get

<unknown>:0: error: missing required module 'SwiftShims'

What kind of error is this and how can I avoid it?

@keith
Copy link
Collaborator

keith commented Mar 11, 2022

I don't think this issue is inherent, so I think you'd have to provide your destination configuration + how you set it up for debugging

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself
Projects
None yet
Development

No branches or pull requests

2 participants