marcomaggi / vicare

A native compiler for Scheme compliant with R6RS
http://marcomaggi.github.com/vicare.html
Other
200 stars 34 forks source link

Error 138 (or maybe Bus Error 10?) when Compiling on OSX #98

Open tj800x opened 6 years ago

tj800x commented 6 years ago

Hi Marco. Thanks for vicare. Typed Scheme is very interesting. I'm getting this error below. Any suggestions? Thanks -- Tom Johnson

vicare: searching include file: cond-boot-expansion.scm vicare: including file: /Users/tomjohnson/vicare/scheme/cond-boot-expansion.scm conditional expansion for condition-object definition syntax: bootstrapping normal boot image conditional expansion for system-value API definition: bootstrapping normal boot image *** Vicare: warning: Condition components:

  1. &expand-time-type-signature-warning-void-operand
  2. &who: chi-closure-object-application
  3. &message: "expression used as operand in procedure application is typed as returning void"
  4. &syntax: form: #[syntax expr=(make-constant (void)) line=746 column=3 source="/Users/tomjohnson/vicare/scheme/ikarus.compiler.typedefs.sls"] subform: #[syntax expr=(void) line=746 column=18 source="/Users/tomjohnson/vicare/scheme/ikarus.compiler.typedefs.sls"]
  5. &application-operand-signature: #[signature ()] /bin/sh: line 1: 36505 Bus error: 10 ./vicare -b ./boot/vicare.boot.8.prebuilt --no-rcfile --library-locator source -O2 --scheme-heap-nursery-size 100000000 --scheme-stack-size 100000000 --no-rcfile --library-locator source --r6rs-script ./scheme/makefile.sps make[1]: [vicare.boot] Error 138 make: [all] Error 2 ~/vicare$
marcomaggi commented 6 years ago

Thanks for the report. Unfortunately I cannot fix the problem. Notice that active development of this project is on hiatus; I can work to accept contributions, but I am not currently developing it.

The upper part of the message is a warning that the expression (void) returns a void object which is not meant to be used as operand in a function application; but, as a special situation, it is used this way in the compiler. I get the exact same message when compiling the boot image, along with other warnings of the same kind. You can see such warnings in this Travis build.

The Bus error is, most likely, the result of a defect in the runtime: maybe the garbage collector, maybe the mmap() machinery that handles memory allocation for all the Scheme objects. I do not get this error, so I can do nothing about it.