Uh oh!
There was an error while loading. Please reload this page.
Add QNX/nto support - #325
Conversation
newpavlov
commented
Nov 14, 2022
Is it possible to add a build job to our CI for this target? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
d1b6093 to
52c2780Compareflba-eb
commented
Nov 15, 2022
I would love to have QNX/nto builds in CI, but I think it is not feasible right now because a license key is required. Also, the license seems not to work well in containers but works best with real hardware. I will forward this question to check if there is a possibility. |
josephlr
commented
Nov 15, 2022
That makes sense, we don't need to run the code, The line I suggested adding would only build the code, not execute it. Obviously actually running on qnx is better, but just building in our CI ensures that we don't inadvertently break things. |
flba-eb
commented
Nov 15, 2022
Not using the official QNX/nto toolchain would be tricky, because a special linker is used: https://github.com/flba-eb/rust-lang-fork/blob/master/compiler/rustc_target/src/spec/nto_qnx_base.rs#L12 I suggest to go without the tests. |
I realize that we cannot link without access to an OS specific toolchain. This is not the only target where we have this issue. That is why the line I suggested adding just compiles the code, without linking or running it. |
newpavlov
commented
Nov 15, 2022
Compilation includes linking, no? Maybe we can use |
5b30f77 to
52c2780Compareflba-eb
commented
Nov 16, 2022
I tested a bit with it but removed the test code again. We don't have (upstreamed) libc support yet (work in progress), which is why even |
josephlr
commented
Nov 16, 2022
That's good to know, and one of the reasons we like to build code for new targets. @newpavlov would you be okay accepting code that depends on not-yet-upstreamed libc support? Or should we just wait for the upstream libc changes before merging this? |
newpavlov
commented
Nov 16, 2022
@josephlr |
josephlr
commented
Nov 17, 2022
flba-eb
commented
Dec 21, 2022
@josephlr Ping! QNX support has been added to libc: rust-lang/libc#3038 |
josephlr
commented
Dec 22, 2022
Awesome!! Can you bump the |
ad3da71 to
ac51392Compareflba-eb
commented
Dec 22, 2022
@josephlr , done, please check. Check runs locally. |
ac51392 to
993505cComparejosephlr
commented
Dec 24, 2022
The QNX tests are passing so I'm going to merge this. I'll fix the other tests in a followup PR. |
Add QNX/nto support
This patch adds support to the QNX/nto operating system. This target is supported by Rust: rust-lang/rust#102701.
cc @gh-tr