[cfe-dev] clang ToT doesn't build on macOS 10.10 anymore...?

Friedman, Eli via cfe-dev cfe-dev at lists.llvm.org
Wed Mar 14 11:35:02 PDT 2018


Can you get the exact command-line for the failing command?  (With make, 
you should be able to get that with "make VERBOSE=1", I think.)

-Eli

On 3/14/2018 10:51 AM, Sean McBride wrote:
> Eli,
>
> I don't believe I'm specifying any target triple (I confess I don't exactly know what that is).  I'm just doing a vanilla cmake & make on macOS 10.10 using Xcode 7.2.1's compiler & SDK.  No cross compiling.  Searching cmake's output for "triple" reveals this though: x86_64-apple-darwin14.5.0
>
> One new data point: if I manually apply Akira's DISPATCH_NOESCAPE fix to r314850, that builds; but r314851 does not.
>
> Sean
>
>
> On Mon, 12 Mar 2018 12:22:25 -0700, Friedman, Eli said:
>
>> What target triple are you compiling for?  Targets which define
>> "__ARM_EABI__" should also define "__ELF__", as far as I know.
>>
>> -Eli
>>
>> On 3/12/2018 6:50 AM, Sean McBride wrote:
>>> Akira,
>>>
>>> Yes, it seems so.  If I try to build r321543 I don't get the
>> DISPATCH_NOESCAPE error, but do still get the adddf3.c error.
>>> Sean
>>>
>>>
>>> On Sat, 10 Mar 2018 15:46:54 -0800, Akira Hatanaka said:
>>>
>>>> Wasn't the NOESCAPE error fixed in r321543?
>>>>
>>>> https://reviews.llvm.org/D41601
>>>>
>>>> On Sat, Mar 10, 2018 at 1:35 PM, Sean McBride <sean at rogue-research.com>
>>>> wrote:
>>>>
>>>>> CC'ing ahatanak and efriedma
>>>>>
>>>>> So I bisected where building on macOS 10.10 broke, and found at least 2
>>>>> commits that introduced errors:
>>>>>
>>>>> -------------------------------
>>>>> r313929 | ahatanak | 2017-09-21 18:16:50 -0400 (Thu, 21 Sep 2017)
>>>>>
>>>>> /llvm/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_libdispatch_mac.cc:
>> 229:1:
>>>>> error: unknown type name 'DISPATCH_NOESCAPE'
>>>>> DISPATCH_INTERCEPT_SYNC_B(dispatch_sync, false)
>>>>> ^
>>>>> -------------------------------
>>>>>
>>>>> -------------------------------
>>>>> r314851 | efriedma | 2017-10-03 17:25:07 -0400 (Tue, 03 Oct 2017)
>>>>>
>>>>> /llvm/llvm/projects/compiler-rt/lib/builtins/adddf3.c:28:53: error: alias
>>>>> unsupported on this file format
>>>>> AEABI_RTABI double __aeabi_dadd(double a, double b)
>>>>> COMPILER_RT_ALIAS(__adddf3);
>>>>>                                                       ^
>>>>> -------------------------------
>>>>>
>>>>>
>>>>> On Wed, 7 Feb 2018 12:23:16 +0100, Hans Wennborg said:
>>>>>
>>>>>> I just ran into the same thing :-/
>>>>>>
>>>>>> On Fri, Jan 26, 2018 at 11:22 PM, Sean McBride via cfe-dev
>>>>>> <cfe-dev at lists.llvm.org> wrote:
>>>>>>> Hi all,
>>>>>>>
>>>>>>> I just tried updating my clang build on a few machines, and it built
>>>>>> fine on 10.11, but on a macOS 10.10 with AppleClang 7.0.2.7000181 I get
>>>>> this:
>>>>>>> /Users/builder/llvm/llvm/projects/compiler-rt/lib/builtins/adddf3.c:
>>>>>> 28:53: error: alias unsupported on this file format
>>>>>>> AEABI_RTABI double __aeabi_dadd(double a, double b)
>>>>>> COMPILER_RT_ALIAS(__adddf3);
>>>>>>>                                                       ^
>>>>>>> /Users/builder/llvm/llvm/projects/compiler-rt/lib/builtins/int_lib.h:
>>>>>> 29:36: note: expanded from macro 'COMPILER_RT_ALIAS'
>>>>>>> #define COMPILER_RT_ALIAS(aliasee) _Pragma("GCC error(\"alias
>>>>>> unsupported on this file format\")")
>>>>>>>                                      ^
>>>>>>> <scratch space>:89:6: note: expanded from here
>>>>>>>    GCC error("alias unsupported on this file format")
>>>>>>>        ^
>>>>>>>
>>>>>>> Should this build?  Is 10.10 supported?
>> -- 
>> Employee of Qualcomm Innovation Center, Inc.
>> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a
>> Linux Foundation Collaborative Project
>>
> Cheers,
>

-- 
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project




More information about the cfe-dev mailing list