[Buildroot] [PATCH] boost: fix build on ARC

Peter Korsgaard peter at korsgaard.com
Wed Aug 19 20:57:56 UTC 2015


>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni at free-electrons.com> writes:

 > This commit adds a patch to Boost to make it use the eventfd()
 > function provided by the C library when uClibc is used, rather than
 > falling back to using directly the __NR_eventfd system call. This
 > fixes the build on ARC, which doesn't define __NR_eventfd.

What does it then do? Only __NR_eventfd2?

 > The original problem is that uClibc fakes to be glibc 2.2, which
 > didn't had eventfd(), so Boost makes the system call
 > manually. uClibc-ng, in its next release, will pretend to be glibc
 > 2.10 (see
 > http://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git/commit/?id=4ff3a6c8eb91db71d6dc3d2932b66e848bd20ac3),
 > which will also fix the problem, but requires bumping the uClibc
 > version, rebuilding the external toolchains, and so on.

 > Ideally, Boost should be doing a compile test to detect if eventfd()
 > is available or not, but the Boost build system is so brain-damage

s/damage/damaged/

Committed, thanks.

-- 
Bye, Peter Korsgaard


More information about the buildroot mailing list