Skip to content

Conversation

@memsharded
Copy link
Member

Changelog: Fix: Avoid AutotoolsToolchain/GnuToolchain to define --sysroot for QNX qcc compiler, define -Wc,-isysroot instead.
Docs: Omit

Close #18890

if sysroot:
root = sysroot.replace("\\", "/")
compiler = self._conanfile.settings.get_safe("compiler")
self.sysroot_flag = f"--sysroot {root}" if compiler != "qcc" else f"-Wc,-isysroot {root}"
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the correct syntax is "-Wc,-isysroot,{root}". At least then the configuration went through and this is also how CMake passes the sysroot to qcc.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point, thanks for checking it, I overlooked that detail, I'll fix it.

@memsharded memsharded modified the milestones: 2.21.0, 2.22.0 Sep 24, 2025
@memsharded memsharded modified the milestones: 2.22.0, 2.23.0 Oct 22, 2025
@memsharded memsharded modified the milestones: 2.23.0, 2.24.0 Nov 24, 2025
@memsharded memsharded merged commit f9dc1bc into conan-io:develop2 Dec 12, 2025
16 checks passed
@memsharded memsharded deleted the fix/gnu_qnx_sysroot branch December 12, 2025 15:55
memsharded added a commit that referenced this pull request Dec 15, 2025
* fix sysroot for qnx under autotools

* fix comma
czoido added a commit that referenced this pull request Dec 16, 2025
* wip

* working

* removed vxworks test

* fixes

* fix sysroot for qnx under autotools (#18897)

* fix sysroot for qnx under autotools

* fix comma

* Feature/config install pkg lock (#17793)

* conan config install-pkg from lockfile

* checking locked config-requires

* wip

* wip

* wip

* minor refactor

* wip

* wip

* fixes

* reverted to not break existing cache config_version.json

* fix test

* wip

* wip

* wip

* wip

* final proposal

* imports

* ready for review

* review, better API, better UX default to cwd, new command

* fix test

* fix ignore of conaninfo.txt and conanmanifest.txt

* msg for conan config clean

* [MesonToolchain] `needs_exe_wrapper` depends on `can_run` function (#19382)

* Conditioned to can_run property

* comments

* without quotes

* Fixed test

* precedence

* wip

* wip

* fixes

* fixes

* fixes

* fixes

* fixes

* Update test/functional/toolchains/gnu/autotools/test_win_bash.py

Co-authored-by: Carlos Zoido <[email protected]>

---------

Co-authored-by: Francisco Ramírez <[email protected]>
Co-authored-by: Carlos Zoido <[email protected]>
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.

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

3 participants