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

'moc: Too many input files specified' when building Qt WebEngine

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P0: Blocker
    • 5.7.0 RC
    • 5.7.0 RC
    • Build System, WebEngine
    • None
    • 61cdc9daca3ca7f9d4f3c7e8fa3b49f89ce02887

    Description

      building Qt WebEngine with 5.7.0 has issues on specific CI machines (OSX):

      FAILED: cd /Users/qt/work/qt/qtwebengine/src/core; export BUILT_FRAMEWORKS_DIR=/Users/qt/work/qt/qtwebengine/src/core/Release; export BUILT_PRODUCTS_DIR=/Users/qt/work/qt/qtwebengine/src/core/Release; export CONFIGURATION=Release; export DYLIB_INSTALL_NAME_BASE=/usr/local/lib; export EXECUTABLE_NAME=libQtWebEngineCore.dylib; export EXECUTABLE_PATH=libQtWebEngineCore.dylib; export FULL_PRODUCT_NAME=libQtWebEngineCore.dylib; export LD_DYLIB_INSTALL_NAME=/usr/local/lib/libQtWebEngineCore.dylib; export MACH_O_TYPE=mh_dylib; export PRODUCT_NAME=QtWebEngineCore; export PRODUCT_TYPE=com.apple.product-type.library.dynamic; export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk; export SRCROOT=/Users/qt/work/qt/qtwebengine/src/core; export SOURCE_ROOT="${SRCROOT}"; export TARGET_BUILD_DIR=/Users/qt/work/qt/qtwebengine/src/core/Release; export TEMP_DIR="${TMPDIR}";/Users/qt/work/install/bin/moc -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_KEYWORDS -DQT_USE_QSTRINGBUILDER "-DQ_FORWARD_DECLARE_OBJC_CLASS=QT_FORWARD_DECLARE_CLASS" "-DQTWEBENGINECORE_VERSION_STR=\"5.7.0\"" -DBUILDING_CHROMIUM -DQT_NO_EGL -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_WEBCHANNEL_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_WEBENGINECOREHEADERS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -D__APPLE__ "-D__GNUC__=4" -D__APPLE_CC__ -I/Users/qt/work/install/mkspecs/macx-clang -I/Users/qt/work/qt/qtwebengine/src/core -I/Users/qt/work/qt/qtwebengine/src/3rdparty/chromium -I/Users/qt/work/qt/qtwebengine/src/core -I/Users/qt/work/qt/qtwebengine/src/core/api -I/Users/qt/work/install/lib/QtQuick.framework/Headers -I/Users/qt/work/install/lib/QtGui.framework/Headers -I/Users/qt/work/install/lib/QtWebChannel.framework/Headers -I/Users/qt/work/install/lib/QtQml.framework/Headers -I/Users/qt/work/install/lib/QtNetwork.framework/Headers -I/Users/qt/work/install/lib/QtCore.framework/Headers -I/Users/qt/work/qt/qtwebengine/include -I/Users/qt/work/qt/qtwebengine/include/QtWebEngineCore -I/Users/qt/work/qt/qtwebengine/include/QtWebEngineCore/5.7.0 -I/Users/qt/work/qt/qtwebengine/include/QtWebEngineCore/5.7.0/QtWebEngineCore -I/Users/qt/work/install/lib/QtQuick.framework/Headers/5.7.0 -I/Users/qt/work/install/lib/QtQuick.framework/Headers/5.7.0/QtQuick -I/Users/qt/work/install/lib/QtGui.framework/Headers/5.7.0 -I/Users/qt/work/install/lib/QtGui.framework/Headers/5.7.0/QtGui -I/Users/qt/work/install/lib/QtQml.framework/Headers/5.7.0 -I/Users/qt/work/install/lib/QtQml.framework/Headers/5.7.0/QtQml -I/Users/qt/work/install/lib/QtCore.framework/Headers/5.7.0 -I/Users/qt/work/install/lib/QtCore.framework/Headers/5.7.0/QtCore -I/usr/local/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1 -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/7.0.2/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/usr/include -I/System/Library/Frameworks "(framework" "directory)" -I/Library/Frameworks web_engine_settings.cpp -o /Users/qt/work/qt/qtwebengine/src/core/Release/gen/moc/web_engine_settings.moc
      moc: Too many input files specified: '(framework' 'directory)' 'web_engine_settings.cpp'
      Usage: /Users/qt/work/install/bin/moc [options] [header-file] [@option-file]
      

      The trouble seems to be the incorrectly quoted "/System/Library/Frameworks/(framework directory)" in the default include path of the compiler.

      inside .qmake.stash file:

      QMAKE_DEFAULT_INCDIRS = \
          /usr/local/include \
          /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1 \
          /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/7.0.2/include \
          /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include \
          /usr/include \
          "/System/Library/Frameworks (framework directory)" \
          "/Library/Frameworks (framework directory)"
      QMAKE_DEFAULT_LIBDIRS = \
          /lib \
              /usr/lib
      

      Attachments

        Activity

          People

            kkohne Kai Köhne
            kkohne Kai Köhne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: