Skip to content

[bug] Unsupported flag --sysroot passed by autotools toolchain generator when building for QNX #18890

@nicosmd

Description

@nicosmd

Describe the bug

According to https://gitlab.kitware.com/cmake/cmake/-/merge_requests/4277 --sysroot is not supported directly by the qcc compiler for QNX and it should be -Wc,-isysroot used instead. But the Autotools Toolchain generator is always adding --sysroot when the tools.build:sysroot config is set. I think a check should be added if the target OS is QNX and use the recommended alternative flag then.

I encountered this issue while trying to compile libbacktrace for QNX and got the following error output: cc: unknown option: '--sysroot'.

How to reproduce it

Build libbacktrace for QNX with "tools.build:sysroot" configuration defined

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions