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

Add Swift 5.6 compilers (error w/ concurrency things) #16

Open
helje5 opened this issue Jul 1, 2022 · 1 comment
Open

Add Swift 5.6 compilers (error w/ concurrency things) #16

helje5 opened this issue Jul 1, 2022 · 1 comment
Labels
blocked bug Something isn't working help wanted Extra attention is needed

Comments

@helje5
Copy link
Contributor

helje5 commented Jul 1, 2022

So I setup a 5.6 build script and formulas for Ubuntu 20.04, but they don't fly yet due to missing concurrency stuff.

When trying to compile a project, I get:

$ swift build --destination \
>   ${HOMEBREW_PREFIX}/lib/swift/dst/x86_64-unknown-linux/swift-5.6-ubuntu20.04.xtoolchain/destination.json

Building for debugging...
warning: Could not read SDKSettings.json for SDK at: /opt/homebrew/lib/swift/dst/x86_64-unknown-linux/swift-5.6-ubuntu20<unknown>:0: error: could not find module '_Concurrency' for target 'x86_64-unknown-linux'; found: x86_64-unknown-linux-gnu, at: /opt/homebrew/Cellar/spm-dest-5.6-x86_64-ubuntu20.04/5.6.2_20/lib/swift/dst/x86_64-unknown-linux/swift-5.6-ubuntu20.04.xtoolchain/swift.xctoolchain/usr/lib/swift/linux/_Concurrency.swiftmodule
<unknown>:0: error: could not find module '_Concurrency' for target 'x86_64-unknown-linux'; found: x86_64-unknown-linux-gnu, at: /opt/homebrew/Cellar/spm-dest-5.6-x86_64-ubuntu20.04/5.6.2_20/lib/swift/dst/x86_64-unknown-linux/swift-5.6-ubuntu20.04.xtoolchain/swift.xctoolchain/usr/lib/swift/linux/_Concurrency.swiftmodule
@helje5 helje5 changed the title Add Swift 5.6 compilers Add Swift 5.6 compilers (error w/ concurrency things) Jul 1, 2022
@helje5 helje5 added bug Something isn't working help wanted Extra attention is needed blocked labels Jul 1, 2022
@octo47
Copy link

octo47 commented Jul 27, 2022

I found it can be fixed with changing target in
/opt/homebrew/lib/swift/dst/x86_64-unknown-linux/swift-5.6-ubuntu20.04.xtoolchain/destination.json

If you replace "target": "x86_64-unknown-linux" with "target":"x86_64-unknown-linux-gnu" it will work

I have not much experience with this tap, so can't say where it need to be fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants