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

Kostya Serebryany kcc at google.com
Thu Nov 21 00:59:59 PST 2013


+eugenis
(we are dealing with it: primarily we are trying to get hold of some PPC
machine to verify our fix)


On Thu, Nov 21, 2013 at 12:53 PM, İsmail Dönmez <ismail at donmez.ws> wrote:

> 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?
>
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131121/0336f6d1/attachment.html>


More information about the llvm-dev mailing list