Qt Creator uses Clang-8 and expects Clang-8 include files but has no dependency on clang-8 include files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qtcreator (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
```
lsb_release -rd
Description: Ubuntu 20.04.1 LTS
Release: 20.04
```
qtcreator version:
```
apt show qtcreator
Package: qtcreator
Version: 4.11.0-2build2
Priority: optional
Section: universe/devel
Origin: Ubuntu
Maintainer: Ubuntu Developers <email address hidden>
Original-
Bugs: https:/
Installed-Size: 115 MB
Depends: libqt5sql5-sqlite, qml-module-
Recommends: clang, clang-tidy, gdb, make, qmlscene, qt5-doc, qt5-qmltooling-
Suggests: clazy (>= 1.5), cmake, g++, git, kate-data, subversion, valgrind
Breaks: qtcreator-data (<< 4.5.2-2~)
Replaces: qtcreator-data (<< 4.5.2-2~)
Homepage: https:/
Download-Size: 29.0 MB
APT-Manual-
APT-Sources: http://
Description: integrated development environment (IDE) for Qt
Qt Creator is a cross-platform integrated development environment (IDE)
designed to make development with the Qt application framework faster
and easier.
.
It includes:
* An advanced C++ code editor
* Integrated GUI layout and forms designer
* Project and build management tools
* Integrated, context-sensitive help system
* Visual debugger
* Rapid code navigation tools
* Supports multiple platforms
* Qt Quick Designer
```
Qt Creator has a code model which shows errors as the project is being worked on.
However, in the event that clang-8's include files are missing (which was the case because I did not have clang-8 installed, just libclang1-8 which was the actual dependency, and clang-10), the Clang code model shows errors about "stddef" not being found, thus indirectly causing C++ Qt projects to show a lot of phantom errors.
This is essentially a missing-dependency issue; Qt Creator expects the include files of the Clang version it was compiled with, and it doesn't get them.
The exact issue was determined via:
```
ldd /usr/lib/
linux-vdso.so.1 (0x00007ffde3be
libSqlite.so.4 => /usr/lib/
libClangsuppor
libUtils.so.4 => /usr/lib/
libclang-8.so.1 => /lib/x86_
<...further details omitted...>
```
Installing package "clang-8" completely resolved the issue.
If that is not an available workaround, providing /usr/include/
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: qtcreator 4.11.0-2build2
ProcVersionSign
Uname: Linux 5.4.0-58-generic x86_64
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: MATE
Date: Thu Jan 7 14:20:01 2021
InstallationDate: Installed on 2020-10-06 (93 days ago)
InstallationMedia: Ubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
SourcePackage: qtcreator
UpgradeStatus: No upgrade log present (probably fresh install)
Status changed to 'Confirmed' because the bug affects multiple users.