-
Notifications
You must be signed in to change notification settings - Fork 52
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
NuttX RV32 (QEMU) - Example #64
Conversation
Heads up im extremely oversubscribed until early November, I did see this PR but won't be able to give you a good review until then. I do really want to include a sample using Nuttx if possible :) |
I think the example makes sense to add. However Im trying to get CI setup for this repo before adding additional examples, so avoid hosting broken code! |
I believe that putting all the required dependencies in is not a problem. |
5405e76
to
7177bf4
Compare
@kassane we now have some basic CI for the examples (excluding the current ones that only build for macho) Can you try to extend this CI to the new content in this PR? |
7177bf4
to
9c22450
Compare
@rauhul, based in my tests on CI [another branch] - this sample works since 6.1 or greater. swiftc 6.0.x not working (default in GH runners). raw log - swift 6.0.2 get errors2024-12-12T13:51:50.8473821Z leds_swift.swift:21:3: error: unexpected ',' separator
2024-12-12T13:51:50.8474095Z 19 | led_daemon,
2024-12-12T13:51:50.8474279Z 20 | nil,
2024-12-12T13:51:50.8474436Z 21 | )
2024-12-12T13:51:50.8474616Z | `- error: unexpected ',' separator
2024-12-12T13:51:50.8474918Z 22 |
2024-12-12T13:51:50.8475078Z 23 | if ret < 0 {
2024-12-12T13:51:50.8475185Z
2024-12-12T13:51:50.8475381Z leds_swift.swift:16:5: error: 'String' is unavailable: unavailable in embedded Swift
2024-12-12T13:51:50.8475731Z 14 | {
2024-12-12T13:51:50.8475895Z 15 | let ret = task_create(
2024-12-12T13:51:50.8476104Z 16 | "led_daemon",
2024-12-12T13:51:50.8476366Z | `- error: 'String' is unavailable: unavailable in embedded Swift
2024-12-12T13:51:50.8476668Z 17 | LEDS_PRIORITY,
2024-12-12T13:51:50.8476883Z 18 | LEDS_STACKSIZE,
2024-12-12T13:51:50.8477011Z
2024-12-12T13:51:50.8477191Z Swift.String:2:15: note: 'String' has been explicitly marked unavailable here
2024-12-12T13:51:50.8477622Z 1 | @available(*, unavailable, message: "unavailable in embedded Swift")
2024-12-12T13:51:50.8477963Z 2 | public struct String : Hashable {
2024-12-12T13:51:50.8478265Z | `- note: 'String' has been explicitly marked unavailable here
2024-12-12T13:51:50.8478739Z 3 | public var utf8CString: ContiguousArray<CChar> { get }
2024-12-12T13:51:50.8479038Z 4 | public init()
2024-12-12T13:51:50.8479155Z
2024-12-12T13:51:50.8479262Z CC: stdio/lib_vsscanf.c echo -ne "\033[1K\r" |
@rauhul, only lint has a problem. I tried ignore file but it didn't work. |
018b662
to
7b5f247
Compare
cc: @rauhul
The cmakelists was adapted to download, extract and build the automated NuttX to make it easier for experimental Swift-embedded use.
The NuttX version used is the most recent with Swift 6 support.
Requirements
How to build
build-output
Output
Quit from QEMU:
Ctrl-a x
References