From owner-freebsd-current@freebsd.org Wed Jun 27 07:28:04 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 23D57100F6D1 for ; Wed, 27 Jun 2018 07:28:04 +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 98DA9710C1 for ; Wed, 27 Jun 2018 07:28:03 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 58CFB100F6CF; Wed, 27 Jun 2018 07:28:03 +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 312A7100F6CD for ; Wed, 27 Jun 2018 07:28:03 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wr0-x22c.google.com (mail-wr0-x22c.google.com [IPv6:2a00:1450:400c:c0c::22c]) (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 7D1CF710BE; Wed, 27 Jun 2018 07:28:02 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wr0-x22c.google.com with SMTP id k16-v6so907133wro.0; Wed, 27 Jun 2018 00:28:02 -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=xMsivK14KZQYNWPlkf6ny5kBFwOtjd+ySY7QEvelPY8=; b=UnFo8G0/q9WEPJBcLd57dEizfj1Ivz6EDed003e52Zod3YR5cmbRJvQTdSmIoEY8Ue tArE50YZGI2HLR8Ejl1oaA4naFx95x4djEXrQ4wstVBQ3Bkg4iZVVUfj+1t9Dj0NyOqs mTMB9kSCApbZfZ6lQa4fgTDSiNqVmHNrPLk2RQKkPV2Fx3MULDYPl2eaQnviRfi7WnVs NwqXCvw+rzlpSwV8mz0mjnYkIJmu275FM/5BPsbqlRmZPEMUN+NeuM6REiWmbtbYvZV7 YO9PQAKoRru8mqt+fEPxYFBgbuQqRKMXZxiamZH50xudiC4SIMR06+okQCiwuFvNe67e R8ng== 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=xMsivK14KZQYNWPlkf6ny5kBFwOtjd+ySY7QEvelPY8=; b=nFkXFLOGguMGMKhvHtAzcb1gZpidCHfqXRZwLG9FNUHnJ2HW9PwZyyJ5HQ7G34dGDd AXug4o7U3APthQXM5vFt/TuLOWm2hk7LdfuZp3GDGzSSpTlAC/pKADattcgSu8uxJ+RJ N/4NyJkUvvXB+InRogWANcFbRF8Ewo8wHSqjzetAXg2ZmoqpFAkwCFZZCle5vXN3RdFL q4QmHKzB6QU5PuwsmSeyoHybMKx78haMzj9NgElb4+ZlCg9MWhV7g32/GyXPsLshANEw 9Lh3jwos0idHGNM/8kCDF2Lk25bXbH+bCKh8cmMDlHmUO4kgz5L1b8x6ELC5dlMupYT2 Rl4A== X-Gm-Message-State: APt69E0kn22xYUsheNOtmw/Q2pH2oV7x2u527y5OWaaPOXFtcCngrqXc ImkzCHF6sxUUUOSYDBcNj0OrFA== X-Google-Smtp-Source: AAOMgpexIDCQefrtRz3NR+vyZqspeIBk5j0SXdUMOC7e88KO0VDjKi5VvTTbtXLsjwF0s03nb29iLA== X-Received: by 2002:adf:9a0b:: with SMTP id z11-v6mr3966087wrb.47.1530084481374; Wed, 27 Jun 2018 00:28:01 -0700 (PDT) Received: from ernst.home (p5B0234B4.dip0.t-ipconnect.de. [91.2.52.180]) by smtp.gmail.com with ESMTPSA id a184-v6sm4118764wmf.30.2018.06.27.00.28.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 Jun 2018 00:28:00 -0700 (PDT) Date: Wed, 27 Jun 2018 09:27:59 +0200 From: Gary Jennejohn To: Bryan Drewery Cc: Kevin Oberman , current@freebsd.org Subject: Re: error building clang in HEAD Message-ID: <20180627092759.3fe84eca@ernst.home> In-Reply-To: References: <20180623154048.1b228df0@ernst.home> <196E84B3-B58F-4296-B6EA-84D0DE3230EF@FreeBSD.org> <20180624095747.7384f5bf@ernst.home> <20180626182412.49dce7b0@ernst.home> <20180626200013.247e7927@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: Wed, 27 Jun 2018 07:28:04 -0000 On Tue, 26 Jun 2018 12:51:29 -0700 Bryan Drewery wrote: > On 6/26/2018 12:40 PM, Kevin Oberman wrote: > > 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. > > > > 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 > > I don't think the options are related to the build error. > Correct, these options were not the cause of the errors. I had some really old options from several years ago which were the cause. Don't remeber now exactly which ones, but they were all related to using CLANG instead of GCC. -- Gary Jennejohn