Skip to content

Instantly share code, notes, and snippets.

@andreastt
Created September 30, 2019 14:43
Show Gist options
  • Save andreastt/a63257cd5fdc65bb863442804412057c to your computer and use it in GitHub Desktop.
Save andreastt/a63257cd5fdc65bb863442804412057c to your computer and use it in GitHub Desktop.
0:07.71 xpcom/build
0:08.46 In file included from /home/ato/src/gecko/xpcom/base/nsCOMPtr.h:30,
0:08.46 from /home/ato/src/gecko/obj-x86_64-pc-linux-gnu/dist/include/mozilla/Services.h:7,
0:08.46 from Services.cpp:4:
0:08.46 Services.cpp: In function ‘void mozilla::services::Shutdown()’:
0:08.46 /home/ato/src/gecko/xpcom/base/nsISupportsUtils.h:94:13: error: invalid use of incomplete type ‘class nsIRemoteAgent’
0:08.46 (_ptr)->Release(); \
0:08.46 ^~
0:08.46 Services.cpp:591:3: note: in expansion of macro ‘NS_IF_RELEASE’
0:08.46 NS_IF_RELEASE(gRemoteAgent);
0:08.46 ^~~~~~~~~~~~~
0:08.46 In file included from Services.cpp:4:
0:08.46 /home/ato/src/gecko/obj-x86_64-pc-linux-gnu/dist/include/mozilla/Services.h:585:7: note: forward declaration of ‘class nsIRemoteAgent’
0:08.46 class nsIRemoteAgent;
0:08.46 ^~~~~~~~~~~~~~
0:08.51 In file included from /home/ato/src/gecko/xpcom/base/nsISupportsBase.h:16,
0:08.51 from /home/ato/src/gecko/xpcom/base/nsISupportsUtils.h:11,
0:08.51 from /home/ato/src/gecko/xpcom/base/nsCOMPtr.h:30,
0:08.51 from /home/ato/src/gecko/obj-x86_64-pc-linux-gnu/dist/include/mozilla/Services.h:7,
0:08.51 from Services.cpp:4:
0:08.51 /home/ato/src/gecko/xpcom/base/nsCOMPtr.h: In instantiation of ‘nsCOMPtr<T>::nsCOMPtr(nsGetServiceByContractID) [with T = nsIRemoteAgent]’:
0:08.51 Services.cpp:554:76: required from here
0:08.51 /home/ato/src/gecko/xpcom/base/nsCOMPtr.h:607:56: error: invalid use of incomplete type ‘class nsIRemoteAgent’
0:08.51 assign_from_gs_contractid(aGS, NS_GET_TEMPLATE_IID(T));
0:08.52 /home/ato/src/gecko/xpcom/base/nsID.h:180:33: note: in definition of macro ‘NS_GET_TEMPLATE_IID’
0:08.52 #define NS_GET_TEMPLATE_IID(T) (T::template COMTypeInfo<T, void>::kIID)
0:08.52 ^
0:08.52 In file included from Services.cpp:4:
0:08.52 /home/ato/src/gecko/obj-x86_64-pc-linux-gnu/dist/include/mozilla/Services.h:585:7: note: forward declaration of ‘class nsIRemoteAgent’
0:08.52 class nsIRemoteAgent;
0:08.52 ^~~~~~~~~~~~~~
0:08.52 In file included from /home/ato/src/gecko/obj-x86_64-pc-linux-gnu/dist/include/mozilla/Services.h:7,
0:08.52 from Services.cpp:4:
0:08.52 /home/ato/src/gecko/xpcom/base/nsCOMPtr.h: In instantiation of ‘void nsCOMPtr<T>::swap(T*&) [with T = nsIRemoteAgent]’:
0:08.52 Services.cpp:555:25: required from here
0:08.52 /home/ato/src/gecko/xpcom/base/nsCOMPtr.h:788:35: error: no matching function for call to ‘ToSupports(nsIRemoteAgent*&)’
0:08.52 nsISupports* temp = ToSupports(aRhs);
0:08.52 ~~~~~~~~~~^~~~~~
0:08.52 In file included from /home/ato/src/gecko/xpcom/base/nsISupportsUtils.h:14,
0:08.52 from /home/ato/src/gecko/xpcom/base/nsCOMPtr.h:30,
0:08.52 from /home/ato/src/gecko/obj-x86_64-pc-linux-gnu/dist/include/mozilla/Services.h:7,
0:08.52 from Services.cpp:4:
0:08.52 /home/ato/src/gecko/xpcom/base/nsISupportsImpl.h:37:21: note: candidate: ‘nsISupports* ToSupports(std::nullptr_t)’
0:08.52 inline nsISupports* ToSupports(decltype(nullptr)) { return nullptr; }
0:08.52 ^~~~~~~~~~
0:08.52 /home/ato/src/gecko/xpcom/base/nsISupportsImpl.h:37:21: note: no known conversion for argument 1 from ‘nsIRemoteAgent*’ to ‘std::nullptr_t’
0:08.52 /home/ato/src/gecko/xpcom/base/nsISupportsImpl.h:39:21: note: candidate: ‘nsISupports* ToSupports(nsISupports*)’
0:08.52 inline nsISupports* ToSupports(nsISupports* aSupports) { return aSupports; }
0:08.52 ^~~~~~~~~~
0:08.52 /home/ato/src/gecko/xpcom/base/nsISupportsImpl.h:39:21: note: no known conversion for argument 1 from ‘nsIRemoteAgent*’ to ‘nsISupports*’
0:08.52 In file included from /home/ato/src/gecko/xpcom/base/nsCOMPtr.h:33,
0:08.52 from /home/ato/src/gecko/obj-x86_64-pc-linux-gnu/dist/include/mozilla/Services.h:7,
0:08.52 from Services.cpp:4:
0:08.52 /home/ato/src/gecko/xpcom/base/nsCycleCollectionNoteChild.h:44:14: note: candidate: ‘template<class T> nsISupports* ToSupports(T*, typename T::cycleCollection*)’
0:08.52 nsISupports* ToSupports(
0:08.52 ^~~~~~~~~~
0:08.52 /home/ato/src/gecko/xpcom/base/nsCycleCollectionNoteChild.h:44:14: note: template argument deduction/substitution failed:
0:08.52 /home/ato/src/gecko/xpcom/base/nsCycleCollectionNoteChild.h: In substitution of ‘template<class T> nsISupports* ToSupports(T*, typename T::cycleCollection*) [with T = nsIRemoteAgent]’:
0:08.52 /home/ato/src/gecko/xpcom/base/nsCOMPtr.h:788:35: required from ‘void nsCOMPtr<T>::swap(T*&) [with T = nsIRemoteAgent]’
0:08.52 Services.cpp:555:25: required from here
0:08.52 /home/ato/src/gecko/xpcom/base/nsCycleCollectionNoteChild.h:44:14: error: invalid use of incomplete type ‘class nsIRemoteAgent’
0:08.52 In file included from Services.cpp:4:
0:08.52 /home/ato/src/gecko/obj-x86_64-pc-linux-gnu/dist/include/mozilla/Services.h:585:7: note: forward declaration of ‘class nsIRemoteAgent’
0:08.52 class nsIRemoteAgent;
0:08.52 ^~~~~~~~~~~~~~
0:08.53 In file included from /home/ato/src/gecko/obj-x86_64-pc-linux-gnu/dist/include/mozilla/Services.h:7,
0:08.53 from Services.cpp:4:
0:08.53 /home/ato/src/gecko/xpcom/base/nsCOMPtr.h: In instantiation of ‘void nsCOMPtr<T>::assert_validity() [with T = nsIRemoteAgent]’:
0:08.53 /home/ato/src/gecko/xpcom/base/nsCOMPtr.h:605:5: required from ‘nsCOMPtr<T>::nsCOMPtr(nsGetServiceByContractID) [with T = nsIRemoteAgent]’
0:08.53 Services.cpp:554:76: required from here
0:08.53 /home/ato/src/gecko/xpcom/base/nsCOMPtr.h:426:21: error: static assertion failed: nsCOMPtr only works for types with IIDs. Either use RefPtr; add an IID to your type with NS_DECLARE_STATIC_IID_ACCESSOR/NS_DEFINE_STATIC_IID_ACCESSOR; or make the nsCOMPtr point to a base class with an IID.
0:08.53 static_assert(1 < sizeof(TestForIID<T>(nullptr)),
0:08.53 ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0:08.55 In file included from /home/ato/src/gecko/xpcom/base/nsISupportsUtils.h:15,
0:08.55 from /home/ato/src/gecko/xpcom/base/nsCOMPtr.h:30,
0:08.55 from /home/ato/src/gecko/obj-x86_64-pc-linux-gnu/dist/include/mozilla/Services.h:7,
0:08.55 from Services.cpp:4:
0:08.55 /home/ato/src/gecko/obj-x86_64-pc-linux-gnu/dist/include/mozilla/RefPtr.h: In instantiation of ‘static void mozilla::RefPtrTraits<U>::AddRef(U*) [with U = nsIRemoteAgent]’:
0:08.55 /home/ato/src/gecko/obj-x86_64-pc-linux-gnu/dist/include/mozilla/RefPtr.h:372:67: required from ‘static void RefPtr<T>::ConstRemovingRefPtrTraits<U>::AddRef(U*) [with U = nsIRemoteAgent; T = nsIRemoteAgent]’
0:08.55 /home/ato/src/gecko/obj-x86_64-pc-linux-gnu/dist/include/mozilla/RefPtr.h:107:43: required from ‘RefPtr<T>::RefPtr(T*) [with T = nsIRemoteAgent]’
0:08.55 /home/ato/src/gecko/obj-x86_64-pc-linux-gnu/dist/include/mozilla/RefPtr.h:548:13: required from ‘already_AddRefed<T> do_AddRef(T*) [with T = nsIRemoteAgent]’
0:08.55 Services.cpp:557:32: required from here
0:08.55 /home/ato/src/gecko/obj-x86_64-pc-linux-gnu/dist/include/mozilla/RefPtr.h:47:39: error: invalid use of incomplete type ‘class nsIRemoteAgent’
0:08.55 static void AddRef(U* aPtr) { aPtr->AddRef(); }
0:08.55 ~~~~~~^~~~~~
0:08.55 In file included from Services.cpp:4:
0:08.55 /home/ato/src/gecko/obj-x86_64-pc-linux-gnu/dist/include/mozilla/Services.h:585:7: note: forward declaration of ‘class nsIRemoteAgent’
0:08.55 class nsIRemoteAgent;
0:08.55 ^~~~~~~~~~~~~~
0:08.55 In file included from /home/ato/src/gecko/xpcom/base/nsISupportsUtils.h:15,
0:08.55 from /home/ato/src/gecko/xpcom/base/nsCOMPtr.h:30,
0:08.55 from /home/ato/src/gecko/obj-x86_64-pc-linux-gnu/dist/include/mozilla/Services.h:7,
0:08.55 from Services.cpp:4:
0:08.55 /home/ato/src/gecko/obj-x86_64-pc-linux-gnu/dist/include/mozilla/RefPtr.h: In instantiation of ‘static void mozilla::RefPtrTraits<U>::Release(U*) [with U = nsIRemoteAgent]’:
0:08.55 /home/ato/src/gecko/obj-x86_64-pc-linux-gnu/dist/include/mozilla/RefPtr.h:373:69: required from ‘static void RefPtr<T>::ConstRemovingRefPtrTraits<U>::Release(U*) [with U = nsIRemoteAgent; T = nsIRemoteAgent]’
0:08.55 /home/ato/src/gecko/obj-x86_64-pc-linux-gnu/dist/include/mozilla/RefPtr.h:79:44: required from ‘RefPtr<T>::~RefPtr() [with T = nsIRemoteAgent]’
0:08.55 /home/ato/src/gecko/obj-x86_64-pc-linux-gnu/dist/include/mozilla/RefPtr.h:548:13: required from ‘already_AddRefed<T> do_AddRef(T*) [with T = nsIRemoteAgent]’
0:08.55 Services.cpp:557:32: required from here
0:08.55 /home/ato/src/gecko/obj-x86_64-pc-linux-gnu/dist/include/mozilla/RefPtr.h:48:40: error: invalid use of incomplete type ‘class nsIRemoteAgent’
0:08.55 static void Release(U* aPtr) { aPtr->Release(); }
0:08.55 ~~~~~~^~~~~~~
0:08.55 In file included from Services.cpp:4:
0:08.55 /home/ato/src/gecko/obj-x86_64-pc-linux-gnu/dist/include/mozilla/Services.h:585:7: note: forward declaration of ‘class nsIRemoteAgent’
0:08.55 class nsIRemoteAgent;
0:08.55 ^~~~~~~~~~~~~~
0:08.58 make[4]: *** [/home/ato/src/gecko/config/rules.mk:787: Services.o] Error 1
0:08.58 make[3]: *** [/home/ato/src/gecko/config/recurse.mk:74: xpcom/build/target-objects] Error 2
0:08.58 make[2]: *** [/home/ato/src/gecko/config/recurse.mk:34: compile] Error 2
0:08.58 make[1]: *** [/home/ato/src/gecko/config/rules.mk:389: default] Error 2
0:08.58 make: *** [client.mk:125: build] Error 2
0:08.58 5 compiler warnings present.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment