On Mon, Mar 08, 2010 at 02:40:46PM -0800, Pavel Heimlich wrote:
> > em though: when I try to build Qt, there is enormous
> > link line to webkit, and after that it fails with
> > this error when I
> > try to build it with debug symbols, this is on a Sun
> > Ultra 40 with
> > 4GB ram, 12GB of swap space, Sun Studio 12u1 with all
> > available patches:
> > 
> > pkgbuild: ld: elf error: file
> > /h/goanna/2/os_5.10/kt/BUILD/qt-4.6.1/i386/qt-everywhe
> > re-opensource-src-4.6.1/lib/libQtGui.so: elf_begin:
> > Memory allocation error: vm stats: Not enough space
> > pkgbuild: ld: elf error: file
> > /h/goanna/2/os_5.10/kt/BUILD/qt-4.6.1/i386/qt-everywhe
> > re-opensource-src-4.6.1/lib/libQtGui.so: elf_begin:
> > Memory allocation error: vm stats: Not enough space
> > pkgbuild: ld: fatal: library -lQtGui: not found
> > pkgbuild: ld: fatal: File processing errors. No
> > output written to libQtWebKit.so.4.6.1
> > pkgbuild: make[1]: ***
> > [../../../../lib/libQtWebKit.so.4.6.1] Error 1
> > pkgbuild: make[1]: Leaving directory
> > `/h/goanna/2/os_5.10/kt/BUILD/qt-4.6.1/i386/qt-everywh
> > ere-opensource-src-4.6.1/src/3rdparty/webkit/WebCore'
> > pkgbuild: make: *** [sub-webkit-make_default-ordered]
> > Error 2
> > pkgbuild: Bad exit status from
> > /var/tmp/pkgbuild-mwright/pkgbuild-tmp-2.8404
> > (%build)
> > --- command output ends --- finished at Fri Feb 19
> > 15:51:45 EST 2010
> 
> Hi Mark,
> I gave it a try with --enable-debug and it built just fine on b132 with the 
> newer Studio (Sun C++ 5.10 SunOS_i386 128229-02 2009/09/21)
> 
> I'll try the 'with-debug-optimized' option later

Hi Pavel,

That is good, just wanted to note that I applied this
workaround to stop it building webkit with debug symbols
(the other Qt libs are still built with debug symbols):

goanna% hg diff -r 1967 -r 1968
diff -r a6e7160c226d -r 82754682e5a4 specs/base-specs/base-qt.spec
--- a/specs/base-specs/base-qt.spec     Sat Feb 20 00:40:46 2010 +0100
+++ b/specs/base-specs/base-qt.spec     Sat Feb 20 12:58:24 2010 +1100
@@ -164,6 +164,12 @@
 %define LIBMNG_INC -I/usr/include/libmng
 %endif
 
+%if %{with_debug_symbols}
+# Debug builds with stabs or dwarf both fail building libQtWebKit.so.4.6.1 
with Sun Studio 12u1 on sol10u8 with:
+# pkgbuild: ld: elf error: file 
/h/goanna/2/os_5.10/kt/BUILD/qt-4.6.1/i386/qt-everywhere-opensource-src-4.6.1/lib/libQtGui.so:
 elf_begin: Memory allocation error: vm stats: Not enough space
+sed -i -e 's,#QMAKE_CXXFLAGS += -Wall -Wno-undef 
-Wno-unused-parameter,QMAKE_CFLAGS -= %{_C_DEBUG_OR_STRIP}\nQMAKE_CXXFLAGS -= 
%{_CXX_DEBUG_OR_STRIP},' src/3rdparty/webkit/WebKit.pri
+%endif
+
 %define CXXFLAGS        %{CPPFLAGS_CXX} %{_TARGET_ARCH} %{_CXX_COMMON} 
%{extra_cxx}
 %define CFLAGS                 %{CPPFLAGS_C} %{CFLAGS_}
 %define LDFLAGS                %{LDFLAGS_CXX} %{extra_cxx}
goanna% 

Thanks, Mark

Reply via email to