Re: errors compiling webkit on lemote
My loongson patches didn't make 5.1 so either run -current (recommended) or backport my patches to 5.1 Either way, you won't get JavaScript, so please keep that in mind (or help me out! :) ) ~Brian
Re: errors compiling webkit on lemote
On Jun 16, 2012, at 12:45 AM, Janne Johansson icepic...@gmail.com wrote: 2012/6/15 Bryan Irvine sparcta...@gmail.com: On Fri, Jun 15, 2012 at 2:15 AM, Janne Johansson icepic...@gmail.com wrote: The ulimits will ultimately be capped by the platform MAXDSIZ, which for mipses probably is 1G: ./arch/mips64/include/vmparam.h:#define MAXDSIZ (1*1024*1024*1024) /* max data size */ ..so that's where ulimit -d unlimited will allow at most. Ah, that explains why messing with ulimit didn't seem to make any difference. Would adjusting that help me in this case? Can't say. One thing for sure is that the limits are there to make sure small-mem systems (32-bits CPUs) dont have their kernel, stack, heap, libs and memorymapped I/O areas overlap for any program. Perhaps you can up it a bit perhaps not, best way would be to try. There is a neat dungeon of stuff to read and learn in order to figure out what the maximum size for any given platform would be and how it affects max stack size, brk() sizes and what not. You are likely to be eaten by a grue. =) Many many grues! I kind of tried a few experiments. Most of them ended badly the rest didn't affect anything at all. *sigh*
Re: errors compiling webkit on lemote
2012/6/15 Bryan Irvine sparcta...@gmail.com: On Fri, Jun 15, 2012 at 2:15 AM, Janne Johansson icepic...@gmail.com wrote: The ulimits will ultimately be capped by the platform MAXDSIZ, which for mipses probably is 1G: ./arch/mips64/include/vmparam.h:#define MAXDSIZ (1*1024*1024*1024) /* max data size */ ..so that's where ulimit -d unlimited will allow at most. Ah, that explains why messing with ulimit didn't seem to make any difference. Would adjusting that help me in this case? Can't say. One thing for sure is that the limits are there to make sure small-mem systems (32-bits CPUs) dont have their kernel, stack, heap, libs and memorymapped I/O areas overlap for any program. Perhaps you can up it a bit perhaps not, best way would be to try. There is a neat dungeon of stuff to read and learn in order to figure out what the maximum size for any given platform would be and how it affects max stack size, brk() sizes and what not. You are likely to be eaten by a grue. =) -- To our sweethearts and wives. May they never meet. -- 19th century toast
Re: errors compiling webkit on lemote
On Thu Jun 14, 2012 at 10:20:52AM -0700, Bryan Irvine wrote: On Thu, Jun 14, 2012 at 6:13 AM, Rafael Sadowski raf...@sizeofvoid.org wrote: Do you see VMEM_WARNING=Yes? Cheers, Rafael I did. I increased the limit though they appear to already be at max values. When watching top during the compile it never gets to a point where it needs to swap. This is what top shows right before it dies: Memory: Real: 210M/339M act/tot Free: 671M Cache: 674M Swap: 0k/1280M OK, but you need to check 'ulimit -d'. Please, test built with: ulimit -d unlimited. I have no experiences with lemote and I don't know the limits. Cheers, Rafael
Re: errors compiling webkit on lemote
The ulimits will ultimately be capped by the platform MAXDSIZ, which for mipses probably is 1G: ./arch/mips64/include/vmparam.h:#define MAXDSIZ (1*1024*1024*1024) /* max data size */ ..so that's where ulimit -d unlimited will allow at most. 2012/6/15 Rafael Sadowski raf...@sizeofvoid.org: On Thu Jun 14, 2012 at 10:20:52AM -0700, Bryan Irvine wrote: On Thu, Jun 14, 2012 at 6:13 AM, Rafael Sadowski raf...@sizeofvoid.org wrote: Do you see VMEM_WARNING=Yes? Cheers, Rafael I did. I increased the limit though they appear to already be at max values. When watching top during the compile it never gets to a point where it needs to swap. This is what top shows right before it dies: Memory: Real: 210M/339M act/tot Free: 671M Cache: 674M Swap: 0k/1280M OK, but you need to check 'ulimit -d'. Please, test built with: ulimit -d unlimited. I have no experiences with lemote and I don't know the limits. Cheers, Rafael -- To our sweethearts and wives. May they never meet. -- 19th century toast
Re: errors compiling webkit on lemote
On Fri, Jun 15, 2012 at 2:15 AM, Janne Johansson icepic...@gmail.com wrote: The ulimits will ultimately be capped by the platform MAXDSIZ, which for mipses probably is 1G: ./arch/mips64/include/vmparam.h:#define MAXDSIZ (1*1024*1024*1024) /* max data size */ ..so that's where ulimit -d unlimited will allow at most. Ah, that explains why messing with ulimit didn't seem to make any difference. Would adjusting that help me in this case?
Re: errors compiling webkit on lemote
On Wed Jun 13, 2012 at 05:03:14PM -0700, Bryan Irvine wrote: Lines leading up the errors: gmake[1]: Entering directory `/home/ports/pobj/webkit-1.6.1/webkit-1.6.1' /usr/ports/infrastructure/bin/libtool --tag=CXX --mode=compile c++ -DHAVE_CONFIG_H -I. -Wall -W -Wcast-align -Wchar-subscripts -Wreturn-type -Wformat -Wformat-security -Wno-format-y2k -Wundef -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings -Wno-unused-parameter -Wno-parentheses -fno-exceptions -DENABLE_GLIB_SUPPORT=1 -DBUILDING_CAIRO__=1 -DBUILDING_GTK__=1 -DWTF_CHANGES -DXP_UNIX -DWTF_USE_ICU_UNICODE=1 -DWTF_USE_GSTREAMER=1 -DGTK_API_VERSION_2=1 -DNDEBUG -I./Source -I./Source/JavaScriptCore -I./Source/JavaScriptCore/API -I./Source/JavaScriptCore/assembler -I./Source/JavaScriptCore/bytecode -I./Source/JavaScriptCore/bytecompiler -I./Source/JavaScriptCore/dfg -I./Source/JavaScriptCore/heap -I./Source/JavaScriptCore/debugger -I./Source/JavaScriptCore/ForwardingHeaders -I./Source/JavaScriptCore/interpreter -I./Source/JavaScriptCore/jit -I./Source/JavaScriptCore/jit -I./Source/JavaScriptCore/parser -I./Source/JavaScriptCore/profiler -I./Source/JavaScriptCore/runtime -I./Source/JavaScriptCore/wtf -I./Source/JavaScriptCore/wtf -I./Source/JavaScriptCore/wtf/gobject -I./Source/JavaScriptCore/wtf/gtk -I./Source/JavaScriptCore/wtf/text -I./Source/JavaScriptCore/wtf/unicode -I./Source/JavaScriptCore/yarr -I./Source/JavaScriptCore -I./Source/JavaScriptCore/parser -I./Source/JavaScriptCore/runtime -I/usr/local/include/libpng -I/usr/local/include -I/usr/X11R6/include -fno-rtti -fstrict-aliasing -O3 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -D_REENTRANT -I/usr/local/include -O2 -pipe -MT Source/JavaScriptCore/parser/libjavascriptcoregtk_1_0_la-Lexer.lo -MD -MP -MF Source/JavaScriptCore/parser/.deps/libjavascriptcoregtk_1_0_la-Lexer.Tpo -c -o Source/JavaScriptCore/parser/libjavascriptcoregtk_1_0_la-Lexer.lo `test -f 'Source/JavaScriptCore/parser/Lexer.cpp' || echo './'`Source/JavaScriptCore/parser/Lexer.cpp c++ -DHAVE_CONFIG_H -I. -Wall -W -Wcast-align -Wchar-subscripts -Wreturn-type -Wformat -Wformat-security -Wno-format-y2k -Wundef -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings -Wno-unused-parameter -Wno-parentheses -fno-exceptions -DENABLE_GLIB_SUPPORT=1 -DBUILDING_CAIRO__=1 -DBUILDING_GTK__=1 -DWTF_CHANGES -DXP_UNIX -DWTF_USE_ICU_UNICODE=1 -DWTF_USE_GSTREAMER=1 -DGTK_API_VERSION_2=1 -DNDEBUG -I./Source -I./Source/JavaScriptCore -I./Source/JavaScriptCore/API -I./Source/JavaScriptCore/assembler -I./Source/JavaScriptCore/bytecode -I./Source/JavaScriptCore/bytecompiler -I./Source/JavaScriptCore/dfg -I./Source/JavaScriptCore/heap -I./Source/JavaScriptCore/debugger -I./Source/JavaScriptCore/ForwardingHeaders -I./Source/JavaScriptCore/interpreter -I./Source/JavaScriptCore/jit -I./Source/JavaScriptCore/jit -I./Source/JavaScriptCore/parser -I./Source/JavaScriptCore/profiler -I./Source/JavaScriptCore/runtime -I./Source/JavaScriptCore/wtf -I./Source/JavaScriptCore/wtf -I./Source/JavaScriptCore/wtf/gobject -I./Source/JavaScriptCore/wtf/gtk -I./Source/JavaScriptCore/wtf/text -I./Source/JavaScriptCore/wtf/unicode -I./Source/JavaScriptCore/yarr -I./Source/JavaScriptCore -I./Source/JavaScriptCore/parser -I./Source/JavaScriptCore/runtime -I/usr/local/include/libpng -I/usr/local/include -I/usr/X11R6/include -fno-rtti -fstrict-aliasing -O3 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -D_REENTRANT -I/usr/local/include -O2 -pipe -MT Source/JavaScriptCore/parser/libjavascriptcoregtk_1_0_la-Lexer.lo -MD -MP -MF Source/JavaScriptCore/parser/.deps/libjavascriptcoregtk_1_0_la-Lexer.Tpo -c Source/JavaScriptCore/parser/Lexer.cpp -fPIC -DPIC -o Source/JavaScriptCore/parser/.libs/libjavascriptcoregtk_1_0_la-Lexer.o gmake[1]: Leaving directory `/home/ports/pobj/webkit-1.6.1/webkit-1.6.1' *** Error code 2 Stop in /home/ports/www/webkit (line 2444 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /home/ports/www/webkit (line 2197 of /usr/ports/infrastructure/mk/bsd.port.mk). Do you see VMEM_WARNING=Yes? Cheers, Rafael
Re: errors compiling webkit on lemote
On Thu, Jun 14, 2012 at 6:13 AM, Rafael Sadowski raf...@sizeofvoid.org wrote: On Wed Jun 13, 2012 at 05:03:14PM -0700, Bryan Irvine wrote: Lines leading up the errors: gmake[1]: Entering directory `/home/ports/pobj/webkit-1.6.1/webkit-1.6.1' /usr/ports/infrastructure/bin/libtool --tag=CXX --mode=compile c++ -DHAVE_CONFIG_H -I. -Wall -W -Wcast-align -Wchar-subscripts -Wreturn-type -Wformat -Wformat-security -Wno-format-y2k -Wundef -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings -Wno-unused-parameter -Wno-parentheses -fno-exceptions -DENABLE_GLIB_SUPPORT=1 -DBUILDING_CAIRO__=1 -DBUILDING_GTK__=1 -DWTF_CHANGES -DXP_UNIX -DWTF_USE_ICU_UNICODE=1 -DWTF_USE_GSTREAMER=1 -DGTK_API_VERSION_2=1 -DNDEBUG -I./Source -I./Source/JavaScriptCore -I./Source/JavaScriptCore/API -I./Source/JavaScriptCore/assembler -I./Source/JavaScriptCore/bytecode -I./Source/JavaScriptCore/bytecompiler -I./Source/JavaScriptCore/dfg -I./Source/JavaScriptCore/heap -I./Source/JavaScriptCore/debugger -I./Source/JavaScriptCore/ForwardingHeaders -I./Source/JavaScriptCore/interpreter -I./Source/JavaScriptCore/jit -I./Source/JavaScriptCore/jit -I./Source/JavaScriptCore/parser -I./Source/JavaScriptCore/profiler -I./Source/JavaScriptCore/runtime -I./Source/JavaScriptCore/wtf -I./Source/JavaScriptCore/wtf -I./Source/JavaScriptCore/wtf/gobject -I./Source/JavaScriptCore/wtf/gtk -I./Source/JavaScriptCore/wtf/text -I./Source/JavaScriptCore/wtf/unicode -I./Source/JavaScriptCore/yarr -I./Source/JavaScriptCore -I./Source/JavaScriptCore/parser -I./Source/JavaScriptCore/runtime -I/usr/local/include/libpng -I/usr/local/include -I/usr/X11R6/include -fno-rtti -fstrict-aliasing -O3 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -D_REENTRANT -I/usr/local/include -O2 -pipe -MT Source/JavaScriptCore/parser/libjavascriptcoregtk_1_0_la-Lexer.lo -MD -MP -MF Source/JavaScriptCore/parser/.deps/libjavascriptcoregtk_1_0_la-Lexer.Tpo -c -o Source/JavaScriptCore/parser/libjavascriptcoregtk_1_0_la-Lexer.lo `test -f 'Source/JavaScriptCore/parser/Lexer.cpp' || echo './'`Source/JavaScriptCore/parser/Lexer.cpp c++ -DHAVE_CONFIG_H -I. -Wall -W -Wcast-align -Wchar-subscripts -Wreturn-type -Wformat -Wformat-security -Wno-format-y2k -Wundef -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings -Wno-unused-parameter -Wno-parentheses -fno-exceptions -DENABLE_GLIB_SUPPORT=1 -DBUILDING_CAIRO__=1 -DBUILDING_GTK__=1 -DWTF_CHANGES -DXP_UNIX -DWTF_USE_ICU_UNICODE=1 -DWTF_USE_GSTREAMER=1 -DGTK_API_VERSION_2=1 -DNDEBUG -I./Source -I./Source/JavaScriptCore -I./Source/JavaScriptCore/API -I./Source/JavaScriptCore/assembler -I./Source/JavaScriptCore/bytecode -I./Source/JavaScriptCore/bytecompiler -I./Source/JavaScriptCore/dfg -I./Source/JavaScriptCore/heap -I./Source/JavaScriptCore/debugger -I./Source/JavaScriptCore/ForwardingHeaders -I./Source/JavaScriptCore/interpreter -I./Source/JavaScriptCore/jit -I./Source/JavaScriptCore/jit -I./Source/JavaScriptCore/parser -I./Source/JavaScriptCore/profiler -I./Source/JavaScriptCore/runtime -I./Source/JavaScriptCore/wtf -I./Source/JavaScriptCore/wtf -I./Source/JavaScriptCore/wtf/gobject -I./Source/JavaScriptCore/wtf/gtk -I./Source/JavaScriptCore/wtf/text -I./Source/JavaScriptCore/wtf/unicode -I./Source/JavaScriptCore/yarr -I./Source/JavaScriptCore -I./Source/JavaScriptCore/parser -I./Source/JavaScriptCore/runtime -I/usr/local/include/libpng -I/usr/local/include -I/usr/X11R6/include -fno-rtti -fstrict-aliasing -O3 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -D_REENTRANT -I/usr/local/include -O2 -pipe -MT Source/JavaScriptCore/parser/libjavascriptcoregtk_1_0_la-Lexer.lo -MD -MP -MF Source/JavaScriptCore/parser/.deps/libjavascriptcoregtk_1_0_la-Lexer.Tpo -c Source/JavaScriptCore/parser/Lexer.cpp -fPIC -DPIC -o Source/JavaScriptCore/parser/.libs/libjavascriptcoregtk_1_0_la-Lexer.o gmake[1]: Leaving directory `/home/ports/pobj/webkit-1.6.1/webkit-1.6.1' *** Error code 2 Stop in /home/ports/www/webkit (line 2444 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /home/ports/www/webkit (line 2197 of /usr/ports/infrastructure/mk/bsd.port.mk). Do you see VMEM_WARNING=Yes? Cheers, Rafael I did. I increased the limit though they appear to already be at max values. When watching top during the compile it never gets to a point where it needs to swap. This is what top shows right before it dies: Memory: Real: 210M/339M act/tot Free: 671M Cache: 674M Swap: 0k/1280M
errors compiling webkit on lemote
Lines leading up the errors: gmake[1]: Entering directory `/home/ports/pobj/webkit-1.6.1/webkit-1.6.1' /usr/ports/infrastructure/bin/libtool --tag=CXX --mode=compile c++ -DHAVE_CONFIG_H -I. -Wall -W -Wcast-align -Wchar-subscripts -Wreturn-type -Wformat -Wformat-security -Wno-format-y2k -Wundef -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings -Wno-unused-parameter -Wno-parentheses -fno-exceptions -DENABLE_GLIB_SUPPORT=1 -DBUILDING_CAIRO__=1 -DBUILDING_GTK__=1 -DWTF_CHANGES -DXP_UNIX -DWTF_USE_ICU_UNICODE=1 -DWTF_USE_GSTREAMER=1 -DGTK_API_VERSION_2=1 -DNDEBUG -I./Source -I./Source/JavaScriptCore -I./Source/JavaScriptCore/API -I./Source/JavaScriptCore/assembler -I./Source/JavaScriptCore/bytecode -I./Source/JavaScriptCore/bytecompiler -I./Source/JavaScriptCore/dfg -I./Source/JavaScriptCore/heap -I./Source/JavaScriptCore/debugger -I./Source/JavaScriptCore/ForwardingHeaders -I./Source/JavaScriptCore/interpreter -I./Source/JavaScriptCore/jit -I./Source/JavaScriptCore/jit -I./Source/JavaScriptCore/parser -I./Source/JavaScriptCore/profiler -I./Source/JavaScriptCore/runtime -I./Source/JavaScriptCore/wtf -I./Source/JavaScriptCore/wtf -I./Source/JavaScriptCore/wtf/gobject -I./Source/JavaScriptCore/wtf/gtk -I./Source/JavaScriptCore/wtf/text -I./Source/JavaScriptCore/wtf/unicode -I./Source/JavaScriptCore/yarr -I./Source/JavaScriptCore -I./Source/JavaScriptCore/parser -I./Source/JavaScriptCore/runtime -I/usr/local/include/libpng -I/usr/local/include -I/usr/X11R6/include -fno-rtti -fstrict-aliasing -O3 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -D_REENTRANT -I/usr/local/include -O2 -pipe -MT Source/JavaScriptCore/parser/libjavascriptcoregtk_1_0_la-Lexer.lo -MD -MP -MF Source/JavaScriptCore/parser/.deps/libjavascriptcoregtk_1_0_la-Lexer.Tpo -c -o Source/JavaScriptCore/parser/libjavascriptcoregtk_1_0_la-Lexer.lo `test -f 'Source/JavaScriptCore/parser/Lexer.cpp' || echo './'`Source/JavaScriptCore/parser/Lexer.cpp c++ -DHAVE_CONFIG_H -I. -Wall -W -Wcast-align -Wchar-subscripts -Wreturn-type -Wformat -Wformat-security -Wno-format-y2k -Wundef -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings -Wno-unused-parameter -Wno-parentheses -fno-exceptions -DENABLE_GLIB_SUPPORT=1 -DBUILDING_CAIRO__=1 -DBUILDING_GTK__=1 -DWTF_CHANGES -DXP_UNIX -DWTF_USE_ICU_UNICODE=1 -DWTF_USE_GSTREAMER=1 -DGTK_API_VERSION_2=1 -DNDEBUG -I./Source -I./Source/JavaScriptCore -I./Source/JavaScriptCore/API -I./Source/JavaScriptCore/assembler -I./Source/JavaScriptCore/bytecode -I./Source/JavaScriptCore/bytecompiler -I./Source/JavaScriptCore/dfg -I./Source/JavaScriptCore/heap -I./Source/JavaScriptCore/debugger -I./Source/JavaScriptCore/ForwardingHeaders -I./Source/JavaScriptCore/interpreter -I./Source/JavaScriptCore/jit -I./Source/JavaScriptCore/jit -I./Source/JavaScriptCore/parser -I./Source/JavaScriptCore/profiler -I./Source/JavaScriptCore/runtime -I./Source/JavaScriptCore/wtf -I./Source/JavaScriptCore/wtf -I./Source/JavaScriptCore/wtf/gobject -I./Source/JavaScriptCore/wtf/gtk -I./Source/JavaScriptCore/wtf/text -I./Source/JavaScriptCore/wtf/unicode -I./Source/JavaScriptCore/yarr -I./Source/JavaScriptCore -I./Source/JavaScriptCore/parser -I./Source/JavaScriptCore/runtime -I/usr/local/include/libpng -I/usr/local/include -I/usr/X11R6/include -fno-rtti -fstrict-aliasing -O3 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -D_REENTRANT -I/usr/local/include -O2 -pipe -MT Source/JavaScriptCore/parser/libjavascriptcoregtk_1_0_la-Lexer.lo -MD -MP -MF Source/JavaScriptCore/parser/.deps/libjavascriptcoregtk_1_0_la-Lexer.Tpo -c Source/JavaScriptCore/parser/Lexer.cpp -fPIC -DPIC -o Source/JavaScriptCore/parser/.libs/libjavascriptcoregtk_1_0_la-Lexer.o gmake[1]: Leaving directory `/home/ports/pobj/webkit-1.6.1/webkit-1.6.1' *** Error code 2 Stop in /home/ports/www/webkit (line 2444 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /home/ports/www/webkit (line 2197 of /usr/ports/infrastructure/mk/bsd.port.mk). Dmesg: [ using 466480 bytes of bsd ELF symbol table ] Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. Copyright (c) 1995-2012 OpenBSD. All rights reserved. http://www.OpenBSD.org OpenBSD 5.1 (GENERIC) #93: Sun Feb 12 18:10:05 MST 2012 dera...@loongson.openbsd.org:/usr/src/sys/arch/loongson/compile/GENERIC real mem = 1073741824 (1024MB) avail mem = 1059160064 (1010MB) mainbus0 at root: Lemote Yeeloong cpu0 at mainbus0: STC Loongson2F CPU 797 MHz, STC Loongson2F FPU cpu0: cache L1-I 64KB D 64KB 4 way, L2 512KB 4 way bonito0 at mainbus0: memory and PCI-X controller, rev 1 pci0 at bonito0 bus 0 rl0 at pci0 dev 7 function 0 Realtek 8139 rev 0x10: irq 5, address 00:23:8b:84:6f:40 rlphy0 at rl0 phy 0: RTL internal PHY smfb0 at pci0 dev 8 function 0 Silicon Motion LynxEM+ rev 0xb0 wsdisplay0 at smfb0 mux 1: console (std, vt100 emulation) ohci0 at pci0 dev 9 function 0 NEC USB rev 0x44: irq 7, version 1.0 ehci0