Details
-
Bug
-
Resolution: Won't Do
-
Not Evaluated
-
None
-
Qt Creator 4.11.0-rc1
-
None
Description
I need to rebuild pastt the rc, but I'm reporting this now because the issue may be related to a system upgrade without Creator being updated.
I'm seeing a lot #include being reported as not found, despite the files existing in the compiler built in paths. I'm seeing this with stdatomic.h, stdarg.h, stdatomic.h, stdbool.h, stddef.h}, {{cpuid.h, immintrin.h and others.
- System: openSUSE Tumbleweed, updated yesterday (20200105)
- Compiler: GCC 9.2.1
- LLVM 9.0.1 (was 9.0.0 when Qt Creator was compiled)
$ gcc -v -E -xc /dev/null > /dev/null Using built-in specs. COLLECT_GCC=/usr/bin/gcc OFFLOAD_TARGET_NAMES=hsa:nvptx-none Target: x86_64-suse-linux Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,ada,go,d --enable-offload-targets=hsa,nvptx-none=/usr/nvptx-none, --without-cuda-driver --disable-werror --with-gxx-include-dir=/usr/include/c++/9 --enable-ssp --disable-libssp --disable-libvtv --disable-cet --disable-libcc1 --enable-plugin --with-bugurl=https://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --with-slibdir=/lib64 --with-system-zlib --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-libphobos --enable-version-specific-runtime-libs --with-gcc-major-version-only --enable-linker-build-id --enable-linux-futex --enable-gnu-indirect-function --program-suffix=-9 --without-system-libunwind --enable-multilib --with-arch-32=x86-64 --with-tune=generic --with-build-config=bootstrap-lto-lean --enable-link-mutex --build=x86_64-suse-linux --host=x86_64-suse-linux Thread model: posix gcc version 9.2.1 20191209 [gcc-9-branch revision 279114] (SUSE Linux) COLLECT_GCC_OPTIONS='-fdiagnostics-color=always' '-v' '-E' '-mtune=generic' '-march=x86-64' /usr/lib64/gcc/x86_64-suse-linux/9/cc1 -E -quiet -v /dev/null -mtune=generic -march=x86-64 -fdiagnostics-color=always #include "..." search starts here: #include <...> search starts here: /usr/lib64/gcc/x86_64-suse-linux/9/include /usr/local/include /usr/lib64/gcc/x86_64-suse-linux/9/include-fixed /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/include /usr/include End of search list. COMPILER_PATH=/usr/lib64/gcc/x86_64-suse-linux/9/:/usr/lib64/gcc/x86_64-suse-linux/9/:/usr/lib64/gcc/x86_64-suse-linux/:/usr/lib64/gcc/x86_64-suse-linux/9/:/usr/lib64/gcc/x86_64-suse-linux/:/usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ LIBRARY_PATH=/usr/lib64/gcc/x86_64-suse-linux/9/:/usr/lib64/gcc/x86_64-suse-linux/9/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/lib/:/usr/lib64/gcc/x86_64-suse-linux/9/../../../:/lib/:/usr/lib/ COLLECT_GCC_OPTIONS='-fdiagnostics-color=always' '-v' '-E' '-mtune=generic' '-march=x86-64'
stddef.h is /usr/lib64/gcc/x86_64-suse-linux/9/include/stddef.h for GCC and /usr/lib64/clang/9.0.1/include/stddef.h for Clang.
Attached the code model dump file. Note how it *does show the correct path to stddef.h. And yet as the screenshot shows, the file is reported not found. I suspect it's trying to find /usr/lib64/clang/9.0.0/include/stddef.h, which does not exist (9.0.0, not 9.0.1}}.
Attachments
Issue Links
- is duplicated by
-
QTCREATORBUG-23534 clangbackend regression issue on QtCreator 4.11.0
- Closed
- relates to
-
QTCREATORBUG-21972 Plugin for clang code model shouldn't hardcode include path
- Closed
- resulted from
-
QTCREATORBUG-22898 When using limits.h in a source file it will see it as being the one provided with libclang instead of the one on the system
- Closed