Skip to content

use use_file on qnx8 - #884

Draft
dotcarmen wants to merge 4 commits into
rust-random:masterfrom
ferrocene:carmen/qnx8-support
Draft

dotcarmen wants to merge 4 commits into
rust-random:masterfrom
ferrocene:carmen/qnx8-support

Conversation

@dotcarmen

Copy link
Copy Markdown

currently, qnx7 (target_os = "nto") is supported via the use_file backend. this PR adds qnx8 (target_os = "qnx") support via the same backend, as recommended

@dotcarmen

Copy link
Copy Markdown
Author

currently waiting on a job running in ferrocene repo to confirm that this works; i'm leaving for vacation in a few minutes and will be able to check the results on 2 Dec. still, since the diff is so simple, figured i'd open the PR anyways, with the caveat being that i haven't verified it 100% works yet

reason CI is failing is because qnx8 was originally introduced as {aarch64-unknown,x86_64-pc}-nto-qnx800 in rust-lang/rust@3f045c9, but were renamed to {aarch64-unknown,x86_64-pc}-qnx in rust-lang/rust@804de70. prior to the renaming, i believe target_os = "nto" applied to both qnx7 and qnx8, however target_os = "nto" now only applies to qnx7, while target_os = "qnx" applies to qnx8.

since CI currently uses a nightly toolchain from september 2025, the renaming doesn't exist in the workflow runs that failed

@newpavlov newpavlov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I did not know about the renaming and closed #878 because of this.

The Nightly versions will be updated in #882, so you will need to rebase after its merge.

@newpavlov

newpavlov commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Please rebase and add a changelog entry, something like this:

### Added
- Support for `target_os = "qnx"` via the `use_file` backend ([#884])

It also may be worth to edit the QNX entry in the README table.

@dotcarmen
dotcarmen force-pushed the carmen/qnx8-support branch from bc453cf to 93be1c6 Compare December 2, 2026 09:20
@dotcarmen

Copy link
Copy Markdown
Author

still several failing jobs due to using 1.85 stable toolchain. according to the ui summary of the linked rename commit, it appears that the earliest stable toolchain that contains target_os = "qnx" is 1.98... which is a big jump to your msrv 😅

@newpavlov

Copy link
Copy Markdown
Member

The CI failure is caused by the errno part, no?

dotcarmen and others added 3 commits December 2, 2026 13:47
Co-authored-by: Артём Павлов [Artyom Pavlov] <newpavlov@gmail.com>
@dotcarmen

Copy link
Copy Markdown
Author

... that one yes 😅 i forgot to add all() to the cfg()

lots of other failures are failing due to target_os = "qnx" though, like this one

@dotcarmen
dotcarmen force-pushed the carmen/qnx8-support branch from a09dba9 to 3f055e3 Compare December 2, 2026 12:48
@dotcarmen

Copy link
Copy Markdown
Author

all of the failures on 3f055e3 are due to:

error: unexpected `cfg` condition value: `qnx`
  --> src/backends.rs:48:9
   |
48 |         target_os = "qnx",
   |         ^^^^^^^^^^^^^^^^^

due to strategy.fail-fast defaulting to true in GHA, other jobs in the matrices are canceled

@newpavlov

Copy link
Copy Markdown
Member

It's fine to override this warning. See [lints.rust.unexpected_cfgs] in Cargo.toml.

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

2 participants