[LLVMdev] llvm build breakage on OpenBSD after adding system_error

Michael Spencer bigcheesegs at gmail.com
Wed Nov 24 16:37:27 PST 2010


On Wed, Nov 24, 2010 at 3:51 PM, Vladimir Kirillov <proger at uaoug.org.ua> wrote:
> Hello, llvmdev!
>
> Subj, not all UNIX systems have that much number of errnos, so
> I'm attaching the workaround that i've used to build llvm.
> Hope this gets resolved.
>
> Thanks!

:(. Apparently POSIX doesn't require these. The attached patch isn't
the correct fix because the value of the macros are undefined in the
various standards. I've been fixing these by using the ERROR the
system would return in conditions where the unsupported ERROR should
be, or, in cases where this information isn't available, EINVAL.

Thanks for reporting the problem! I'll go and fix these, let me know
if it still doesn't work.

- Michael Spencer



More information about the llvm-dev mailing list