Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23662 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26590 invoked by uid 1010); 25 May 2006 16:48:08 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 26575 invoked from network); 25 May 2006 16:48:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 May 2006 16:48:08 -0000 X-PHP-List-Original-Sender: frank@kromann.info X-Host-Fingerprint: 64.186.239.125 c-064-186-239-125.oc1.redwire.net Linux 2.5 (sometimes 2.4) (4) Received: from ([64.186.239.125:44163] helo=mail.kromann.info) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 38/B9-17316-6CFD5744 for ; Thu, 25 May 2006 12:48:07 -0400 Received: by mail.kromann.info (Postfix, from userid 510) id 7EEA74040C4; Thu, 25 May 2006 09:48:03 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on mail.kromann.info X-Spam-Level: * X-Spam-Status: No, score=1.2 required=5.0 tests=AWL autolearn=ham version=3.1.1 Received: from warp (www.kromann.info [64.186.239.115]) by mail.kromann.info (Postfix) with SMTP id E2D724040B7; Thu, 25 May 2006 09:48:02 -0700 (PDT) To: Dan Kalowsky Cc: , Derick Rethans X-Mailer: Swwwing 2000 Message-ID: <11485756809720000@9866357972520000.9866341568840000> MIME-Version: 1.0 Reply-To: "Frank M. Kromann" Date: Thu, 25 May 2006 09:48:00 -0700 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Compile error on ext/date/lib/parse_date.c From: frank@kromann.info ("Frank M. Kromann") Actually it's the other way arround. /Ox turns on all optimizations. Without it the file compiles fine. - Frank > > /Ox turns off optimizations. Basically _scan has overrun the optimization > buffer allocated at compile time. I'm not aware of any way to increase > it, and I don't believe turning off optimizations is a benefit for PHP on > Windows. > > It might be time to re-think how this function works. > > > On Thu, 25 May 2006, Derick Rethans wrote: > > > On Wed, 24 May 2006, Frank M. Kromann wrote: > > > >> Hello All, > >> > >> My hard disk crashed over the weekend and after reinstalling everything on > >> a new drive I'm getting the folowing error: > >> > >> c:\php\php5_2\ext\date\lib\parse_date.re(759) : fatal error C1053: '_scan' > >> : function too large > >> NMAKE : fatal error U1077: '"cl.exe"' : return code '0x2' > >> Stop. > > > > Too large? :) I know this function *is* pretty big because it is > > generated from re2c but it is funny that this MS compiler doesn't like > > it. > > > >> I'm using Visual Studio .NET 2003 and that's the same version I have been > >> using for a while without problems. > >> > >> A quick fix is to remove /Ox from CFLAGS in the Makefile when compiling > >> this file. > > > > What does this /Ox thingy do? > > > > regards, > > Derick > > > > -- > > Derick Rethans > > http://derickrethans.nl | http://ez.no | http://xdebug.org > > > > -- > > PHP Internals - PHP Runtime Development Mailing List > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > >---------------------------------------------------------------< > Dan Kalowsky "I thought you died alone, > http://www.deadmime.org/~dank a long long time ago." > dank-nom@aps-deadmime.org - "The Man Who Sold the World" > kalowsky@php.net David Bowie >