From owner-freebsd-current@freebsd.org Tue Jun 26 16:24:22 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 BC75C1001565 for ; Tue, 26 Jun 2018 16:24:22 +0000 (UTC) (envelope-from gljennjohn@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 4EA7077AE0 for ; Tue, 26 Jun 2018 16:24:22 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 0807F1001563; Tue, 26 Jun 2018 16:24:22 +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 D48081001562 for ; Tue, 26 Jun 2018 16:24:21 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wr0-x22e.google.com (mail-wr0-x22e.google.com [IPv6:2a00:1450:400c:c0c::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 409F877ADE; Tue, 26 Jun 2018 16:24:21 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wr0-x22e.google.com with SMTP id c5-v6so6717166wrs.10; Tue, 26 Jun 2018 09:24:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=WcmA1Gsk2dflsKk1KTzBK2140ttC6Xt9dO/TWVmeOZ0=; b=ecLS9NjZ4UXu1dv+CzhZBd8Wz0idzKqLmZPP57soPnaYWQHE2QT0ReqKItnOs8Qqh7 z7Dk4VuQWkcFmhgZQ9MQEtqGiClsScBR2r0B6ikvcwx1Vif3rAqSHJsHq1mIKS1u7gMh yohGDNWmzCuHGpHwvjbg38UWsHDStmJ/0z8tpQq/pJORF5UuraqQXFaNo3jnVYORssAp I8SHSJ8BSpi/A9M71ThXDz/i0Upv70LXnNB6FYRF08VIgAh1YdqB7xekzsnVn3YqGYpO HnUJY7rrx94ngYOJiJuMqX/6F9YWCF7Q3fOwFK1oJAnr6ZJzuRTp9lnkblKHPN4v37ol IIpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=WcmA1Gsk2dflsKk1KTzBK2140ttC6Xt9dO/TWVmeOZ0=; b=HPfHiQrBfZzgAbhmROF62AXN0U25omVWQbA3cexSrX195TLOk2nYCDVVc4EPiFWUnb cLgQ7NDACrSI0IqdPt8W2WyA/MXGQfMUQZeKjAznAfbm0Hho6GlLL2t3yEQojOr+SLLt oo1z91WjxTejBGHQS2Q6AbeRPjRYPAOz+Ej5xWaHrlqfGAFU286jkjo9s9/6pvXDkjdm prVAQRnuVR5Y1zKQ3JpZCBvHcHR5lTs1djt4ZhLauIQ5WEWdDf/fUr0tLJHVxDiT5Lcn 608CsHK+oxSHnW58nLdzNrERB0M2ffPfqs7CmEiqCjC2buL99eGALt58L7VFVy8/HeAn Mq1w== X-Gm-Message-State: APt69E369xgSwuk0qEInjNaYKxn8bofSt+eXWSFioMF4RxoNnYE9qiAL HNnI877j75p45utnr+w58sRwpQ== X-Google-Smtp-Source: AAOMgpegtTZ2lqtitG+GrWTiaVnRFRzSChkwMIXZmu+Die3IpKW466WBttbdH6RbbvD31y3lUEgyLw== X-Received: by 2002:adf:90e9:: with SMTP id i96-v6mr2135043wri.93.1530030258905; Tue, 26 Jun 2018 09:24:18 -0700 (PDT) Received: from ernst.home (p5B0234B4.dip0.t-ipconnect.de. [91.2.52.180]) by smtp.gmail.com with ESMTPSA id k12-v6sm2582595wrr.40.2018.06.26.09.24.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 26 Jun 2018 09:24:17 -0700 (PDT) Date: Tue, 26 Jun 2018 18:24:12 +0200 From: Gary Jennejohn To: Bryan Drewery Cc: current@freebsd.org Subject: Re: error building clang in HEAD Message-ID: <20180626182412.49dce7b0@ernst.home> In-Reply-To: References: <20180623154048.1b228df0@ernst.home> <196E84B3-B58F-4296-B6EA-84D0DE3230EF@FreeBSD.org> <20180624095747.7384f5bf@ernst.home> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 16:24:23 -0000 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'll try commenting these out and see what happens. -- Gary Jennejohn