diff --git a/runtime.c b/runtime.c index 5ce267e..31a4018 100644 --- a/runtime.c +++ b/runtime.c @@ -1210,6 +1210,9 @@ void C_do_resize_stack(C_word stack) void C_check_nursery_minimum(C_word words) { + printf("%d %d %d\n", words, stack_size, + C_bytes_to_words(stack_size)); + if(words >= C_bytestowords(stack_size)) panic(C_text("nursery is too small - try higher setting using the `-:s' option")); } ;;;; ********* [klm@kth android-chicken]$ make target mkdir -p build/target cd src/chicken-core; \ PATH=$PWD/toolchain/android-14/bin:$PATH make PLATFORM=android \ CHICKEN=./chicken-boot \ HOSTSYSTEM=arm-linux-androideabi \ TARGET_FEATURES="-no-feature x86 -no-feature x86-64 -feature arm -feature android" \ DEBUGBUILD= \ ARCH= \ PREFIX=/system \ DESTDIR=/home/klm/opt/android-chicken/build/target \ EGGDIR=/system/lib \ all make[1]: Entering directory `/home/klm/opt/android-chicken/src/chicken-core' make -f ./Makefile.android CONFIG= all make[2]: Entering directory `/home/klm/opt/android-chicken/src/chicken-core' arm-linux-androideabi-gcc -fno-strict-aliasing -fwrapv -DHAVE_CHICKEN_CONFIG_H -DC_ENABLE_PTABLES -c -Os -fomit-frame-pointer -DC_BUILDING_LIBCHICKEN runtime.c -o runtime-static.o -I. -I./ runtime.c:38:23: error: sysexits.h: No such file or directory runtime.c: In function 'C_number_to_string': runtime.c:7767: warning: assignment makes pointer from integer without a cast make[2]: *** [runtime-static.o] Error 1 make[2]: Leaving directory `/home/klm/opt/android-chicken/src/chicken-core' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/klm/opt/android-chicken/src/chicken-core' make: *** [target] Error 2