[clang] Build error on r232474 (and a few before, don't know exactly which)

Brandon Falk falkman at gamozo.org
Mon Mar 5 03:08:45 UTC 2012


On 3/3/2012 9:29 PM, Brandon Falk wrote:
> On 3/3/2012 9:13 PM, Joshua Isom wrote:
>> On 3/3/2012 6:30 PM, Dimitry Andric wrote:
>>>
>>> Huh, that's weird.  I see no reason that it wouldn't install cc during
>>> the cross-tools stage, unless you have WITHOUT_GCC in your src.conf 
>>> (and
>>> aren't using WITH_CLANG_IS_CC at the same time).
>>>
>>> Can you post your src.conf file, please?
>>
>> I've had this happen for a while but kept forgetting to post a pr.
>>
>> If you define WITHOUT_GCC, a cc isn't created in 
>> /usr/obj/usr/src/tmp/usr/bin but if you go into the directory and do 
>> a symbolic link from clang, and restart make with -DNO_CLEAN it'll 
>> work and complete.  One of the programs hardcodes cc and doesn't 
>> check the environment, I forget which.
>
> Built the code until it failed. Then did a `ln -s 
> /usr/obj/root/src/tmp/usr/bin/clang /usr/obj/root/src/tmp/usr/bin/cc` 
> and a `make -DNO_CLEAN -j12 buildworld` and it finished just fine.
>
> Thanks for the help, although we've got to sort this hardcode out 
> somewhere :P
>
> -Brandon Falk

----FIXED----

Sometime between 12 hours prior, and r232529 this bug was fixed. Just 
did a successful build on r232529.

-Brandon


More information about the freebsd-hackers mailing list