[cfe-dev] clang + compiler-rt aren't buildable on OS X since r157062; how to proceed?

Nico Weber thakis at chromium.org
Thu Jun 14 13:02:10 PDT 2012


On Thu, Jun 7, 2012 at 12:42 PM, Nico Weber <thakis at chromium.org> wrote:
> Hi Daniel,
>
> On Thu, May 31, 2012 at 4:50 PM, Nico Weber <thakis at chromium.org> wrote:
>> Cool. Could you work with someone who understands the compiler-rt
>> build to make that happen and unbreak the build?
>>
>> (I gave it a shot myself, but I'm not sure what the best way to go
>> about things is. Maybe add a "platform = Darwin and $2 = ios then
>> return" to compiler-rt/make/platform/clang_darwin.mk's CheckArches?)
>
> ^ does this sound like the right way to go?

I checked in a patch that implements this in r158466.

>
> Nico
>
>>
>> Nico
>>
>> On Thu, May 31, 2012 at 2:44 PM, Jim Grosbach <grosbach at apple.com> wrote:
>>> #3.
>>>
>>> On May 31, 2012, at 2:43 PM, Nico Weber <thakis at chromium.org> wrote:
>>>
>>>> Hi,
>>>>
>>>> r157062 broke bootstrap builds of clang if compiler-rt is built too.
>>>> See http://llvm.org/PR12918 for details, in short: r157062 lets clang
>>>> output a load command for iOS targets that the ar binary in all
>>>> released Xcode versions doesn't understand. compiler-rt is built for
>>>> mac and ios when compiling on OS X by default.
>>>>
>>>> As a result, I haven't been able to push a new clang to the chromium
>>>> repo in a while. What's the way forward here?
>>>>
>>>> 1.) Make a prerelease ar a requirement for doing bootstrap builds for
>>>> building clang and compiler-rt
>>>>
>>>> 2.) Augment r157062 to only use new load commands if target platforms
>>>> are new enough
>>>>
>>>> 3.) Remove ios from the default compiler-rt build
>>>>
>>>> 4.) Something else
>>>>
>>>>
>>>> I'm not able to push new clang binaries to chromium until this is resolved.
>>>>
>>>> Thanks,
>>>> Nico
>>>



More information about the cfe-dev mailing list