İsmail Dönmez
2013-Nov-21 08:53 UTC
[LLVMdev] [compiler-rt] Problem with asm/stat.h on openSUSE PPC64
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>
Kostya Serebryany
2013-Nov-21 08:59 UTC
[LLVMdev] [compiler-rt] Problem with asm/stat.h on openSUSE PPC64
+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>
İsmail Dönmez
2013-Nov-21 09:29 UTC
[LLVMdev] [compiler-rt] Problem with asm/stat.h on openSUSE PPC64
On Thu, Nov 21, 2013 at 10:59 AM, Kostya Serebryany <kcc at google.com> wrote:> +eugenis > (we are dealing with it: primarily we are trying to get hold of some PPC > machine to verify our fix) > >I have a PPC64 machine handy and can test a patch. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131121/0f99e813/attachment.html>
Apparently Analagous Threads
- [LLVMdev] [compiler-rt] Problem with asm/stat.h on openSUSE PPC64
- [LLVMdev] [compiler-rt] Problem with asm/stat.h on openSUSE PPC64
- [LLVMdev] Lots of regtest failures on PPC64/Linux
- types.h:52: error: conflicting types for ‘ ino_t’
- [LLVMdev] Lots of regtest failures on PPC64/Linux