From owner-freebsd-current@freebsd.org Tue Jun 26 18:00:18 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 330D5100737B for ; Tue, 26 Jun 2018 18:00:18 +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 BD08D7B867 for ; Tue, 26 Jun 2018 18:00:17 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 8188E1007378; Tue, 26 Jun 2018 18:00:17 +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 5C9BE1007377 for ; Tue, 26 Jun 2018 18:00:17 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wr0-x22d.google.com (mail-wr0-x22d.google.com [IPv6:2a00:1450:400c:c0c::22d]) (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 C5BD47B864; Tue, 26 Jun 2018 18:00:16 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wr0-x22d.google.com with SMTP id g18-v6so18142828wro.7; Tue, 26 Jun 2018 11:00:16 -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=zitDer2+lRlFDd3SCGK/dWTH+kav9kuf4bJ1nyQVyQE=; b=FdZ5gf7pvxrkJDVxR6pi/6uOm8AzGYJc1ozu7QEy5W9xjI14Zy4BR/8Ydum+t8Kmgg Qe5zLLdilRgotB8BwICdEnLUCPO7vwV8tXhZwli7wkIj6IESvjvuVK2bXQryhGJkIgCP k9DMVsoFJDYvb+vpHzJdcFECQY+3a4JqhMR5crziQm0SW6Us6vC80PMnFagSPl3Vvznr E9Yo98eXTsrutCTSltL/9LZBjUosiDa8CZJzKhDmJzYDueMpuLjX38/cgj+6UCfad/9F mkr31BoyxiVvaqN2+YNliJqpGe4NOi8qABEL/piOpPb1gquuiHqZJ2JpDWXi23zVTegs qIyA== 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=zitDer2+lRlFDd3SCGK/dWTH+kav9kuf4bJ1nyQVyQE=; b=opyMGMQRlkwD0RRxItYyaWDVnzwI3kvjLu5KLhLEA6Nam/fKetbg2/jOHmN/l68EUx u4rRa0SJBUqaLBAcbevjtt3G84Zb/FLjtQFrDGC4LQQijx5XnjTB9kzP4XNGYmAyW/2s 37ZmI/DRuC6t8C08LOEnZXog9AlVR6E4oSHx+NrqbTxeS8gm3Ub1s0FW8+GC0dVJ8rYy KhSyq/9yggCd/NAZVuQcpws9mZnTtwSdQAANp0CiJiigv7SiPDX48n/KIhtmyiYcoCNW 3jReV5ClYOV7eyJO8H0UOUK6JYZPlIHTklTyhhhW4WJ37BRBX63zULJkOhQF0NwqzA0+ IfbA== X-Gm-Message-State: APt69E1LHF7rJF5j4n92AoWMybGa4/85k8x0r+g5Gsh806DfhHJQdfUN 9hwIdFSvHm8o+2uPtIiV4iWrNA== X-Google-Smtp-Source: AAOMgpeYfhWia5/NIx+bn7//DlKvm6r/j0IgbhLzhnS3ZcXm5VA2Flud+VdfO0cmFpBjfYjpHVHSkw== X-Received: by 2002:adf:a035:: with SMTP id k50-v6mr2356175wrk.202.1530036015588; Tue, 26 Jun 2018 11:00:15 -0700 (PDT) Received: from ernst.home (p5B0234B4.dip0.t-ipconnect.de. [91.2.52.180]) by smtp.gmail.com with ESMTPSA id 139-v6sm3246791wmu.47.2018.06.26.11.00.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 26 Jun 2018 11:00:14 -0700 (PDT) Date: Tue, 26 Jun 2018 20:00:13 +0200 From: Gary Jennejohn To: Bryan Drewery Cc: current@freebsd.org Subject: Re: error building clang in HEAD Message-ID: <20180626200013.247e7927@ernst.home> In-Reply-To: <20180626182412.49dce7b0@ernst.home> References: <20180623154048.1b228df0@ernst.home> <196E84B3-B58F-4296-B6EA-84D0DE3230EF@FreeBSD.org> <20180624095747.7384f5bf@ernst.home> <20180626182412.49dce7b0@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 18:00:18 -0000 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