This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Bootstrap issues in libsanitizer
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: "Iyer, Balaji V" <balaji dot v dot iyer at intel dot com>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>, "konstantin dot s dot serebryany at gmail dot com" <konstantin dot s dot serebryany at gmail dot com>
- Date: Tue, 5 Nov 2013 15:38:01 +0000
- Subject: Re: Bootstrap issues in libsanitizer
- Authentication-results: sourceware.org; auth=none
- References: <BF230D13CA30DD48930C31D4099330003A49B0E1 at FMSMSX101 dot amr dot corp dot intel dot com> <CAH6eHdScLvmgh_ArORKqmtJo5XzbGCEW-Ln03uYG7KvVF_B01g at mail dot gmail dot com>
On 5 November 2013 15:32, Jonathan Wakely wrote:
> On 5 November 2013 15:27, Iyer, Balaji V wrote:
>> In file included from /usr/include/sys/vt.h:1:0,
>> from ../../../../trunk-gcc/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:49:
>> /usr/include/linux/vt.h:74:15: error: expected unqualified-id before ânewâ
>> unsigned int new; /* New console (if changing) */
>> ^
>
> 'new' is a keyword in C++, so your linux/vt.h header is not usable in C++ files.
>
> This is not a problem in libsanitizer. Have you recently updated a
> kernel-headers package on your machine?
With kernel 3.11.6 I see that field is called newev, so it looks as
though newer kernels fix the problem.
Maybe libsanitizer needs to do some ugly dance around that header:
#define new renamed_new
#include <sys/vt.h>
#undef new