[cfe-dev] RC1 compilation error with 10.6 SDK

Somorjai, Akos ASomorjai at graphisoft.com
Mon Nov 7 07:54:00 PST 2011


clang version 3.0 (tags/RELEASE_30/rc1)
Target: x86_64-apple-darwin11.2.0
Thread model: posix



Ákos


On 11/7/11 4:41 PM, "Benjamin Kramer" <benny.kra at googlemail.com> wrote:

>
>On 07.11.2011, at 16:01, Somorjai, Akos wrote:
>
>> I get the following error if I try to compile with the current 10.6 SDK
>>on Mac OS X:
>> 
>> 
>>/Volumes/Work/D-084/MakeAdds/OSX/SDKs/MacOSX10.6.sdk/usr/include/unistd.h
>>:512:8: error: declaration of built-in function 'vfork' requires
>>inclusion of the header <setjmp.h> [-Werror]
>> 
>> The official Apple build (from the Xcode 4.2 tools) didn't exhibit the
>>same problem.
>> I know I could turn off '-Werror', but my goal is to increase the
>>warning level.
>> 
>> This is a real problem for freeware sources, because we would like to
>>keep them intact.
>> 
>> Shall I wait for the next official Apple release, or is it something
>>that can be fixed here?
>
>This is fixed in trunk (r142007) and (I believe) 3.0. What version of
>clang are you using?
>
>- Ben





More information about the cfe-dev mailing list