From flitterio@gmail.com Thu Aug 14 10:02:22 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-5.0 required=4.0 tests=BAYES_00,MURPHY_DRUGS_REL8, RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 14 Aug 2008 17:02:23 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7EH2JXV005883 for ; Thu, 14 Aug 2008 10:02:20 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KTgDJ-0008GH-TD for bug-gnu-emacs@gnu.org; Thu, 14 Aug 2008 13:02:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KTgDG-0008F2-SU for bug-gnu-emacs@gnu.org; Thu, 14 Aug 2008 13:02:17 -0400 Received: from [199.232.76.173] (port=34242 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTgDF-0008Ee-U2 for bug-gnu-emacs@gnu.org; Thu, 14 Aug 2008 13:02:14 -0400 Received: from pcls4.std.com ([192.74.137.84]:36547 helo=TheWorld.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KTgDE-0003sz-1J for bug-gnu-emacs@gnu.org; Thu, 14 Aug 2008 13:02:12 -0400 Received: from shell.TheWorld.com (IDENT:105@shell01.TheWorld.com [192.74.137.71]) by TheWorld.com (8.13.6/8.13.6) with ESMTP id m7EH1BOC012662 for ; Thu, 14 Aug 2008 13:01:13 -0400 Received: from usenlittefl1c.theworld.com (localhost.theworld.com [127.0.0.1]) by shell.TheWorld.com (8.13.6/8.12.8) with ESMTP id m7EH1AvW7597005 for ; Thu, 14 Aug 2008 13:01:10 -0400 (EDT) To: bug-gnu-emacs@gnu.org Subject: Patch to fix CVS Emacs compilation error on Windows XP SP2. Date: Thu, 14 Aug 2008 12:57:56 -0400 From: Francis Litterio X-Random-Quote: There are two kinds of drivers: maniacs and idiots. The maniacs are everyone going faster than you, and the idiots are everyone going slower than you. -- George Carlin Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 When building CVS Emacs on Windows XP SP2 using Visual Studio 6.0, the following patch is needed to prevent the compiler from displaying an error about unsigned __int64 not being convertable to double. -- Fran --- w32.c~ 2008-08-11 13:51:58.372421800 -0400 +++ w32.c 2008-08-14 12:54:29.192936600 -0400 @@ -3817,7 +3817,7 @@ attrs); if (global_memory_status_ex (&memstex)) - totphys = memstex.ullTotalPhys / 1024.0; + totphys = (signed __int64)memstex.ullTotalPhys / 1024.0; else if (global_memory_status (&memst)) totphys = memst.dwTotalPhys / 1024.0; From eliz@gnu.org Thu Aug 14 12:24:42 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.5 required=4.0 tests=AWL,BAYES_00,GMAIL, HAS_BUG_NUMBER,MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 14 Aug 2008 19:24:43 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7EJOcSh017880 for ; Thu, 14 Aug 2008 12:24:39 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KTiR3-0002GW-Tr for bug-gnu-emacs@gnu.org; Thu, 14 Aug 2008 15:24:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KTiR2-0002G4-T9 for bug-gnu-emacs@gnu.org; Thu, 14 Aug 2008 15:24:37 -0400 Received: from [199.232.76.173] (port=59193 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTiR2-0002Fz-N2 for bug-gnu-emacs@gnu.org; Thu, 14 Aug 2008 15:24:36 -0400 Received: from mtaout1.012.net.il ([84.95.2.1]:57243) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KTiR2-00056J-Ka for bug-gnu-emacs@gnu.org; Thu, 14 Aug 2008 15:24:36 -0400 Received: from HOME-C4E4A596F7 ([84.229.211.50]) by i-mtaout1.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0K5L00JX6V9JYXB0@i-mtaout1.012.net.il> for bug-gnu-emacs@gnu.org; Thu, 14 Aug 2008 22:24:55 +0300 (IDT) Date: Thu, 14 Aug 2008 22:24:32 +0300 From: Eli Zaretskii Subject: Re: bug#720: Patch to fix CVS Emacs compilation error on Windows XP SP2. In-reply-to: X-012-Sender: halo1@inter.net.il To: Francis Litterio , 720@debbugs.gnu.org Cc: bug-gnu-emacs@gnu.org Reply-to: Eli Zaretskii Message-id: References: X-detected-kernel: by monty-python.gnu.org: Solaris 9.1 > Date: Thu, 14 Aug 2008 12:57:56 -0400 > From: Francis Litterio > Cc: > > When building CVS Emacs on Windows XP SP2 using Visual Studio 6.0, the > following patch is needed to prevent the compiler from displaying an > error about unsigned __int64 not being convertable to double. Thank you for your report. Can you show the error text? > - totphys = memstex.ullTotalPhys / 1024.0; > + totphys = (signed __int64)memstex.ullTotalPhys / 1024.0; Does it help to use 1024.0L here instead of just 1024.0? From monnier@iro.umontreal.ca Thu Aug 14 12:54:52 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.5 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 14 Aug 2008 19:54:53 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7EJsnP4026899 for ; Thu, 14 Aug 2008 12:54:50 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KTiuH-0006Fo-Cn for bug-gnu-emacs@gnu.org; Thu, 14 Aug 2008 15:54:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KTiuF-0006F3-TL for bug-gnu-emacs@gnu.org; Thu, 14 Aug 2008 15:54:48 -0400 Received: from [199.232.76.173] (port=43081 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTiuF-0006Ep-JF for bug-gnu-emacs@gnu.org; Thu, 14 Aug 2008 15:54:47 -0400 Received: from smtp-05.arnet.com.ar ([200.45.191.5]:39686) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KTiuF-0006TS-2D for bug-gnu-emacs@gnu.org; Thu, 14 Aug 2008 15:54:47 -0400 Received: (qmail 9314 invoked from network); 14 Aug 2008 13:52:57 -0000 Received: from unknown (HELO ceviche.home) (200.117.153.208) by 0 with SMTP; 14 Aug 2008 13:52:57 -0000 Received: by ceviche.home (Postfix, from userid 20848) id 9FE1DB40B9; Thu, 14 Aug 2008 15:54:44 -0400 (EDT) From: Stefan Monnier To: Francis Litterio Cc: 720@debbugs.gnu.org, bug-gnu-emacs@gnu.org Subject: Re: bug#720: Patch to fix CVS Emacs compilation error on Windows XP SP2. Message-ID: References: Date: Thu, 14 Aug 2008 15:54:44 -0400 In-Reply-To: (Francis Litterio's message of "Thu, 14 Aug 2008 12:57:56 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) > When building CVS Emacs on Windows XP SP2 using Visual Studio 6.0, the > following patch is needed to prevent the compiler from displaying an > error about unsigned __int64 not being convertable to double. Wouldn't it be better to cast to (double) ? Stefan From eliz@gnu.org Thu Aug 14 13:20:19 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.0 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 14 Aug 2008 20:20:19 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7EKKC2u003526 for ; Thu, 14 Aug 2008 13:20:13 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KTjIp-0007Yc-Cm for bug-gnu-emacs@gnu.org; Thu, 14 Aug 2008 16:20:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KTjIo-0007X9-Da for bug-gnu-emacs@gnu.org; Thu, 14 Aug 2008 16:20:10 -0400 Received: from [199.232.76.173] (port=54355 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTjIo-0007Wl-6W for bug-gnu-emacs@gnu.org; Thu, 14 Aug 2008 16:20:10 -0400 Received: from mtaout3.012.net.il ([84.95.2.7]:42440) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KTjIn-0005Ut-Q0 for bug-gnu-emacs@gnu.org; Thu, 14 Aug 2008 16:20:10 -0400 Received: from HOME-C4E4A596F7 ([84.229.211.50]) by i_mtaout3.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K5L001A3XU6W4J0@i_mtaout3.012.net.il> for bug-gnu-emacs@gnu.org; Thu, 14 Aug 2008 23:20:31 +0300 (IDT) Date: Thu, 14 Aug 2008 23:20:07 +0300 From: Eli Zaretskii Subject: Re: bug#720: Patch to fix CVS Emacs compilation error on Windows XP SP2. In-reply-to: X-012-Sender: halo1@inter.net.il To: Stefan Monnier , 720@debbugs.gnu.org Cc: flitterio@gmail.com, bug-gnu-emacs@gnu.org Reply-to: Eli Zaretskii Message-id: References: X-detected-kernel: by monty-python.gnu.org: Solaris 9.1 X-CrossAssassin-Score: 2 > From: Stefan Monnier > Date: Thu, 14 Aug 2008 15:54:44 -0400 > Cc: bug-gnu-emacs@gnu.org, 720@emacsbugs.donarmstrong.com > > > When building CVS Emacs on Windows XP SP2 using Visual Studio 6.0, the > > following patch is needed to prevent the compiler from displaying an > > error about unsigned __int64 not being convertable to double. > > Wouldn't it be better to cast to (double) ? Wouldn't that be doing the same mistake? The compiler probably has a point: an unsigned 64-bit number has more bits than a simple double can handle. From flitterio@gmail.com Thu Aug 14 13:26:31 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.2 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 14 Aug 2008 20:26:31 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7EKQRBs005602 for ; Thu, 14 Aug 2008 13:26:29 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KTjOt-0001ap-Da for bug-gnu-emacs@gnu.org; Thu, 14 Aug 2008 16:26:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KTjOr-0001a2-Lv for bug-gnu-emacs@gnu.org; Thu, 14 Aug 2008 16:26:26 -0400 Received: from [199.232.76.173] (port=58038 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTjOr-0001Zw-Gs for bug-gnu-emacs@gnu.org; Thu, 14 Aug 2008 16:26:25 -0400 Received: from pcls6.std.com ([192.74.137.146]:60917 helo=TheWorld.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KTjOn-0007B7-6L; Thu, 14 Aug 2008 16:26:21 -0400 Received: from shell.TheWorld.com (IDENT:105@shell01.theworld.com [192.74.137.71]) by TheWorld.com (8.13.6/8.13.6) with ESMTP id m7EKP2QR005648; Thu, 14 Aug 2008 16:25:04 -0400 Received: from usenlittefl1c.theworld.com (localhost.theworld.com [127.0.0.1]) by shell.TheWorld.com (8.13.6/8.12.8) with ESMTP id m7EKOut77761825; Thu, 14 Aug 2008 16:25:01 -0400 (EDT) To: Eli Zaretskii Cc: 720@debbugs.gnu.org, bug-gnu-emacs@gnu.org, Stefan Monnier Subject: Re: bug#720: Patch to fix CVS Emacs compilation error on Windows XP SP2. Date: Thu, 14 Aug 2008 16:15:04 -0400 References: From: Francis Litterio X-Random-Quote: Ignorance, the root and the stem of every evil. -- Plato In-Reply-To: (Eli Zaretskii's message of "Thu\, 14 Aug 2008 22\:24\:32 +0300") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-CrossAssassin-Score: 2 Eli Zaretskii wrote: >> From: Francis Litterio >> >> When building CVS Emacs on Windows XP SP2 using Visual Studio 6.0, the >> following patch is needed to prevent the compiler from displaying an >> error about unsigned __int64 not being convertable to double. > > Thank you for your report. Can you show the error text? Sorry for omitting that. The error was: w32.c(3820) : error C2520: conversion from unsigned __int64 to double not implemented, use signed __int64 >> - totphys = memstex.ullTotalPhys / 1024.0; >> + totphys = (signed __int64)memstex.ullTotalPhys / 1024.0; > > Does it help to use 1024.0L here instead of just 1024.0? Nope. Same error. Else-thread, Stefan Monnier asked: > Wouldn't it be better to cast to (double) ? That doesn't help either. Each of these variations causes the same error: totphys = (double)(memstex.ullTotalPhys / 1024.0); totphys = memstex.ullTotalPhys / (double)1024.0; totphys = (double)memstex.ullTotalPhys / 1024.0L; totphys = (double)memstex.ullTotalPhys / (double)1024.0; -- Fran From jasonr@gnu.org Thu Aug 14 17:41:51 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-2.9 required=4.0 tests=AWL,BAYES_00, MURPHY_DRUGS_REL8,SPF_HELO_PASS,VALID_BTS_CONTROL autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at control) by emacsbugs.donarmstrong.com; 15 Aug 2008 00:41:52 +0000 Received: from mk-outboundfilter-5.mail.uk.tiscali.com (mk-outboundfilter-5.mail.uk.tiscali.com [212.74.114.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7F0fmZ9020032 for ; Thu, 14 Aug 2008 17:41:49 -0700 X-Trace: 69472409/mk-outboundfilter-5.mail.uk.tiscali.com/F2S/$F2S-INTERNET-ACCEPTED/None/61.4.103.130 X-SBRS: None X-RemoteIP: 61.4.103.130 X-IP-MAIL-FROM: jasonr@gnu.org X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AoUBAPRtpEg9BGeC/2dsb2JhbAAItgiBVQ X-IronPort-AV: E=Sophos;i="4.32,212,1217804400"; d="scan'208";a="69472409" X-IP-Direction: OUT Received: from unknown (HELO [10.1.1.112]) ([61.4.103.130]) by smtp.f2s.tiscali.co.uk with ESMTP; 15 Aug 2008 01:41:41 +0100 Message-ID: <48A4D098.4040505@gnu.org> Date: Fri, 15 Aug 2008 08:40:56 +0800 From: Jason Rumney User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: control@debbugs.gnu.org Subject: Mark W32 bugs Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit reassign 689 emacs,w32 reassign 716 emacs,w32 reassign 720 emacs,w32 tags 720 patch reassign 722 emacs,w32 thanks From eliz@gnu.org Fri Aug 15 01:22:16 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-5.8 required=4.0 tests=AWL,BAYES_00,GMAIL, HAS_BUG_NUMBER,IMPRONONCABLE_1,MURPHY_DRUGS_REL8,MURPHY_WRONG_WORD1, MURPHY_WRONG_WORD2,RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 15 Aug 2008 08:22:16 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7F8MCAU001317 for ; Fri, 15 Aug 2008 01:22:13 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KTuZX-0004yK-HM for bug-gnu-emacs@gnu.org; Fri, 15 Aug 2008 04:22:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KTuZV-0004xy-NN for bug-gnu-emacs@gnu.org; Fri, 15 Aug 2008 04:22:09 -0400 Received: from [199.232.76.173] (port=55361 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTuZV-0004xm-AM for bug-gnu-emacs@gnu.org; Fri, 15 Aug 2008 04:22:09 -0400 Received: from mtaout7.012.net.il ([84.95.2.19]:57370) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KTuZU-00044Y-WA for bug-gnu-emacs@gnu.org; Fri, 15 Aug 2008 04:22:09 -0400 Received: from HOME-C4E4A596F7 ([84.229.211.50]) by i-mtaout7.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0K5M00JE1V9IOR20@i-mtaout7.012.net.il> for bug-gnu-emacs@gnu.org; Fri, 15 Aug 2008 11:22:31 +0300 (IDT) Date: Fri, 15 Aug 2008 11:22:07 +0300 From: Eli Zaretskii Subject: Re: bug#720: Patch to fix CVS Emacs compilation error on Windows XP SP2. In-reply-to: X-012-Sender: halo1@inter.net.il To: Francis Litterio Cc: 720@debbugs.gnu.org, bug-gnu-emacs@gnu.org, monnier@iro.umontreal.ca Reply-to: Eli Zaretskii Message-id: References: X-detected-kernel: by monty-python.gnu.org: Solaris 10 (1203?) > Cc: 720@emacsbugs.donarmstrong.com, bug-gnu-emacs@gnu.org, > Stefan Monnier > Date: Thu, 14 Aug 2008 16:15:04 -0400 > From: Francis Litterio > > w32.c(3820) : error C2520: conversion from unsigned __int64 to double not implemented, use signed __int64 "Not implemented"? I'm not sure we want to support such a deficient compiler. How about this: DWORD tot_hi = memstex.ullTotalPhys >> 32; DWORD tot_md = (memstex.ullTotalPhys & 0x00000000ffffffffLL) >> 10; DWORD tot_lo = memstex.ullTotalPhys % 1024LL; totphys = tot_hi * 4194304.0 + tot_md + tot_lo / 1024.0; Does this work? From flitterio@gmail.com Fri Aug 15 06:30:14 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.6 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, IMPRONONCABLE_1,MURPHY_DRUGS_REL8,MURPHY_WRONG_WORD1,MURPHY_WRONG_WORD2, RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 720) by emacsbugs.donarmstrong.com; 15 Aug 2008 13:30:14 +0000 Received: from TheWorld.com (pcls6.std.com [192.74.137.146]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7FDU9YP032046 for <720@emacsbugs.donarmstrong.com>; Fri, 15 Aug 2008 06:30:11 -0700 Received: from shell.TheWorld.com (IDENT:105@shell01.theworld.com [192.74.137.71]) by TheWorld.com (8.13.6/8.13.6) with ESMTP id m7FDTX9G003428; Fri, 15 Aug 2008 09:29:35 -0400 Received: from usenlittefl1c.theworld.com (localhost.theworld.com [127.0.0.1]) by shell.TheWorld.com (8.13.6/8.12.8) with ESMTP id m7FDTU3N8136148; Fri, 15 Aug 2008 09:29:31 -0400 (EDT) To: Eli Zaretskii , 720@debbugs.gnu.org Subject: Re: bug#720: Patch to fix CVS Emacs compilation error on Windows XP SP2. Date: Fri, 15 Aug 2008 09:22:31 -0400 References: From: Francis Litterio X-Random-Quote: Why do we drive on parkways and park on driveways? In-Reply-To: (Eli Zaretskii's message of "Fri\, 15 Aug 2008 11\:22\:07 +0300") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Eli Zaretskii wrote: >> From: Francis Litterio >> >> w32.c(3820) : error C2520: conversion from unsigned __int64 to double not implemented, use signed __int64 > > "Not implemented"? I'm not sure we want to support such a deficient > compiler. I would happily use a newer compiler. The file emacs/nt/INSTALL says this: To compile Emacs, you will need either Microsoft Visual C++ 2.0, or later up to 7.0, and nmake I didn't realize that I could use a version of VC++ newer than 6.0. I would be happy to abandon 6.0 for building Emacs on Windows. Is VC++ 7.0 the compiler that comes with Visual Studio 2003? What compiler do the Emacs developers use to build on Windows? > How about this: > > DWORD tot_hi = memstex.ullTotalPhys >> 32; > DWORD tot_md = (memstex.ullTotalPhys & 0x00000000ffffffffLL) >> 10; > DWORD tot_lo = memstex.ullTotalPhys % 1024LL; > totphys = tot_hi * 4194304.0 + tot_md + tot_lo / 1024.0; > > Does this work? Nope: w32.c(3823) : error C2059: syntax error : 'bad suffix on number' w32.c(3823) : error C2146: syntax error : missing ')' before identifier 'L' w32.c(3823) : error C2059: syntax error : ')' w32.c(3824) : error C2059: syntax error : 'bad suffix on number' w32.c(3824) : error C2146: syntax error : missing ';' before identifier 'L' w32.c(3824) : error C2065: 'L' : undeclared identifier Here's the relevant code with line numbers: 3819 if (global_memory_status_ex (&memstex)) 3820 #if 1 3821 { 3822 DWORD tot_hi = memstex.ullTotalPhys >> 32; 3823 DWORD tot_md = (memstex.ullTotalPhys & 0x00000000ffffffffLL) >> 10; 3824 DWORD tot_lo = memstex.ullTotalPhys % 1024LL; 3825 totphys = tot_hi * 4194304.0 + tot_md + tot_lo / 1024.0; 3826 } 3827 #else 3828 totphys = (signed __int64)memstex.ullTotalPhys / 1024.0; 3829 #endif -- Fran From eliz@gnu.org Fri Aug 15 09:16:11 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-5.3 required=4.0 tests=AWL,BAYES_00,GMAIL, HAS_BUG_NUMBER,IMPRONONCABLE_1,MURPHY_DRUGS_REL8,MURPHY_WRONG_WORD1, MURPHY_WRONG_WORD2 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 720) by emacsbugs.donarmstrong.com; 15 Aug 2008 16:16:11 +0000 Received: from mtaout5.012.net.il (mtaout5.012.net.il [84.95.2.13]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7FGG7Bv020211 for <720@emacsbugs.donarmstrong.com>; Fri, 15 Aug 2008 09:16:08 -0700 Received: from HOME-C4E4A596F7 ([84.229.211.50]) by i_mtaout5.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K5N00H36H5ZV5C0@i_mtaout5.012.net.il> for 720@emacsbugs.donarmstrong.com; Fri, 15 Aug 2008 19:15:35 +0300 (IDT) Date: Fri, 15 Aug 2008 19:15:12 +0300 From: Eli Zaretskii Subject: Re: bug#720: Patch to fix CVS Emacs compilation error on Windows XP SP2. In-reply-to: X-012-Sender: halo1@inter.net.il To: Francis Litterio Cc: 720@debbugs.gnu.org Reply-to: Eli Zaretskii Message-id: References: > Date: Fri, 15 Aug 2008 09:22:31 -0400 > From: Francis Litterio > > Eli Zaretskii wrote: > > >> From: Francis Litterio > >> > >> w32.c(3820) : error C2520: conversion from unsigned __int64 to double not implemented, use signed __int64 > > > > "Not implemented"? I'm not sure we want to support such a deficient > > compiler. > > I would happily use a newer compiler. The file emacs/nt/INSTALL says > this: > > To compile Emacs, you will need either Microsoft Visual C++ 2.0, or > later up to 7.0, and nmake > > I didn't realize that I could use a version of VC++ newer than 6.0. I > would be happy to abandon 6.0 for building Emacs on Windows. Is VC++ > 7.0 the compiler that comes with Visual Studio 2003? Yes. > What compiler do the Emacs developers use to build on Windows? The MinGW port of GCC. > > How about this: > > > > DWORD tot_hi = memstex.ullTotalPhys >> 32; > > DWORD tot_md = (memstex.ullTotalPhys & 0x00000000ffffffffLL) >> 10; > > DWORD tot_lo = memstex.ullTotalPhys % 1024LL; > > totphys = tot_hi * 4194304.0 + tot_md + tot_lo / 1024.0; > > > > Does this work? > > Nope: > > w32.c(3823) : error C2059: syntax error : 'bad suffix on number' > w32.c(3823) : error C2146: syntax error : missing ')' before identifier 'L' > w32.c(3823) : error C2059: syntax error : ')' > w32.c(3824) : error C2059: syntax error : 'bad suffix on number' > w32.c(3824) : error C2146: syntax error : missing ';' before identifier 'L' > w32.c(3824) : error C2065: 'L' : undeclared identifier Does it mean that the LL suffix is not supported in VS 6? Can you try the same without the 2 LL suffixes? From flitterio@gmail.com Fri Aug 15 10:11:50 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.8 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, HTML_MESSAGE,IMPRONONCABLE_1,MURPHY_DRUGS_REL8,MURPHY_WRONG_WORD1, MURPHY_WRONG_WORD2 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 720) by emacsbugs.donarmstrong.com; 15 Aug 2008 17:11:50 +0000 Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.28]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7FHBkWa004686 for <720@emacsbugs.donarmstrong.com>; Fri, 15 Aug 2008 10:11:48 -0700 Received: by yx-out-2324.google.com with SMTP id 8so698836yxg.31 for <720@emacsbugs.donarmstrong.com>; Fri, 15 Aug 2008 10:11:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=PhOl2IppDu7TmDIhRTzJMKBOyU912X2BgrQSubuwiXY=; b=hGkjSNJqqrzZnhmOX2IsnVH9QbpXF5cf5mNQAxgRBk/4WHaKzVMBOwgJz1n2yRmgM4 /bd4UPqB5RxoCGl1d+EG5RCGRpq42+2YiDRBHTbTKK/+jOmCfRkYdjfPrcmjDd6vGqxU GFasGaey4qNCpVuisZQNwcNo1I7krYKJn/Kwo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=PuNsvlgOBXJpYocz0/muNkMJW8nEt8NPt4s5WmrJm0rcNrg9W+TZrE6ajff1sXuWsF cicgQvYuBaFClLW8snQ/zyJppl3lvToxtGZxF83k0gWoepKdz+30D43z0CW7xeOQM6xm 2n+Bia/43NRg2JkUfEHjka1Gafl2JWeoZjhqk= Received: by 10.114.66.2 with SMTP id o2mr2856029waa.83.1218820305911; Fri, 15 Aug 2008 10:11:45 -0700 (PDT) Received: by 10.115.59.15 with HTTP; Fri, 15 Aug 2008 10:11:45 -0700 (PDT) Message-ID: Date: Fri, 15 Aug 2008 13:11:45 -0400 From: "Fran Litterio" To: "Eli Zaretskii" Subject: Re: bug#720: Patch to fix CVS Emacs compilation error on Windows XP SP2. Cc: 720@debbugs.gnu.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_131747_19233370.1218820305937" References: ------=_Part_131747_19233370.1218820305937 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Fri, Aug 15, 2008 at 12:15 PM, Eli Zaretskii wrote: > > > How about this: > > > > > > DWORD tot_hi = memstex.ullTotalPhys >> 32; > > > DWORD tot_md = (memstex.ullTotalPhys & 0x00000000ffffffffLL) >> 10; > > > DWORD tot_lo = memstex.ullTotalPhys % 1024LL; > > > totphys = tot_hi * 4194304.0 + tot_md + tot_lo / 1024.0; > > > > > > Does this work? > > > > Nope: > > > > w32.c(3823) : error C2059: syntax error : 'bad suffix on number' > > w32.c(3823) : error C2146: syntax error : missing ')' before identifier > 'L' > > w32.c(3823) : error C2059: syntax error : ')' > > w32.c(3824) : error C2059: syntax error : 'bad suffix on number' > > w32.c(3824) : error C2146: syntax error : missing ';' before identifier > 'L' > > w32.c(3824) : error C2065: 'L' : undeclared identifier > > Does it mean that the LL suffix is not supported in VS 6? I think so. > Can you try > the same without the 2 LL suffixes? > Yes, omitting the LL suffixes compiles with VS 6, though with several of these warnings: warning C4244: '=' : conversion from 'long double ' to 'long ', possible loss of data -- Fran ------=_Part_131747_19233370.1218820305937 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
On Fri, Aug 15, 2008 at 12:15 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> > How about this:
> >
> >   DWORD tot_hi = memstex.ullTotalPhys >> 32;
> >   DWORD tot_md = (memstex.ullTotalPhys & 0x00000000ffffffffLL) >> 10;
> >   DWORD tot_lo = memstex.ullTotalPhys % 1024LL;
> >   totphys = tot_hi * 4194304.0 + tot_md + tot_lo / 1024.0;
> >
> > Does this work?
>
> Nope:
>
>   w32.c(3823) : error C2059: syntax error : 'bad suffix on number'
>   w32.c(3823) : error C2146: syntax error : missing ')' before identifier 'L'
>   w32.c(3823) : error C2059: syntax error : ')'
>   w32.c(3824) : error C2059: syntax error : 'bad suffix on number'
>   w32.c(3824) : error C2146: syntax error : missing ';' before identifier 'L'
>   w32.c(3824) : error C2065: 'L' : undeclared identifier

Does it mean that the LL suffix is not supported in VS 6?

I think so.
 
Can you try
the same without the 2 LL suffixes?

Yes, omitting the LL suffixes compiles with VS 6, though with several of these warnings:

   warning C4244: '=' : conversion from 'long double ' to 'long ', possible loss of data
--
Fran

------=_Part_131747_19233370.1218820305937-- From eliz@gnu.org Fri Aug 15 10:37:14 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-5.2 required=4.0 tests=AWL,BAYES_00,GMAIL, HAS_BUG_NUMBER,MURPHY_DRUGS_REL8,RCVD_IN_NIX1 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 720) by emacsbugs.donarmstrong.com; 15 Aug 2008 17:37:14 +0000 Received: from mtaout2.012.net.il (mtaout2.012.net.il [84.95.2.4]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7FHbANJ012404 for <720@emacsbugs.donarmstrong.com>; Fri, 15 Aug 2008 10:37:12 -0700 Received: from HOME-C4E4A596F7 ([84.229.211.50]) by i_mtaout2.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K5N00KHBKYGD910@i_mtaout2.012.net.il> for 720@emacsbugs.donarmstrong.com; Fri, 15 Aug 2008 20:37:29 +0300 (IDT) Date: Fri, 15 Aug 2008 20:37:05 +0300 From: Eli Zaretskii Subject: Re: bug#720: Patch to fix CVS Emacs compilation error on Windows XP SP2. In-reply-to: X-012-Sender: halo1@inter.net.il To: Fran Litterio Cc: 720@debbugs.gnu.org Reply-to: Eli Zaretskii Message-id: References: > Date: Fri, 15 Aug 2008 13:11:45 -0400 > From: "Fran Litterio" > Cc: 720@emacsbugs.donarmstrong.com > > > > w32.c(3823) : error C2059: syntax error : 'bad suffix on number' > > > w32.c(3823) : error C2146: syntax error : missing ')' before identifier > > 'L' > > > w32.c(3823) : error C2059: syntax error : ')' > > > w32.c(3824) : error C2059: syntax error : 'bad suffix on number' > > > w32.c(3824) : error C2146: syntax error : missing ';' before identifier > > 'L' > > > w32.c(3824) : error C2065: 'L' : undeclared identifier > > > > Does it mean that the LL suffix is not supported in VS 6? > > > I think so. > > > > Can you try > > the same without the 2 LL suffixes? > > > > Yes, omitting the LL suffixes compiles with VS 6, though with several of > these warnings: > > warning C4244: '=' : conversion from 'long double ' to 'long ', possible > loss of data Thanks, I installed the version without LL suffixes. From eliz@gnu.org Fri Aug 15 10:40:07 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.9 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 720-done) by emacsbugs.donarmstrong.com; 15 Aug 2008 17:40:07 +0000 Received: from mtaout7.012.net.il (mtaout7.012.net.il [84.95.2.19]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7FHe3Wx012576 for <720-done@emacsbugs.donarmstrong.com>; Fri, 15 Aug 2008 10:40:04 -0700 Received: from HOME-C4E4A596F7 ([84.229.211.50]) by i-mtaout7.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0K5N002JXL38FR00@i-mtaout7.012.net.il> for 720-done@emacsbugs.donarmstrong.com; Fri, 15 Aug 2008 20:40:21 +0300 (IDT) Date: Fri, 15 Aug 2008 20:39:57 +0300 From: Eli Zaretskii Subject: Bug fixed X-012-Sender: halo1@inter.net.il To: 720-done@debbugs.gnu.org Reply-to: Eli Zaretskii Message-id: This bug is fixed. From monnier@iro.umontreal.ca Fri Aug 15 12:32:01 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.9 required=4.0 tests=BAYES_00,FOURLA, HAS_BUG_NUMBER,MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 15 Aug 2008 19:32:02 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7FJVuTc016024 for ; Fri, 15 Aug 2008 12:31:59 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KU51g-00082s-2Q for bug-gnu-emacs@gnu.org; Fri, 15 Aug 2008 15:31:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KU51d-000828-W5 for bug-gnu-emacs@gnu.org; Fri, 15 Aug 2008 15:31:55 -0400 Received: from [199.232.76.173] (port=43775 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KU51d-00081z-QH for bug-gnu-emacs@gnu.org; Fri, 15 Aug 2008 15:31:53 -0400 Received: from smtp-03.arnet.com.ar ([200.45.191.14]:40460) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KU51d-0002RD-5m for bug-gnu-emacs@gnu.org; Fri, 15 Aug 2008 15:31:53 -0400 Received: (qmail 2333 invoked from network); 15 Aug 2008 19:30:04 -0000 Received: from unknown (HELO ceviche.home) (190.137.23.154) by 0 with SMTP; 15 Aug 2008 19:30:04 -0000 Received: by ceviche.home (Postfix, from userid 20848) id 2528C70CF2; Fri, 15 Aug 2008 15:31:50 -0400 (EDT) From: Stefan Monnier To: Eli Zaretskii Cc: 720@debbugs.gnu.org, flitterio@gmail.com, bug-gnu-emacs@gnu.org Subject: Re: bug#720: Patch to fix CVS Emacs compilation error on Windows XP SP2. Message-ID: References: Date: Fri, 15 Aug 2008 15:31:49 -0400 In-Reply-To: (Eli Zaretskii's message of "Thu, 14 Aug 2008 23:20:07 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) >> > When building CVS Emacs on Windows XP SP2 using Visual Studio 6.0, the >> > following patch is needed to prevent the compiler from displaying an >> > error about unsigned __int64 not being convertable to double. >> Wouldn't it be better to cast to (double) ? > Wouldn't that be doing the same mistake? The compiler probably has a > point: an unsigned 64-bit number has more bits than a simple double > can handle. Yes, it's a good reason for not doing the conversion automatically, but IIUC we need a double, so we don't have much of a choice, and that's what the cast to (double) would tell the compiler. Stefan From monnier@iro.umontreal.ca Fri Aug 15 12:34:45 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.0 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, IMPRONONCABLE_1,MURPHY_DRUGS_REL8,MURPHY_WRONG_WORD1,MURPHY_WRONG_WORD2, RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 15 Aug 2008 19:34:45 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7FJYgr0016248 for ; Fri, 15 Aug 2008 12:34:43 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KU54M-0001MI-7n for bug-gnu-emacs@gnu.org; Fri, 15 Aug 2008 15:34:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KU54K-0001Lh-OA for bug-gnu-emacs@gnu.org; Fri, 15 Aug 2008 15:34:41 -0400 Received: from [199.232.76.173] (port=44340 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KU54K-0001LX-Fd for bug-gnu-emacs@gnu.org; Fri, 15 Aug 2008 15:34:40 -0400 Received: from smtp-04.arnet.com.ar ([200.45.191.26]:54629) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KU54J-0003ax-Ig for bug-gnu-emacs@gnu.org; Fri, 15 Aug 2008 15:34:40 -0400 Received: (qmail 24671 invoked from network); 15 Aug 2008 19:32:50 -0000 Received: from unknown (HELO ceviche.home) (190.137.23.154) by 0 with SMTP; 15 Aug 2008 19:32:50 -0000 Received: by ceviche.home (Postfix, from userid 20848) id B4EC670CF2; Fri, 15 Aug 2008 15:34:36 -0400 (EDT) From: Stefan Monnier To: Eli Zaretskii Cc: Francis Litterio , 720@debbugs.gnu.org, bug-gnu-emacs@gnu.org Subject: Re: bug#720: Patch to fix CVS Emacs compilation error on Windows XP SP2. Message-ID: References: Date: Fri, 15 Aug 2008 15:34:36 -0400 In-Reply-To: (Eli Zaretskii's message of "Fri, 15 Aug 2008 11:22:07 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) > "Not implemented"? I'm not sure we want to support such a deficient > compiler. Indeed we don't. > How about this: > DWORD tot_hi = memstex.ullTotalPhys >> 32; > DWORD tot_md = (memstex.ullTotalPhys & 0x00000000ffffffffLL) >> 10; > DWORD tot_lo = memstex.ullTotalPhys % 1024LL; > totphys = tot_hi * 4194304.0 + tot_md + tot_lo / 1024.0; > Does this work? Please don't install such hideous code just to work around a deficiency in an obsolete proprietary compiler. Especially since there's a perfectly good Free alternative available. Stefan From unknown Sun Aug 17 22:02:02 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Sat, 13 Sep 2008 14:24:04 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator