From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: cg Newsgroups: gmane.emacs.devel Subject: Re: windows build failure Date: Thu, 30 May 2013 00:06:56 +0800 Message-ID: References: <83ppwcpegh.fsf@gnu.org> Reply-To: chengang31@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1369843642 14417 80.91.229.3 (29 May 2013 16:07:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 May 2013 16:07:22 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 29 18:07:22 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UhiuH-00019e-Dx for ged-emacs-devel@m.gmane.org; Wed, 29 May 2013 18:07:21 +0200 Original-Received: from localhost ([::1]:34448 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhiuG-0005G9-V9 for ged-emacs-devel@m.gmane.org; Wed, 29 May 2013 12:07:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uhiu9-0005Eu-TX for emacs-devel@gnu.org; Wed, 29 May 2013 12:07:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uhiu5-0007F4-8U for emacs-devel@gnu.org; Wed, 29 May 2013 12:07:13 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:45485) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uhiu5-0007Ey-29 for emacs-devel@gnu.org; Wed, 29 May 2013 12:07:09 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Uhiu2-0000vr-OA for emacs-devel@gnu.org; Wed, 29 May 2013 18:07:06 +0200 Original-Received: from 218.82.106.158 ([218.82.106.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 May 2013 18:07:06 +0200 Original-Received: from chengang31 by 218.82.106.158 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 May 2013 18:07:06 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 40 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 218.82.106.158 User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 In-Reply-To: <83ppwcpegh.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:159894 Archived-At: On 5/28/2013 12:36 AM, Eli Zaretskii wrote: >> Date: Sun, 26 May 2013 16:29:36 -0400 >> From: Sean Sieger >> >> 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