1.0.8.27: Improve error handling for (DESTRUCTURING-BIND (...) 'NOTLIST ...).
[sbcl/lichteblau.git] / make-genesis-2.sh
blob4b9973e6aafde5f8446a9004989b7a2bb2c5a75c
1 #!/bin/sh
2 set -e
4 # This is a script to be run as part of make.sh. The only time you'd
5 # want to run it by itself is if you're trying to cross-compile the
6 # system or if you're doing some kind of troubleshooting.
8 # This software is part of the SBCL system. See the README file for
9 # more information.
11 # This software is derived from the CMU CL system, which was
12 # written at Carnegie Mellon University and released into the
13 # public domain. The software is in the public domain and is
14 # provided with absolutely no warranty. See the COPYING and CREDITS
15 # files for more information.
17 echo //entering make-genesis-2.sh
19 # In a fresh host Lisp invocation, load the cross-compiler (in order
20 # to get various definitions that GENESIS needs, not in order to
21 # cross-compile GENESIS, then load and run GENESIS. (We use a fresh
22 # host Lisp invocation here for basically the same reasons we did
23 # before when loading and running the cross-compiler.)
25 # (Why do we need this second invocation of GENESIS? In order to
26 # create a .core file, as opposed to just a .h file, GENESIS needs
27 # symbol table data on the C runtime. And we can get that symbol
28 # data only after the C runtime has been built. Therefore, even
29 # though we ran GENESIS earlier, we couldn't get it to make a .core
30 # file at that time; but we needed to run it earlier in order to
31 # get to where we can write a .core file.)
32 echo //loading and running GENESIS to create cold-sbcl.core
33 $SBCL_XC_HOST < make-genesis-2.lisp
35 echo //testing for consistency of first and second GENESIS passes
36 if diff -r src/runtime/genesis output/genesis-2; then
37 echo //header files match between first and second GENESIS -- good
38 else
39 echo error: header files do not match between first and second GENESIS
40 exit 1