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

Cross-compiling from aarch64 to x86_64, error: unknown target 'x86_64' #166

Open
deze333 opened this issue Dec 24, 2024 · 0 comments
Open

Comments

@deze333
Copy link

deze333 commented Dec 24, 2024

Using M4 macOS as a host. Followed the instructions and successfully built two Linux SDKs:

> swift sdk list
6.0.2-RELEASE_ubuntu_jammy_aarch64
6.0.2-RELEASE_ubuntu_jammy_x86_64

Next created an example project cross-compilation-test, just as described in the docs.

Compiling on Apple Silicon for Linux with same architecture works:

swift build --swift-sdk 6.0.2-RELEASE_ubuntu_jammy_aarch64

Compiling on Apple Silicon for Linux with Intel architecture fails:

swift build --swift-sdk 6.0.2-RELEASE_ubuntu_jammy_x86_64

Building for debugging...
error: unknown target 'x86_64'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant