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 ?

Thanks in advance,

With Kind Regards,

Olivier


2016-04-29  Olivier Hainque  <hain...@adacore.com>

        libsanitizer/
        * sanitizer_common/sanitizer_platform_limits_linux.cc:
        #include <linux/posix_types.h> instead of asm/posix_types.h.


Attachment: libsan-linux.diff
Description: Binary data


Reply via email to