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

'unsupported option '-fPIC' for target 'x86_64-pc-windows-msvc'' errors for documentation build on Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.11.0
    • 5.11
    • None
    • c003a913e3dd71835577a8bba327007e8f3d06f8

      Hello, everyone,

       

      For Qt documentation build using mingw-w64 got errors:

      C:/libQT-5.11-dev/build/qtbase/src/xml/dom/qdom.cpp:4378: (qdoc) warning: clang found diagnostics parsing \fn QDomNode::NodeType QDomAttr::nodeType() const
          error: unsupported option '-fPIC' for target 'x86_64-pc-windows-msvc'
          warning: '__cplusplus' macro redefined
          error: use of undeclared identifier 'QDomNode'
          error: use of undeclared identifier 'QDomAttr'
      QTemporaryDir: Unable to remove "C:\\Users\\test\\AppData\\Local\\Temp\\qdoc_pch.LavOZN" most likely due to the presence of read-only files.
      libclang: crash detected during AST saving: {
        'filename' : 'C:/Users/test/AppData/Local/Temp/qdoc_pch.LavOZN/QtConcurrent.pch'
        'options' : 0,
      }
      

       

      which appeared after Change #151666 was merged into Qt5-dev. The same for builds using Windows ICC and MSVC.

       

      Reproduced for:

      • Qt builds regardless of used configuration and layout.

       

      Full build logs available in QTBUG-52143.

       

       

      Best,

      Alexander

       

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

            gbk Martin Smith (Qt)
            sav sav
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes