Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ill-formed compilation database generated by QtCreator when -isystem is used #13

Closed
jim-bcom opened this issue Oct 16, 2023 · 1 comment
Assignees

Comments

@jim-bcom
Copy link

HOW TO REPRODUCE

  • git clone https://github.com/SolarFramework/SolARFramework.git -b develop && cd SolARFramework && git checkout be919630e0b6d1192f4278707bdf78453a4ec48e
  • Open QtCreator and open SolARFramework.pro
  • Go to projects tab, and select run for qmake_system()
  • Build project and then generate compilation database: Build -> Run Generator -> Generate Compilation Database
  • The location of the generated compilation database should be indicated in the Genera Messages window. This should be something like ../build-SolARFramework-Desktop_Qt_6_5_3_GCC_64bit-Release/compile_commands.json

EXPECTED BEHAVIOR
In the arguments array of the generated JSON file, include directory for xpcf should be:

-isystem/home/jmhenaff/.remaken/packages/linux-gcc/xpcf/2.7.0/interfaces

As XPCF is a third party library.

OBSERVED BEHAVIOR
Path to include dir is ill-formed:

-I-isystem/home/jmhenaff/.remaken/packages/linux-gcc/xpcf/2.7.0/interfaces

OS: Linux Ubuntu 22.04
XPCF: 2.7.0 (static)
remaken: 1.10.0
Qt Creator: 11.0.2
Qt: 6.4.3

@stefled
Copy link
Collaborator

stefled commented Nov 14, 2023

The QtCreator Compilation Database generation commands does not handle the different compilation flags well as long as there are –isystem.
It's an external issue.

@stefled stefled self-assigned this Nov 14, 2023
@stefled stefled closed this as not planned Won't fix, can't repro, duplicate, stale Dec 19, 2023
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

No branches or pull requests

2 participants