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-15944] RFE: Armv5 Support #4344

Closed
colemancda opened this issue Mar 5, 2022 · 6 comments
Closed

[SR-15944] RFE: Armv5 Support #4344

colemancda opened this issue Mar 5, 2022 · 6 comments

Comments

@colemancda
Copy link

Previous ID SR-15944
Radar None
Original Reporter @colemancda
Type New Feature
Status Resolved
Resolution Done

Attachment: Download

Additional Detail from JIRA
Votes 0
Component/s Compiler, Package Manager, Standard Library
Labels New Feature
Assignee CodaFi (JIRA)
Priority Medium

md5: 9ff8e17460620e4dee3493ea86ae3961

Issue Description:

Swift should support compiling to Armv5.

@colemancda
Copy link
Author

Swift stdlib patches

apple/swift#41686

@colemancda
Copy link
Author

Swift Stdlib is cross compiling with patches in apple/swift#41686, it seems SwiftPM also needs to be patched.

coleman@macbook-linux:~/Developer/buildroot$ make swift-hello-reconfigure
rm -f /home/coleman/Developer/buildroot/output/build/swift-hello-0.1.0/.stamp_rsynced
rm -f /home/coleman/Developer/buildroot/output/build/swift-hello-0.1.0/.stamp_installed
rm -f /home/coleman/Developer/buildroot/output/build/swift-hello-0.1.0/.stamp_staging_installed
rm -f /home/coleman/Developer/buildroot/output/build/swift-hello-0.1.0/.stamp_target_installed
rm -f /home/coleman/Developer/buildroot/output/build/swift-hello-0.1.0/.stamp_images_installed
rm -f /home/coleman/Developer/buildroot/output/build/swift-hello-0.1.0/.stamp_host_installed
rm -f /home/coleman/Developer/buildroot/output/build/swift-hello-0.1.0/.stamp_built
rm -f /home/coleman/Developer/buildroot/output/build/swift-hello-0.1.0/.stamp_configured
>>> swift-hello 0.1.0 Syncing from source dir package/swift-hello//src
rsync -au --chmod=u=rwX,go=rX --exclude .svn --exclude .git --exclude .hg --exclude .bzr --exclude CVS package/swift-hello//src/ /home/coleman/Developer/buildroot/output/build/swift-hello-0.1.0
>>> swift-hello 0.1.0 Configuring
>>> swift-hello 0.1.0 Building
( cd /home/coleman/Developer/buildroot/output/build/swift-hello-0.1.0/ && rm -rf .build && PATH="/home/coleman/Developer/buildroot/output/host/bin:/home/coleman/Developer/buildroot/output/host/sbin:/home/coleman/.vscode-server/bin/f80445acd5a3dadef24aa209168452a3d97cc326/bin/remote-cli:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games":/home/coleman/Developer/swift-install-armv5/usr/bin swift build -c release --destination /home/coleman/Developer/buildroot/output/host/usr/share/swift/armv5-unknown-linux-gnueabi-toolchain.json )
error: unknownArch
make: *** [package/pkg-generic.mk:292: /home/coleman/Developer/buildroot/output/build/swift-hello-0.1.0/.stamp_built] Error 1

@colemancda
Copy link
Author

SwiftPM patches

apple/swift-tools-support-core#296

@colemancda
Copy link
Author

coleman@macbook-linux:~/Developer/buildroot$ readelf -A /home/coleman/Developer/buildroot/output/target/usr/bin/hello
Attribute Section: aeabi
File Attributes
Tag_CPU_name: "5TE"
Tag_CPU_arch: v5TE
Tag_ARM_ISA_use: Yes
Tag_THUMB_ISA_use: Thumb-1
Tag_ABI_PCS_wchar_t: 4
Tag_ABI_FP_rounding: Needed
Tag_ABI_FP_denormal: Needed
Tag_ABI_FP_exceptions: Needed
Tag_ABI_FP_number_model: IEEE 754
Tag_ABI_align_needed: 8-byte
Tag_ABI_align_preserved: 8-byte, except leaf SP
Tag_ABI_enum_size: int

@colemancda
Copy link
Author

Patches are attached so build can be reproduced by others, until PRs are merged.

@colemancda
Copy link
Author

All related PRs have been merged.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 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

1 participant