From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#6820: 24.0.50; Corrupt system-configuration-options variable when using forward slashes Date: Thu, 23 Sep 2010 01:22:45 +0200 Message-ID: References: <4C5EB7C3.5030705@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1285198872 6597 80.91.229.12 (22 Sep 2010 23:41:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 22 Sep 2010 23:41:12 +0000 (UTC) Cc: 6820-done@debbugs.gnu.org To: Christoph Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 23 01:41:10 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OyYw1-0001eo-Am for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Sep 2010 01:41:09 +0200 Original-Received: from localhost ([127.0.0.1]:33759 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OyYw0-000299-D8 for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Sep 2010 19:41:08 -0400 Original-Received: from [140.186.70.92] (port=36445 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OyYvt-00028x-Rj for bug-gnu-emacs@gnu.org; Wed, 22 Sep 2010 19:41:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OyYvs-00041f-CN for bug-gnu-emacs@gnu.org; Wed, 22 Sep 2010 19:41:01 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45458) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OyYvs-00041a-Ax for bug-gnu-emacs@gnu.org; Wed, 22 Sep 2010 19:41:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OyYcY-0005eo-0Q for bug-gnu-emacs@gnu.org; Wed, 22 Sep 2010 19:21:02 -0400 Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Sep 2010 23:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 6820 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 6820@debbugs.gnu.org, lekktu@gmail.com Original-Received: via spool by 6820-done@debbugs.gnu.org id=D6820.128519765321739 (code D ref 6820); Wed, 22 Sep 2010 23:21:01 +0000 Original-Received: (at 6820-done) by debbugs.gnu.org; 22 Sep 2010 23:20:53 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OyYcO-0005ea-MQ for submit@debbugs.gnu.org; Wed, 22 Sep 2010 19:20:52 -0400 Original-Received: from mail-iw0-f172.google.com ([209.85.214.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OyYcL-0005eV-OK for 6820-done@debbugs.gnu.org; Wed, 22 Sep 2010 19:20:50 -0400 Original-Received: by iwn3 with SMTP id 3so860168iwn.3 for <6820-done@debbugs.gnu.org>; Wed, 22 Sep 2010 16:23:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=DtchOWfkrw28pG6Of7JRWF4CB4Oi8INMAJ0xvifQtOc=; b=WoZgQCRR62K8RVxiGUjgyUsIhYiUrnYW6f6PZagwHKS0DIrppUC9PPrDmolwpICpdN ePOZgNivrWE8JE20G3IQ0kmn+i6a5v7lJ0uOz8QsOMmS1lSadlWmkaZZct/fCAabwh8d OMT7mxmy1o4n56gsI23nuGygzKyV+rwVnwX3I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=erj3l/2rqZEEvPRRYjOyD03IHbQPh9gROFbmygMDW+y8N3FI3xfmPqMnUTU/Fc0RT2 WwWDGFJH4xZLPi+8lvJAG4x75p85DbwJkMvNUGEU63m2oylxZ/qYc7sxiQccKMh1E4CK JghGbnSmg59f3mDLbF+Xoo1efU1s8QRo/RpG8= Original-Received: by 10.231.191.147 with SMTP id dm19mr1043888ibb.6.1285197805434; Wed, 22 Sep 2010 16:23:25 -0700 (PDT) Original-Received: by 10.231.196.71 with HTTP; Wed, 22 Sep 2010 16:22:45 -0700 (PDT) In-Reply-To: <4C5EB7C3.5030705@gmail.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 22 Sep 2010 19:21:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:40363 Archived-At: > On Windows, the following warning appears when specifying compiler flags = for > configure.bat with forward slashes: > > gcc -I. -c -gdwarf-2 -g3 -mno-cygwin -mtune=3Dpentium4 -O2 -DENABLE_CHECK= ING > -DXASSERTS -fno-crossjumping -IC:\Progra~2\GnuWin32\include > -ID:\devel\emacs\libXpm-3.5.8\include -ID:\devel\emacs\libXpm-3.5.8\src > -Demacs=3D1 -DHAVE_CONFIG_H -I../nt/inc -DHAVE_NTGUI=3D1 -DUSE_CRT_DLL=3D= 1 -o > oo-spd/i386/w32.o w32.c You mean backslashes. :-) Currently we don't support passing backslashes or quotes in arguments to the --cflags configure.bat option, because as you point out they break compilation of w32.c:get_emacs_configuration_options. There's no easy way to fix that from configure.bat in a simple and portable way; the next best fix is just err out with a clear message when running configure.bat so the user can react immediately, instead of getting a not-so-clear error or warning during compilation. I've implemented the check only for GCC because I don't have access to MSVC; but it should be trivial to add if MSVC has some command option similar to GCC's -Werror (turn any warning into an error). =C2=A0 =C2=A0 Juanma