error building clang in HEAD

Dimitry Andric dim at FreeBSD.org
Sat Jun 23 15:05:22 UTC 2018


On 23 Jun 2018, at 15:40, Gary Jennejohn <gljennjohn at gmail.com> 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.


> 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 ?


> 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 223 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20180623/ac0f7aa1/attachment.sig>


More information about the freebsd-current mailing list