From owner-freebsd-current@freebsd.org Sun Aug 6 08:30:45 2017 Return-Path: Delivered-To: freebsd-current@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 2AC32DCB499 for ; Sun, 6 Aug 2017 08:30:45 +0000 (UTC) (envelope-from aijazbaig1@gmail.com) Received: from mail-ua0-x22f.google.com (mail-ua0-x22f.google.com [IPv6:2607:f8b0:400c:c08::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 D47CC7CA82; Sun, 6 Aug 2017 08:30:44 +0000 (UTC) (envelope-from aijazbaig1@gmail.com) Received: by mail-ua0-x22f.google.com with SMTP id k43so20873124uaf.3; Sun, 06 Aug 2017 01:30:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=dQUgdqSLURyfupNNB6QFq5lIlrI450CMyRj7ohv1XfM=; b=kMi+wf8rYGaF8eA3HoNLKk4xsyA6s5QNrIH+6YSIRQIkav5nmK+bJVoxoVpeH4Ebpd yh/mR8tUwi0AHlCuiIufscE+VyGg7PJDVer0pgQm9l5UIowncnkyQXtv6TiDXN39elLp MeHQtq837OyIinCd1SNcSV8c3SLoMAhC9kAdnwpB4dyqDuvpyP0LklYx2PvvIlJ+3blM lp4C8jBpYrcEg1loRXazSUqSxidir7vi0hwOgxS0E0+pEp8rvA1PT8JRtwRFNf8/gwUH 79nZwHOmRXjUNDHtFdJZNOP2VfhNfOzxNHLXg30sPbPwy+PR341G0uZEq+hUGJwElWfw 984w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=dQUgdqSLURyfupNNB6QFq5lIlrI450CMyRj7ohv1XfM=; b=WmuVKzyYuukf10jE8w5jSqBGI1qI+P7V929RW9vegdiNEIbhL6apGdrN1dyaHjaDvJ Ja06l4f8dYhiy5P/2JrIt6OFqR7Kuyy7AlV6f1MGDnKM2lLepLZEefx1OEJM7tSJR9VG O0LuqoSEBdL8AoFTIZjzpJM/xR0og2SOx3wi2T5NIOVJ7qIqt5WVZSfqrT21KTqMWIz0 /uTekh06kusbxpMDbUi9V7R9DbkHEL24Hfjl/+xE4noPrKXn26STaOi1tujC3WV0Q5N6 /U74LeB8MmVzgKKf7HMf1TC3SPlEAbkUpwQC+s97fn60EI11xDihsv7qbmc2u3id/vAy DWDQ== X-Gm-Message-State: AIVw110zUhQAwKABLF+VCfZrxtwlUZqGd7Xd7tyfRmYjpqfSgAyZHTG6 +3VwkSJNDSWbBhY8jvC9KEpOrVaGzn0InBw= X-Received: by 10.159.48.79 with SMTP id i15mr6039162uab.106.1502008243521; Sun, 06 Aug 2017 01:30:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.55.198 with HTTP; Sun, 6 Aug 2017 01:30:43 -0700 (PDT) In-Reply-To: References: <9C14A21D-1C17-44F9-882B-4A01C311E164@FreeBSD.org> <37395FD6-09E5-4C11-A189-7B3050E9A541@FreeBSD.org> From: Aijaz Baig Date: Sun, 6 Aug 2017 14:00:43 +0530 Message-ID: Subject: Re: buildworld fails while building static clang library To: Dimitry Andric Cc: FreeBSD Current , Ed Maste , markmi@dsl-only.net Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Aug 2017 08:30:45 -0000 I did notice some swap related messages in dmesg earlier so this time I bumped up my RAM to 4.25GB (did I tell you I'm running this on a VM?). In addition I skipped parallel make jobs altogether keeping other things the same. So this time around it went a lot further in fact all the way to step4.3 (building everything) and now it fails at this step: ===> lib/libc/tests/ssp (all) (cd /usr/src/lib/libc/tests/ssp && DEPENDFILE=.depend.h_fgets NO_SUBDIR=1 make -f /usr/src/lib/libc/tests/ssp/Makefile _RECURSING _PROGS=t PROG=h_fgets ) (cd /usr/src/lib/libc/tests/ssp && DEPENDFILE=.depend.h_gets NO_SUBDIR=1 make -f /usr/src/lib/libc/tests/ssp/Makefile _RECURSING_ PROGS=t PROG=h_gets ) (cd /usr/src/lib/libc/tests/ssp && DEPENDFILE=.depend.h_getcwd NO_SUBDIR=1 make -f /usr/src/lib/libc/tests/ssp/Makefile _RECURSIN G_PROGS=t PROG=h_getcwd ) (cd /usr/src/lib/libc/tests/ssp && DEPENDFILE=.depend.h_memcpy NO_SUBDIR=1 make -f /usr/src/lib/libc/tests/ssp/Makefile _RECURSIN G_PROGS=t PROG=h_memcpy ) (cd /usr/src/lib/libc/tests/ssp && DEPENDFILE=.depend.h_memmove NO_SUBDIR=1 make -f /usr/src/lib/libc/tests/ssp/Makefile _RECURSI NG_PROGS=t PROG=h_memmove ) (cd /usr/src/lib/libc/tests/ssp && DEPENDFILE=.depend.h_memset NO_SUBDIR=1 make -f /usr/src/lib/libc/tests/ssp/Makefile _RECURSIN G_PROGS=t PROG=h_memset ) (cd /usr/src/lib/libc/tests/ssp && DEPENDFILE=.depend.h_raw NO_SUBDIR=1 make -f /usr/src/lib/libc/tests/ssp/Makefile _RECURSING_PROGS=t PROG=h_raw ) cc -target x86_64-unknown-freebsd12.0 --sysroot=/mnt/obj/usr/src/tmp -B/mnt/obj/usr/src/tmp/usr/bin -O0 -pipe -march=core2 -fstack-protector-all -Wstack-protector -fsanitize=bounds -g3 -g -std=gnu99 -fstack-protector-strong -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-address-of-packed-member -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Qunused-arguments -o h_raw.full h_raw.o *** Error code 1 Stop. make[7]: stopped in /usr/src/lib/libc/tests/ssp *** Error code 1 Stop. make[6]: stopped in /usr/src/lib/libc/tests/ssp *** Error code 1 Stop. make[5]: stopped in /usr/src/lib/libc/tests *** Error code 1 Stop. make[4]: stopped in /usr/src/lib/libc *** Error code 1 Stop. make[3]: stopped in /usr/src/lib *** Error code 1 Stop. make[2]: stopped in /usr/src *** Error code 1 Stop. make[1]: stopped in /usr/src *** Error code 1 Stop. make: stopped in /usr/src keen to hear On Sun, Aug 6, 2017 at 9:53 AM, Aijaz Baig wrote: > Hello > > Yes guilty as charged!!! > > I turn off optimization and enable DEBUG_FLAGS using src.conf: > > CFLAGS= -O0 -pipe > COPTFLAGS= -O0 -pipe > DEBUG_FLAGS=-g > > This time however I run without any parallel make jobs and it fails with a > different error: > > *** Signal 9 > > Stop. > make[6]: stopped in /usr/src/lib/clang/libclang > *** Error code 1 > > Stop. > make[5]: stopped in /usr/src/lib/clang > *** Error code 1 > > Stop. > make[4]: stopped in /usr/src/lib > *** Error code 1 > > Stop. > make[3]: stopped in /usr/src > *** Error code 1 > > Stop. > make[2]: stopped in /usr/src > *** Error code 1 > > Stop. > make[1]: stopped in /usr/src > *** Error code 1 > > Stop. > make: stopped in /usr/src > > Keen to hear > > On Sun, Aug 6, 2017 at 1:46 AM, Dimitry Andric wrote: > >> On 5 Aug 2017, at 21:55, Aijaz Baig wrote: >> > >> > I was a bit sceptical of this as it was failing with that same port (or >> is clang a port by the way?) all the time. So as you suggested, I reduced >> my '-j' number and it still fails at the very same place with the very same >> error. Is it because the clang port doesn't allow parallel make jobs? >> > >> > Nonetheless, as to my query regarding building the world, based on what >> my goals are (as I stated earlier), does it require me to actually build >> the whole world? >> > >> > Regards, >> > Aijaz Baig >> > >> > On Sat, Aug 5, 2017 at 2:34 PM, Dimitry Andric wrote: >> > On 5 Aug 2017, at 06:00, Aijaz Baig wrote: >> > > >> > > I am trying to buildworld and it works well for quite some time until >> it >> > > tries to build the static version of the clang library where it >> fails. The >> > > error it spits is: >> > > >> > > Killed >> > > *** [all_subdir_lib/clang/libclang] Error code 137 >> > > >> > > make[5]: stopped in /usr/src/lib/clang >> > >> > I'm just guessing, but the most likely cause is lack of memory. Please >> > check dmesg for any messages like "pid foo (bar), uid baz, was killed: >> > out of swap space". To work around this, you can temporarily add more >> > swap space, or lower your -j level. >> >> Hm, now I read that your obj dir is on NFS, you might be hitting some >> 4GiB filesize limit for the final .a file. Are you building world with >> a very low optimization level, and debug information on? >> >> I remember there being an issue with ar and/or ranlib choking when the >> .a files become too big. Ed, does that ring any bells? >> >> -Dimitry >> >> > > > -- > > Best Regards, > Aijaz Baig > -- Best Regards, Aijaz Baig