Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Jun 2018 17:05:16 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        gljennjohn@gmail.com
Cc:        current@freebsd.org
Subject:   Re: error building clang in HEAD
Message-ID:  <196E84B3-B58F-4296-B6EA-84D0DE3230EF@FreeBSD.org>
In-Reply-To: <20180623154048.1b228df0@ernst.home>
References:  <20180623154048.1b228df0@ernst.home>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <gljennjohn@gmail.com> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?196E84B3-B58F-4296-B6EA-84D0DE3230EF>