ChezScheme
ChezScheme copied to clipboard
Bad error message from foreign function interface
After making some changes to code I am working on, I received the following error when attempting to test:
dca@pangloss:/tmp$ newcash Finances.newcash
Error in foreign-procedure: no entry for ~s
("get_sizeof_unsigned_int")
I understand what caused this error -- I called get_sizeof_unsigned_int before loading the .so file that contains the code. I have fixed this and the code works now.
But it seems that there's an error in foreign-procedure -- perhaps a format call with insufficient arguments? -- that resulted in the above error being less helpful than was intended.
If the error is raised while loading the boot files, the C code has not yet turned over error reporting to Scheme. See do_error
in c/schsig.c for details.