From owner-freebsd-current@freebsd.org Sun Aug 6 04:23:42 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 34CD9DB7854 for ; Sun, 6 Aug 2017 04:23:42 +0000 (UTC) (envelope-from aijazbaig1@gmail.com) Received: from mail-ua0-x233.google.com (mail-ua0-x233.google.com [IPv6:2607:f8b0:400c:c08::233]) (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 E58E370481; Sun, 6 Aug 2017 04:23:41 +0000 (UTC) (envelope-from aijazbaig1@gmail.com) Received: by mail-ua0-x233.google.com with SMTP id 80so20215172uas.0; Sat, 05 Aug 2017 21:23:41 -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=yfYysLwLER77I2Dal6TUz+Wb6KiiOhb5j9TKU5Q96d8=; b=uo8FKyKqw4149XJz7kTV9rSNeEhlhpEo/bILTJ8rwK6UlcDkKgKutO1fQ1l4tdxOV8 9wi4cnUmnI6XsTFVWL3Ww108/1rp8IfPqLezvoe5uRm1rvebKtkgz7qrXJ8Lgm2J20Pg s7skcGB87NS+qgsDOTU3sWXaByAbsbcUno+npVHmCN4uYKy6PcL2AexsaJqhmI82nUDG dEsgT5AKfV/IexBCohCCENfofUjHJBDYhG7UWi+GzC8iAl/CjrWSCefWHDeKcgC0Z7bd BGcW8rglAW7IWFd0KROZxcM91Gj8TPw9UpXiexTiQPL4dzzj15WDaGSTnbX6StlZs/Vx 9Uwg== 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=yfYysLwLER77I2Dal6TUz+Wb6KiiOhb5j9TKU5Q96d8=; b=VozL+xMzrKGwSUeMwjPLjcUhQepb5O4EueLc0SMK9HNJ0BgTkD+vfLjCBYfDKqZVOc e4wUB64XW7HzErPd2B/muUeJhS3+gH5G88jtiXatyEH5IqTfQcWzp8VT0xi1T/vht0P1 aR9qM+CrAPEh9UQXqHpC+WEe/JKmwcs5+AVeuCcZjanHX4eppr4ftK4ObyPXbeBIfOq/ UpbXRV6rM/LrVnTpov3OtujbRoxQVjSnKdaJSTNG95j5ERZ8p7m9GMV3W4U4GTxzQc3L gvjdv96Mcx6jYA2bLqcfqkpWrPO4iJmt+q8LUROO2Was1XpXHDjF/YO96lbaaXxiKIAd W+og== X-Gm-Message-State: AHYfb5gt/sywGJi9D5ryWUm0XWzWGNx7Jv+65VILhXtF5oKn+4+/CPR7 azkU5iIupqPkfrhfZzexn0j54irWQxg1 X-Received: by 10.176.16.202 with SMTP id x10mr5241572uab.186.1501993420679; Sat, 05 Aug 2017 21:23:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.55.198 with HTTP; Sat, 5 Aug 2017 21:23:40 -0700 (PDT) In-Reply-To: <37395FD6-09E5-4C11-A189-7B3050E9A541@FreeBSD.org> References: <9C14A21D-1C17-44F9-882B-4A01C311E164@FreeBSD.org> <37395FD6-09E5-4C11-A189-7B3050E9A541@FreeBSD.org> From: Aijaz Baig Date: Sun, 6 Aug 2017 09:53:40 +0530 Message-ID: Subject: Re: buildworld fails while building static clang library To: Dimitry Andric Cc: FreeBSD Current , Ed Maste 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 04:23:42 -0000 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