New user self-registration is disabled due to spam. For an account please email bugs-admin@lists.llvm.org with your e-mail address and full name.

Bug 17977 - Build fails on OS X 10.6.8 due to missing #define EOWNERDEAD
Summary: Build fails on OS X 10.6.8 due to missing #define EOWNERDEAD
Status: RESOLVED FIXED
Alias: None
Product: compiler-rt
Classification: Unclassified
Component: compiler-rt (show other bugs)
Version: unspecified
Hardware: Macintosh MacOS X
: P normal
Assignee: Unassigned LLVM Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-18 05:59 PST by jonathan.sauer
Modified: 2013-12-09 07:22 PST (History)
4 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jonathan.sauer 2013-11-18 05:59:12 PST
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>.
Comment 1 Alexey Samsonov 2013-12-05 07:41:01 PST
Will http://llvm-reviews.chandlerc.com/D2340 fix the problem for you?
Comment 2 jonathan.sauer 2013-12-05 10:53:11 PST
(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".
Comment 3 Alexey Samsonov 2013-12-09 07:22:52 PST
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).