[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#952718: qtcreator: Clang code model fail to find stddef.h if libclang-common-8-dev package is not installed



Subject: qtcreator: Clang code model fail to find stddef.h if libclang-common-8-dev package is not installed
Package: qtcreator
Version: 4.11.0-2
Severity: normal

Dear Maintainer,

   * What led up to the situation?

Install `qtcreator` but not the `libclang-common-8-dev` package
Note: Installing `clang` package will install `clang-9` and not `clang-8`.

When opening a CMake project in qtcreator that does `#include
<cstddef>`, an error is reported by the clang code model in `cstddef`:
`cstddef:50:10: fatal error: 'stddef.h' file not found`



   * What exactly did you do (or not do) that was effective (or
ineffective)?

When installing the `libclang-common-8-dev` package, the clang code
model error goes away and no error is reported anymore.


   * What outcome did you expect instead?

I expect the clang code model to work out of the box with all depends
and recommends dependencies of `qtcreator`.
As of now, `libclang-common-8-dev` seems required by the clang code
model to work correctly, but that package is not a direct or indirect
dependency of `qtcreator`.

The simplest solution (if it is the right one) is to add
`libclang-common-8-dev` as depends or recommends dependency to qtcreator.
Or maybe it should be a dependency of `libclang1-8` instead (which
qtcreator depends on).



-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.4.8-amdnoflr-20200109 (SMP w/12 CPU cores)
Kernel taint flags: TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8),
LANGUAGE=fr (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages qtcreator depends on:
ii  libc6                                  2.29-10
ii  libclang1-8                            1:8.0.1-7
ii  libgcc-s1 [libgcc1]                    10-20200222-1
ii  libgcc1                                1:10-20200222-1
ii  libkf5syntaxhighlighting5              5.62.0-3
ii  libllvm8                               1:8.0.1-7
ii  libqbscore1.13                         1.13.1-2
ii  libqt5concurrent5                      5.12.5+dfsg-8
ii  libqt5core5a [qtbase-abi-5-12-5]       5.12.5+dfsg-8
ii  libqt5designer5                        5.12.5-2+b2
ii  libqt5designercomponents5              5.12.5-2+b2
ii  libqt5gui5                             5.12.5+dfsg-8
ii  libqt5help5                            5.12.5-2+b2
ii  libqt5network5                         5.12.5+dfsg-8
ii  libqt5printsupport5                    5.12.5+dfsg-8
ii  libqt5qml5 [qtdeclarative-abi-5-12-5]  5.12.5-5
ii  libqt5quick5                           5.12.5-5
ii  libqt5quickwidgets5                    5.12.5-5
ii  libqt5script5                          5.12.5+dfsg-2
ii  libqt5serialport5                      5.12.5-1
ii  libqt5sql5                             5.12.5+dfsg-8
ii  libqt5sql5-sqlite                      5.12.5+dfsg-8
ii  libqt5widgets5                         5.12.5+dfsg-8
ii  libqt5xml5                             5.12.5+dfsg-8
ii  libstdc++6                             10-20200222-1
ii  qml-module-qtqml-models2               5.12.5-5
ii  qml-module-qtquick-controls            5.12.5-1+b1
ii  qml-module-qtquick2                    5.12.5-5
ii  qtchooser                              66-2
ii  qtcreator-data                         4.11.0-2

Versions of packages qtcreator recommends:
ii  clang                          1:9.0-49
ii  clang-tidy                     1:9.0-49
ii  gdb-minimal [gdb]              9.1-1
ii  konsole [x-terminal-emulator]  4:19.08.1-2+b1
ii  make                           4.2.1-1.2
pn  qmlscene                       <none>
pn  qt5-doc                        <none>
pn  qt5-qmltooling-plugins         <none>
pn  qtbase5-dev-tools              <none>
pn  qtcreator-doc                  <none>
pn  qtdeclarative5-dev-tools       <none>
pn  qttools5-dev-tools             <none>
pn  qttranslations5-l10n           <none>
pn  qtxmlpatterns5-dev-tools       <none>

Versions of packages qtcreator suggests:
pn  clazy       <none>
ii  cmake       3.16.3-1
ii  g++         4:9.2.1-3.1
ii  git         1:2.25.1-1
pn  kate-data   <none>
pn  subversion  <none>
ii  valgrind    1:3.15.0-1


Versions of libclang-common-8-dev that fix the issue:
libclang-common-8-dev  1:8.0.1-7

-- no debconf information

-- 
Alexis Murzeau
PGP: B7E6 0EBB 9293 7B06 BDBC  2787 E7BD 1904 F480 937F





Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: