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

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



Your message dated Fri, 28 Feb 2020 15:11:38 -0300
with message-id <CA+QPbz3_P9E-n638DFj1u43sFsQMfB=ZV1mgPNyX=OdL2SM6JQ@mail.gmail.com>
and subject line Re: Bug#952718: qtcreator: Clang code model fail to find stddef.h if libclang-common-8-dev package is not installed
has caused the Debian Bug report #952718,
regarding qtcreator: Clang code model fail to find stddef.h if libclang-common-8-dev package is not installed
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
952718: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=952718
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
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


--- End Message ---
--- Begin Message ---
Hi Alexis!

On Thu, 27 Feb 2020 at 19:33, Alexis Murzeau <amubtdx@gmail.com> wrote:
>
> 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`

That's just right, the header is not installed yet.

>    * 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.

Right, because that's one of the packages that provides stddef.h

>    * 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`.

No, you ar emixing two things here.

The clang code model is a plugin that uses clang's API to parse a
source file and do checks over it, like missing headers. It does not
requires clang headers.

What you saw is a project that needed a header not available in the
system (or at least not for the selected toolchain). The same could
happen if for example you install qtcreator but not qbase5-dev, and
then you open a project that needs QString.

I'm so closing this bug. If you think I might be missing some detail
please feel free to reply to this bug and I'll reopen it if necessary
(or you can do so if you think you are sure about it).

Regards, Lisandro.

-- 
Lisandro Damián Nicanor Pérez Meyer
http://perezmeyer.com.ar/
http://perezmeyer.blogspot.com/

--- End Message ---

Reply to: