emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: windows build failure


From: cg
Subject: Re: windows build failure
Date: Thu, 30 May 2013 00:06:56 +0800
User-agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6

On 5/28/2013 12:36 AM, Eli Zaretskii wrote:
Date: Sun, 26 May 2013 16:29:36 -0400
From: Sean Sieger <address@hidden>

In file included from w32.c:33:0:
../nt/inc/sys/time.h:41:62: error: conflicting types for 'restrict'
../nt/inc/sys/time.h:41:35: note: previous definition of 'restrict' was here
make[3]: *** [oo-spd/i386/w32.o] Error 1
make[3]: Leaving directory `c:/trunk/src'
make[2]: *** [bootstrap-temacs-CMD] Error 2
make[2]: Leaving directory `c:/trunk/src'
make[1]: *** [bootstrap-temacs] Error 2
make[1]: Leaving directory `c:/trunk/src'
make: *** [bootstrap-gmake] Error 2

Is this with today's bzr?  If so, what version of GCC is this, and
what does the macro-expanded nt/inc/sys/time.h look like?

I don't get this error.  Emacs builds for me on 2 different machines
with 2 different GCC versions.


I got this compile error too, gcc version is 4.6.0 downloaded from
sourceforge.net.

The problem is gettimeofday (in time.h) has two arguments with
the same name 'restrict':

int gettimeofday (struct timeval *restrict, struct timezone *restrict);

just rename one of them, the error will be gone:

int gettimeofday (struct timeval *restrict, struct timezone *restrict2);

I don't know what C spec says about it.
--
cg







reply via email to

[Prev in Thread] Current Thread [Next in Thread]