[lldb-dev] [Bug 25049] New: Bootstrapping LLDB fails on recent OSX due to c++11-narrowing

via lldb-dev lldb-dev at lists.llvm.org
Sun Oct 4 15:50:07 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=25049

            Bug ID: 25049
           Summary: Bootstrapping LLDB fails on recent OSX due to
                    c++11-narrowing
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: kfischer at college.harvard.edu
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

This is really more of a problem with the OS X system headers, but it comes up
when building LLDB, so we should work around with. The error message is

```
In file included from
/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:80:
In file included from
/System/Library/Frameworks/Foundation.framework/Headers/NSURLCredential.h:9:
In file included from
/System/Library/Frameworks/Security.framework/Headers/Security.h:74:
In file included from
/System/Library/Frameworks/Security.framework/Headers/SecStaticCode.h:41:
/System/Library/Frameworks/Security.framework/Headers/CSCommon.h:200:32: error:
enumerator value evaluates to -2147483648, which cannot be narrowed to type
'uint32_t'
      (aka 'unsigned int') [-Wc++11-narrowing]
    kSecCSConsiderExpiration = 1 << 31,         /* consider expired
certificates invalid */
```

Might be worth putting `#pragmas` there to silence the error and allow the
build to succeed.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20151004/05f13128/attachment.html>


More information about the lldb-dev mailing list