Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-18340

QTCreator failed to build on Windows due to fatal error C1017: invalid integer constant expression

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • None
    • Qt Creator 4.4.0-beta1
    • Building Qt Creator
    • None
    • Windows Server 2012 R2 + Visual Studio 2015 Update 3
    • a86c28f4d595f46fa65b8d0b8916fe0501ef74a7

    Description

       I tried to build QTCreator (master branch latest revision d75ff0a) with VS2015 Update 3 on Winodws. It failed to build due to fatal error C1017: invalid integer constant expression. This error should be caused by master branch revision http://code.qt.io/cgit/qt-creator/qt-creator.git/commit/src/plugins/ios/iostoolhandler.cpp?id=f9350a5dbd67507b99517a62ccc19939e69dcf8c. Could you please take a look at this? Thanks in advance!

      Reproduce steps:

      1. git clone [git://code.qt.io/qt-creator/qt-creator.git] D:\QTCreator\src
      2. Open a VS 2015 x86 command prompt and browse to D:\QTCreator\src
      3. qmake -r qtcreator.pro
      4. jom

      Actual result:
      iostoolhandler.cpp(896): fatal error C1017: invalid integer constant expression
      jom: D:\QTCreator\src\src\plugins\ios\Makefile [release] Error 2

      Some investigations on my side:

      This issue is reproted from file D:\QTCreator\src\src\plugins\ios\iostoolhandler.cpp. The releated code is as below. There is syntax error for statement "#elif".

      bool IosSimulatorToolHandlerPrivate::isRunning() const
      {
      #ifdef Q_OS_UNIX
          return m_pid > 0 && (kill(m_pid, 0) == 0);
      #elif
          return false;
      #endif
      }

       

       

      Attachments

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

        Activity

          People

            cstenger Christian Stenger
            karenhuang Karen Huang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes