Filipe Cabecinhas wrote:
Hi. I tried to send this before, but it didn't end up on gmane and I
wasn't yet subscribed to the list so I didn't see if there were any
replies.
Yes, cmucl-help became a closed list a few months ago due to spam.
I'm sorry if it is a duplicate.
I'm trying to build cmucl on my computer but I'm having weird errors.
I downloaded cmucl-19e-x86-darwin and am using it to compile the cvs
HEAD version, but it throws an error at me while building phase 3.
There was an change in the compiler after 19e, so you have to do a
cross-compile to build it. Here's how you can do it:
src/tools/create-target.sh <target>
src/tools/create-target.sh <cross>
src/tools/cross-build-world.sh <target> <cross>
src/bootfiles/19e/boot-2008-04-1.lisp <19e-binary>
src/tools/load-world.sh <target> <version-string>
Where <target> and <cross> are different directories, <19e-binary> is
the path to your 19e binary, and <version-string> is the version you
want to call this.
Then you many want to do a full build using build.sh with this new binary.
Let us know how that goes.
Ray
I have the following error in phase 3:
;;; Loading #P"/.../dev/lisp/cmucl/build-2/compiler/x86/vm.x86f".
End-of-File on #<Stream for file
"/.../dev/lisp/cmucl/build-2/compiler/x86/vm.x86f">
[Condition of type END-OF-FILE]
Restarts:
0: [CONTINUE] Return NIL from load of "vm:vm".
1: Return NIL from load of "c:loadbackend.lisp".
2: Return NIL from load of "target:tools/worldload".
3: [ABORT ] Return to Top-Level.
Debug (type H for help)
(LISP::INPUT-UNSIGNED-8BIT-BYTE
#<Stream for file "/.../dev/lisp/cmucl/build-2/compiler/x86/vm.x86f">
T
NIL)
Source:
; File: target:code/fd-stream.lisp
And some other errors in vm:*. I also have an error in pcl:
Loading binary of FIXUP...
Unable to display error condition
[Condition of type UNBOUND-VARIABLE]
Restarts:
0: [CONTINUE] Return NIL from load of #P"target:pcl/fixup.x86f".
1: Return NIL from load of "pcl:pclload".
And some others after that. It finally exits with:
gcc -Wstrict-prototypes -Wall -g3 -Di386 -DDARWIN -DGENCGC
-DLINKAGE_TABLE -iquote . -iquote ../../src/lisp -Di386 -DDARWIN
-DGENCGC -DLINKAGE_TABLE -c -o lisp.o ../../src/lisp/lisp.c
In file included from ../../src/lisp/lisp.c:18:
./internals.h:1:2: error: #error You need to run genesis (via
build-world.sh) before compiling the startup code!
I noticed that before that, in phase 2, I have (at least) this minor
message:
;; Loading #P"/.../dev/lisp/cmucl/build-2/assembly/assemfile.x86f".
target:compiler/x86/vm
Error abort.
target:compiler/x86/insts
This is in the logs:
; Compiling DEFINE-STORAGE-CLASSES (CONSTANT CONSTANT):
; Byte Compiling Top-Level Form:
; Compiling DEFINE-STORAGE-CLASSES (CONSTANT CONSTANT):
; Byte Compiling Top-Level Form:
Error in function C::%%DEFCONSTANT: Constant BYTE-SC-NAMES being
redefined.
Aborting...
0: (DEBUG:BACKTRACE 536870911
#<Stream for file "/.../dev/lisp/cmucl/build-2/comp
ile-compiler.log">)
Can it be failing just due to this error? What can I do to correct it?
Thanks in advance,
- Filipe Cabecinhas