Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-65920

Compiling qdoc fails due to missing stdlib.h

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.11.0 Alpha
    • 5.11
    • Build tools: qdoc
    • None
    • Qt dev - 16e15410e674fff693b28c1c9ca96f77bb3b6460
      gcc version 7.2.1 20171224
    • 82cf2489e2cdf2139914580e95c37d91be520716

    Description

      Building dev I found the following problem (https://pastebin.com/q7xK8EQT)

      > make[3]: Entering directory '/home/crmaurei/dev/qtdev-install/qttools/src/qdoc'
      > .....
      > fatal error: stdlib.h: No such file or directory

      The problem seems to be that the argument of the `-isystem` parameter is `/usr/include` and then, is included after all the other paths.
      A simple fix would be to replace it by a `-I`, but maybe is worth to look at:
      qttools/mkspecs/features/qt_find_clang.prf since the responsible variable is CLANG_INCLUDEPATH in `qttools/src/qdoc/qdoc.pro`

      Official gcc bug report: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70129
      (won't be fixed, because it depends on the user proper configuration)

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            iamsergio Sergio Martins
            crmaurei Cristian Maureira-Fredes
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes