Hello, Wondering if anyone has any thoughts on this error while building qt: g++ -c -O2 -march=i686 -pipe -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 -Werror -fno-stack-protector -O3 -pthread -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -D_REENTRANT -DNDEBUG -DBUILDING_QT__=1 -DNDEBUG -DQT_ASCII_CAST_WARNINGS -DBUILDING_JavaScriptCore -DBUILDING_WTF -DENABLE_GLIB_SUPPORT=1 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -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/linux-g++ -I. -I../../../../../include/QtCore -I../../../../../include -I. -I../../Source -I../ThirdParty -Iassembler -Ibytecode -Ibytecompiler -Iheap -Idfg -Idebugger -Iinterpreter -Ijit -Iparser -Iprofiler -Iruntime -Iwtf -Iwtf/gobject -I/var/pkgmk/work/qt4/src/qt-everywhere-opensource-src-4.8.0/src/3rdparty/webkit/Source/JavaScriptCore/wtf/symbian -Iwtf/unicode -Iyarr -IAPI -IForwardingHeaders -Igenerated -I../../Source -I../../include -I/include/QtWebKit -I/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I.moc/release-static -o .obj/release-static/GOwnPtr.o wtf/gobject/GOwnPtr.cpp g++ -c -O2 -march=i686 -pipe -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 -Werror -fno-stack-protector -O3 -pthread -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -D_REENTRANT -DNDEBUG -DBUILDING_QT__=1 -DNDEBUG -DQT_ASCII_CAST_WARNINGS -DBUILDING_JavaScriptCore -DBUILDING_WTF -DENABLE_GLIB_SUPPORT=1 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -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/linux-g++ -I. -I../../../../../include/QtCore -I../../../../../include -I. -I../../Source -I../ThirdParty -Iassembler -Ibytecode -Ibytecompiler -Iheap -Idfg -Idebugger -Iinterpreter -Ijit -Iparser -Iprofiler -Iruntime -Iwtf -Iwtf/gobject -I/var/pkgmk/work/qt4/src/qt-everywhere-opensource-src-4.8.0/src/3rdparty/webkit/Source/JavaScriptCore/wtf/symbian -Iwtf/unicode -Iyarr -IAPI -IForwardingHeaders -Igenerated -I../../Source -I../../include -I/include/QtWebKit -I/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I.moc/release-static -o .obj/release-static/GRefPtr.o wtf/gobject/GRefPtr.cpp distcc[2612] ERROR: compile /var/cache/ccache/tmp/GRefPtr.tmp.main.2609.ii on localhost failed In file included from /usr/include/glib-2.0/glib/gasyncqueue.h:34:0, from /usr/include/glib-2.0/glib.h:34, from wtf/gobject/GRefPtr.cpp:24: /usr/include/glib-2.0/glib/gthread.h:51:15: error: 'union' tag used in naming 'struct _GMutex' /usr/include/glib-2.0/glib/gthread.h:58:7: error: 'union' tag used in naming 'struct _GMutex' make[2]: *** [.obj/release-static/GRefPtr.o] Error 1 make[2]: *** Waiting for unfinished jobs.... distcc[2616] ERROR: compile /var/cache/ccache/tmp/GOwnPtr.tmp.main.2606.ii on main failed distcc[2616] (dcc_build_somewhere) Warning: remote compilation of '/var/cache/ccache/tmp/GOwnPtr.tmp.main.2606.ii' failed, retrying locally distcc[2616] Warning: failed to distribute /var/cache/ccache/tmp/GOwnPtr.tmp.main.2606.ii to main, running locally instead distcc[2616] ERROR: compile /var/cache/ccache/tmp/GOwnPtr.tmp.main.2606.ii on localhost failed In file included from /usr/include/glib-2.0/glib/gasyncqueue.h:34:0, from /usr/include/glib-2.0/glib.h:34, from /usr/include/glib-2.0/gobject/gbinding.h:30, from /usr/include/glib-2.0/glib-object.h:25, from /usr/include/glib-2.0/gio/gioenums.h:30, from /usr/include/glib-2.0/gio/giotypes.h:30, from /usr/include/glib-2.0/gio/gio.h:28, from wtf/gobject/GOwnPtr.cpp:24: /usr/include/glib-2.0/glib/gthread.h:51:15: error: 'union' tag used in naming 'struct _GMutex' /usr/include/glib-2.0/glib/gthread.h:58:7: error: 'union' tag used in naming 'struct _GMutex' make[2]: *** [.obj/release-static/GOwnPtr.o] Error 1 make[2]: Leaving directory `/var/pkgmk/work/qt4/src/qt-everywhere-opensource-src-4.8.0/src/3rdparty/webkit/Source/JavaScriptCore' make[1]: *** [sub-JavaScriptCore-JavaScriptCore-pro-make_default-ordered] Error 2 make[1]: Leaving directory `/var/pkgmk/work/qt4/src/qt-everywhere-opensource-src-4.8.0/src/3rdparty/webkit/Source' make: *** [sub-webkit-make_default-ordered] Error 2 =======> ERROR: Building '/var/pkgmk/packages/qt4#4.8.0-2.pkg.tar.gz' failed. prt-get: error while install -- Packages where install failed qt4 Thanks Joe
Hi Joe, On Tue, May 15, 2012 at 11:43 PM, joe M <joe9mail@gmail.com> wrote:
Hello,
Wondering if anyone has any thoughts on this error while building qt: [...] In file included from /usr/include/glib-2.0/glib/gasyncqueue.h:34:0, from /usr/include/glib-2.0/glib.h:34, from wtf/gobject/GRefPtr.cpp:24: /usr/include/glib-2.0/glib/gthread.h:51:15: error: 'union' tag used in naming 'struct _GMutex' /usr/include/glib-2.0/glib/gthread.h:58:7: error: 'union' tag used in naming 'struct _GMutex'
The same error was reported to the Webkit bugtracker: https://bugs.webkit.org/show_bug.cgi?id=72085 There's also a fix suggested in there which appears to fix it for others. You can find the patch here: https://bugs.gentoo.org/show_bug.cgi?id=401855 Could you verify whether this fixes the problem for you? Best, Johannes -- Johannes Winkelmann jw@smts.ch
participants (2)
-
joe M
-
Johannes Winkelmann