Inspiration

When a program fails to run on a QNX target, the error can come from the compiler, the SSH connection, the file transfer, or the program itself. I built QNX Runcheck to show exactly which stage failed and make the build-and-run cycle easier to troubleshoot.

What it does

Runcheck cross-compiles a C source file with QNX SDP 8.0 and checks the target’s operating system, release, and CPU architecture over SSH. It uploads the executable to a private temporary directory, runs it, and cleans up afterward. The included probe prints the target’s system information and monotonic clock. Each failure stage has a distinct exit code.

How I built it

I wrote the host tool in Python and the probe in C. I used the QNX qcc cross-compiler on Windows and tested against the official QNX 8.0.0 x86-64 Quick Start Target Image running in QEMU. Before connecting over SSH, I verified the guest’s SSH host key against the VM console.

Challenges and what I learned

The two Windows SSH clients handled the same known_hosts path differently. I reproduced the issue against the QNX guest, fixed the argument quoting, and verified the complete workflow with Git OpenSSH.

I tested three scenarios on the QNX setup. The valid probe compiled and ran successfully. Invalid C stopped at the build stage with exit code 10. With the VM shut down, the valid probe still compiled and Runcheck reported the connection failure with exit code 20.

Built With

Share this project:

Updates

Submission history