[plt-scheme] mzscheme and gcc 3.4

From: Daniel Silva (dansilva at lynx.dac.neu.edu)
Date: Sun Apr 4 20:47:09 EDT 2004

Has anyone tried compiling mzscheme with gcc 3.4 and some extra
optimization flags?

I built it today using this wrapper around gcc:

/usr/bin/gcc-3.4 -mtune=athlon-tbird -march=athlon-tbird 
-funit-at-a-time -fpeel-loops -funswitch-loops -fprefetch-loop-arrays
-fweb -frename-registers  -foptimize-sibling-calls  -finline-functions
-funroll-loops -ftracer ${1+"$@"}

Then after "make", "make install", and "rm -rf `find $PLT/collects -name
compiled`", I got a segfault in mzscheme:

[~/plt/collects/compiler] > gdb mzscheme
(gdb) run
Starting program: /usr/local/bin/mzscheme
Welcome to MzScheme version 206.1, Copyright (c) 2004 PLT Scheme, Inc.
> (require (lib "compiler.ss" "compiler"))

Program received signal SIGSEGV, Segmentation fault.
0x40082bde in siglongjmp () from /lib/tls/libc.so.6
(gdb) bt
#0  0x40082bde in siglongjmp () from /lib/tls/libc.so.6
#1  0x00000015 in ?? ()
#2  0x00000001 in ?? ()


Has anyone else run into this lately?

Daniel



Posted on the users mailing list.