error building clang in HEAD

Bryan Drewery bdrewery at FreeBSD.org
Mon Jun 25 18:28:32 UTC 2018


On 6/24/2018 12:57 AM, Gary Jennejohn wrote:
> On Sat, 23 Jun 2018 17:05:16 +0200
> Dimitry Andric <dim at FreeBSD.org> wrote:
> 
>> 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.
>>
> 
> 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


Do you have another Makefile or script that is executing buildworld for you?

What's in your src.conf and make.conf?

-- 
Regards,
Bryan Drewery

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20180625/16967da0/attachment.sig>


More information about the freebsd-current mailing list