From owner-freebsd-current@freebsd.org Sat Jun 23 15:05: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 87B8F10242EB for ; Sat, 23 Jun 2018 15:05:22 +0000 (UTC) (envelope-from dim@FreeBSD.org) 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 213C585C36 for ; Sat, 23 Jun 2018 15:05:22 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id D939010242E9; Sat, 23 Jun 2018 15:05:21 +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 C67B310242E8 for ; Sat, 23 Jun 2018 15:05:21 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 77D4385C34; Sat, 23 Jun 2018 15:05:21 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from coleburn.home.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 0CD3419AF4; Sat, 23 Jun 2018 15:05:20 +0000 (UTC) (envelope-from dim@FreeBSD.org) From: Dimitry Andric Message-Id: <196E84B3-B58F-4296-B6EA-84D0DE3230EF@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_C6226EC1-74CD-43E7-8E92-1E3CC610924A"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 11.4 \(3445.8.2\)) Subject: Re: error building clang in HEAD Date: Sat, 23 Jun 2018 17:05:16 +0200 In-Reply-To: <20180623154048.1b228df0@ernst.home> Cc: current@freebsd.org To: gljennjohn@gmail.com References: <20180623154048.1b228df0@ernst.home> X-Mailer: Apple Mail (2.3445.8.2) 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: Sat, 23 Jun 2018 15:05:22 -0000 --Apple-Mail=_C6226EC1-74CD-43E7-8E92-1E3CC610924A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 23 Jun 2018, at 15:40, Gary Jennejohn wrote: >=20 > There is a strange error building clang with this use case: >=20 > cd /usr/src > make -j10 makeworld What's the "makeworld" target? I've not heard of this. > which produces this error output: >=20 > =3D=3D=3D> 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 ? > Note that this started happening after rm -rf /usr/obj/usr. Indeed, that caused the subdirectories under the obj directories to have disappeared. For some reason, in your situation, "make obj" is not run correctly. -Dimitry --Apple-Mail=_C6226EC1-74CD-43E7-8E92-1E3CC610924A Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCWy5hrAAKCRCwXqMKLiCW o5lsAJkBHIsO4k+ioZGa8FyVkQwzdCpSjQCgnXzIzHKj37RavLWhYl1LzvJfnNg= =2GWu -----END PGP SIGNATURE----- --Apple-Mail=_C6226EC1-74CD-43E7-8E92-1E3CC610924A--