Lars Brinkhoff <lars@...> writes:
> Is the PPC port broken?
Not completely, no.
> I tried to make a CVS build from scratch. My system: Debian, Linux
> 2.4, glibc 2.3.1, gcc 3.3.1, host compiler sbcl 0.8.1. I ran
> distclean.sh and then make.sh, and everything seemed to go well, but
> after some time I got this:
gcc 3.3 has caused me some problems too. As a workaround, in recent
CVS (which may not have made it to anonCVS yet) I've turned off all C
optimizations, which has at least made the problem go away for me on
the two systems I have available for testing.
> ; compiling file "/home/lars/src/sbcl-arm/sbcl/src/pcl/low.lisp" (written 27 MAY 2003 03:32:13 PM):
> ; compiling DEFSTRUCT WRAPPER:
> debugger invoked on condition of type SIMPLE-ERROR:
> :ACTUAL-INITARGS (FORMAT-CONTROL segmentation violation at #X~X
> :ASSIGNED-SLOTS NIL)
For diagnostic purposes, this happens to be enough for me because I've
seen this before.
This point is the first "triggered" garbage collection -- i.e. the
first one not caused by an explicit call to SB-EXT:GC -- that the
newly born compiler undergoes. As such, if something is wrong with
the runtime, or with sbcl's manipulation of the stack, or somesuch,
this is quite often the result.
To be honest, I can't be sure that the fault lies with gcc, not with
sbcl. But absent an easy route into the problem and hours, nay, days
of debugging time, I punted.
(if anonCVS hasn't caught up with the world, examine
src/runtime/Config.ppc-linux, and change "CFLAGS +=" to "CFLAGS =")
http://www-jcsu.jesus.cam.ac.uk/~csr21/ +44 1223 510 299/+44 7729 383 757
(set-pprint-dispatch 'number (lambda (s o) (declare (special b)) (format s b)))
(defvar b "~&Just another Lisp hacker~%") (pprint #36rJesusCollegeCambridge)