[cfe-dev] RC1 compilation error with 10.6 SDK

Benjamin Kramer benny.kra at googlemail.com
Mon Nov 7 07:41:03 PST 2011


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