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

Build with Mac OS X SDK 10.5/10.6 fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.8.5
    • 4.8.0
    • Build System
    • None
    • Mac OS X 10.6.8
      GCC i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664)
      XCode 3.2.5
    • macOS
    • c1b42ed98203d74089d3124a52f87f1b8de3ee84

    Description

      Building Qt 4.8.0 against the Mac OS X SDK 10.5 fails.

      I configured Qt with this call:

      ./configure \
          -prefix /usr/local/Trolltech/Qt-4.8.0-cocoa \
          -nomake examples -nomake demos \
          -release \
          -plugin-sql-sqlite \
          -universal \
          -sdk /Developer/SDKs/MacOSX10.5.sdk
      

      The build eventually fails with this error message.

      volker@macpro /usr/local/src/Qt/qt-everywhere-opensource-src-4.8.0-for-10.5 $ make
      cd src/tools/bootstrap/ && make -f Makefile 
      make[1]: Nothing to be done for `first'.
      cd src/tools/moc/ && make -f Makefile 
      make[1]: Nothing to be done for `first'.
      cd src/tools/rcc/ && make -f Makefile 
      make[1]: Nothing to be done for `first'.
      cd src/tools/uic/ && make -f Makefile 
      make[1]: Nothing to be done for `first'.
      cd src/corelib/ && make -f Makefile 
      make -f Makefile.Release
      make[2]: Nothing to be done for `first'.
      cd src/xml/ && make -f Makefile 
      make -f Makefile.Release
      make[2]: Nothing to be done for `first'.
      cd src/network/ && make -f Makefile 
      make -f Makefile.Release
      make[2]: Nothing to be done for `first'.
      cd src/sql/ && make -f Makefile 
      make -f Makefile.Release
      make[2]: Nothing to be done for `first'.
      cd src/testlib/ && make -f Makefile 
      make -f Makefile.Release
      make[2]: Nothing to be done for `first'.
      cd src/gui/ && make -f Makefile 
      make -f Makefile.Release
      make[2]: Nothing to be done for `first'.
      cd src/qt3support/ && make -f Makefile 
      make -f Makefile.Release
      make[2]: Nothing to be done for `first'.
      cd src/tools/uic3/ && make -f Makefile 
      make[1]: Nothing to be done for `first'.
      cd src/opengl/ && make -f Makefile 
      make -f Makefile.Release
      make[2]: Nothing to be done for `first'.
      cd src/xmlpatterns/ && make -f Makefile 
      make -f Makefile.Release
      make[2]: Nothing to be done for `first'.
      cd src/phonon/ && make -f Makefile 
      make -f Makefile.Release
      make[2]: Nothing to be done for `first'.
      cd src/multimedia/ && make -f Makefile 
      make -f Makefile.Release
      make[2]: Nothing to be done for `first'.
      cd src/svg/ && make -f Makefile 
      make -f Makefile.Release
      make[2]: Nothing to be done for `first'.
      cd src/script/ && make -f Makefile 
      make -f Makefile.Release
      make[2]: Nothing to be done for `first'.
      cd src/declarative/ && make -f Makefile 
      make -f Makefile.Release
      make[2]: Nothing to be done for `first'.
      cd src/3rdparty/webkit/Source/ && make -f Makefile.WebKit 
      cd JavaScriptCore/ && make -f Makefile.WebKit 
      make -f Makefile.WebKit.Release
      make[3]: Nothing to be done for `first'.
      cd WebCore/ && make -f Makefile.WebKit 
      make -f Makefile.WebKit.Release
      gcc -c -pipe -O2 -arch i386 -arch i386 -Xarch_i386 -mmacosx-version-min=10.4 -fvisibility=hidden -fvisibility-inlines-hidden -arch ppc -arch ppc -Xarch_ppc -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.5.sdk -DNDEBUG -DBUILDING_QT__=1 -DNDEBUG -DQT_ASCII_CAST_WARNINGS -DENABLE_XSLT=0 -DENABLE_WEB_TIMING=0 -DENABLE_JAVASCRIPT_DEBUGGER=1 -DENABLE_DATABASE=1 -DENABLE_EVENTSOURCE=1 -DENABLE_OFFLINE_WEB_APPLICATIONS=1 -DENABLE_DOM_STORAGE=1 -DENABLE_ICONDATABASE=1 -DENABLE_CHANNEL_MESSAGING=1 -DENABLE_DIRECTORY_UPLOAD=0 -DENABLE_FILE_SYSTEM=0 -DENABLE_QUOTA=0 -DENABLE_SQLITE=1 -DENABLE_DASHBOARD_SUPPORT=0 -DENABLE_FILTERS=1 -DENABLE_XPATH=1 -DENABLE_WCSS=0 -DENABLE_SHARED_WORKERS=1 -DENABLE_WORKERS=1 -DENABLE_XHTMLMP=0 -DENABLE_DETAILS=1 -DENABLE_METER_TAG=1 -DENABLE_PROGRESS_TAG=1 -DENABLE_BLOB=1 -DENABLE_NOTIFICATIONS=1 -DENABLE_INPUT_SPEECH=0 -DENABLE_INSPECTOR=1 -DENABLE_3D_RENDERING=1 -DENABLE_WEB_AUDIO=0 -DENABLE_WEBGL=0 -DENABLE_MEDIA_STATISTICS=0 -DENABLE_VIDEO_TRACK=0 -DENABLE_TOUCH_ICON_LOADING=0 -DENABLE_ANIMATION_API=0 -DENABLE_SVG=1 -DENABLE_SVG_FONTS=1 -DENABLE_SVG_FOREIGN_OBJECT=1 -DENABLE_SVG_ANIMATION=1 -DENABLE_SVG_AS_IMAGE=1 -DENABLE_SVG_USE=1 -DENABLE_DATALIST=1 -DENABLE_TILED_BACKING_STORE=1 -DENABLE_NETSCAPE_PLUGIN_API=1 -DENABLE_WEB_SOCKETS=1 -DWTF_USE_QT_BEARER=1 -DENABLE_TOUCH_EVENTS=1 -DENABLE_VIDEO=1 -DWTF_USE_QTKIT=1 -DSQLITE_CORE -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_COMPLETE -DBUILDING_JavaScriptCore -DBUILDING_WTF -DBUILDING_WEBKIT -DQT_MAKEDLL -DNSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES -DNS_BUILD_32_LIKE_64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_SHARED -I../../../../../mkspecs/macx-g++ -I. -I../../../../../lib/QtCore.framework/Versions/4/Headers -I../../../../../include/QtCore -I../../../../../lib/QtNetwork.framework/Versions/4/Headers -I../../../../../include/QtNetwork -I../../../../../lib/QtGui.framework/Versions/4/Headers -I../../../../../include/QtGui -I../../../../../include -I../JavaScriptCore -I../../Source -I../ThirdParty -I../JavaScriptCore/assembler -I../JavaScriptCore/bytecode -I../JavaScriptCore/bytecompiler -I../JavaScriptCore/heap -I../JavaScriptCore/dfg -I../JavaScriptCore/debugger -I../JavaScriptCore/interpreter -I../JavaScriptCore/jit -I../JavaScriptCore/parser -I../JavaScriptCore/profiler -I../JavaScriptCore/runtime -I../JavaScriptCore/wtf -I../JavaScriptCore/wtf/gobject -I/usr/local/src/Qt/qt-everywhere-opensource-src-4.8.0-for-10.5/src/3rdparty/webkit/Source/JavaScriptCore/wtf/symbian -I../JavaScriptCore/wtf/unicode -I../JavaScriptCore/yarr -I../JavaScriptCore/API -I../JavaScriptCore/ForwardingHeaders -I../JavaScriptCore/generated -Ibridge/qt -Ipage/qt -Iplatform/graphics/qt -Iplatform/network/qt -Iplatform/qt -I../WebKit/qt/Api -I../WebKit/qt/WebCoreSupport -I. -Iaccessibility -Ibindings -Ibindings/generic -Ibridge -Icss -Idom -Idom/default -Iediting -Ifileapi -Ihistory -Ihtml -Ihtml/canvas -Ihtml/parser -Ihtml/shadow -Iinspector -Iloader -Iloader/appcache -Iloader/archive -Iloader/cache -Iloader/icon -Imathml -Inotifications -Ipage -Ipage/animation -Iplatform -Iplatform/animation -Iplatform/audio -Iplatform/graphics -Iplatform/graphics/filters -Iplatform/graphics/filters/arm -Iplatform/graphics/texmap -Iplatform/graphics/transforms -Iplatform/image-decoders -Iplatform/leveldb -Iplatform/mock -Iplatform/network -Iplatform/sql -Iplatform/text -Iplatform/text/transcoder -Iplugins -Irendering -Irendering/mathml -Irendering/style -Irendering/svg -Istorage -Isvg -Isvg/animation -Isvg/graphics -Isvg/graphics/filters -Isvg/properties -Itesting -Iwebaudio -Iwebsockets -I/usr/local/src/Qt/qt-everywhere-opensource-src-4.8.0-for-10.5/src/3rdparty/webkit/Source/WebCore/wml -Iworkers -Ixml -Ibridge/jsc -Ibindings/js -I/usr/local/src/Qt/qt-everywhere-opensource-src-4.8.0-for-10.5/src/3rdparty/webkit/Source/WebCore/bindings/js/specialization -Ibridge/c -Itesting/js -Igenerated -I../../Source -I../../include -I../include/QtWebKit -I../include -I../../../sqlite -Iplatform/mac -Iplatform/graphics/mac -I../../WebKitLibraries -I.moc/release-static -F/usr/local/src/Qt/qt-everywhere-opensource-src-4.8.0-for-10.5/lib platform/graphics/mac/MediaPlayerPrivateQTKit.mm -o .obj/release-shared/MediaPlayerPrivateQTKit.o
      In file included from /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h:6,
                       from /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CoreAnimation.h:13,
                       from /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h:8,
                       from /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/QTKit.framework/Headers/QTMovieLayer.h:13,
                       from /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/QTKit.framework/Headers/QTKit.h:18,
                       from platform/graphics/mac/MediaPlayerPrivateQTKit.mm:50:
      /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:50: error: expected unqualified-id before '[' token
      /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:50: error: expected ';' before '[' token
      platform/graphics/mac/MediaPlayerPrivateQTKit.mm: In static member function 'static void WebCore::MediaPlayerPrivateQTKit::getSitesInMediaCache(WTF::Vector<WTF::String, 0ul>&)':
      platform/graphics/mac/MediaPlayerPrivateQTKit.mm:1514: warning: Mac OS X version 10.5 or later is needed for use of foreach-collection-statement
      In file included from /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h:6,
                       from /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CoreAnimation.h:13,
                       from /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h:8,
                       from /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/QTKit.framework/Headers/QTMovieLayer.h:13,
                       from /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/QTKit.framework/Headers/QTKit.h:18,
                       from platform/graphics/mac/MediaPlayerPrivateQTKit.mm:50:
      /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:50: error: expected unqualified-id before '[' token
      /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:50: error: expected ';' before '[' token
      platform/graphics/mac/MediaPlayerPrivateQTKit.mm: In static member function 'static void WebCore::MediaPlayerPrivateQTKit::getSitesInMediaCache(WTF::Vector<WTF::String, 0ul>&)':
      platform/graphics/mac/MediaPlayerPrivateQTKit.mm:1514: warning: Mac OS X version 10.5 or later is needed for use of foreach-collection-statement
      lipo: can't open input file: /var/folders/6C/6CQYtSy7Gu8K42P7g1HuTk+++TM/-Tmp-//ccaeQToo.out (No such file or directory)
      make[3]: *** [.obj/release-shared/MediaPlayerPrivateQTKit.o] Error 1
      make[2]: *** [release] Error 2
      make[1]: *** [sub-WebCore-make_default-ordered] Error 2
      make: *** [sub-webkit-make_default-ordered] Error 2
      

      This is a regression, as it used to work with Qt 4.7.x without any problems.

      Attachments

        Issue Links

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

          Activity

            People

              liaqi Liang Qi
              vgoetz Volker Götz
              Votes:
              20 Vote for this issue
              Watchers:
              27 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes