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

ICC: 'a function declared "dllimport" may not be defined _ACRTIMP char* __cdecl setlocale(' error for builds on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.11.0
    • 5.11
    • Build tools: qdoc
    • 0848d3f79a87c3e2055a7b435bfd4930ef06cf6e

    Description

      Hello, everyone,

       

      For builds using ICC on Windows got errors:

              cd qdoc\ && ( if not exist Makefile C:\libQT-5.11-dev\build\qtbase\bin\qmake.exe -o Makefile C:\libQT-5.11-dev\build\qttools\src\qdoc\qdoc.pro ) && "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\bin\HostX64\x64\nmake.exe" -f Makefile
      
      Microsoft (R) Program Maintenance Utility Version 14.12.25830.2
      Copyright (C) Microsoft Corporation.  All rights reserved.
      
              "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\bin\HostX64\x64\nmake.exe" -f Makefile.Debug
      
      Microsoft (R) Program Maintenance Utility Version 14.12.25830.2
      Copyright (C) Microsoft Corporation.  All rights reserved.
      
              icl -c -nologo -Zm200 /Qprec /Qwd1744,1738,809,3373 /Zc:forScope -Zi -MDd -Qstd=c++14 -W3 /Qwd673 /Fd.obj\debug\qdoc.vc.pdb -DUNICODE -D_UNICODE -DWIN32 -DWIN64 -D"CLANG_RESOURCE_DIR=\"C:/ProgramData/LLVM/lib/clang/5.0.1/include\"" -DQDOC2_COMPAT -DHEINOUS_SYSINC_HACK -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_USE_QSTRINGBUILDER -DQT_NO_EXCEPTIONS -DQT_QMLDEVTOOLS_LIB -DQT_CORE_LIB -I. -IC:\ProgramData\LLVM\include -I/src/tools/qdoc -I/src/tools/qdoc/qmlparser -IC:\libQT-5.11-dev\build\qtdeclarative\include -IC:\libQT-5.11-dev\build\qtdeclarative\include\QtQml -IC:\libQT-5.11-dev\build\qtdeclarative\include\QtQml\5.11.0 -IC:\libQT-5.11-dev\build\qtdeclarative\include\QtQml\5.11.0\QtQml -IC:\libQT-5.11-dev\build\qtbase\include\QtCore\5.11.0 -IC:\libQT-5.11-dev\build\qtbase\include\QtCore\5.11.0\QtCore -IC:\libQT-5.11-dev\build\qtbase\include -IC:\libQT-5.11-dev\build\qtbase\include\QtCore -Itmp\moc\debug -IC:\libQT-5.11-dev\build\qtbase\mkspecs\win32-icc -Fo.obj\debug\ @C:\Users\test\AppData\Local\Temp\nmF6A6.tmp
      main.cpp
      C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\locale.h(92): error: a function declared "dllimport" may not be defined
            _ACRTIMP char* __cdecl setlocale(
                                   ^
      
      compilation aborted for .\main.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\Community\VC\Tools\MSVC\14.12.25827\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.
      

       

      Reproduced for:

      • Qt5-dev (ba6ae3be9a6617ee8fda0ccc7c0e0f2f35ddbaa6) builds using ICC on Windows with Shared configuration,

      not reproduced for:

      • Qt5-dev (ba6ae3be9a6617ee8fda0ccc7c0e0f2f35ddbaa6) builds using ICC on Windows with Static configuration,
      • Qt5-dev (b0eddcbae662df344cafa93457d228dcfb6f38de) builds using ICC on Windows with Shared configuration,
      • Qt5-dev (ba6ae3be9a6617ee8fda0ccc7c0e0f2f35ddbaa6) builds using mingw-w64 and MSVC.

       

      In case that help, one of the most notable Changes between mentioned QtTools revisions is #151666.

       

      Best,

      Alexander

       

      Attachments

        For Gerrit Dashboard: QTBUG-65449
        # Subject Branch Project Status CR V

        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