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

Xcode 4.6: PassRefPtr.h: error: member access into incomplete type 'WebCore::Clipboard'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.8.4
    • WebKit
    • None
    • OS X 10.7.5, Xcode 4.6

      Xcode 4.6 has a new Apple clang (based on llvm clang 3.2) that fails building qt-4.8.4 (xcode 4.5 worked).

      QTBUG-29373 lists an early compile failure in src/gui/kernel with the same compiler. This is a separate failure later in src/3rdparty/webkit/Source/WebCore/accessibility:

      clang++ -c -pipe -Xarch_x86_64 -mmacosx-version-min=10.7 -Wall -Wextra -Wreturn-type -fno-strict-aliasing -Wcast-align -Wchar-subscripts -Wformat-security -Wreturn-type -Wno-unused-parameter -Wno-sign-compare -Wno-switch -Wno-switch-enum -Wundef -Wmissing-noreturn -Winit-self -I/sw/include -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.7 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.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 -DBUILDING_JavaScriptCore -DBUILDING_WTF -DBUILDING_WEBKIT -DQT_MAKEDLL -DNSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES -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_HAVE_AVX -DQT_SHARED -I../../../../../mkspecs/macx-g++ -I. -I.moc/release-static -I../../../../../lib/QtCore.framework/Versions/4/Headers -I../../../../../lib/QtNetwork.framework/Versions/4/Headers -I../../../../../lib/QtGui.framework/Versions/4/Headers -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/sw/build.build/qt4-mine-mac-4.8.4-3/qt-everywhere-opensource-src-4.8.4/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/sw/build.build/qt4-mine-mac-4.8.4-3/qt-everywhere-opensource-src-4.8.4/src/3rdparty/webkit/Source/WebCore/wml -Iworkers -Ixml -Ibridge/jsc -Ibindings/js -I/sw/build.build/qt4-mine-mac-4.8.4-3/qt-everywhere-opensource-src-4.8.4/src/3rdparty/webkit/Source/WebCore/bindings/js/specialization -Ibridge/c -Itesting/js -Igenerated -I../../Source -I../../include -I../include/QtWebKit -I../include -Iplatform/mac -Iplatform/graphics/mac -I../../WebKitLibraries -I../../../../../include/QtGui -I../../../../../include/QtNetwork -I../../../../../include/QtCore -I../../../../../include -o .obj/release-static/AccessibilityObject.o accessibility/AccessibilityObject.cpp
      In file included from accessibility/AccessibilityObject.cpp:30:
      In file included from accessibility/AccessibilityObject.h:34:
      In file included from editing/VisiblePosition.h:30:
      In file included from dom/Node.h:31:
      In file included from bindings/js/ScriptWrappable.h:34:
      In file included from bindings/js/JSDOMWrapper.h:25:
      In file included from bindings/js/JSDOMGlobalObject.h:30:
      In file included from ../JavaScriptCore/runtime/JSGlobalObject.h:25:
      In file included from ../JavaScriptCore/runtime/JSArray.h:24:
      In file included from ../JavaScriptCore/runtime/JSObject.h:26:
      In file included from ../JavaScriptCore/runtime/ArgList.h:25:
      In file included from ../JavaScriptCore/interpreter/CallFrame.h:26:
      In file included from ../JavaScriptCore/runtime/JSGlobalData.h:33:
      In file included from ../JavaScriptCore/heap/Heap.h:25:
      In file included from ../JavaScriptCore/heap/HandleHeap.h:30:
      ../JavaScriptCore/heap/Handle.h:145:46: warning: class template 'HandleConverter' was previously declared as a struct template [-Wmismatched-tags]
          template <typename A, typename B> friend class HandleConverter;
                                                   ^
      ../JavaScriptCore/heap/Handle.h:94:45: note: previous use is here
      template <typename Base, typename T> struct HandleConverter {
                                                  ^
      ../JavaScriptCore/heap/Handle.h:145:46: note: did you mean struct here?
          template <typename A, typename B> friend class HandleConverter;
                                                   ^~~~~
                                                   struct
      In file included from accessibility/AccessibilityObject.cpp:30:
      In file included from accessibility/AccessibilityObject.h:34:
      In file included from editing/VisiblePosition.h:30:
      In file included from dom/Node.h:31:
      In file included from bindings/js/ScriptWrappable.h:34:
      In file included from bindings/js/JSDOMWrapper.h:25:
      In file included from bindings/js/JSDOMGlobalObject.h:30:
      In file included from ../JavaScriptCore/runtime/JSGlobalObject.h:25:
      In file included from ../JavaScriptCore/runtime/JSArray.h:24:
      In file included from ../JavaScriptCore/runtime/JSObject.h:35:
      In file included from ../JavaScriptCore/runtime/ScopeChain.h:25:
      In file included from ../JavaScriptCore/runtime/Structure.h:37:
      ../JavaScriptCore/runtime/JSTypeInfo.h:73:52: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand]
              unsigned isFinal() const { return m_flags2 && (IsJSFinalObject >> 8); }
                                                         ^  ~~~~~~~~~~~~~~~~~~~~~~
      ../JavaScriptCore/runtime/JSTypeInfo.h:73:52: note: use '&' for a bitwise operation
              unsigned isFinal() const { return m_flags2 && (IsJSFinalObject >> 8); }
                                                         ^~
                                                         &
      ../JavaScriptCore/runtime/JSTypeInfo.h:73:52: note: remove constant to silence this warning
              unsigned isFinal() const { return m_flags2 && (IsJSFinalObject >> 8); }
                                                        ~^~~~~~~~~~~~~~~~~~~~~~~~~
      In file included from accessibility/AccessibilityObject.cpp:30:
      In file included from accessibility/AccessibilityObject.h:33:
      In file included from platform/graphics/IntRect.h:30:
      In file included from ../JavaScriptCore/wtf/Vector.h:29:
      In file included from ../JavaScriptCore/wtf/VectorTraits.h:25:
      In file included from ../JavaScriptCore/wtf/RefPtr.h:28:
      ../JavaScriptCore/wtf/PassRefPtr.h:59:16: error: member access into incomplete type 'WebCore::Clipboard'
                  ptr->deref();
                     ^
      ../JavaScriptCore/wtf/RefPtr.h:58:35: note: in instantiation of function template specialization 'WTF::derefIfNotNull<WebCore::Clipboard>' requested here
              ALWAYS_INLINE ~RefPtr() { derefIfNotNull(m_ptr); }
                                        ^
      page/EventHandler.h:229:9: note: in instantiation of member function 'WTF::RefPtr<WebCore::Clipboard>::~RefPtr' requested here
              EventHandlerDragState() { }
              ^
      editing/Editor.h:51:7: note: forward declaration of 'WebCore::Clipboard'
      class Clipboard;
            ^
      In file included from accessibility/AccessibilityObject.cpp:30:
      In file included from accessibility/AccessibilityObject.h:34:
      In file included from editing/VisiblePosition.h:30:
      In file included from dom/Node.h:28:
      In file included from dom/EventTarget.h:35:
      In file included from dom/EventNames.h:25:
      In file included from platform/ThreadGlobalData.h:33:
      In file included from ../JavaScriptCore/wtf/text/StringHash.h:25:
      In file included from ../JavaScriptCore/wtf/text/AtomicString.h:24:
      In file included from ../JavaScriptCore/wtf/text/AtomicStringImpl.h:24:
      In file included from ../JavaScriptCore/wtf/text/StringImpl.h:28:
      In file included from ../JavaScriptCore/wtf/CrossThreadRefCounted.h:36:
      ../JavaScriptCore/wtf/RefCounted.h:141:13: warning: delete called on 'WebCore::Frame' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor]
                  delete static_cast<T*>(this);
                  ^
      ../JavaScriptCore/wtf/PassRefPtr.h:59:18: note: in instantiation of member function 'WTF::RefCounted<WebCore::Frame>::deref' requested here
                  ptr->deref();
                       ^
      ../JavaScriptCore/wtf/RefPtr.h:58:35: note: in instantiation of function template specialization 'WTF::derefIfNotNull<WebCore::Frame>' requested here
              ALWAYS_INLINE ~RefPtr() { derefIfNotNull(m_ptr); }
                                        ^
      page/FrameTree.h:32:9: note: in instantiation of member function 'WTF::RefPtr<WebCore::Frame>::~RefPtr' requested here
              FrameTree(Frame* thisFrame, Frame* parentFrame) 
              ^
      3 warnings and 1 error generated.
      make[2]: *** [.obj/release-static/AccessibilityObject.o] Error 1
      

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

            shausman Simon Hausmann
            nieder Hanspeter Niederstrasser
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes