[racket] segmentation fault while compiling mzscheme 4.2.5 on Xen environment

From: Danny Yoo (dyoo at cs.wpi.edu)
Date: Fri Jun 18 15:10:46 EDT 2010

I'm seeing the following error when trying to install mzscheme on a
Xen-hosted virtual environment.  In the middle of 'make', I see this:


#####################################################################
make mzschemecgc
make[4]: Entering directory `/home/dyoo/local/plt-4.2.5/src/mzscheme'
gcc -I. -I./include -g -O2  -Wall  -pthread    -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DINITIAL_COLLECTS_DIRECTORY='"'"`cd
./../../collects; pwd`"'"' -c ./main.c -o main.o
gcc -o mzschemecgc main.o  libmzscheme.a libmzgc.a  -pthread -ldl -lm
-ldl -lm -rdynamic
make[4]: Leaving directory `/home/dyoo/local/plt-4.2.5/src/mzscheme'
make[3]: Leaving directory `/home/dyoo/local/plt-4.2.5/src/mzscheme'
cd gc2; make all
make[3]: Entering directory `/home/dyoo/local/plt-4.2.5/src/mzscheme/gc2'
mkdir xsrc
make xsrc/precomp.h
make[4]: Entering directory `/home/dyoo/local/plt-4.2.5/src/mzscheme/gc2'
env XFORM_PRECOMP=yes ../mzschemecgc -cqu ./xform.ss --setup . --cpp
"gcc -E -I./.. -I./../include -pthread   -DNEWGC_BTC_ACCOUNT
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 "  --keep-lines -o
xsrc/precomp.h ./precomp.c
Copying tree...
make[4]: *** [xsrc/precomp.h] Segmentation fault
make[4]: Leaving directory `/home/dyoo/local/plt-4.2.5/src/mzscheme/gc2'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/dyoo/local/plt-4.2.5/src/mzscheme/gc2'
make[2]: *** [3m] Error 2
make[2]: Leaving directory `/home/dyoo/local/plt-4.2.5/src/mzscheme'
make[1]: *** [3m] Error 2
make[1]: Leaving directory `/home/dyoo/local/plt-4.2.5/src'
#####################################################################



Here's what uname says about my system:

################################################################

dyoo at go:~/local/plt-4.2.5/src$ uname -a
Linux go 2.6.18-6-xen-686 #1 SMP Thu Nov 5 19:54:42 UTC 2009 i686 GNU/Linux

######################################################################



I'm seeing the same segmentation fault if I try compiling Racket as well:

#######################################################################
make[4]: Entering directory `/home/dyoo/local/plt-5.0/src/racket/gc2'
env XFORM_PRECOMP=yes ../racketcgc -cqu ./xform.rkt --setup . --cpp
"gcc -E -I./.. -I./../include -pthread   -DNEWGC_BTC_ACCOUNT
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 "  --keep-lines -o
xsrc/precomp.h ./precomp.c
Copying tree...
make[4]: *** [xsrc/precomp.h] Segmentation fault
make[4]: Leaving directory `/home/dyoo/local/plt-5.0/src/racket/gc2'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/dyoo/local/plt-5.0/src/racket/gc2'
make[2]: *** [3m] Error 2
make[2]: Leaving directory `/home/dyoo/local/plt-5.0/src/racket'
make[1]: *** [3m] Error 2
make[1]: Leaving directory `/home/dyoo/local/plt-5.0/src'
make: *** [all] Error 2
#######################################################################


What other debugging information can I provide?


Posted on the users mailing list.