On Fri, Apr 29, 2016 at 10:08:07AM +0200, Olivier Hainque wrote:
> Hello,
> 
> Attempts to bootstrap on our powerpc-linux hosts fail
> on libsanitizer with symptoms like:
> 
> 
>   In file included from 
> ../../../../src/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc:29:0:
>   /usr/include/asm/posix_types.h:72:51: error: '__kernel_fd_set' has not been 
> declared
>   static __inline__ void __FD_SET(unsigned long fd, __kernel_fd_set *fdsetp)
> 
>   /usr/include/asm/posix_types.h: In function 'void __FD_SET(long unsigned 
> int, int*)':
>   /usr/include/asm/posix_types.h:74:28: error: '__NFDBITS' was not declared 
> in this scope
>   unsigned long _tmp = fd / __NFDBITS;
>   ...
> 
> The attach patch fixes this, and bootstrap+regtests fine on x86_64-linux.
> 
> OK to commit ?

No, for these files we aren't upstream and just periodically merge stuff
from there.  So, you should try to discuss this in asan upstream and get
a fix committed there and we can then merge it and/or cherry-pick it.
Please see libsanitizer/README.gcc.

Also, it would be nice to understand what is different on your powerpc-linux
from everybody's else where it works, do you have too old or too new kernel
headers, something different?

        Jakub

Reply via email to