Last Comment Bug 708818 - [cairo-qt] Build issue
: [cairo-qt] Build issue
Status: RESOLVED DUPLICATE of bug 703042
:
Product: Core
Classification: Components
Component: Build Config (show other bugs)
: Trunk
: x86_64 Linux
: -- normal (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
: Gregory Szorc [:gps]
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-08 13:24 PST by Félix C. Morency
Modified: 2012-07-09 11:21 PDT (History)
2 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
Error if no arguments is passed to make (ie. without -j6) (18.27 KB, text/plain)
2011-12-08 13:30 PST, Félix C. Morency
no flags Details

Description Félix C. Morency 2011-12-08 13:24:47 PST
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.1 (KHTML, like Gecko) Ubuntu/11.10 Chromium/14.0.835.202 Chrome/14.0.835.202 Safari/535.1

Steps to reproduce:

- hg clone http://hg.mozilla.org/mozilla-central/
- ./configure --enable-default-toolkit=cairo-qt
- make -j6

Ubuntu 11.10 x86_64
Qt v4.7.4
gcc v4.6.1

Always reproducible.



Actual results:

GCC build error:
**********************************************************************
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp: In constructor ‘gfxQtPlatform::gfxQtPlatform()’:
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp:126:14: warning: unused variable ‘rv’ [-Wunused-variable]
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp: In member function ‘virtual nsresult gfxQtPlatform::UpdateFontList()’:
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp:266:37: error: invalid use of incomplete type ‘struct FontFamily’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.h:51:7: error: forward declaration of ‘struct FontFamily’
In file included from ../../dist/include/nsAutoPtr.h:48:0,
                 from /home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxASurface.h:43,
                 from /home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxPlatform.h:49,
                 from /home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.h:42,
                 from /home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp:45:
../../dist/include/nsCOMPtr.h: At global scope:
../../dist/include/nsCOMPtr.h: In instantiation of ‘nsCOMPtr_base::nsDerivedSafe<FontFamily>’:
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp:270:41:   instantiated from here
../../dist/include/nsCOMPtr.h:435:7: error: invalid use of incomplete type ‘struct FontFamily’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.h:51:7: error: forward declaration of ‘struct FontFamily’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp: In member function ‘virtual nsresult gfxQtPlatform::UpdateFontList()’:
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp:270:43: error: ‘class nsCOMPtr_base::nsDerivedSafe<FontFamily>’ has no member named ‘Name’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp:270:49: error: invalid use of incomplete type ‘struct FontEntry’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.h:52:7: error: forward declaration of ‘struct FontEntry’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp:271:13: error: ‘class nsCOMPtr_base::nsDerivedSafe<FontFamily>’ has no member named ‘AddFontEntry’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp:274:15: error: invalid use of incomplete type ‘struct FontEntry’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.h:52:7: error: forward declaration of ‘struct FontEntry’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp:279:15: error: invalid use of incomplete type ‘struct FontEntry’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.h:52:7: error: forward declaration of ‘struct FontEntry’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp:281:15: error: invalid use of incomplete type ‘struct FontEntry’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.h:52:7: error: forward declaration of ‘struct FontEntry’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp:287:19: error: invalid use of incomplete type ‘struct FontEntry’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.h:52:7: error: forward declaration of ‘struct FontEntry’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp:290:19: error: invalid use of incomplete type ‘struct FontEntry’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.h:52:7: error: forward declaration of ‘struct FontEntry’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp:293:19: error: invalid use of incomplete type ‘struct FontEntry’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.h:52:7: error: forward declaration of ‘struct FontEntry’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp:297:19: error: invalid use of incomplete type ‘struct FontEntry’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.h:52:7: error: forward declaration of ‘struct FontEntry’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp:300:19: error: invalid use of incomplete type ‘struct FontEntry’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.h:52:7: error: forward declaration of ‘struct FontEntry’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp:303:19: error: invalid use of incomplete type ‘struct FontEntry’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.h:52:7: error: forward declaration of ‘struct FontEntry’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp:306:19: error: invalid use of incomplete type ‘struct FontEntry’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.h:52:7: error: forward declaration of ‘struct FontEntry’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp:309:19: error: invalid use of incomplete type ‘struct FontEntry’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.h:52:7: error: forward declaration of ‘struct FontEntry’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp:312:19: error: invalid use of incomplete type ‘struct FontEntry’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.h:52:7: error: forward declaration of ‘struct FontEntry’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp:316:19: error: invalid use of incomplete type ‘struct FontEntry’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.h:52:7: error: forward declaration of ‘struct FontEntry’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp:321:11: error: invalid use of incomplete type ‘struct FontEntry’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.h:52:7: error: forward declaration of ‘struct FontEntry’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp:326:19: error: invalid use of incomplete type ‘struct FontEntry’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.h:52:7: error: forward declaration of ‘struct FontEntry’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp: In member function ‘virtual nsresult gfxQtPlatform::ResolveFontName(const nsAString_internal&, gfxPlatform::FontResolverCallback, void*, bool&)’:
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp:360:38: error: ‘class nsCOMPtr_base::nsDerivedSafe<FontFamily>’ has no member named ‘Name’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp: In member function ‘FontEntry* gfxQtPlatform::FindFontEntry(const nsAString_internal&, const gfxFontStyle&)’:
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp:521:16: error: ‘class nsCOMPtr_base::nsDerivedSafe<FontFamily>’ has no member named ‘FindFontEntry’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp: In function ‘PLDHashOperator FindFontForCharProc(nsStringHashKey::KeyType, nsRefPtr<FontFamily>&, void*)’:
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp:530:18: error: ‘class nsCOMPtr_base::nsDerivedSafe<FontFamily>’ has no member named ‘FindFontForChar’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp: In member function ‘already_AddRefed<gfxFont> gfxQtPlatform::FindFontForChar(PRUint32, gfxFont*)’:
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp:552:84: error: invalid static_cast from type ‘gfxFontEntry*’ to type ‘FontEntry*’
In file included from /home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxASurface.h:43:0,
                 from /home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxPlatform.h:49,
                 from /home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.h:42,
                 from /home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp:45:
../../dist/include/nsAutoPtr.h: In destructor ‘nsRefPtr<T>::~nsRefPtr() [with T = FontFamily]’:
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp:264:30:   instantiated from here
../../dist/include/nsAutoPtr.h:907:13: error: invalid use of incomplete type ‘struct FontFamily’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.h:51:7: error: forward declaration of ‘struct FontFamily’
../../dist/include/nsAutoPtr.h: In copy constructor ‘nsRefPtr<T>::nsRefPtr(const nsRefPtr<T>&) [with T = FontFamily]’:
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp:267:40:   instantiated from here
../../dist/include/nsAutoPtr.h:923:13: error: invalid use of incomplete type ‘struct FontFamily’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.h:51:7: error: forward declaration of ‘struct FontFamily’
../../dist/include/nsAutoPtr.h: In constructor ‘nsRefPtr<T>::nsRefPtr(T*) [with T = FontFamily]’:
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp:517:51:   instantiated from here
../../dist/include/nsAutoPtr.h:931:13: error: invalid use of incomplete type ‘struct FontFamily’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.h:51:7: error: forward declaration of ‘struct FontFamily’
../../dist/include/nsAutoPtr.h: In member function ‘void nsRefPtr<T>::assign_with_AddRef(T*) [with T = FontFamily]’:
../../dist/include/nsAutoPtr.h:955:11:   instantiated from ‘nsRefPtr<T>& nsRefPtr<T>::operator=(const nsRefPtr<T>&) [with T = FontFamily]’
../../dist/include/nsBaseHashtable.h:132:7:   instantiated from ‘bool nsBaseHashtable<KeyClass, DataType, UserDataType>::Get(nsBaseHashtable<KeyClass, DataType, UserDataType>::KeyType, UserDataType*) const [with KeyClass = nsStringHashKey, DataType = nsRefPtr<FontFamily>, UserDataType = nsRefPtr<FontFamily>, nsBaseHashtable<KeyClass, DataType, UserDataType>::KeyType = const nsAString_internal&]’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp:265:42:   instantiated from here
../../dist/include/nsAutoPtr.h:878:13: error: invalid use of incomplete type ‘struct FontFamily’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.h:51:7: error: forward declaration of ‘struct FontFamily’
../../dist/include/nsAutoPtr.h: In member function ‘void nsRefPtr<T>::assign_assuming_AddRef(T*) [with T = FontFamily]’:
../../dist/include/nsAutoPtr.h:879:11:   instantiated from ‘void nsRefPtr<T>::assign_with_AddRef(T*) [with T = FontFamily]’
../../dist/include/nsAutoPtr.h:955:11:   instantiated from ‘nsRefPtr<T>& nsRefPtr<T>::operator=(const nsRefPtr<T>&) [with T = FontFamily]’
../../dist/include/nsBaseHashtable.h:132:7:   instantiated from ‘bool nsBaseHashtable<KeyClass, DataType, UserDataType>::Get(nsBaseHashtable<KeyClass, DataType, UserDataType>::KeyType, UserDataType*) const [with KeyClass = nsStringHashKey, DataType = nsRefPtr<FontFamily>, UserDataType = nsRefPtr<FontFamily>, nsBaseHashtable<KeyClass, DataType, UserDataType>::KeyType = const nsAString_internal&]’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp:265:42:   instantiated from here
../../dist/include/nsAutoPtr.h:895:13: error: invalid use of incomplete type ‘struct FontFamily’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.h:51:7: error: forward declaration of ‘struct FontFamily’
../../dist/include/nsAutoPtr.h: In destructor ‘nsRefPtr<T>::~nsRefPtr() [with T = FontEntry]’:
../../dist/include/nsTArray.h:359:5:   instantiated from ‘static void nsTArrayElementTraits<E>::Destruct(E*) [with E = nsRefPtr<FontEntry>]’
../../dist/include/nsTArray.h:1206:7:   instantiated from ‘void nsTArray<E, Alloc>::DestructRange(nsTArray<E, Alloc>::index_type, nsTArray<E, Alloc>::size_type) [with E = nsRefPtr<FontEntry>, Alloc = nsTArrayDefaultAllocator, nsTArray<E, Alloc>::index_type = unsigned int, nsTArray<E, Alloc>::size_type = unsigned int]’
../../dist/include/nsTArray.h:936:5:   instantiated from ‘void nsTArray<E, Alloc>::RemoveElementsAt(nsTArray<E, Alloc>::index_type, nsTArray<E, Alloc>::size_type) [with E = nsRefPtr<FontEntry>, Alloc = nsTArrayDefaultAllocator, nsTArray<E, Alloc>::index_type = unsigned int, nsTArray<E, Alloc>::size_type = unsigned int]’
../../dist/include/nsTArray.h:947:5:   instantiated from ‘void nsTArray<E, Alloc>::Clear() [with E = nsRefPtr<FontEntry>, Alloc = nsTArrayDefaultAllocator]’
../../dist/include/nsTArray.h:459:17:   instantiated from ‘nsTArray<E, Alloc>::~nsTArray() [with E = nsRefPtr<FontEntry>, Alloc = nsTArrayDefaultAllocator]’
../../dist/include/nsBaseHashtable.h:330:3:   instantiated from ‘nsBaseHashtableET<KeyClass, DataType>::~nsBaseHashtableET() [with KeyClass = nsCStringHashKey, DataType = nsTArray<nsRefPtr<FontEntry> >]’
../../dist/include/nsTHashtable.h:409:3:   instantiated from ‘static void nsTHashtable<EntryType>::s_ClearEntry(PLDHashTable*, PLDHashEntryHdr*) [with EntryType = nsBaseHashtableET<nsCStringHashKey, nsTArray<nsRefPtr<FontEntry> > >, PLDHashTable = PLDHashTable, PLDHashEntryHdr = PLDHashEntryHdr]’
../../dist/include/nsTHashtable.h:353:3:   instantiated from ‘bool nsTHashtable<EntryType>::Init(PRUint32) [with EntryType = nsBaseHashtableET<nsCStringHashKey, nsTArray<nsRefPtr<FontEntry> > >, PRUint32 = unsigned int]’
../../dist/include/nsBaseHashtable.h:99:50:   instantiated from ‘bool nsBaseHashtable<KeyClass, DataType, UserDataType>::Init(PRUint32) [with KeyClass = nsCStringHashKey, DataType = nsTArray<nsRefPtr<FontEntry> >, UserDataType = nsTArray<nsRefPtr<FontEntry> >, PRUint32 = unsigned int]’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp:121:25:   instantiated from here
../../dist/include/nsAutoPtr.h:907:13: error: invalid use of incomplete type ‘struct FontEntry’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.h:52:7: error: forward declaration of ‘struct FontEntry’
../../dist/include/nsAutoPtr.h: In copy constructor ‘nsRefPtr<T>::nsRefPtr(const nsRefPtr<T>&) [with T = FontEntry]’:
../../dist/include/nsTArray.h:355:5:   instantiated from ‘static void nsTArrayElementTraits<E>::Construct(E*, const A&) [with A = nsRefPtr<FontEntry>, E = nsRefPtr<FontEntry>]’
../../dist/include/nsTArray.h:1219:7:   instantiated from ‘void nsTArray<E, Alloc>::AssignRange(nsTArray<E, Alloc>::index_type, nsTArray<E, Alloc>::size_type, const Item*) [with Item = nsRefPtr<FontEntry>, E = nsRefPtr<FontEntry>, Alloc = nsTArrayDefaultAllocator, nsTArray<E, Alloc>::index_type = unsigned int, nsTArray<E, Alloc>::size_type = unsigned int]’
../../dist/include/nsTArray.h:875:5:   instantiated from ‘nsTArray<E, Alloc>::elem_type* nsTArray<E, Alloc>::AppendElements(const Item*, nsTArray<E, Alloc>::size_type) [with Item = nsRefPtr<FontEntry>, E = nsRefPtr<FontEntry>, Alloc = nsTArrayDefaultAllocator, nsTArray<E, Alloc>::elem_type = nsRefPtr<FontEntry>, nsTArray<E, Alloc>::size_type = unsigned int]’
../../dist/include/nsTArray.h:883:59:   instantiated from ‘nsTArray<E, Alloc>::elem_type* nsTArray<E, Alloc>::AppendElements(const nsTArray<Item, Allocator>&) [with Item = nsRefPtr<FontEntry>, Allocator = nsTArrayDefaultAllocator, E = nsRefPtr<FontEntry>, Alloc = nsTArrayDefaultAllocator, nsTArray<E, Alloc>::elem_type = nsRefPtr<FontEntry>]’
../../dist/include/nsTArray.h:475:5:   instantiated from ‘nsTArray<E, Alloc>::nsTArray(const self_type&) [with E = nsRefPtr<FontEntry>, Alloc = nsTArrayDefaultAllocator, nsTArray<E, Alloc>::self_type = nsTArray<nsRefPtr<FontEntry> >]’
../../dist/include/nsBaseHashtable.h:325:21:   instantiated from ‘nsBaseHashtableET<KeyClass, DataType>::nsBaseHashtableET(nsBaseHashtableET<KeyClass, DataType>&) [with KeyClass = nsCStringHashKey, DataType = nsTArray<nsRefPtr<FontEntry> >]’
../../dist/include/nsTHashtable.h:399:3:   instantiated from ‘static void nsTHashtable<EntryType>::s_CopyEntry(PLDHashTable*, const PLDHashEntryHdr*, PLDHashEntryHdr*) [with EntryType = nsBaseHashtableET<nsCStringHashKey, nsTArray<nsRefPtr<FontEntry> > >, PLDHashTable = PLDHashTable, PLDHashEntryHdr = PLDHashEntryHdr]’
../../dist/include/nsTHashtable.h:357:5:   instantiated from ‘bool nsTHashtable<EntryType>::Init(PRUint32) [with EntryType = nsBaseHashtableET<nsCStringHashKey, nsTArray<nsRefPtr<FontEntry> > >, PRUint32 = unsigned int]’
../../dist/include/nsBaseHashtable.h:99:50:   instantiated from ‘bool nsBaseHashtable<KeyClass, DataType, UserDataType>::Init(PRUint32) [with KeyClass = nsCStringHashKey, DataType = nsTArray<nsRefPtr<FontEntry> >, UserDataType = nsTArray<nsRefPtr<FontEntry> >, PRUint32 = unsigned int]’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp:121:25:   instantiated from here
../../dist/include/nsAutoPtr.h:923:13: error: invalid use of incomplete type ‘struct FontEntry’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.h:52:7: error: forward declaration of ‘struct FontEntry’
c++ -o gfxPDFSurface.o -c -I../../dist/stl_wrappers -I../../dist/system_wrappers -include ../../config/gcc_hidden.h -DIMPL_THEBES -DWOFF_MOZILLA_CLIENT -DMOZILLA_INTERNAL_API -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES -DSTATIC_EXPORTABLE_JS_API -DOSTYPE=\"Linux3.0\" -DOSARCH=Linux -DEXCLUDE_SKIA_DEPENDENCIES -DOS_LINUX=1 -DOS_POSIX=1 -I../../ipc/chromium/src -I../../ipc/glue -I../../ipc/ipdl/_ipdlheaders  -I. -I. -I../../dist/include -I../../dist/include/nsprpub  -I/home/morency/Documents/dev/mozilla-central/dist/include/nspr -I/home/morency/Documents/dev/mozilla-central/dist/include/nss      -fPIC -fno-rtti -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -Wno-long-long -fno-exceptions -fno-strict-aliasing -std=gnu++0x -pthread -ffunction-sections -fdata-sections -pipe -DDEBUG -D_DEBUG -DTRACING -g3 -Os -freorder-blocks  -fno-omit-frame-pointer -I/home/morency/Documents/dev/mozilla-central/dist/include/cairo -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtOpenGL   -I/usr/include/freetype2    -DMOZILLA_CLIENT -include ../../mozilla-config.h -MD -MF .deps/gfxPDFSurface.pp /home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxPDFSurface.cpp
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp: In member function ‘FontEntry* gfxQtPlatform::FindFontEntry(const nsAString_internal&, const gfxFontStyle&)’:
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp:522:1: error: control reaches end of non-void function [-Werror=return-type]
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp: At global scope:
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp:87:30: warning: ‘cairo_qt_pixmap_key’ defined but not used [-Wunused-variable]
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxQtPlatform.cpp:88:13: warning: ‘void do_qt_pixmap_unref(void*)’ defined but not used [-Wunused-function]
cc1plus: some warnings being treated as errors

make[4]: *** [gfxQtPlatform.o] Error 1
make[4]: *** Waiting for unfinished jobs....
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxFT2Fonts.cpp: In member function ‘void gfxFT2FontGroup::FamilyListToArrayList(const nsString&, nsIAtom*, nsTArray<nsRefPtr<gfxFontEntry> >*)’:
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxFT2Fonts.cpp:222:99: error: conversion from ‘FontEntry*’ to non-scalar type ‘nsRefPtr<gfxFontEntry>’ requested
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxFT2Fonts.cpp: In function ‘PRInt32 GetCJKLangGroupIndex(const char*)’:
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxFT2Fonts.cpp:253:21: error: ‘COUNT_OF_CJK_LANG_GROUP’ was not declared in this scope
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxFT2Fonts.cpp:254:40: error: ‘sCJKLangGroup’ was not declared in this scope
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxFT2Fonts.cpp: In member function ‘void gfxFT2FontGroup::GetCJKPrefFonts(nsTArray<nsRefPtr<gfxFontEntry> >&)’:
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxFT2Fonts.cpp:270:9: error: ‘Preferences’ has not been declared
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxFT2Fonts.cpp:272:34: error: ‘Preferences’ has not been declared
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxFT2Fonts.cpp:292:57: error: ‘sCJKLangGroup’ was not declared in this scope
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxFT2Fonts.cpp: In member function ‘already_AddRefed<gfxFT2Font> gfxFT2FontGroup::WhichFontSupportsChar(const nsTArray<nsRefPtr<gfxFontEntry> >&, PRUint32)’:
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxFT2Fonts.cpp:343:69: error: invalid static_cast from type ‘gfxFontEntry*’ to type ‘FontEntry*’
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxFT2Fonts.cpp: In static member function ‘static already_AddRefed<gfxFT2Font> gfxFT2Font::GetOrMakeFont(const nsAString_internal&, const gfxFontStyle*, bool)’:
/home/morency/Documents/dev/mozilla-central/gfx/thebes/gfxFT2Fonts.cpp:589:74: error: invalid static_cast from type ‘FontEntry*’ to type ‘FT2FontEntry*’
make[4]: *** [gfxFT2Fonts.o] Error 1
make[4]: Leaving directory `/home/morency/Documents/dev/mozilla-central/gfx/thebes'
make[3]: *** [libs] Error 2
make[3]: Leaving directory `/home/morency/Documents/dev/mozilla-central/gfx'
make[2]: *** [libs_tier_platform] Error 2
make[2]: Leaving directory `/home/morency/Documents/dev/mozilla-central'
make[1]: *** [tier_platform] Error 2
make[1]: Leaving directory `/home/morency/Documents/dev/mozilla-central'
make: *** [default] Error 2
morency@morency-Precision-T1600:~/Documents/dev/mozilla-central$ 
**********************************************************************


Expected results:

No build error
Comment 1 Félix C. Morency 2011-12-08 13:30:27 PST
Created attachment 580170 [details]
Error if no arguments is passed to make (ie. without -j6)
Comment 2 Raghavendra Prabhu 2011-12-26 01:49:07 PST
This is not restricted to Qt. I get same with cairo-gtk2 as well -- http://sprunge.us/EIhW -- and gcc 4.6 

I have disabled pango in build. Is this because of that ?
Comment 3 George Wright (:gw280) (:gwright) 2012-07-09 11:21:49 PDT

*** This bug has been marked as a duplicate of bug 703042 ***

Note You need to log in before you can comment on or make changes to this bug.