This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

powerpc64 bootstrap broken due to libsanitizer merge from upstream


Hello,

powerpc64-linux bootstrap is broken by the libsanitizer merge:

In file included from
../../../../trunk/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc:21:0:
/usr/include/asm/stat.h:31:2: error: 'ino_t' does not name a type
  ino_t  st_ino;
  ^
/usr/include/asm/stat.h:34:2: error: 'mode_t' does not name a type
  mode_t  st_mode;
  ^
/usr/include/asm/stat.h:39:2: error: 'uid_t' does not name a type
  uid_t  st_uid;
  ^
/usr/include/asm/stat.h:40:2: error: 'gid_t' does not name a type
  gid_t  st_gid;
  ^
/usr/include/asm/stat.h:42:2: error: 'off_t' does not name a type
  off_t  st_size;
  ^
../../../../trunk/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc:29:73:
error: invalid application of 'sizeof' to incomplete type
'__sanitizer::__old_kernel_stat'
   unsigned struct___old_kernel_stat_sz = sizeof(struct __old_kernel_stat);
                                                                         ^
make[4]: *** [sanitizer_platform_limits_linux.lo] Error 1
make[4]: *** Waiting for unfinished jobs....



This __old_kernel_stat is supposed to come from asm/stat.h, but it
isn't defined for powerpc64:

$ head -n 20  /usr/include/asm/stat.h
#ifndef _ASM_POWERPC_STAT_H
#define _ASM_POWERPC_STAT_H
/*
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version
 * 2 of the License, or (at your option) any later version.
 */
#include <linux/types.h>

#define STAT_HAVE_NSEC 1

#ifndef __powerpc64__
struct __old_kernel_stat {
        unsigned short st_dev;
        unsigned short st_ino;
        unsigned short st_mode;
...etc...

That leaves powerpc64-linux libsanitizer broken since r204368.

How do I fix this? :-)

Ciao!
Steven


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]