-
-
Port: scanning a Linux C project finds 12 errors and 3 warnings, readiness 31/100, each with its QNX fix. Real capture.
-
Apply 4 safe fixes: gcc becomes qcc, -lpthread -lrt dropped, -lsocket added. Readiness 31 to 50.
-
Build: finds qcc gcc 12.2.0 for x86_64 and AArch64, and explains the sys/epoll.h build error in QNX terms.
-
How it works: Forze IDE, the @forze/qnx package, QNX SDP 8.0 qcc, and a QNX 8.0 target over SSH.
-
Evidence: verify-rules compiles each rule's probe with the real QNX 8.0 qcc; all 17 compile rules confirmed.
-
Real-time: forze-rt-probe on the target, idle and under load. QEMU on a cloud VM, so not real-hardware latency.
-
Target: a QNX OS 8.0 image in QEMU over SSH, with every process's priority from pidin and the live slog2info log.

Most code that ends up on a QNX system starts life on Linux. The first build with qcc usually stops at the first #include <sys/epoll.h>, and from there it is one error at a time: the header is missing, the clock does not exist, -lrt is not a library. Then, once it builds, the real question on QNX is not whether it runs but whether it wakes up on time.
Forze IDE is my desktop IDE (Tauri, React, Rust). For this hackathon I added QNX Studio: one place in Forze that takes a Linux C/C++ project to QNX OS 8.0, builds it with the real QNX toolchain, runs it on a real QNX 8.0 target, and measures its real-time behaviour.
Scanning the Linux sample gives (1) readiness 31/100 from 12 errors and 3 warnings, and (2) one card per finding with the QNX replacement. Real capture of Forze driving QNX SDP 8.0 in CI.

1. Port. Forze scans sources and build files for 21 Linux-isms that break a QNX 8.0 build: epoll, <linux/*> headers, raw syscalls, sysinfo, prctl, CPU affinity, CLOCK_MONOTONIC_RAW, MAP_POPULATE, SCHED_DEADLINE, inotify, -lpthread and -lrt, sockets without -lsocket, and more. The scanner understands the preprocessor, so code that is already behind #ifdef __QNX__ is not flagged. Every finding says what to use on QNX instead, and the result is a readiness score from 0 to 100. Safe build-file fixes apply in one click; the rest can be drafted by Forze AI, keeping the Linux path under #else.
"Apply 4 safe fixes" rewrites the Makefile: gcc becomes qcc, -lpthread -lrt are dropped (QNX keeps them in libc) and -lsocket is added. (1) Readiness goes from 31 to 50, (2) the fix is listed. The 11 errors left are code changes, which Forze AI can draft.
2. Build. The Build tab finds the QNX SDP 8.0 environment, lists the qcc variants, and builds for x86_64 (QEMU or PC) or AArch64 (Raspberry Pi 5). When qcc or ld fails, Forze explains the error in QNX terms and links it back to the rule.
(1) Check toolchain finds qcc gcc 12.2.0 and its x86_64 and AArch64 variants. (2) Building the Linux original fails on sys/epoll.h, and Forze explains it as QNX001 with the fix.
3. Target. Forze connects to a QNX 8.0 target over SSH and shows the OS (uname), every thread with its priority and scheduling policy (pidin), and the system log (slog2info). It can copy a binary over and run it.
Connect and inspect on a QNX OS 8.0 x86_64 image built with mkqnximage and running in QEMU: (1) OS, CPU, 21 processes and 117 threads, (2) each process's top priority from pidin, beside the live slog2info log.
4. Real-time. Forze builds forze-rt-probe with qcc, deploys it, and runs it on the target: a SCHED_FIFO thread that wakes on an absolute clock (clock_nanosleep(TIMER_ABSTIME)) every period and records how late each wake-up is. The probe reads the system tick with ClockPeriod() and the CPU count from the system page. Forze shows p50, p99, p99.9 and max latency, a histogram and a verdict, first idle, then with lower-priority threads spinning on every CPU.
Measure on target builds forze-rt-probe with qcc, copies it over SSH and runs 5,000 wake-ups at 1 ms, FIFO priority 50: (1) with 2 busy lower-priority threads, (2) idle. This target is a QEMU guest on a shared cloud VM, so these numbers (p99.9 about 2.3 ms) show the probe working end to end, not QNX's latency on real hardware.


@forze/qnx(TypeScript): the rules, a preprocessor-aware scanner, theqcc/lddiagnostics, build plans for each variant, the SSH target client with parsers foruname,pidinandslog2info, and the real-time probe runner. It ships as a CLI too (forze-qnx), with SARIF output for GitHub code scanning and a CMake toolchain file for QNX 8.0.forze-rt-probe.c: the probe that runs on QNX, using QNX's ownClockPeriod()andSYSPAGE_ENTRY.- The QNX Studio page in the Forze desktop app, with tabs Port, Build, Target and Real-time.
- A sample project,
sensor-gateway(UDP in, aSCHED_FIFOfilter thread, TCP out), in its Linux original and its QNX port. - A GitHub Actions workflow that installs QNX SDP 8.0 on a clean runner with QNX Software Center, then runs all of it against the real toolchain and a QEMU QNX 8.0 target.
Every rule is checked against the real compiler. Each rule ships with a tiny C probe. forze-qnx verify-rules compiles each probe with QNX 8.0's qcc, and a rule is kept only if QNX actually rejects that code. In CI, all 17 compile-time rules fail to build exactly as the rule says. The other 4 rules are about project setup (/proc paths, a Linux-only #ifdef path, a hard-coded host compiler, CMake without a QNX toolchain) and are not compile probes.
verify-rules output from the CI run: each probe and the real qcc error that confirms it.

| What | Where |
|---|---|
QNX SDP 8.0 install, qcc gcc 12.2.0, x86_64 and AArch64 variants |
.github/workflows/qnx-sdp.yml, evidence/01-doctor.txt |
17 rules confirmed by the real qcc |
src/rules.ts (probe), evidence/02-verify-rules.txt |
Linux sample: 12 errors, 3 warnings, readiness 31/100; build fails on sys/epoll.h |
evidence/03-scan-linux.txt, evidence/04-build-linux-original.txt |
QNX port: readiness 100/100; builds for x86_64 and AArch64 (ELF … interpreter /usr/lib/ldqnx-64.so.2) |
evidence/05–07 |
QNX 8.0 target in QEMU (mkqnximage), uname, pidin, slog2info |
src/target.ts, evidence/11–13 |
| Real-time probe on the target | assets/forze-rt-probe.c, src/rtprobe.ts, evidence/15-16 |
The evidence files are on the qnx-media branch, written by the CI run itself. Build and run instructions, with the QNX version, target and toolchain, are in forze-suite/packages/qnx/README.md.

- Installing the SDP with no desktop. QNX Software Center has a command-line client; getting it to install SDP 8.0 on a throwaway runner with my non-commercial licence, without the licence key ever showing in a public log, took several runs. The key is masked, and the activation is released at the end of every run.
- Booting QNX in CI.
mkqnximageneeds a bridge, a setuid QEMU helper and a background launch on a GitHub runner, and the guest sometimes faults at early boot on some runner CPUs, so the workflow now relaunches it with other CPU models. - Honest rules. I started with rules I believed were true. Compiling each one against the real
qccis what made them trustworthy.
What I learned. How much of a Linux program is really Linux: the event loop, thread naming, CPU affinity and clocks. And how differently QNX does the same jobs: pulses and ionotify(), ThreadCtl run masks, ClockPeriod() and the system page.

- The latency numbers in the demo come from a QEMU guest on a shared cloud VM. They show that the probe and the workflow work end to end; they are not what QNX achieves on real hardware. I have not yet run it on a Raspberry Pi 5.
- The host side is tested on Linux. Forze builds for Windows and macOS too, but I have not tested QNX Studio there.
- The AI drafting of non-trivial fixes uses Forze's existing AI assistant and needs an API key; the demo shows the scanner, the one-click safe fixes and the finished port, not a live AI rewrite.

Forze IDE existed before the hackathon: its last commit on main before the event is 24 July 2026. Everything QNX was written during the submission period, on the qnx-studio branch, starting 2 December 2026: the @forze/qnx package and CLI, forze-rt-probe, the QNX Studio page in the app, the sample project and its port, the QNX workflow, and the MIT licence file. That is 18 commits, 43 files and about 4,500 added lines on top of main. On 2 December I also copied the MIT licence file onto main so GitHub shows the licence; that is the only change to main.
I built it with help from an AI coding assistant, and the film's voice is synthetic (text to speech). QNX SDP files are not redistributed; the workflow installs them under my own non-commercial licence.

- Run the real-time probe on a Raspberry Pi 5 and publish those numbers.
- Have "Port with Forze AI" rebuild with
qccafter each rewrite and retry until the file builds. - A QNX codelab that walks through porting
sensor-gateway.
Built With
- c
- github-actions
- node.js
- qcc
- qemu
- qnx
- qnx-sdp-8.0
- react
- rust
- tauri
- typescript