Paste: critical_error bootstrapping

Author: rictic
Mode: text
Date: Tue, 12 May 2009 23:24:31
Plain Text |
[speedy]$ PATH="$HOME/bin":$PATH
[speedy]$ export LD_LIBRARY_PATH="$HOME/lib"
[speedy]$ cd build/factor
[speedy]$ make clean
rm -f vm/*.o
rm -f factor.dll
rm -f libfactor.*
rm -f libfactor-ffi-test.*
rm -f Factor.app/Contents/Frameworks/libfactor.dylib
[speedy]$ make NO_UI=1
make `./build-support/factor.sh make-target`
make[1]: Entering directory `/home/.urban/teledroid/build/factor'
make factor factor-ffi-test CONFIG=vm/Config.linux.x86.32
make[2]: Entering directory `/home/.urban/teledroid/build/factor'
g++ -c -Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -o vm/os-unix.o vm/os-unix.cpp
g++ -c -Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -o vm/os-genunix.o vm/os-genunix.cpp
g++ -c -Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -o vm/os-linux.o vm/os-linux.cpp
gcc -x assembler-with-cpp -c -Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -o vm/cpu-x86.32.o vm/cpu-x86.32.S
g++ -c -Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -o vm/alien.o vm/alien.cpp
g++ -c -Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -o vm/arrays.o vm/arrays.cpp
g++ -c -Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -o vm/bignum.o vm/bignum.cpp
g++ -c -Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -o vm/booleans.o vm/booleans.cpp
g++ -c -Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -o vm/byte_arrays.o vm/byte_arrays.cpp
g++ -c -Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -o vm/callstack.o vm/callstack.cpp
g++ -c -Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -o vm/code_block.o vm/code_block.cpp
g++ -c -Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -o vm/code_gc.o vm/code_gc.cpp
g++ -c -Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -o vm/code_heap.o vm/code_heap.cpp
g++ -c -Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -o vm/contexts.o vm/contexts.cpp
g++ -c -Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -o vm/data_gc.o vm/data_gc.cpp
g++ -c -Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -o vm/data_heap.o vm/data_heap.cpp
g++ -c -Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -o vm/debug.o vm/debug.cpp
g++ -c -Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -o vm/dispatch.o vm/dispatch.cpp
g++ -c -Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -o vm/errors.o vm/errors.cpp
g++ -c -Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -o vm/factor.o vm/factor.cpp
g++ -c -Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -o vm/image.o vm/image.cpp
g++ -c -Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -o vm/inline_cache.o vm/inline_cache.cpp
g++ -c -Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -o vm/io.o vm/io.cpp
g++ -c -Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -o vm/jit.o vm/jit.cpp
g++ -c -Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -o vm/local_roots.o vm/local_roots.cpp
g++ -c -Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -o vm/math.o vm/math.cpp
g++ -c -Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -o vm/primitives.o vm/primitives.cpp
g++ -c -Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -o vm/profiler.o vm/profiler.cpp
g++ -c -Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -o vm/quotations.o vm/quotations.cpp
g++ -c -Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -o vm/run.o vm/run.cpp
g++ -c -Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -o vm/strings.o vm/strings.cpp
g++ -c -Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -o vm/tuples.o vm/tuples.cpp
g++ -c -Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -o vm/utilities.o vm/utilities.cpp
g++ -c -Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -o vm/words.o vm/words.cpp
g++ -c -Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -o vm/write_barrier.o vm/write_barrier.cpp
g++ -c -Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -o vm/main-unix.o vm/main-unix.cpp
ar rcs libfactor.a vm/os-unix.o vm/os-genunix.o vm/os-linux.o vm/cpu-x86.32.o vm/alien.o vm/arrays.o vm/bignum.o vm/booleans.o vm/byte_arrays.o vm/callstack.o vm/code_block.o vm/code_gc.o vm/code_heap.o vm/contexts.o vm/data_gc.o vm/data_heap.o vm/debug.o vm/dispatch.o vm/errors.o vm/factor.o vm/image.o vm/inline_cache.o vm/io.o vm/jit.o vm/local_roots.o vm/math.o vm/primitives.o vm/profiler.o vm/quotations.o vm/run.o vm/strings.o vm/tuples.o vm/utilities.o vm/words.o vm/write_barrier.o
g++ -ldl -lm -lpthread  -L/usr/X11R6/lib -L. -Wl,--whole-archive -lfactor -Wl,-no-whole-archive \
	-Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -o factor vm/main-unix.o
gcc -c -Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -fPIC -o vm/ffi_test.o vm/ffi_test.c
gcc -L/usr/X11R6/lib -Wall -O3  -fomit-frame-pointer -export-dynamic -fno-builtin-strlen -fno-builtin-strcat -fPIC -shared -o libfactor-ffi-test.so vm/ffi_test.o
make[2]: Leaving directory `/home/.urban/teledroid/build/factor'
make[1]: Leaving directory `/home/.urban/teledroid/build/factor'
[speedy]$ ./factor
Cannot open image file: /home/.urban/teledroid/build/factor/factor.image
No such file or directory
[speedy]$ ls
Factor.app  basis	   extra		  libfactor.a  unmaintained
Makefile    build-support  factor		  license.txt  vm
README.txt  core	   libfactor-ffi-test.so  misc	       work
[speedy]$ curl http://factorcode.org/images/clean/linux-x86-32/boot.x86.32.image >boot.x86.32.image
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 2377k  100 2377k    0     0  2086k      0  0:00:01  0:00:01 --:--:-- 3465k
[speedy]$ ./factor -i boot.x86.32.image 
Cannot open image file: /home/.urban/teledroid/build/factor/factor.image
No such file or directory
[speedy]$ ./factor -i=boot.x86.32.image 
You have triggered a bug in Factor. Please report.
critical_error: Invalid header: b57800d0
Starting low level debugger...
  Basic commands:
q                -- continue executing Factor - NOT SAFE
im               -- save image to fep.image
x                -- exit Factor
  Advanced commands:
d <addr> <count> -- dump memory
u <addr>         -- dump object at tagged <addr>
. <addr>         -- print object at tagged <addr>
t                -- toggle output trimming
s r              -- dump data, retain stacks
.s .r .c         -- print data, retain, call stacks
e                -- dump environment
g                -- dump generations
card <addr>      -- print card containing address
addr <card>      -- print address containing card
data             -- data heap dump
words            -- words dump
tuples           -- tuples dump
refs <addr>      -- find data heap references to object
push <addr>      -- push object on data stack - NOT SAFE
code             -- code heap dump
READY

New Annotation

Summary:
Author:
Mode:
Body: