Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Oct 2015 13:33:46 +0700
From:      Eugene Grosbein <egrosbein@rdtc.ru>
To:        Wolfgang Zenker <wolfgang@lyxys.ka.sub.org>, freebsd-mips@freebsd.org
Subject:   Re: Edge Router Lite runs out of memory on buildworld
Message-ID:  <561CA5CA.9040100@rdtc.ru>
In-Reply-To: <20151013032213.GA52162@lyxys.ka.sub.org>
References:  <20151013032213.GA52162@lyxys.ka.sub.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 13.10.2015 10:22, Wolfgang Zenker wrote:
> Hi,
> 
> for a few months now I have been building CURRENT on an Edge Router Lite,
> last successful build was about a week ago:
> 
> % uname -a
> FreeBSD pomona 11.0-CURRENT FreeBSD 11.0-CURRENT #10: Wed Oct  7 07:15:47 CEST 2015     wolfgang@pomona:/usr/obj/usr/src/sys/UBQTERL  mips
> 
> Today buildworld failed with the system running out of memory
> on building libc.so:
> 
> # make buildworld
> [..]
> cc  -fpic -DPIC  -O -pipe -G0   -I/usr/src/lib/libc/include -I/usr/src/lib/libc/../../include -I/usr/src/lib/libc/mips -DNLS  -DSOFTFLOAT -D__DBINTERFACE_PRIVATE -I/usr/src/lib/libc/../../contrib/gdtoa -I/usr/src/lib/libc/../../contrib/libc-vis -DINET6 -I/usr/obj/usr/src/lib/libc -I/usr/src/lib/libc/resolv -D_ACL_PRIVATE -DPOSIX_MISTAKE -I/usr/src/lib/libc/../libmd -I/usr/src/lib/libc/../../contrib/jemalloc/include -I/usr/src/lib/libc/../../contrib/tzcode/stdtime -I/usr/src/lib/libc/stdtime  -I/usr/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/usr/src/lib/libc/rpc -I/usr/src/lib/libc/mips/softfloat  -I/usr/src/lib/libc/softfloat -DSOFTFLOAT_FOR_GCC -DYP -DNS_CACHING -DSYMBOL_VERSIONING -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign   -I/usr/src/lib/libutil -I/usr/src/lib/msun/mips -I/usr/src/lib/msun/src -c /usr/src/lib/libc/string/wmemset.c -o wmemset.So
> building shared library libc.so.7
> cc   -nodefaultlibs -Wl,--version-script=Version.map  -shared -Wl,-x -Wl,--fatal-warnings -Wl,--warn-shared-textrel  -o libc.so.7 -Wl,-soname,libc.so.7  `NM='nm' NMFLAGS='' lorder bt_close.So bt_conv.So bt_debug.So bt_delete.So bt_get.So bt_open.So bt_overflow.So bt_page.So [..] wmemcpy.So wmemmove.So wmemset.So | tsort -q`  -lcompiler_rt  -lssp_nonshared
> cc: Internal error: Killed (program ld)
> Please submit a full bug report.
> See <URL:http://www.freebsd.org/support.html>; for instructions.
> *** Error code 1
> 
> [List of .So-files shortened for brevity]
> 
> % dmesg -a
> [..]
> pid 37501 (ld), uid 0, was killed: out of swap space
> Oct 13 04:37:27 pomona kernel: pid 37501 (ld), uid 0, was killed: out of swap space
> 
> Kernel is built with "options NO_SWAPPING", so there is no swap space at all.
> I will try again without tmpfs now, to see if this frees enough memory.
> 
> Wolfgang

Do you use cc option "-Os" too reduce code size?
I use it for MIPS32 while cross-compiling on amd64 and world compiles and runs just fine.
I wonder if this would free some memory too because of smaller code.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?561CA5CA.9040100>