default  Access: edit PLT Bugs
Main PageCreateQuick QueryStandard QueryAdvanced QueryHelp
Edit

View Problem Report: 7052

or send email to interested parties or send email followup to audit-trail
Reporter's email: howard_b_golden@yahoo.com
Number: 7052
Category: mzscheme
Synopsis: Compiling from source: Compiling .zos for mzc fails: ill-formed code
Class: sw-bug
Responsible: mflatt
Notify-List:
Severity: critical
Priority: medium
State: closed
Confidential: no
Arrival-Date: Thu Sep 30 17:30:00 -0400 2004
Closed-Date:
Last-Modified: Fri Jan 28 12:08:32 -0500 2005
Originator: Howard B. Golden
Organization: plt
Submitter-Id: unknown
Release: 208
Environment: linux-other
Description: 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).


Build fails with following messages:

---- messages follow ----

setup-plt: Post-Installing MrEd
setup-plt: Done setting up
setup-plt:
setup-plt: Error during Compiling .zos for mzc (/var/tmp/portage/drscheme-208/image/usr/share/drscheme/collects/compiler)
setup-plt:   private/compiled/const.zo::33183: read (compiled): ill-formed code
setup-plt: Error during Compiling .zos for mzc private (/var/tmp/portage/drscheme-208/image/usr/share/drscheme/collects/compiler/private)
setup-plt:   compiled/const.zo::33183: read (compiled): ill-formed code
setup-plt: Error during Early Install for Plot library (/var/tmp/portage/drscheme-208/image/usr/share/drscheme/collects/plot)
setup-plt:   make: Failed to make /var/tmp/portage/drscheme-208/image/usr/share/drscheme/collects/plot/src/fit/fit-low-level.o; collects/compiler/private/compiled/const.zo::33183: read (compiled): ill-formed code
install: Errors in compilation process! (1)
make[1]: *** [copy-finish] Error 1
make[1]: Leaving directory `/var/tmp/portage/drscheme-208/work/plt/src'
make: *** [install] Error 2

---- End of messages ----

---- GCC settings ----

Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.2/specs
Configured with: /var/tmp/portage/gcc-3.4.2-r2/work/gcc-3.4.2/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.4 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/include/g++-v3 --host=i686-pc-linux-gnu --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-shared--with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --with-gnu-ld --enable-threads=posix --disable-multilib --enable-languages=c,c++,f77,objc,java
Thread model: posix
gcc version 3.4.2  (Gentoo Linux 3.4.2-r2, ssp-3.4.1-1, pie-8.7.6.5)
File Attachments:
How-To-Repeat: Compile drscheme-208 Gentoo package, leading to messages above.

Gentoo package for drscheme does the following:

1. downloads http://download.plt-scheme.org/bundles/208/plt/plt-208-src-unix.tgz

2. unpacks it into directory /var/tmp/portage/drscheme-208

3. configures it with: --prefix=/usr/share/drscheme/

4. makes it
Fix:
Release-Note:
Unformatted:

or send email to interested parties or send email followup to audit-trail

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.