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

Qt assistant compilation fails on Windows due to an undefined struct _timeb

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P1: Critical
    • None
    • 5.7.0 Beta
    • Tools: Assistant
    • None
    • Windows 8.1, MSVC 2015 Update 1

    Description

      Trying to compile Qt from git, I see the following error:

              c:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.Debug all
              cl -c -FIQtCLuceneDepends -YuQtCLuceneDepends -Fp.pch\debug\Qt5CLucened_
      pch.pch -nologo -Zc:wchar_t -FS -Zc:strictStrings -Zc:throwingNew -Zi -MDd -EHsc
       -W0 -GR /Fd..\..\..\lib\Qt5CLucened.pdb -DUNICODE -DWIN32 -D_BUILD_FOR_QT_ -DLU
      CENE_DISABLE_MEMTRACKING -D_CRT_SECURE_NO_DEPRECATE -D_MT -D_SILENCE_STDEXT_HASH
      _DEPRECATION_WARNINGS -DQT_BUILD_CLUCENE_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_W
      ARNINGS -D_USE_MATH_DEFINES -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_
      MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECA
      TED_BEFORE=0x040800 -DQT_CORE_LIB -IS:\qt5\qttools\src\assistant\clucene -I. -IS
      :\qt5\qttools\src\assistant\clucene -IS:\qt5\qttools\src\assistant -IS:\qt5\qtto
      ols\src\assistant\3rdparty\clucene\src\CLucene -IS:\qt5\qttools\src\assistant\3r
      dparty\clucene\src -IS:\qt5\qttools\src\assistant\3rdparty\clucene\src\CLucene\a
      nalysis -IS:\qt5\qttools\src\assistant\3rdparty\clucene\src\CLucene\analysis\sta
      ndard -IS:\qt5\qttools\src\assistant\3rdparty\clucene\src\CLucene\config -IS:\qt
      5\qttools\src\assistant\3rdparty\clucene\src\CLucene\debug -IS:\qt5\qttools\src\
      assistant\3rdparty\clucene\src\CLucene\document -IS:\qt5\qttools\src\assistant\3
      rdparty\clucene\src\CLucene\index -IS:\qt5\qttools\src\assistant\3rdparty\clucen
      e\src\CLucene\queryParser -IS:\qt5\qttools\src\assistant\3rdparty\clucene\src\CL
      ucene\search -IS:\qt5\qttools\src\assistant\3rdparty\clucene\src\CLucene\store -
      IS:\qt5\qttools\src\assistant\3rdparty\clucene\src\CLucene\util -I..\..\..\inclu
      de -I..\..\..\include\QtCLucene -I..\..\..\include\QtCLucene\5.7.0 -I..\..\..\in
      clude\QtCLucene\5.7.0\QtCLucene -Itmp -IS:\build_qt5.7_git_windows\qtbase\includ
      e -IS:\build_qt5.7_git_windows\qtbase\include\QtCore -I.moc\debug -IS:\qt5\qtbas
      e\mkspecs\win32-msvc2015 -Fo.obj\debug\ @C:\Users\Nekit\AppData\Local\Temp\Misc.
      obj.3620.15203.jom
      Misc.cpp
      S:\qt5\qttools\src\assistant\3rdparty\clucene\src\CLucene\util\Misc.cpp(37): err
      or C2079: 'tstruct' uses undefined struct 'lucene::util::Misc::currentTimeMillis
      ::_timeb'
      S:\qt5\qttools\src\assistant\3rdparty\clucene\src\CLucene\util\Misc.cpp(38): err
      or C3861: '_ftime': identifier not found
      S:\qt5\qttools\src\assistant\3rdparty\clucene\src\CLucene\util\Misc.cpp(40): err
      or C2228: left of '.time' must have class/struct/union
      S:\qt5\qttools\src\assistant\3rdparty\clucene\src\CLucene\util\Misc.cpp(40): not
      e: type is 'int'
      S:\qt5\qttools\src\assistant\3rdparty\clucene\src\CLucene\util\Misc.cpp(40): err
      or C2228: left of '.millitm' must have class/struct/union
      S:\qt5\qttools\src\assistant\3rdparty\clucene\src\CLucene\util\Misc.cpp(40): not
      e: type is 'int'
      jom: S:\build_qt5.7_git_windows\qttools\src\assistant\clucene\Makefile.Debug [.o
      bj\debug\Misc.obj] Error 2
      JobClient destroyed while still acquiring.
      jom: S:\build_qt5.7_git_windows\qttools\src\assistant\clucene\Makefile [debug-al
      l] Error 2
      jom: S:\build_qt5.7_git_windows\qttools\src\assistant\Makefile [sub-clucene-make
      _first] Error 2
      jom: S:\build_qt5.7_git_windows\qttools\src\Makefile [sub-assistant-make_first]
      Error 2
      

      Configure parameters:

      -prefix %CD%\..\qt5.7_git_windows -debug-and-release -release -opensource -confirm-license -opengl dynamic -skip qtwebkit -skip qtwebkit-examples -skip qt3d -skip qtxmlpatterns -skip qtwayland -skip qtwebengine -skip qtwebview -skip qtmultimedia -skip qtlocation -skip qtcanvas3d -skip qtwebsockets -skip qtwebchannel -skip qtenginio -skip qtsensors -skip qtserialport -skip qtpurchasing -skip qtquick1 -skip qtscript -skip qtconnectivity -skip qtcharts -skip qtdatavis3d -nomake examples -nomake tests
      

      Attachments

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

        Activity

          People

            heimrich Karsten Heimrich
            krnekit Nikita Krupenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes