[LLVMdev] [compiler-rt] Problem with asm/stat.h on openSUSE PPC64

İsmail Dönmez ismail at donmez.ws
Thu Nov 21 00:53:55 PST 2013


Hi,

This I believe is a bug in kernel headers on openSUSE PPC64 but maybe there
is some workaround.

compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_linux.cc


includes asm/stat.h which ends up with errors:


/usr/include/asm/stat.h:31:2: error: unknown type name 'ino_t'
         ino_t           st_ino;
         ^
/usr/include/asm/stat.h:34:2: error: unknown type name 'mode_t'
         mode_t          st_mode;
         ^
/usr/include/asm/stat.h:39:2: error: unknown type name 'uid_t'
         uid_t           st_uid;
         ^
/usr/include/asm/stat.h:40:2: error: unknown type name 'gid_t'
         gid_t           st_gid;
         ^
/usr/include/asm/stat.h:42:2: error: unknown type name 'off_t'
         off_t           st_size;

This obviously means that headers are not sanitized for userspace usage.
Any ideas for a workaround?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131121/560a23e4/attachment.html>


More information about the llvm-dev mailing list