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

Mac frameworks build broken (shadow build)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.2.0 RC1
    • 5.2.0 Beta1
    • Build System
    • None
    • macOS
    • 770a0c91f3fadcdb132d9eb96d085aafbe1bacd0

    Description

      Steps to reproduce:

      1. Get the latest stable branch from Git (with the .git dir still present)
      2. Create a shadow build dir
      3. Configure Qt with: $srcdir/configure -developer-build -opensource -confirm-license -dbus -pch -system-sqlite (not all arguments are required to reproduce this bug)
      4. make
        • bootstrap lib & moc compile
        • QtCore compiles
        • other modules do not build

      To confirm:

      $ cd src
      $ make -j1 sub-gui
      [...]
      gmake -f Makefile.Debug all
      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -pipe -pipe -march=core-avx-i -mavx -g -gdwarf-2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -std=c++11 -stdlib=libc++ -mmacosx-version-min=10.7 -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -fPIC -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_XCB -DQT_NO_XKBCOMMON -DQT_NO_USING_NAMESPACE -DQT_BUILD_GUI_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_USE_BUNDLED_LIBPNG -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_CORE_LIB -I/Users/tjmaciei/src/qt/qt5/qtbase/mkspecs/macx-clang-libc++-optimised -I/Users/tjmaciei/src/qt/qt5/qtbase/src/gui -I../../include -I../../include/QtGui -I../../include/QtGui/5.2.0 -I../../include/QtGui/5.2.0/QtGui -I/Users/tjmaciei/src/qt/qt5/qtbase/src/gui/image -I/Users/tjmaciei/src/qt/qt5/qtbase/src/3rdparty/libpng -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AGL.framework/Headers -I/Users/tjmaciei/obj/qt/qt5-frameworks/qtbase/lib/QtCore.framework/Headers/5.2.0 -I/Users/tjmaciei/obj/qt/qt5-frameworks/qtbase/lib/QtCore.framework/Headers/5.2.0/QtCore -I.moc/debug -I. -F/Users/tjmaciei/obj/qt/qt5-frameworks/qtbase/lib -x c++-header -c /Users/tjmaciei/src/qt/qt5/qtbase/src/gui/kernel/qt_gui_pch.h -o .pch/debug/QtGui_debug/c++.pch
      /Users/tjmaciei/src/qt/qt5/qtbase/src/gui/kernel/qt_gui_pch.h:52:10: fatal error: 'qglobal.h' file not found
      #include <qglobal.h>
               ^
      1 error generated.
      gmake[2]: *** [.pch/debug/QtGui_debug/c++.pch] Error 1
      gmake[1]: *** [debug-all] Error 2
      gmake: *** [sub-gui] Error 2
      
      $ make -j1 sub-network
      [...]
      gmake -f Makefile.Debug all
      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -pipe -pipe -march=core-avx-i -mavx -g -gdwarf-2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -std=c++11 -stdlib=libc++ -mmacosx-version-min=10.7 -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -fPIC -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_XCB -DQT_NO_XKBCOMMON -DQT_NO_USING_NAMESPACE -DQT_BUILD_NETWORK_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_CORE_LIB -I/Users/tjmaciei/src/qt/qt5/qtbase/mkspecs/macx-clang-libc++-optimised -I/Users/tjmaciei/src/qt/qt5/qtbase/src/network -I../../include -I../../include/QtNetwork -I../../include/QtNetwork/5.2.0 -I../../include/QtNetwork/5.2.0/QtNetwork -I/Users/tjmaciei/src/qt/qt5/qtbase/src/network/kernel -I/Users/tjmaciei/obj/qt/qt5-frameworks/qtbase/lib/QtCore.framework/Headers/5.2.0 -I/Users/tjmaciei/obj/qt/qt5-frameworks/qtbase/lib/QtCore.framework/Headers/5.2.0/QtCore -I.moc/debug -I. -F/Users/tjmaciei/obj/qt/qt5-frameworks/qtbase/lib -x c++-header -c /Users/tjmaciei/src/qt/qt5/qtbase/src/corelib/global/qt_pch.h -o .pch/debug/QtNetwork_debug/c++.pch
      /Users/tjmaciei/src/qt/qt5/qtbase/src/corelib/global/qt_pch.h:58:10: error: 'qglobal.h' file not found with <angled> include; use "quotes" instead
      #include <qglobal.h>
               ^~~~~~~~~~~
               "qglobal.h"
      /Users/tjmaciei/src/qt/qt5/qtbase/src/corelib/global/qt_pch.h:64:10: fatal error: 'qcoreapplication.h' file not found
      #include <qcoreapplication.h>
               ^
      2 errors generated.
      gmake[2]: *** [.pch/debug/QtNetwork_debug/c++.pch] Error 1
      gmake[1]: *** [debug-all] Error 2
      gmake: *** [sub-network] Error 2
      

      This is not related to PCH:

      $ make -j1 sub-dbus
      [...]
      gmake -f Makefile.Debug all
      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -pipe -march=core-avx-i -mavx -I/usr/local/Cellar/d-bus/1.6.8/include/dbus-1.0 -I/usr/local/Cellar/d-bus/1.6.8/lib/dbus-1.0/include -g -gdwarf-2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -std=c++11 -stdlib=libc++ -mmacosx-version-min=10.7 -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -fPIC -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_XCB -DQT_NO_XKBCOMMON -DDBUS_API_SUBJECT_TO_CHANGE -DQT_BUILD_DBUS_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_CORE_LIB -I/Users/tjmaciei/src/qt/qt5/qtbase/mkspecs/macx-clang-libc++-optimised -I/Users/tjmaciei/src/qt/qt5/qtbase/src/dbus -I../../include -I../../include/QtDBus -I../../include/QtDBus/5.2.0 -I../../include/QtDBus/5.2.0/QtDBus -I/Users/tjmaciei/obj/qt/qt5-frameworks/qtbase/lib/QtCore.framework/Headers/5.2.0 -I/Users/tjmaciei/obj/qt/qt5-frameworks/qtbase/lib/QtCore.framework/Headers/5.2.0/QtCore -I.moc/debug -I. -F/Users/tjmaciei/obj/qt/qt5-frameworks/qtbase/lib -o .obj/debug/qdbusconnection.o /Users/tjmaciei/src/qt/qt5/qtbase/src/dbus/qdbusconnection.cpp
      /Users/tjmaciei/src/qt/qt5/qtbase/src/dbus/qdbusconnection.cpp:45:10: fatal error: 'qdebug.h' file not found
      #include <qdebug.h>
               ^
      1 error generated.
      gmake[2]: *** [.obj/debug/qdbusconnection.o] Error 1
      gmake[1]: *** [debug-all] Error 2
      gmake: *** [sub-dbus] Error 2
      

      Searching for qcoreapplication.h and qdebug.h in the shadow build dir:

      $ find . -name qcoreapplication.h
      ./include/QtCore/qcoreapplication.h
      

      Note how in all three cases we have the following -I flags:

      -I../../include
      -I../../include/$MODULENAME
      -I../../include/$MODULENAME/5.2.0
      -I../../include/$MODULENAME/5.2.0/$MODULENAME
      -I$shadowtop/lib/QtCore.framework/Headers/5.2.0
      

      Contents of lib/QtCore.framework:

      $ find lib/QtCore.framework -ls
      11636099        0 drwxr-xr-x    7 tjmaciei         staff                 238  4 Nov 14:52 lib/QtCore.framework
      11636853        8 lrwxr-xr-x    1 tjmaciei         staff                  23  4 Nov 14:52 lib/QtCore.framework/QtCore -> Versions/Current/QtCore
      11636104        8 -rw-r--r--    1 tjmaciei         staff                1188  4 Nov 14:50 lib/QtCore.framework/QtCore.prl
      11636850        8 lrwxr-xr-x    1 tjmaciei         staff                  29  4 Nov 14:52 lib/QtCore.framework/QtCore_debug -> Versions/Current/QtCore_debug
      11636100        8 -rw-r--r--    1 tjmaciei         staff                1186  4 Nov 14:50 lib/QtCore.framework/QtCore_debug.prl
      11636848        0 drwxr-xr-x    4 tjmaciei         staff                 136  4 Nov 14:52 lib/QtCore.framework/Versions
      11636849        0 drwxr-xr-x    4 tjmaciei         staff                 136  4 Nov 14:52 lib/QtCore.framework/Versions/5
      11636852    14376 -rwxr-xr-x    1 tjmaciei         staff             7358044  4 Nov 14:52 lib/QtCore.framework/Versions/5/QtCore
      11636847    24096 -rwxr-xr-x    1 tjmaciei         staff            12335960  4 Nov 14:52 lib/QtCore.framework/Versions/5/QtCore_debug
      11636854        8 lrwxr-xr-x    1 tjmaciei         staff                   1  4 Nov 14:52 lib/QtCore.framework/Versions/Current -> 5
      

      Attachments

        Issue Links

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

          Activity

            People

              buddenha Oswald Buddenhagen
              thiago Thiago Macieira
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes