As of revision 194823, compiler-rt fails to build on Mac OS X 10.6.8 because EOWNERDEAD is not defined. It was added with POSIX:2008[*], which OS X 10.6.8 does not seem to support. (FWIW: libc++'s cerrno contains its own definition of EOWNERDEAD to handle this case) [*] C.f. the POSIX:2001 contents of errno.h <http://pubs.opengroup.org/onlinepubs/009695399/basedefs/errno.h.html> vs. the POSIX:2008 contents of errno.h <http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/errno.h.html>.
Will http://llvm-reviews.chandlerc.com/D2340 fix the problem for you?
(In reply to comment #1) > Will http://llvm-reviews.chandlerc.com/D2340 fix the problem for you? This fixes it, yes. Thank you! Your patch is similar to the one I was planning on sending to llvm-commits, the only difference being that mine was setting "errno_EOWNERDEAD" to "ELAST + 1" instead of "-1".
Submitted the patch in r196779 (left "-1" there as ELAST may not be available as well, e.g. my errno.h header doesn't have it).