From owner-freebsd-mips@freebsd.org Tue Oct 13 16:10:52 2015 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3293FA1281D for ; Tue, 13 Oct 2015 16:10:52 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x22f.google.com (mail-ig0-x22f.google.com [IPv6:2607:f8b0:4001:c05::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 003CBE89 for ; Tue, 13 Oct 2015 16:10:51 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igcpe7 with SMTP id pe7so19990677igc.0 for ; Tue, 13 Oct 2015 09:10:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=0J8st+FR2zE8KH3SeJfaPIGjOf0OQyhzPcw6lJlfFi8=; b=dDSufbScidp9mZvEFebyVCCQOKYHPoGOxt/xMDu5rA7SZz4+s2RfeTgCqNKizVaPeK mcCchJXOd6xnKGnLpsvveprKvwsJmUP/mk/MTx2g8bIZENzYhVU61fV5ft6EHm14h6ac n4/CZnUSxgLWvsq/R78lbhaCHhtlmtgKb9pMxDhgnQwEG1wkX6Z6IQmuJiBFLfVNpkvY IYWewakyB0+/BJIDs47n1WUQQJHkx7ruxt6RA24PZJeOMK6bhDdd+/KXgPxJBe0tbkP+ g96TfDGvRAIc/eRlE5JDfQQTR4obRx/WrO5bFhQDjabHvUdLiaAvGU/RPcNWXgo5o445 hUjQ== MIME-Version: 1.0 X-Received: by 10.50.61.243 with SMTP id t19mr19158697igr.22.1444752650480; Tue, 13 Oct 2015 09:10:50 -0700 (PDT) Received: by 10.36.2.10 with HTTP; Tue, 13 Oct 2015 09:10:50 -0700 (PDT) In-Reply-To: <561CA5CA.9040100@rdtc.ru> References: <20151013032213.GA52162@lyxys.ka.sub.org> <561CA5CA.9040100@rdtc.ru> Date: Tue, 13 Oct 2015 09:10:50 -0700 Message-ID: Subject: Re: Edge Router Lite runs out of memory on buildworld From: Adrian Chadd To: Eugene Grosbein Cc: Wolfgang Zenker , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Oct 2015 16:10:52 -0000 hm, is it gcc or clang? -a On 12 October 2015 at 23:33, Eugene Grosbein wrote: > 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:4= 7 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/l= ib/libc/../../include -I/usr/src/lib/libc/mips -DNLS -DSOFTFLOAT -D__DBINT= ERFACE_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/l= ibc/resolv -D_ACL_PRIVATE -DPOSIX_MISTAKE -I/usr/src/lib/libc/../libmd -I/u= sr/src/lib/libc/../../contrib/jemalloc/include -I/usr/src/lib/libc/../../co= ntrib/tzcode/stdtime -I/usr/src/lib/libc/stdtime -I/usr/src/lib/libc/local= e -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/usr/src/lib/libc/rpc -I/usr/src/l= ib/libc/mips/softfloat -I/usr/src/lib/libc/softfloat -DSOFTFLOAT_FOR_GCC -= DYP -DNS_CACHING -DSYMBOL_VERSIONING -std=3Dgnu99 -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/l= ibc/string/wmemset.c -o wmemset.So >> building shared library libc.so.7 >> cc -nodefaultlibs -Wl,--version-script=3DVersion.map -shared -Wl,-x -= Wl,--fatal-warnings -Wl,--warn-shared-textrel -o libc.so.7 -Wl,-soname,lib= c.so.7 `NM=3D'nm' NMFLAGS=3D'' lorder bt_close.So bt_conv.So bt_debug.So b= t_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 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. > > > _______________________________________________ > freebsd-mips@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org"