[plt-scheme] Build problems on amd64--freebsd7.0?

From: Andrew Reilly (andrew-scheme at areilly.bpc-users.org)
Date: Mon Dec 17 18:16:37 EST 2007

Hi there,

Has anyone successfully built drscheme successfully on
FreeBSD-7.0 recently?  I had previously been using 370 from
Ports (i.e., built from source), but the port is now marked
"Broken: fails to install", but on my system it doesn't even get
that far.  I've tried tweaking the port to build 371 release,
and just now 371.3 pre-release, and they all stop in much the
same way:

cd gc2; gmake gen-deps
gmake[4]: Entering directory `/usr/home/andrew/plt-svn/plt-371.3/src/mred/gc2'
../../mzscheme/mzscheme3m -qr "./gen-deps.ss"
Segmentation fault (core dumped)
gmake[4]: *** [gen-deps] Error 139
gmake[4]: Leaving directory `/usr/home/andrew/plt-svn/plt-371.3/src/mred/gc2'
gmake[3]: *** [3m] Error 2
gmake[3]: Leaving directory `/usr/home/andrew/plt-svn/plt-371.3/src/mred'
gmake[2]: *** [mred-3m] Error 2
gmake[2]: Leaving directory `/usr/home/andrew/plt-svn/plt-371.3/src'
gmake[1]: *** [3m] Error 2
gmake[1]: Leaving directory `/usr/home/andrew/plt-svn/plt-371.3/src'
gmake: *** [all] Error 2

I remember some mailing list commentary earlier this month about
several Lisp implementations having problems with a change to
which signal is delivered on a memory fault, in FreeBSD-7, but I
can't remember what the outcome of that was.  I'll go back
through the lists to check, but mostly I wanted to see if I was
just doing something dumb, and there were already FreeBSD-ers
successfully running plt-scheme?
The core dump mentioned in the script above isn't helpful,
because there don't seem to be any debugging symbols, despite
the -g argument in CFLAGS.  I probably need extra tweakage to
stop a subsequent strip operation...

FWIW, I'm running src/configure thusly (exactly as per the ports

#!/bin/sh -v
rm -rf plt-${ver}
tar xvfz ../Desktop/plt-${ver}-src-unix.tgz
cd plt-${ver}/src
CFLAGS="-O2 -fno-strict-aliasing -pipe -g"
CPPFLAGS="-I/usr/local/include -DLONG64"

./configure --prefix=${PREFIX} --enable-shared --enable-xft --enable-gl \
	    --enable-xrender --enable-cairo --with-x --enable-pthread \
	    --enable-lt=${LIBTOOL} \
	    --x-includes=${X11BASE}/include --x-libraries=${X11BASE}/lib \
	    --mandir=/usr/local/man amd64-portbld-freebsd7.0


Any thoughts?

Oh, as another data point: [3m] seems to
compile and build fine, using the same configure args.  While
I'm positive about all of the changes that are going into the
400 series, my current project uses ssax from PLaneT, and that
seems to use set-cdr!, so I'm a bit stumped on how to proceed in
that direction.



Posted on the users mailing list.