From owner-freebsd-current@freebsd.org Tue Jun 26 19:40:35 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 30AFD10142D0 for ; Tue, 26 Jun 2018 19:40:35 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id B8AE480C8A for ; Tue, 26 Jun 2018 19:40:34 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 7282210142CE; Tue, 26 Jun 2018 19:40:34 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4D8B710142CC for ; Tue, 26 Jun 2018 19:40:34 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-ua0-x22e.google.com (mail-ua0-x22e.google.com [IPv6:2607:f8b0:400c:c08::22e]) (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 D764180C86; Tue, 26 Jun 2018 19:40:33 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-ua0-x22e.google.com with SMTP id v15-v6so4805414ual.11; Tue, 26 Jun 2018 12:40:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=UUTcACiszu8+J9kVjspCo2VZGht/THCD3jIHC+JMD2M=; b=XbptW5JLLh5S1NR/Qs55xJ9g94H3gsvkddqcWAoAkQNlCaVMuKKNzjHQ9dX8lR/rqY Fjy50CB95UsGELI/0jzuqeKPSnORHmGgoZMUfP0CfUnc9VP+juyqkpPeETfyvFhlywM9 Lxv6PQf0PApU47X6zI/Hl+tYhjFyXRrfVrl2YQmg09dxGjXZ3RmsrHgumLYZkvCgy82P 0yQFjyzT90pKKAzBixzgtI7Jve63dbGwwBwSsxGNw297muVorVTvWLy3ZTOhZmmgyF19 MH5qV31AXExPJ03l80heUEdHArv7vjMHn58nb+c/++UUeSTc5W5at0ZWkleMnsR35rpR E5lA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=UUTcACiszu8+J9kVjspCo2VZGht/THCD3jIHC+JMD2M=; b=VWa8t2sbONWiG88351Uy1GQ7xSgrVNs1A9QqjWt+KzN/1cZLmUotPSwm7Kvkhxyrmw LA84fj4t0cDWvQUnKHFCL+L2wIDdV+5gqwdfy90KpRm6aNWIJegtrNbLUfDJt/Ifxs0T aeArfLVJxXXnfegVp6M7n347ptFg4EBapwfl4ncKEr98nNC+RXcH9icf7HmZYe63dO9I SyT+jp9fgE0WgKR4tCOgg6zdrA4H+wXH9wq22FgEkPut7EJTuPN2ua093VZnd0yPybjZ lme2FNUoIEaaoaDenfHAwFohTt/JZaosbgOm0Vm/Nieb8I0e7x7W4G/jzJ8PS/1s7pQG hY4Q== X-Gm-Message-State: APt69E2TXcfENgrk1+dHZhvz6l4B7RBkn4MhT9Je/38pWLLsdywnuJqY CfBu0SL/9Joe3COxIVvFnDwK3hqFooDixST1CF/URF6R X-Google-Smtp-Source: AAOMgpdTbLUmBe97A46ub3ztl6yfYY3btyMNK6ji7bsA/H7vM6R5bvTs+9Oexy3Xe5oROuZLf9L2Af3xLYaHbzpKo7s= X-Received: by 2002:ab0:19c2:: with SMTP id r2-v6mr1886063uai.110.1530042033148; Tue, 26 Jun 2018 12:40:33 -0700 (PDT) MIME-Version: 1.0 Sender: kob6558@gmail.com Received: by 2002:a67:8f05:0:0:0:0:0 with HTTP; Tue, 26 Jun 2018 12:40:32 -0700 (PDT) In-Reply-To: <20180626200013.247e7927@ernst.home> References: <20180623154048.1b228df0@ernst.home> <196E84B3-B58F-4296-B6EA-84D0DE3230EF@FreeBSD.org> <20180624095747.7384f5bf@ernst.home> <20180626182412.49dce7b0@ernst.home> <20180626200013.247e7927@ernst.home> From: Kevin Oberman Date: Tue, 26 Jun 2018 12:40:32 -0700 X-Google-Sender-Auth: dGShtjHWA7SHQN6ltHBNtidl0tE Message-ID: Subject: Re: error building clang in HEAD To: Gary Jennejohn Cc: Bryan Drewery , current@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.26 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.26 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: Tue, 26 Jun 2018 19:40:35 -0000 On Tue, Jun 26, 2018 at 11:00 AM, Gary Jennejohn wrote: > On Tue, 26 Jun 2018 18:24:12 +0200 > Gary Jennejohn wrote: > > > On Mon, 25 Jun 2018 11:28:18 -0700 > > Bryan Drewery wrote: > > > > > On 6/24/2018 12:57 AM, Gary Jennejohn wrote: > > > > On Sat, 23 Jun 2018 17:05:16 +0200 > > > > Dimitry Andric wrote: > > > > > > > >> On 23 Jun 2018, at 15:40, Gary Jennejohn > wrote: > > > >>> > > > >>> There is a strange error building clang with this use case: > > > >>> > > > >>> cd /usr/src > > > >>> make -j10 makeworld > > > >> > > > >> What's the "makeworld" target? I've not heard of this. > > > >> > > > > > > > > A typo. I meant buildowrld. > > > > > > > >>> which produces this error output: > > > >>> > > > >>> ===> lib/clang/libclang (all) > > > >>> error: unable to rename temporary 'Sema/SemaTemplate-12ad7e30.o.tmp' > to output file 'Sema/SemaTemplate.o': 'No such file or directory' > > > >>> 1 error generated. > > > >>> --- Sema/SemaTemplate.o --- > > > >>> *** [Sema/SemaTemplate.o] Error code 1 > > > >> > > > >> This typically happens if "make obj" was not run before the rest of > the > > > >> make targets. Normally, the order is: make obj, then make depend, > then > > > >> make (a.k.a. make all). > > > >> > > > >> Is there a directory /usr/obj/usr/src/lib/libclang/Sema ? > > > >> > > > > > > > > Well, I would hope/expect that make buildworld does make obj. > > > > > > > > Yes, the directory was there. > > > > > > > > > > Actually neither 'make obj' nor 'make depend' is done or needed anymore > > > in buildworld. > > > > > > The directory above is incorrect, please check for > > > > > > /usr/obj/usr/src/amd64.amd64/lib/clang/libclang/Sema > > > > > > > Well, now everything is there because I ran a buildworld without -j. > > > > > Do you have another Makefile or script that is executing > > > buildworld for you? > > > > > > > No, I use a bash alias named mw: > > mw is aliased to `pushd /usr/src;time make -s -j$NCPU buildworld;popd' > > > > NCPU is defined as 10. > > > > > What's in your src.conf and make.conf? > > > > > > > The only changes I made recently were to /etc/src.conf when I added: > > > > WITHOUT_LLVM_TARGET_AARCH64=yes > > WITHOUT_LLVM_TARGET_ARM=ys > > WITHOUT_LLVM_TARGET_MIPS=yes > > WITHOUT_LLVM_TARGET_POWERPC=yes > > WITHOUT_LLVM_TARGET_SPARC=yes > > WITH_LLVM_TARGET_X86=yes > > > > Otherwise, I haven't touched src.conf or make.conf in a long time. > > > > I removed some old cruft from src.conf and now make -j10 buildworld is > succeeding, even after rm -rf /usr/obj/usr. > > Thanks for pointing me in the right direction. > > -- > Gary Jennejohn > I'd like to hear what triggered this as removing unneeded LLVM targets seems like a good idea if you know that you won't need them. Building LLVM takes a long time on my 7+ year old, memory constrained (8G) system. Anything that reduces that time would be nice. -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683