Hello,

I'm trying to compile the August snapshot (plus a patch [1]) on NetBSD
2.0 beta using a compiler I cross-compiled on a Debian GNU/Linux box,
and though that cross-built compiler seems to work, I can't build the
full system natively.

To cross-build the compiler, I've followed the instructions in
src/tools/README, using lightly modified version of
src/tools/cross-scripts/cross-x86-x86.lisp (just removing :linux and
:glibc symbols from *features*, and adding :netbsd and :bsd). The
cross compilation results in a compiler that can compile a few
programs on NetBSD (mk:defsystem, for instance), and it survives a few
garbage collections in so doing.

When I try compiling the snapshot using this compiler, it only gets as
far as loading setup.x86f before exceeding
kernel:*maximum-error-depth*. A transcript of an attempt is appended
below. The same cross-built Lisp can compile and load setup.x86f
successfully outside of the build system, though. I haven't been
modifying the setenv.lisp that's deposited in the target directory by
create-target.sh.

For whatever it's worth, I get the same results using CMUCL 19a as the
initial host for compiling the cross-compiler, or using yesterday's
CVS checkout instead of the snapshot. The NetBSD that I'm using was
built on July 12.

Any advice?

Thanks in advance,
Richard Kreuter

[1] The patch is Robert Swindells's, from posting archived at

http://article.gmane.org/gmane.lisp.cmucl.devel/6079

[2] Transcript of a typical run. The cross-built lisp comes from the
August snapshot:

$ ./src/tools/build-world.sh netbsd ./xtarget/lisp/lisp
CMU Common Lisp cross0 v3 2004-08-21, running on daystrom
With core: /home/kreuter/cmucl/xtarget/lisp/lisp.core
Dumped on: Sat, 2004-08-21 22:36:02Z on daystrom
See <http://www.cons.org/cmucl/> for support information.
Loaded subsystems:
    Python 1.1, target Intel x86
    CLOS based on Gerd's PCL 2004/04/14 03:32:47
* 
#<The COMMON-LISP-USER package, 0/9 internal, 0/9 external>
* 
("netbsd/" "src/")
* 
NIL
* 
; Loading #p"/home/kreuter/cmucl/netbsd/setenv.lisp".
T
* 
(:NO-CLX :CMU19 :CMU19A :PYTHON :CONSERVATIVE-FLOAT-TYPE :MODULAR-ARITH :MP
 :X86 :LINKAGE-TABLE :RELATIVE-PACKAGE-NAMES :NETBSD :BSD :UNIX :RANDOM-MT19937
 :GENCGC :PENTIUM :I486 :HASH-NEW :HEAP-OVERFLOW-CHECK :STACK-CHECKING :COMMON
 :COMMON-LISP :ANSI-CL :IEEE-FLOATING-POINT :CMU)
* 
(:NO-CLM :NO-CLX :CMU19 :CMU19A :PYTHON :CONSERVATIVE-FLOAT-TYPE :MODULAR-ARITH
 :MP :X86 :LINKAGE-TABLE :RELATIVE-PACKAGE-NAMES :NETBSD :BSD :UNIX
 :RANDOM-MT19937 :GENCGC :PENTIUM :I486 :HASH-NEW :HEAP-OVERFLOW-CHECK
 :STACK-CHECKING :COMMON :COMMON-LISP :ANSI-CL :IEEE-FLOATING-POINT :CMU)
* 
(:NO-HEMLOCK :NO-CLM :NO-CLX :CMU19 :CMU19A :PYTHON :CONSERVATIVE-FLOAT-TYPE
 :MODULAR-ARITH :MP :X86 :LINKAGE-TABLE :RELATIVE-PACKAGE-NAMES :NETBSD :BSD
 :UNIX :RANDOM-MT19937 :GENCGC :PENTIUM :I486 :HASH-NEW :HEAP-OVERFLOW-CHECK
 :STACK-CHECKING :COMMON :COMMON-LISP :ANSI-CL :IEEE-FLOATING-POINT :CMU)
* 
; Loading #p"/home/kreuter/cmucl/src/code/exports.lisp".
Warning:  UNIX also exports the following symbols:
  (UNIX:USER-INFO-GID UNIX:USER-INFO-PASSWORD
                      UNIX:USER-INFO-NAME
                      UNIX:GROUP-INFO-MEMBERS
                      UNIX:GROUP-INFO-NAME
                      UNIX:UNIX-GETGRNAM
                      UNIX:USER-INFO-GECOS
                      UNIX:GROUP-INFO-GID
                      UNIX:UNIX-GETPWNAM
                      UNIX:UNIX-GETGRGID
                      UNIX:GROUP-INFO
                      UNIX:UNIX-GETPWUID
                      UNIX:USER-INFO-SHELL
                      UNIX:USER-INFO
                      UNIX:USER-INFO-UID
                      UNIX:USER-INFO-DIR)
Warning:  C also exports the following symbols:
  (C:AMD64-FASL-FILE-IMPLEMENTATION)
T
* 
; Loading #p"/home/kreuter/cmucl/src/tools/setup.lisp".
T
* target:tools/setup

Start time: Sunday, 8/22/04 02:05:00 am GMT, compiling target:tools/setup.

; Python version 1.1, VM version Intel x86 on 22 AUG 04 02:05:00 am.
; Compiling: /home/kreuter/cmucl/src/tools/setup.lisp 25 JUL 04 06:25:16 pm

; Comment: $Header: /project/cmucl/cvsroot/src/tools/setup.lisp,v 1.40 2004/07/25 
18:25:16 pmai Exp $

; Byte Compiling Top-Level Form: 
; Byte Compiling Top-Level Form: 
; Byte Compiling Top-Level Form: 
; Compiling DEFINE-CONDITION GENESIS-C-HEADER-FILE-CHANGED: 
; Byte Compiling Top-Level Form: 
; Converted DUMP-PACKAGE-STATE.
; Compiling DEFUN DUMP-PACKAGE-STATE: 
; Converted COPY-PACKAGES.
; Compiling DEFUN COPY-PACKAGES: 
; Byte Compiling Top-Level Form: 
; Converted WITH-COMPILER-LOG-FILE.
; Compiling DEFMACRO WITH-COMPILER-LOG-FILE: 
; Converted COMF.
; Compiling DEFUN COMF: 
; Byte Compiling Top-Level Form: 
; Compiling Creation Form for #<KERNEL::CLASS-CELL C::COMPILER-ERROR>: 
; Converted VMDIR.
; Compiling DEFUN VMDIR: 
; Converted CAT-IF-ANYTHING-CHANGED.
; Compiling DEFUN CAT-IF-ANYTHING-CHANGED: 
; Byte Compiling Top-Level Form: 

; target:tools/setup.x86f written.
; Compilation finished in 0:00:02.
; Loading #p"/home/kreuter/cmucl/netbsd/tools/setup.x86f".
* Help! 12 nested errors.  KERNEL:*MAXIMUM-ERROR-DEPTH* exceeded.
Received EOF on *standard-input*, switching to *terminal-io*.
* ?
* 
Received EOF.
* 
Received EOF.
* 
Received EOF.
* 
Received EOF.
* 
Received EOF.
* 
Received EOF.
* 
Received EOF.
* 
Received EOF.
* 
Received EOF.
* 
Received more than 10 EOFs; Aborting.
$ 


Reply via email to