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

ICC: 'attributes may not appear here ... static Q_REQUIRED_RESULT bool qWaitFor(Functor predicate, int timeout = 5000)' errors for builds on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.10
    • 5.11
    • Core: Other
    • 9fcbef15f662cffb134925dc449ae8586cad44e4

    Description

      Hello, everyone,

       

      For builds using ICC on Windows got error:

       

              cd tutorial1\ && ( if not exist Makefile c:\libQT-5.11-dev\build_20171008123128.374\qtbase\bin\qmake.exe -o Makefile c:\libQT-5.11-dev\build_20171008123128.374\qtbase\examples\qtestlib\tutorial1\tutorial1.pro ) && "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\bin\HostX64\x64\nmake.exe" -f Makefile
      
      Microsoft (R) Program Maintenance Utility Version 14.11.25507.1
      Copyright (C) Microsoft Corporation.  All rights reserved.
      
              "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\bin\HostX64\x64\nmake.exe" -f Makefile.Release
      
      Microsoft (R) Program Maintenance Utility Version 14.11.25507.1
      Copyright (C) Microsoft Corporation.  All rights reserved.
      
              icl -c -nologo -Zm200 /Qprec /Qwd1744,1738,809,3373 /Zc:forScope -O2 -MD -Qstd=c++11 -W3 /Qwd673 -DUNICODE -D_UNICODE -DWIN32 -DWIN64 -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_TESTLIB_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR="\"C:/libQT-5.11-dev/build_20171008123128.374/qtbase/examples/qtestlib/tutorial1\"" -DNDEBUG -I. -I..\..\..\include -I..\..\..\include\QtWidgets -I..\..\..\include\QtGui -I..\..\..\include\QtANGLE -I..\..\..\include\QtTest -I..\..\..\include\QtCore -Itmp\moc\release -I..\..\..\mkspecs\win32-icc -Fo.obj\release\ @C:\Users\test\AppData\Local\Temp\nmEE6.tmp
      testqstring.cpp
      c:\libQT-5.11-dev\build_20171008123128.374\qtbase\include\QtTest\../../src/testlib/qtestsystem.h(58): error: attributes may not appear here
            static Q_REQUIRED_RESULT bool qWaitFor(Functor predicate, int timeout = 5000)
                   ^
      
      compilation aborted for .\testqstring.cpp (code 2)
      NMAKE : fatal error U1077: '"C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\bin\intel64\icl.EXE"' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\bin\HostX64\x64\nmake.exe"' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2'
      Stop.

       

      which relate to recently merged Change #205012, and Thiago Macieira comment there:

      Q_REQUIRED_RESULT must appear before "static"

       

      Reproduced for:
        - Qt5-dev builds using ICC on Windows,

      not reproduced for:
        - Qt5-dev builds using ICC on Windows with reverted Change #205012,

        - Qt5-dev builds using mingw-w64 and MSVC.

       

      Best,

      Alexander

       

      Attachments

        Issue Links

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

          Activity

            People

              thiago Thiago Macieira
              sav sav
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes