Closed Bug 853208 Opened 11 years ago Closed 11 years ago

Building with --enable-gstreamer on Gentoo Linux: reference to 'StringPiece' is ambiguous

Categories

(Core :: General, defect)

x86_64
Linux
defect
Not set
blocker

Tracking

()

RESOLVED FIXED
mozilla24

People

(Reporter: alex_y_xu, Assigned: alex_y_xu)

References

Details

Attachments

(1 file, 2 obsolete files)

Building Firefox with dev-libs/icu-49.1.2, Clang 3.2:

36:41.79 In file included from /home/alex/mozilla/layout/build/nsLayoutStatics.cpp:109:
36:41.79 In file included from ../../dist/include/mozilla/dom/ContentParent.h:12:
36:41.79 In file included from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContentParent.h:9:
36:41.79 In file included from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContent.h:14:
36:41.80 In file included from ../../dist/include/ipc/IPCMessageUtils.h:11:
36:41.80 In file included from /home/alex/mozilla/ipc/chromium/src/chrome/common/ipc_message_utils.h:13:
36:41.80 In file included from /home/alex/mozilla/ipc/chromium/src/base/string_util.h:18:
36:41.80 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:157:23: error: reference to 'StringPiece' is ambiguous
36:41.80 bool operator==(const StringPiece& x, const StringPiece& y);
36:41.80                       ^
36:41.80 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:27:7: note: candidate found by name lookup is 'StringPiece'
36:41.80 class StringPiece {
36:41.80       ^
36:41.80 /usr/include/unicode/stringpiece.h:52:20: note: candidate found by name lookup is 'icu_49::StringPiece'
36:41.80 class U_COMMON_API StringPiece : public UMemory {
36:41.80                    ^
<more>
36:41.83 17 errors generated.
36:41.83 
36:41.83 In the directory  /home/alex/mozilla/obj-x86_64-unknown-linux-gnu/layout/build
36:41.83 The following command failed to execute properly:
36:41.83 /usr/bin/ccache clang++ -o nsLayoutStatics.o -c -I../../dist/stl_wrappers -I../../dist/system_wrappers -include /home/alex/mozilla/config/gcc_hidden.h -DMOZ_GLUE_IN_PROGRAM -DXPCOM_TRANSLATE_NSGM_ENTRY_POINT=1 -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 -DNO_NSPR_10_SUPPORT -DEXCLUDE_SKIA_DEPENDENCIES -DOS_POSIX=1 -DOS_LINUX=1 -D_IMPL_NS_LAYOUT -I/home/alex/mozilla/dom/system/unix -I/home/alex/mozilla/layout/build/../inspector/src -I/home/alex/mozilla/ipc/chromium/src -I/home/alex/mozilla/ipc/glue -I../../ipc/ipdl/_ipdlheaders -I/home/alex/mozilla/layout/build/../base -I/home/alex/mozilla/layout/build/../generic -I/home/alex/mozilla/layout/build/../forms -I/home/alex/mozilla/layout/build/../tables -I/home/alex/mozilla/layout/build/../style -I/home/alex/mozilla/layout/build/../xul/base/src -I/home/alex/mozilla/layout/build/../mathml -I/home/alex/mozilla/content/base/src -I/home/alex/mozilla/content/canvas/src -I/home/alex/mozilla/content/html/content/src -I/home/alex/mozilla/content/html/document/src -I/home/alex/mozilla/content/xslt/src/base -I/home/alex/mozilla/content/xslt/src/xml -I/home/alex/mozilla/content/xslt/src/xpath -I/home/alex/mozilla/content/xslt/src/xslt -I/home/alex/mozilla/content/xul/content/src -I/home/alex/mozilla/content/xul/document/src -I/home/alex/mozilla/content/xul/templates/src -I/home/alex/mozilla/content/events/src -I/home/alex/mozilla/content/xbl/src -I/home/alex/mozilla/view/src -I/home/alex/mozilla/dom/base -I/home/alex/mozilla/dom/file -I/home/alex/mozilla/dom/src/json -I/home/alex/mozilla/dom/src/jsurl -I/home/alex/mozilla/dom/src/storage -I/home/alex/mozilla/dom/src/offline -I/home/alex/mozilla/dom/src/geolocation -I/home/alex/mozilla/dom/audiochannel -I/home/alex/mozilla/dom/contacts -I/home/alex/mozilla/dom/settings -I/home/alex/mozilla/dom/permission -I/home/alex/mozilla/dom/telephony -I/home/alex/mozilla/dom/media -I. -I/home/alex/mozilla/editor/libeditor/base -I/home/alex/mozilla/editor/libeditor/text -I/home/alex/mozilla/editor/libeditor/html -I/home/alex/mozilla/editor/txmgr/src -I/home/alex/mozilla/editor/txtsvc/src -I/home/alex/mozilla/editor/composer/src -I/home/alex/mozilla/js/xpconnect/src -I/home/alex/mozilla/js/xpconnect/loader -I/home/alex/mozilla/caps/include -I/home/alex/mozilla/netwerk/base/src -I/home/alex/mozilla/content/svg/content/src -I/home/alex/mozilla/extensions/cookie -I/home/alex/mozilla/netwerk/cookie -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2 -I/home/alex/mozilla/dom/camera -I/home/alex/mozilla/layout/build -I. -I../../dist/include -I/home/alex/mozilla/obj-x86_64-unknown-linux-gnu/dist/include/nspr -I/home/alex/mozilla/obj-x86_64-unknown-linux-gnu/dist/include/nss -fPIC -Qunused-arguments -Qunused-arguments -Wall -Wpointer-arith -Woverloaded-virtual -Werror=return-type -Wtype-limits -Wempty-body -Wsign-compare -Wno-invalid-offsetof -Wno-c++0x-extensions -Wno-extended-offsetof -Wno-unknown-warning-option -Wno-return-type-c-linkage -Wno-mismatched-tags -march=native -O2 -pipe -march=native -fno-exceptions -fno-strict-aliasing -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -g -Os -freorder-blocks -fomit-frame-pointer -Werror -Wno-error=uninitialized -Wno-error=deprecated-declarations -Qunused-arguments -DMOZILLA_CLIENT -include ../../mozilla-config.h -MD -MF .deps/nsLayoutStatics.o.pp /home/alex/mozilla/layout/build/nsLayoutStatics.cpp
Build failure on gcc 4.7.2 and icu 50.1.2:

41:56.19 In file included from /home/alex/mozilla/ipc/chromium/src/base/string_util.h:18:0,
41:56.19                  from /home/alex/mozilla/ipc/chromium/src/chrome/common/ipc_message_utils.h:13,
41:56.19                  from ../../dist/include/ipc/IPCMessageUtils.h:11,
41:56.19                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContent.h:14,
41:56.19                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContentParent.h:9,
41:56.19                  from ../../dist/include/mozilla/dom/ContentParent.h:12,
41:56.19                  from /home/alex/mozilla/layout/build/nsLayoutStatics.cpp:109:
41:56.19 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:157:23: error: reference to 'StringPiece' is ambiguous
41:56.19 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:27:7: error: candidates are: class StringPiece
41:56.19 In file included from /usr/include/unicode/unistr.h:32:0,
41:56.19                  from /usr/include/unicode/strenum.h:14,
41:56.19                  from /usr/include/unicode/uenum.h:24,
41:56.19                  from /usr/include/unicode/ucnv.h:51,
41:56.19                  from /usr/include/libxml2/libxml/encoding.h:31,
41:56.19                  from /usr/include/libxml2/libxml/parser.h:810,
41:56.19                  from /usr/include/gstreamer-0.10/gst/gstconfig.h:200,
41:56.19                  from /usr/include/gstreamer-0.10/gst/gstelement.h:55,
41:56.20                  from /usr/include/gstreamer-0.10/gst/gstbin.h:27,
41:56.20                  from /usr/include/gstreamer-0.10/gst/gst.h:35,
41:56.20                  from ../../dist/system_wrappers/gst/gst.h:3,
41:56.20                  from ../../dist/include/GStreamerFormatHelper.h:10,
41:56.20                  from /home/alex/mozilla/layout/build/nsLayoutStatics.cpp:88:
41:56.20 /usr/include/unicode/stringpiece.h:52:7: error:                 class icu::StringPiece
41:56.20 In file included from /home/alex/mozilla/ipc/chromium/src/base/string_util.h:18:0,
41:56.20                  from /home/alex/mozilla/ipc/chromium/src/chrome/common/ipc_message_utils.h:13,
41:56.20                  from ../../dist/include/ipc/IPCMessageUtils.h:11,
41:56.20                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContent.h:14,
41:56.20                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContentParent.h:9,
41:56.20                  from ../../dist/include/mozilla/dom/ContentParent.h:12,
41:56.20                  from /home/alex/mozilla/layout/build/nsLayoutStatics.cpp:109:
41:56.20 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:157:23: error: 'StringPiece' does not name a type
41:56.20 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:157:36: error: ISO C++ forbids declaration of 'x' with no type [-fpermissive]
41:56.20 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:157:45: error: reference to 'StringPiece' is ambiguous
41:56.20 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:27:7: error: candidates are: class StringPiece
41:56.20 In file included from /usr/include/unicode/unistr.h:32:0,
41:56.20                  from /usr/include/unicode/strenum.h:14,
41:56.20                  from /usr/include/unicode/uenum.h:24,
41:56.20                  from /usr/include/unicode/ucnv.h:51,
41:56.20                  from /usr/include/libxml2/libxml/encoding.h:31,
41:56.20                  from /usr/include/libxml2/libxml/parser.h:810,
41:56.20                  from /usr/include/gstreamer-0.10/gst/gstconfig.h:200,
41:56.20                  from /usr/include/gstreamer-0.10/gst/gstelement.h:55,
41:56.20                  from /usr/include/gstreamer-0.10/gst/gstbin.h:27,
41:56.20                  from /usr/include/gstreamer-0.10/gst/gst.h:35,
41:56.20                  from ../../dist/system_wrappers/gst/gst.h:3,
41:56.20                  from ../../dist/include/GStreamerFormatHelper.h:10,
41:56.20                  from /home/alex/mozilla/layout/build/nsLayoutStatics.cpp:88:
41:56.20 /usr/include/unicode/stringpiece.h:52:7: error:                 class icu::StringPiece
41:56.20 In file included from /home/alex/mozilla/ipc/chromium/src/base/string_util.h:18:0,
41:56.20                  from /home/alex/mozilla/ipc/chromium/src/chrome/common/ipc_message_utils.h:13,
41:56.20                  from ../../dist/include/ipc/IPCMessageUtils.h:11,
41:56.20                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContent.h:14,
41:56.20                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContentParent.h:9,
41:56.20                  from ../../dist/include/mozilla/dom/ContentParent.h:12,
41:56.20                  from /home/alex/mozilla/layout/build/nsLayoutStatics.cpp:109:
41:56.20 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:157:45: error: 'StringPiece' does not name a type
41:56.20 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:157:58: error: ISO C++ forbids declaration of 'y' with no type [-fpermissive]
41:56.20 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:157:59: error: 'bool operator==(const int&, const int&)' must have an argument of class or enumerated type
41:56.20 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:159:30: error: reference to 'StringPiece' is ambiguous
41:56.20 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:27:7: error: candidates are: class StringPiece
41:56.20 In file included from /usr/include/unicode/unistr.h:32:0,
41:56.20                  from /usr/include/unicode/strenum.h:14,
41:56.20                  from /usr/include/unicode/uenum.h:24,
41:56.20                  from /usr/include/unicode/ucnv.h:51,
41:56.20                  from /usr/include/libxml2/libxml/encoding.h:31,
41:56.20                  from /usr/include/libxml2/libxml/parser.h:810,
41:56.20                  from /usr/include/gstreamer-0.10/gst/gstconfig.h:200,
41:56.20                  from /usr/include/gstreamer-0.10/gst/gstelement.h:55,
41:56.20                  from /usr/include/gstreamer-0.10/gst/gstbin.h:27,
41:56.20                  from /usr/include/gstreamer-0.10/gst/gst.h:35,
41:56.20                  from ../../dist/system_wrappers/gst/gst.h:3,
41:56.20                  from ../../dist/include/GStreamerFormatHelper.h:10,
41:56.20                  from /home/alex/mozilla/layout/build/nsLayoutStatics.cpp:88:
41:56.20 /usr/include/unicode/stringpiece.h:52:7: error:                 class icu::StringPiece
41:56.20 In file included from /home/alex/mozilla/ipc/chromium/src/base/string_util.h:18:0,
41:56.20                  from /home/alex/mozilla/ipc/chromium/src/chrome/common/ipc_message_utils.h:13,
41:56.20                  from ../../dist/include/ipc/IPCMessageUtils.h:11,
41:56.20                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContent.h:14,
41:56.20                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContentParent.h:9,
41:56.20                  from ../../dist/include/mozilla/dom/ContentParent.h:12,
41:56.20                  from /home/alex/mozilla/layout/build/nsLayoutStatics.cpp:109:
41:56.20 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:159:30: error: 'StringPiece' does not name a type
41:56.20 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:159:43: error: ISO C++ forbids declaration of 'x' with no type [-fpermissive]
41:56.20 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:159:52: error: reference to 'StringPiece' is ambiguous
41:56.21 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:27:7: error: candidates are: class StringPiece
41:56.21 In file included from /usr/include/unicode/unistr.h:32:0,
41:56.21                  from /usr/include/unicode/strenum.h:14,
41:56.21                  from /usr/include/unicode/uenum.h:24,
41:56.21                  from /usr/include/unicode/ucnv.h:51,
41:56.21                  from /usr/include/libxml2/libxml/encoding.h:31,
41:56.21                  from /usr/include/libxml2/libxml/parser.h:810,
41:56.21                  from /usr/include/gstreamer-0.10/gst/gstconfig.h:200,
41:56.21                  from /usr/include/gstreamer-0.10/gst/gstelement.h:55,
41:56.21                  from /usr/include/gstreamer-0.10/gst/gstbin.h:27,
41:56.21                  from /usr/include/gstreamer-0.10/gst/gst.h:35,
41:56.21                  from ../../dist/system_wrappers/gst/gst.h:3,
41:56.21                  from ../../dist/include/GStreamerFormatHelper.h:10,
41:56.21                  from /home/alex/mozilla/layout/build/nsLayoutStatics.cpp:88:
41:56.21 /usr/include/unicode/stringpiece.h:52:7: error:                 class icu::StringPiece
41:56.21 In file included from /home/alex/mozilla/ipc/chromium/src/base/string_util.h:18:0,
41:56.21                  from /home/alex/mozilla/ipc/chromium/src/chrome/common/ipc_message_utils.h:13,
41:56.21                  from ../../dist/include/ipc/IPCMessageUtils.h:11,
41:56.21                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContent.h:14,
41:56.21                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContentParent.h:9,
41:56.21                  from ../../dist/include/mozilla/dom/ContentParent.h:12,
41:56.21                  from /home/alex/mozilla/layout/build/nsLayoutStatics.cpp:109:
41:56.21 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:159:52: error: 'StringPiece' does not name a type
41:56.21 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:159:65: error: ISO C++ forbids declaration of 'y' with no type [-fpermissive]
41:56.21 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:159:66: error: 'bool operator!=(const int&, const int&)' must have an argument of class or enumerated type
41:56.21 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:163:29: error: reference to 'StringPiece' is ambiguous
41:56.21 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:27:7: error: candidates are: class StringPiece
41:56.21 In file included from /usr/include/unicode/unistr.h:32:0,
41:56.21                  from /usr/include/unicode/strenum.h:14,
41:56.21                  from /usr/include/unicode/uenum.h:24,
41:56.21                  from /usr/include/unicode/ucnv.h:51,
41:56.21                  from /usr/include/libxml2/libxml/encoding.h:31,
41:56.21                  from /usr/include/libxml2/libxml/parser.h:810,
41:56.21                  from /usr/include/gstreamer-0.10/gst/gstconfig.h:200,
41:56.21                  from /usr/include/gstreamer-0.10/gst/gstelement.h:55,
41:56.21                  from /usr/include/gstreamer-0.10/gst/gstbin.h:27,
41:56.21                  from /usr/include/gstreamer-0.10/gst/gst.h:35,
41:56.21                  from ../../dist/system_wrappers/gst/gst.h:3,
41:56.21                  from ../../dist/include/GStreamerFormatHelper.h:10,
41:56.21                  from /home/alex/mozilla/layout/build/nsLayoutStatics.cpp:88:
41:56.21 /usr/include/unicode/stringpiece.h:52:7: error:                 class icu::StringPiece
41:56.21 In file included from /home/alex/mozilla/ipc/chromium/src/base/string_util.h:18:0,
41:56.21                  from /home/alex/mozilla/ipc/chromium/src/chrome/common/ipc_message_utils.h:13,
41:56.21                  from ../../dist/include/ipc/IPCMessageUtils.h:11,
41:56.21                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContent.h:14,
41:56.21                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContentParent.h:9,
41:56.21                  from ../../dist/include/mozilla/dom/ContentParent.h:12,
41:56.21                  from /home/alex/mozilla/layout/build/nsLayoutStatics.cpp:109:
41:56.21 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:163:29: error: 'StringPiece' does not name a type
41:56.21 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:163:42: error: ISO C++ forbids declaration of 'x' with no type [-fpermissive]
41:56.21 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:163:51: error: reference to 'StringPiece' is ambiguous
41:56.21 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:27:7: error: candidates are: class StringPiece
41:56.21 In file included from /usr/include/unicode/unistr.h:32:0,
41:56.21                  from /usr/include/unicode/strenum.h:14,
41:56.21                  from /usr/include/unicode/uenum.h:24,
41:56.21                  from /usr/include/unicode/ucnv.h:51,
41:56.21                  from /usr/include/libxml2/libxml/encoding.h:31,
41:56.21                  from /usr/include/libxml2/libxml/parser.h:810,
41:56.21                  from /usr/include/gstreamer-0.10/gst/gstconfig.h:200,
41:56.21                  from /usr/include/gstreamer-0.10/gst/gstelement.h:55,
41:56.21                  from /usr/include/gstreamer-0.10/gst/gstbin.h:27,
41:56.21                  from /usr/include/gstreamer-0.10/gst/gst.h:35,
41:56.21                  from ../../dist/system_wrappers/gst/gst.h:3,
41:56.21                  from ../../dist/include/GStreamerFormatHelper.h:10,
41:56.21                  from /home/alex/mozilla/layout/build/nsLayoutStatics.cpp:88:
41:56.21 /usr/include/unicode/stringpiece.h:52:7: error:                 class icu::StringPiece
41:56.21 In file included from /home/alex/mozilla/ipc/chromium/src/base/string_util.h:18:0,
41:56.21                  from /home/alex/mozilla/ipc/chromium/src/chrome/common/ipc_message_utils.h:13,
41:56.21                  from ../../dist/include/ipc/IPCMessageUtils.h:11,
41:56.21                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContent.h:14,
41:56.22                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContentParent.h:9,
41:56.22                  from ../../dist/include/mozilla/dom/ContentParent.h:12,
41:56.22                  from /home/alex/mozilla/layout/build/nsLayoutStatics.cpp:109:
41:56.22 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:163:51: error: 'StringPiece' does not name a type
41:56.22 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:163:64: error: ISO C++ forbids declaration of 'y' with no type [-fpermissive]
41:56.22 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:163:65: error: 'bool operator<(const int&, const int&)' must have an argument of class or enumerated type
41:56.22 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:169:29: error: reference to 'StringPiece' is ambiguous
41:56.22 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:27:7: error: candidates are: class StringPiece
41:56.22 In file included from /usr/include/unicode/unistr.h:32:0,
41:56.22                  from /usr/include/unicode/strenum.h:14,
41:56.22                  from /usr/include/unicode/uenum.h:24,
41:56.22                  from /usr/include/unicode/ucnv.h:51,
41:56.22                  from /usr/include/libxml2/libxml/encoding.h:31,
41:56.22                  from /usr/include/libxml2/libxml/parser.h:810,
41:56.22                  from /usr/include/gstreamer-0.10/gst/gstconfig.h:200,
41:56.22                  from /usr/include/gstreamer-0.10/gst/gstelement.h:55,
41:56.22                  from /usr/include/gstreamer-0.10/gst/gstbin.h:27,
41:56.22                  from /usr/include/gstreamer-0.10/gst/gst.h:35,
41:56.22                  from ../../dist/system_wrappers/gst/gst.h:3,
41:56.22                  from ../../dist/include/GStreamerFormatHelper.h:10,
41:56.22                  from /home/alex/mozilla/layout/build/nsLayoutStatics.cpp:88:
41:56.22 /usr/include/unicode/stringpiece.h:52:7: error:                 class icu::StringPiece
41:56.22 In file included from /home/alex/mozilla/ipc/chromium/src/base/string_util.h:18:0,
41:56.22                  from /home/alex/mozilla/ipc/chromium/src/chrome/common/ipc_message_utils.h:13,
41:56.22                  from ../../dist/include/ipc/IPCMessageUtils.h:11,
41:56.22                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContent.h:14,
41:56.22                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContentParent.h:9,
41:56.22                  from ../../dist/include/mozilla/dom/ContentParent.h:12,
41:56.22                  from /home/alex/mozilla/layout/build/nsLayoutStatics.cpp:109:
41:56.22 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:169:29: error: 'StringPiece' does not name a type
41:56.22 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:169:42: error: ISO C++ forbids declaration of 'x' with no type [-fpermissive]
41:56.22 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:169:51: error: reference to 'StringPiece' is ambiguous
41:56.22 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:27:7: error: candidates are: class StringPiece
41:56.22 In file included from /usr/include/unicode/unistr.h:32:0,
41:56.22                  from /usr/include/unicode/strenum.h:14,
41:56.22                  from /usr/include/unicode/uenum.h:24,
41:56.22                  from /usr/include/unicode/ucnv.h:51,
41:56.22                  from /usr/include/libxml2/libxml/encoding.h:31,
41:56.22                  from /usr/include/libxml2/libxml/parser.h:810,
41:56.22                  from /usr/include/gstreamer-0.10/gst/gstconfig.h:200,
41:56.22                  from /usr/include/gstreamer-0.10/gst/gstelement.h:55,
41:56.22                  from /usr/include/gstreamer-0.10/gst/gstbin.h:27,
41:56.22                  from /usr/include/gstreamer-0.10/gst/gst.h:35,
41:56.22                  from ../../dist/system_wrappers/gst/gst.h:3,
41:56.22                  from ../../dist/include/GStreamerFormatHelper.h:10,
41:56.22                  from /home/alex/mozilla/layout/build/nsLayoutStatics.cpp:88:
41:56.22 /usr/include/unicode/stringpiece.h:52:7: error:                 class icu::StringPiece
41:56.22 In file included from /home/alex/mozilla/ipc/chromium/src/base/string_util.h:18:0,
41:56.22                  from /home/alex/mozilla/ipc/chromium/src/chrome/common/ipc_message_utils.h:13,
41:56.22                  from ../../dist/include/ipc/IPCMessageUtils.h:11,
41:56.22                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContent.h:14,
41:56.22                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContentParent.h:9,
41:56.22                  from ../../dist/include/mozilla/dom/ContentParent.h:12,
41:56.22                  from /home/alex/mozilla/layout/build/nsLayoutStatics.cpp:109:
41:56.22 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:169:51: error: 'StringPiece' does not name a type
41:56.22 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:169:64: error: ISO C++ forbids declaration of 'y' with no type [-fpermissive]
41:56.22 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:169:65: error: 'bool operator>(const int&, const int&)' must have an argument of class or enumerated type
41:56.22 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:173:30: error: reference to 'StringPiece' is ambiguous
41:56.22 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:27:7: error: candidates are: class StringPiece
41:56.22 In file included from /usr/include/unicode/unistr.h:32:0,
41:56.22                  from /usr/include/unicode/strenum.h:14,
41:56.22                  from /usr/include/unicode/uenum.h:24,
41:56.22                  from /usr/include/unicode/ucnv.h:51,
41:56.22                  from /usr/include/libxml2/libxml/encoding.h:31,
41:56.22                  from /usr/include/libxml2/libxml/parser.h:810,
41:56.22                  from /usr/include/gstreamer-0.10/gst/gstconfig.h:200,
41:56.23                  from /usr/include/gstreamer-0.10/gst/gstelement.h:55,
41:56.23                  from /usr/include/gstreamer-0.10/gst/gstbin.h:27,
41:56.23                  from /usr/include/gstreamer-0.10/gst/gst.h:35,
41:56.23                  from ../../dist/system_wrappers/gst/gst.h:3,
41:56.23                  from ../../dist/include/GStreamerFormatHelper.h:10,
41:56.23                  from /home/alex/mozilla/layout/build/nsLayoutStatics.cpp:88:
41:56.23 /usr/include/unicode/stringpiece.h:52:7: error:                 class icu::StringPiece
41:56.23 In file included from /home/alex/mozilla/ipc/chromium/src/base/string_util.h:18:0,
41:56.23                  from /home/alex/mozilla/ipc/chromium/src/chrome/common/ipc_message_utils.h:13,
41:56.23                  from ../../dist/include/ipc/IPCMessageUtils.h:11,
41:56.23                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContent.h:14,
41:56.23                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContentParent.h:9,
41:56.23                  from ../../dist/include/mozilla/dom/ContentParent.h:12,
41:56.23                  from /home/alex/mozilla/layout/build/nsLayoutStatics.cpp:109:
41:56.23 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:173:30: error: 'StringPiece' does not name a type
41:56.23 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:173:43: error: ISO C++ forbids declaration of 'x' with no type [-fpermissive]
41:56.23 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:173:52: error: reference to 'StringPiece' is ambiguous
41:56.23 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:27:7: error: candidates are: class StringPiece
41:56.23 In file included from /usr/include/unicode/unistr.h:32:0,
41:56.23                  from /usr/include/unicode/strenum.h:14,
41:56.23                  from /usr/include/unicode/uenum.h:24,
41:56.23                  from /usr/include/unicode/ucnv.h:51,
41:56.23                  from /usr/include/libxml2/libxml/encoding.h:31,
41:56.23                  from /usr/include/libxml2/libxml/parser.h:810,
41:56.23                  from /usr/include/gstreamer-0.10/gst/gstconfig.h:200,
41:56.23                  from /usr/include/gstreamer-0.10/gst/gstelement.h:55,
41:56.23                  from /usr/include/gstreamer-0.10/gst/gstbin.h:27,
41:56.23                  from /usr/include/gstreamer-0.10/gst/gst.h:35,
41:56.23                  from ../../dist/system_wrappers/gst/gst.h:3,
41:56.23                  from ../../dist/include/GStreamerFormatHelper.h:10,
41:56.23                  from /home/alex/mozilla/layout/build/nsLayoutStatics.cpp:88:
41:56.23 /usr/include/unicode/stringpiece.h:52:7: error:                 class icu::StringPiece
41:56.23 In file included from /home/alex/mozilla/ipc/chromium/src/base/string_util.h:18:0,
41:56.23                  from /home/alex/mozilla/ipc/chromium/src/chrome/common/ipc_message_utils.h:13,
41:56.23                  from ../../dist/include/ipc/IPCMessageUtils.h:11,
41:56.23                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContent.h:14,
41:56.23                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContentParent.h:9,
41:56.23                  from ../../dist/include/mozilla/dom/ContentParent.h:12,
41:56.23                  from /home/alex/mozilla/layout/build/nsLayoutStatics.cpp:109:
41:56.23 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:173:52: error: 'StringPiece' does not name a type
41:56.23 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:173:65: error: ISO C++ forbids declaration of 'y' with no type [-fpermissive]
41:56.23 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:173:66: error: 'bool operator<=(const int&, const int&)' must have an argument of class or enumerated type
41:56.23 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:177:30: error: reference to 'StringPiece' is ambiguous
41:56.23 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:27:7: error: candidates are: class StringPiece
41:56.23 In file included from /usr/include/unicode/unistr.h:32:0,
41:56.23                  from /usr/include/unicode/strenum.h:14,
41:56.23                  from /usr/include/unicode/uenum.h:24,
41:56.23                  from /usr/include/unicode/ucnv.h:51,
41:56.23                  from /usr/include/libxml2/libxml/encoding.h:31,
41:56.23                  from /usr/include/libxml2/libxml/parser.h:810,
41:56.23                  from /usr/include/gstreamer-0.10/gst/gstconfig.h:200,
41:56.23                  from /usr/include/gstreamer-0.10/gst/gstelement.h:55,
41:56.23                  from /usr/include/gstreamer-0.10/gst/gstbin.h:27,
41:56.23                  from /usr/include/gstreamer-0.10/gst/gst.h:35,
41:56.23                  from ../../dist/system_wrappers/gst/gst.h:3,
41:56.23                  from ../../dist/include/GStreamerFormatHelper.h:10,
41:56.23                  from /home/alex/mozilla/layout/build/nsLayoutStatics.cpp:88:
41:56.23 /usr/include/unicode/stringpiece.h:52:7: error:                 class icu::StringPiece
41:56.23 In file included from /home/alex/mozilla/ipc/chromium/src/base/string_util.h:18:0,
41:56.23                  from /home/alex/mozilla/ipc/chromium/src/chrome/common/ipc_message_utils.h:13,
41:56.23                  from ../../dist/include/ipc/IPCMessageUtils.h:11,
41:56.23                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContent.h:14,
41:56.23                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContentParent.h:9,
41:56.23                  from ../../dist/include/mozilla/dom/ContentParent.h:12,
41:56.24                  from /home/alex/mozilla/layout/build/nsLayoutStatics.cpp:109:
41:56.24 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:177:30: error: 'StringPiece' does not name a type
41:56.24 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:177:43: error: ISO C++ forbids declaration of 'x' with no type [-fpermissive]
41:56.24 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:177:52: error: reference to 'StringPiece' is ambiguous
41:56.24 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:27:7: error: candidates are: class StringPiece
41:56.24 In file included from /usr/include/unicode/unistr.h:32:0,
41:56.24                  from /usr/include/unicode/strenum.h:14,
41:56.24                  from /usr/include/unicode/uenum.h:24,
41:56.24                  from /usr/include/unicode/ucnv.h:51,
41:56.24                  from /usr/include/libxml2/libxml/encoding.h:31,
41:56.24                  from /usr/include/libxml2/libxml/parser.h:810,
41:56.24                  from /usr/include/gstreamer-0.10/gst/gstconfig.h:200,
41:56.24                  from /usr/include/gstreamer-0.10/gst/gstelement.h:55,
41:56.24                  from /usr/include/gstreamer-0.10/gst/gstbin.h:27,
41:56.24                  from /usr/include/gstreamer-0.10/gst/gst.h:35,
41:56.24                  from ../../dist/system_wrappers/gst/gst.h:3,
41:56.24                  from ../../dist/include/GStreamerFormatHelper.h:10,
41:56.24                  from /home/alex/mozilla/layout/build/nsLayoutStatics.cpp:88:
41:56.24 /usr/include/unicode/stringpiece.h:52:7: error:                 class icu::StringPiece
41:56.24 In file included from /home/alex/mozilla/ipc/chromium/src/base/string_util.h:18:0,
41:56.24                  from /home/alex/mozilla/ipc/chromium/src/chrome/common/ipc_message_utils.h:13,
41:56.24                  from ../../dist/include/ipc/IPCMessageUtils.h:11,
41:56.24                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContent.h:14,
41:56.24                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContentParent.h:9,
41:56.24                  from ../../dist/include/mozilla/dom/ContentParent.h:12,
41:56.24                  from /home/alex/mozilla/layout/build/nsLayoutStatics.cpp:109:
41:56.24 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:177:52: error: 'StringPiece' does not name a type
41:56.24 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:177:65: error: ISO C++ forbids declaration of 'y' with no type [-fpermissive]
41:56.24 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:177:66: error: 'bool operator>=(const int&, const int&)' must have an argument of class or enumerated type
41:56.24 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:182:56: error: reference to 'StringPiece' is ambiguous
41:56.24 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:27:7: error: candidates are: class StringPiece
41:56.24 In file included from /usr/include/unicode/unistr.h:32:0,
41:56.24                  from /usr/include/unicode/strenum.h:14,
41:56.24                  from /usr/include/unicode/uenum.h:24,
41:56.24                  from /usr/include/unicode/ucnv.h:51,
41:56.24                  from /usr/include/libxml2/libxml/encoding.h:31,
41:56.24                  from /usr/include/libxml2/libxml/parser.h:810,
41:56.24                  from /usr/include/gstreamer-0.10/gst/gstconfig.h:200,
41:56.24                  from /usr/include/gstreamer-0.10/gst/gstelement.h:55,
41:56.24                  from /usr/include/gstreamer-0.10/gst/gstbin.h:27,
41:56.24                  from /usr/include/gstreamer-0.10/gst/gst.h:35,
41:56.24                  from ../../dist/system_wrappers/gst/gst.h:3,
41:56.24                  from ../../dist/include/GStreamerFormatHelper.h:10,
41:56.24                  from /home/alex/mozilla/layout/build/nsLayoutStatics.cpp:88:
41:56.24 /usr/include/unicode/stringpiece.h:52:7: error:                 class icu::StringPiece
41:56.24 In file included from /home/alex/mozilla/ipc/chromium/src/base/string_util.h:18:0,
41:56.24                  from /home/alex/mozilla/ipc/chromium/src/chrome/common/ipc_message_utils.h:13,
41:56.24                  from ../../dist/include/ipc/IPCMessageUtils.h:11,
41:56.24                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContent.h:14,
41:56.24                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContentParent.h:9,
41:56.24                  from ../../dist/include/mozilla/dom/ContentParent.h:12,
41:56.24                  from /home/alex/mozilla/layout/build/nsLayoutStatics.cpp:109:
41:56.24 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:182:56: error: 'StringPiece' does not name a type
41:56.24 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:182:69: error: ISO C++ forbids declaration of 'piece' with no type [-fpermissive]
41:56.24 In file included from /home/alex/mozilla/ipc/chromium/src/chrome/common/ipc_message_utils.h:13:0,
41:56.24                  from ../../dist/include/ipc/IPCMessageUtils.h:11,
41:56.24                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContent.h:14,
41:56.24                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContentParent.h:9,
41:56.24                  from ../../dist/include/mozilla/dom/ContentParent.h:12,
41:56.24                  from /home/alex/mozilla/layout/build/nsLayoutStatics.cpp:109:
41:56.24 /home/alex/mozilla/ipc/chromium/src/base/string_util.h:193:31: error: reference to 'StringPiece' is ambiguous
41:56.24 In file included from /home/alex/mozilla/ipc/chromium/src/base/string_util.h:18:0,
41:56.24                  from /home/alex/mozilla/ipc/chromium/src/chrome/common/ipc_message_utils.h:13,
41:56.24                  from ../../dist/include/ipc/IPCMessageUtils.h:11,
41:56.24                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContent.h:14,
41:56.24                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContentParent.h:9,
41:56.24                  from ../../dist/include/mozilla/dom/ContentParent.h:12,
41:56.24                  from /home/alex/mozilla/layout/build/nsLayoutStatics.cpp:109:
41:56.24 /home/alex/mozilla/ipc/chromium/src/base/string_piece.h:27:7: error: candidates are: class StringPiece
41:56.24 In file included from /usr/include/unicode/unistr.h:32:0,
41:56.25                  from /usr/include/unicode/strenum.h:14,
41:56.25                  from /usr/include/unicode/uenum.h:24,
41:56.25                  from /usr/include/unicode/ucnv.h:51,
41:56.25                  from /usr/include/libxml2/libxml/encoding.h:31,
41:56.25                  from /usr/include/libxml2/libxml/parser.h:810,
41:56.25                  from /usr/include/gstreamer-0.10/gst/gstconfig.h:200,
41:56.25                  from /usr/include/gstreamer-0.10/gst/gstelement.h:55,
41:56.25                  from /usr/include/gstreamer-0.10/gst/gstbin.h:27,
41:56.25                  from /usr/include/gstreamer-0.10/gst/gst.h:35,
41:56.25                  from ../../dist/system_wrappers/gst/gst.h:3,
41:56.25                  from ../../dist/include/GStreamerFormatHelper.h:10,
41:56.25                  from /home/alex/mozilla/layout/build/nsLayoutStatics.cpp:88:
41:56.25 /usr/include/unicode/stringpiece.h:52:7: error:                 class icu::StringPiece
41:56.25 In file included from /home/alex/mozilla/ipc/chromium/src/chrome/common/ipc_message_utils.h:13:0,
41:56.25                  from ../../dist/include/ipc/IPCMessageUtils.h:11,
41:56.25                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContent.h:14,
41:56.25                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContentParent.h:9,
41:56.25                  from ../../dist/include/mozilla/dom/ContentParent.h:12,
41:56.25                  from /home/alex/mozilla/layout/build/nsLayoutStatics.cpp:109:
41:56.29 /home/alex/mozilla/ipc/chromium/src/base/string_util.h:193:31: error: 'StringPiece' does not name a type
41:56.29 /home/alex/mozilla/ipc/chromium/src/base/string_util.h:193:44: error: ISO C++ forbids declaration of 'utf8' with no type [-fpermissive]
41:56.29 In file included from ../../dist/include/ipc/IPCMessageUtils.h:11:0,
41:56.29                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContent.h:14,
41:56.29                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContentParent.h:9,
41:56.29                  from ../../dist/include/mozilla/dom/ContentParent.h:12,
41:56.29                  from /home/alex/mozilla/layout/build/nsLayoutStatics.cpp:109:
41:56.29 /home/alex/mozilla/ipc/chromium/src/chrome/common/ipc_message_utils.h: In static member function 'static void IPC::ParamTraitsStd<std::basic_string<char> >::Log(const param_type&, std::wstring*)':
41:56.29 /home/alex/mozilla/ipc/chromium/src/chrome/common/ipc_message_utils.h:369:27: error: no matching function for call to 'UTF8ToWide(const param_type&)'
41:56.29 /home/alex/mozilla/ipc/chromium/src/chrome/common/ipc_message_utils.h:369:27: note: candidates are:
41:56.29 In file included from /home/alex/mozilla/ipc/chromium/src/chrome/common/ipc_message_utils.h:13:0,
41:56.29                  from ../../dist/include/ipc/IPCMessageUtils.h:11,
41:56.29                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContent.h:14,
41:56.29                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContentParent.h:9,
41:56.29                  from ../../dist/include/mozilla/dom/ContentParent.h:12,
41:56.29                  from /home/alex/mozilla/layout/build/nsLayoutStatics.cpp:109:
41:56.29 /home/alex/mozilla/ipc/chromium/src/base/string_util.h:192:6: note: bool UTF8ToWide(const char*, size_t, std::wstring*)
41:56.29 /home/alex/mozilla/ipc/chromium/src/base/string_util.h:192:6: note:   candidate expects 3 arguments, 1 provided
41:56.29 /home/alex/mozilla/ipc/chromium/src/base/string_util.h:193:14: note: std::wstring UTF8ToWide(const int&)
41:56.29 /home/alex/mozilla/ipc/chromium/src/base/string_util.h:193:14: note:   no known conversion for argument 1 from 'const param_type {aka const std::basic_string<char>}' to 'const int&'
41:56.29 In file included from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContent.h:14:0,
41:56.29                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContentParent.h:9,
41:56.29                  from ../../dist/include/mozilla/dom/ContentParent.h:12,
41:56.29                  from /home/alex/mozilla/layout/build/nsLayoutStatics.cpp:109:
41:56.29 ../../dist/include/ipc/IPCMessageUtils.h: In static member function 'static void IPC::ParamTraits<nsACString_internal>::Log(const paramType&, std::wstring*)':
41:56.29 ../../dist/include/ipc/IPCMessageUtils.h:265:52: error: invalid conversion from 'nsACString_internal::const_char_iterator {aka const char*}' to 'int' [-fpermissive]
41:56.29 In file included from /home/alex/mozilla/ipc/chromium/src/chrome/common/ipc_message_utils.h:13:0,
41:56.29                  from ../../dist/include/ipc/IPCMessageUtils.h:11,
41:56.29                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContent.h:14,
41:56.29                  from ../../ipc/ipdl/_ipdlheaders/mozilla/dom/PContentParent.h:9,
41:56.29                  from ../../dist/include/mozilla/dom/ContentParent.h:12,
41:56.29                  from /home/alex/mozilla/layout/build/nsLayoutStatics.cpp:109:
41:56.29 /home/alex/mozilla/ipc/chromium/src/base/string_util.h:193:14: error:   initializing argument 1 of 'std::wstring UTF8ToWide(const int&)' [-fpermissive]
41:56.29 
41:56.45 In the directory  /home/alex/mozilla/obj-x86_64-unknown-linux-gnu/layout/build
41:56.45 The following command failed to execute properly:
41:56.45 /usr/bin/ccache g++ -o nsLayoutStatics.o -c -I../../dist/stl_wrappers -I../../dist/system_wrappers -include /home/alex/mozilla/config/gcc_hidden.h -DMOZ_GLUE_IN_PROGRAM -DXPCOM_TRANSLATE_NSGM_ENTRY_POINT=1 -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 -DNO_NSPR_10_SUPPORT -DEXCLUDE_SKIA_DEPENDENCIES -DOS_POSIX=1 -DOS_LINUX=1 -D_IMPL_NS_LAYOUT -I/home/alex/mozilla/dom/system/unix -I/home/alex/mozilla/layout/build/../inspector/src -I/home/alex/mozilla/ipc/chromium/src -I/home/alex/mozilla/ipc/glue -I../../ipc/ipdl/_ipdlheaders -I/home/alex/mozilla/layout/build/../base -I/home/alex/mozilla/layout/build/../generic -I/home/alex/mozilla/layout/build/../forms -I/home/alex/mozilla/layout/build/../tables -I/home/alex/mozilla/layout/build/../style -I/home/alex/mozilla/layout/build/../xul/base/src -I/home/alex/mozilla/layout/build/../mathml -I/home/alex/mozilla/content/base/src -I/home/alex/mozilla/content/canvas/src -I/home/alex/mozilla/content/html/content/src -I/home/alex/mozilla/content/html/document/src -I/home/alex/mozilla/content/xslt/src/base -I/home/alex/mozilla/content/xslt/src/xml -I/home/alex/mozilla/content/xslt/src/xpath -I/home/alex/mozilla/content/xslt/src/xslt -I/home/alex/mozilla/content/xul/content/src -I/home/alex/mozilla/content/xul/document/src -I/home/alex/mozilla/content/xul/templates/src -I/home/alex/mozilla/content/events/src -I/home/alex/mozilla/content/xbl/src -I/home/alex/mozilla/view/src -I/home/alex/mozilla/dom/base -I/home/alex/mozilla/dom/file -I/home/alex/mozilla/dom/src/json -I/home/alex/mozilla/dom/src/jsurl -I/home/alex/mozilla/dom/src/storage -I/home/alex/mozilla/dom/src/offline -I/home/alex/mozilla/dom/src/geolocation -I/home/alex/mozilla/dom/audiochannel -I/home/alex/mozilla/dom/contacts -I/home/alex/mozilla/dom/settings -I/home/alex/mozilla/dom/permission -I/home/alex/mozilla/dom/telephony -I/home/alex/mozilla/dom/media -I. -I/home/alex/mozilla/editor/libeditor/base -I/home/alex/mozilla/editor/libeditor/text -I/home/alex/mozilla/editor/libeditor/html -I/home/alex/mozilla/editor/txmgr/src -I/home/alex/mozilla/editor/txtsvc/src -I/home/alex/mozilla/editor/composer/src -I/home/alex/mozilla/js/xpconnect/src -I/home/alex/mozilla/js/xpconnect/loader -I/home/alex/mozilla/caps/include -I/home/alex/mozilla/netwerk/base/src -I/home/alex/mozilla/content/svg/content/src -I/home/alex/mozilla/extensions/cookie -I/home/alex/mozilla/netwerk/cookie -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2 -I/home/alex/mozilla/dom/camera -I/home/alex/mozilla/layout/build -I. -I../../dist/include -I/home/alex/mozilla/obj-x86_64-unknown-linux-gnu/dist/include/nspr -I/home/alex/mozilla/obj-x86_64-unknown-linux-gnu/dist/include/nss -fPIC -Wall -Wpointer-arith -Woverloaded-virtual -Werror=return-type -Wtype-limits -Wempty-body -Wsign-compare -Wno-invalid-offsetof -Wcast-align -O2 -pipe -march=native -march=native -fno-exceptions -fno-strict-aliasing -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -std=gnu++0x -pthread -pipe -DNDEBUG -DTRIMMED -g -Os -freorder-blocks -fomit-frame-pointer -DMOZILLA_CLIENT -include ../../mozilla-config.h -MD -MF .deps/nsLayoutStatics.o.pp /home/alex/mozilla/layout/build/nsLayoutStatics.cpp
Severity: normal → blocker
Summary: Build failure: error: reference to 'StringPiece' is ambiguous → Build failure: nsLayoutStatics.cpp: reference to 'StringPiece' is ambiguous
Summary: Build failure: nsLayoutStatics.cpp: reference to 'StringPiece' is ambiguous → mozilla-central busted (for me): nsLayoutStatics.cpp: reference to 'StringPiece' is ambiguous
Reverting back to first 01 Mar commit (before problems started) did not fix the problem.
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
Using media-libs/gstreamer-0.10.36, dev-libs/icu-49.1.2, gcc 4.7.2, clang 3.2.

I haven't tried building with only --enable-gstreamer though.
Status: RESOLVED → UNCONFIRMED
Component: General → DOM
Resolution: INVALID → ---
Summary: mozilla-central busted (for me): nsLayoutStatics.cpp: reference to 'StringPiece' is ambiguous → Building with --enable-gstreamer on Gentoo Linux: reference to 'StringPiece' is ambiguous
Component: DOM → General
mozilla/ipc/chromium/src/base/string_piece.h:27:7: class StringPiece
/usr/include/unicode/stringpiece.h:52:7: class icu::StringPiece

The problem is that "using namecpace icu" is defined in the ICU header files:
unicode/uversion.h:
#   define U_NAMESPACE_USE using namespace U_ICU_NAMESPACE;
...
#   if U_USING_ICU_NAMESPACE
        U_NAMESPACE_USE
#   endif

The ICU recommended build options (http://source.icu-project.org/repos/icu/icu/trunk/readme.html#RecBuild) suggest turning this off with -DU_USING_ICU_NAMESPACE=0. I tried this using mozconfig and firefox builds and runs correctly.
Blocks: 794282
Status: UNCONFIRMED → NEW
Ever confirmed: true
Blocks: 724533
I don't think this relates to bug 724533 - the changes there
- only use ICU when building the JavaScript engine
- use ICU headers included in the Mozilla repository, not system ICU headers
- set U_USING_ICU_NAMESPACE to 0
Yeah, comment 5's right on.  Why are you building "with dev-libs/icu-49.1.2" and expecting it to work?  Don't do that!
Except I'm not enabling ICU, AFAIK.

export CC="clang"
export CXX="clang++"
export CFLAGS="$CFLAGS -g -DU_USING_ICU_NAMESPACE=0"
export CXXFLAGS="$CXXFLAGS -g -DU_USING_ICU_NAMESPACE=0"

ac_add_options --enable-application=browser

ac_add_options --enable-optimize="-O2"

ac_add_options --with-ccache

ac_add_options --enable-gstreamer

ac_add_options --with-arch=native

ac_add_options --enable-official-branding

ac_add_options --disable-gio
ac_add_options --disable-gconf
ac_add_options --disable-accessibility
ac_add_options --disable-parental-controls
ac_add_options --disable-safe-browsing

ac_add_options --enable-debug-symbols
ac_add_options --disable-install-strip

export MOZ_TELEMETRY_REPORTING=1

ac_add_options --enable-warnings-as-errors
Whoops, that was after the change from comment 4.

Real mozconfig with comments removed:


export CC="clang -g"
export CXX="clang++ -g"

ac_add_options --enable-application=browser

ac_add_options --enable-optimize="-O2"

ac_add_options --with-ccache

ac_add_options --enable-gstreamer

ac_add_options --with-arch=native

ac_add_options --enable-official-branding

ac_add_options --disable-gio
ac_add_options --disable-gconf
ac_add_options --disable-accessibility
ac_add_options --disable-parental-controls
ac_add_options --disable-safe-browsing

ac_add_options --enable-debug-symbols
ac_add_options --disable-install-strip

export MOZ_TELEMETRY_REPORTING=1

ac_add_options --enable-warnings-as-errors
Building with C{,XX}FLAGS+="-DU_USING_ICU_NAMESPACE=0" successfully builds.
$ grep -v "^#" .mozconfig
export CC="clang"
export CXX="clang++"
export CFLAGS="${CFLAGS} -DU_USING_ICU_NAMESPACE=0"
export CXXFLAGS="${CXXFLAGS} -DU_USING_ICU_NAMESPACE=0"

ac_add_options --enable-application=browser

ac_add_options --enable-optimize="-O2"

ac_add_options --with-ccache

ac_add_options --enable-gstreamer

ac_add_options --with-arch=native

ac_add_options --enable-official-branding

ac_add_options --disable-gio
ac_add_options --disable-gconf
ac_add_options --disable-accessibility
ac_add_options --disable-parental-controls
ac_add_options --disable-safe-browsing

ac_add_options --enable-debug
ac_add_options --enable-debug-symbols
ac_add_options --disable-install-strip


ac_add_options --enable-warnings-as-errors
Assignee: nobody → ajones
Comment on attachment 761883 [details] [diff] [review]
Fix build break on Gentoo

Does this help?
Attachment #761883 - Flags: feedback?(alex_y_xu)
Attached patch Fix build break on Gentoo (obsolete) — Splinter Review
Had to poke another file; build is successful now. (along with attachment 762465 [details] from bug 878363 - my patch)
Attachment #762415 - Flags: feedback?(ajones)
Attachment #761883 - Attachment is obsolete: true
Attachment #761883 - Flags: feedback?(alex_y_xu)
Attachment #762415 - Flags: review?(benjamin)
Attachment #762415 - Flags: feedback?(ajones)
Attachment #762415 - Flags: feedback+
TIL about `hg export`.
Attachment #762415 - Attachment is obsolete: true
Attachment #762415 - Flags: review?(benjamin)
Attachment #763175 - Flags: review?(benjamin)
Comment on attachment 763175 [details] [diff] [review]
Fix build break on Gentoo

I wonder if we can just remove this code?
Attachment #763175 - Flags: review?(benjamin) → review+
https://hg.mozilla.org/mozilla-central/rev/3435df09ce34
Status: NEW → RESOLVED
Closed: 11 years ago11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
Assignee: ajones → alex_y_xu
See Also: → 1125640
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: