This is the mail archive of the 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


powerpc64-linux bootstrap is broken by the libsanitizer merge:

In file included from
/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;
error: invalid application of 'sizeof' to incomplete type
   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
 * 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;

That leaves powerpc64-linux libsanitizer broken since r204368.

How do I fix this? :-)


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