View Problem Report: 7052
Audit Trail:
From: Matthew Flatt <mflatt@cs.utah.edu>
To: howard_b_golden@yahoo.com, bugs@plt-scheme.org
Cc: eli@plt-scheme.org
Subject: Re: all/7052: Compiling from source: Compiling .zos for mzc fails: ill-formed code
Date: Thu, 30 Sep 2004 21:10:31 -0700
At Thu, 30 Sep 2004 17:30:01 -0400, howard_b_golden@yahoo.com wrote:
> Compiling drscheme from source fails, see message below.
>
> Environment: Gentoo Linux 2.6.8.
> GCC version 3.4.2 with compile flags: -march=athlon-xp -O2 -pipe
> (also see GCC specs file detail below).
I have not tried gcc 3.4.2. As far as I can tell, gcc 3.4.1 has an
optimizer bug, and maybe it persists in 3.4.2.
Please see
http://list.cs.brown.edu/pipermail/plt-scheme/2004-August/006338.html
I would be interested to hear what 3.4.2 produces for the program in
that message. Or, if you can shed any further light on the problem, I'd
very much appreciate it.
Thanks,
Matthew
From: "Howard B. Golden" <hgolden@socal.rr.com>
To: Matthew Flatt <mflatt@cs.utah.edu>, bugs@plt-scheme.org
Cc: eli@plt-scheme.org
Subject: Re: all/7052: Compiling from source: Compiling .zos for mzc fails: ill-formed code
Date: Thu, 30 Sep 2004 22:48:35 -0700
On Thursday September 30, 2004 09:10 pm, Matthew Flatt wrote:
> I have not tried gcc 3.4.2. As far as I can tell, gcc 3.4.1 has an
> optimizer bug, and maybe it persists in 3.4.2.
>
> Please see
> http://list.cs.brown.edu/pipermail/plt-scheme/2004-August/006338.html
>
> I would be interested to hear what 3.4.2 produces for the program in
> that message. Or, if you can shed any further light on the problem,
> I'd very much appreciate it.
Matthew,
I pasted the test program into a file and ran it with/without -O2 and
with/without inline. I get the same results as you reported under GCC
3.4.1.
Should I simply compile without -O2 ?
Thanks for your prompt response to this bug report!
Howard
From: Matthew Flatt <mflatt@cs.utah.edu>
To: howard_b_golden@yahoo.com
Cc: bugs@plt-scheme.org, eli@plt-scheme.org
Subject: Re: all/7052: Compiling from source: Compiling .zos for mzc fails: ill-formed code
Date: Fri, 1 Oct 2004 06:56:58 -0700
At Thu, 30 Sep 2004 22:48:35 -0700, "Howard B. Golden" wrote:
> I pasted the test program into a file and ran it with/without -O2 and
> with/without inline. I get the same results as you reported under GCC
> 3.4.1.
Ok - thanks for running that test.
> Should I simply compile without -O2 ?
That's one solution. Another solution is to run `configure' as
env CFLAGS="-DDONT_INLINE_NZERO_TEST" configure ...
This #ifdefs out the troublesome "inline" declaration.
Matthew
Responsible changed from "nobody" to "mflatt" by eli at Thu, 07 Oct 2004 14:50:08 -0400
Reason>>> mzscheme
State changed from "open" to "closed" by mflatt at Fri, 28 Jan 2005 12:08:32 -0500
Reason>>> Adjusted use of `inline' in v209 and v299 to avoid the gcc bug.