Summary
coops: Error: during expansion of (define-class ...) - unbound variable: alist-cons
Metadata
- Id: 5d535268f446d31dd17f832b834de5bd897e54e5
- Trac id: 478
- Type: defect
- Reporter: syn
- Owner: felix
- Cc: ewfalor
- Status: closed
- Component: extensions
- Estimated difficulty:
- Resolution: fixed
- Priority: minor
- Milestone:
- Version: 4.6.x
- Changetime: 2012-04-27 23:19:03 UTC
- Created: 2011-01-12 13:11:30 UTC
- Keywords: coops
Description
The example at http://moritz.twoticketsplease.de/files/dirty-coops.scm fails with the above message. coopse is probably missing something like (begin-for-syntax (use srfi-1)) there!
Changes and comments
[2011-01-24 19:26:25 UTC] felix changed status from new to closed
[2011-01-24 19:26:25 UTC] felix set resolution to fixed
[2011-01-24 19:26:25 UTC] felix wrote:
Thanks - I have tagged a new version (1.3).
[2011-06-01 09:00:41 UTC] felix changed milestone from 4.7.0 to 4.8.0
[2011-06-01 09:00:41 UTC] felix wrote:
Milestone 4.7.0 deleted
[2012-01-15 01:07:18 UTC] syn changed status from closed to reopened
[2012-01-15 01:07:18 UTC] syn removed resolution fixed
[2012-01-15 01:07:18 UTC] syn wrote:
Oddly, I again/still get this error with coops 1.6 and Chicken 4.7 now.
[2012-01-15 01:19:15 UTC] syn wrote:
Ah, the fix you commited for this was to add (import-for-syntax srfi-1). This doesn't seem to do the trick anymore. Replacing it with this works though:
(begin-for-syntax (import chicken) (use srfi-1))
Not sure if there is a better solution, perhaps?
[2012-01-17 11:40:28 UTC] felix removed milestone 4.8.0
[2012-01-17 11:47:12 UTC] felix changed status from reopened to closed
[2012-01-17 11:47:12 UTC] felix set resolution to fixed
[2012-01-17 11:47:12 UTC] felix wrote:
Ugh. Thanks. 1.7 has been tagged.
[2012-01-21 01:23:48 UTC] zbigniew changed status from closed to reopened
[2012-01-21 01:23:48 UTC] zbigniew removed resolution fixed
[2012-01-21 01:23:48 UTC] zbigniew wrote:
This is reported to break coops on Chicken 4.6.5 (at least).
[2012-01-21 02:15:26 UTC] ewfalor set cc to ewfalor
[2012-01-21 02:15:26 UTC] ewfalor wrote:
Here's the error trace I'm getting with `chicken-install coops` on Windows Chicken 4.6.5:
installing coops: ...
changing current directory to C:\Users\efalor\AppData\Local\Temp/temp30c0/coops
"C:\chicken\bin\csi" -bnq -setup-mode -e "(require-library setup-api)" -e "(import setup-api)" -e "
(setup-error-handling)" -e "(extension-name-and-version '(\"coops\" \"\"))" "C:\Users\efalor\AppData\
Local\Temp\temp30c0\coops\coops.setup"
""C:\chicken\bin\csc"" -feature compiling-extension -setup-mode -s -O3 -d1 coops-module.scm -JS
-o coops.so
Error: during expansion of (register-generic-procedure1229 ...) - unbound variable: when
Call history:
<eval> (rename1169 (##core#syntax getter-with-setter))
<eval> (##sys#cons (##sys#cons (rename1169 (##core#syntax make-generic-procedure/name)) (##sys#cons name ar......
<eval> (##sys#cons (rename1169 (##core#syntax make-generic-procedure/name)) (##sys#cons name args))
<eval> (rename1169 (##core#syntax make-generic-procedure/name))
<eval> (##sys#cons name args)
<eval> (##sys#cons (##sys#cons (rename1169 (##core#syntax make-generic-procedure/name)) (##sys#cons (##sys#......
<eval> (##sys#cons (rename1169 (##core#syntax make-generic-procedure/name)) (##sys#cons (##sys#cons (rename......
<eval> (rename1169 (##core#syntax make-generic-procedure/name))
<eval> (##sys#cons (##sys#cons (rename1169 (##core#syntax setter)) (##sys#cons name (quote1168 ()))) args)
<eval> (##sys#cons (rename1169 (##core#syntax setter)) (##sys#cons name (quote1168 ())))
<eval> (rename1169 (##core#syntax setter))
<eval> (##sys#cons name (quote1168 ()))
<syntax> (##core#begin (register-generic-procedure1229 print-object) (define1230 print-object (#%getter-with-......
<syntax> (register-generic-procedure1229 print-object)
<eval> (cadr x)
<eval> (when (symbol? name) (put! name (quote ##coops#generic) (or (##sys#current-module) #t))) <--
Error: shell command terminated with non-zero exit status 70: ""C:\chicken\bin\chicken.exe" "coops-module.scm" -output-file "coops.c" -dynamic -feature chicken-compile-shared -feature compiling-extension -setup-mode -optimize-level 3 -debug-level 1 -emit-all-import-libraries -scrutinize"
Error: shell command failed with nonzero exit status 1:
""C:\chicken\bin\csc"" -feature compiling-extension -setup-mode -s -O3 -d1 coops-module.scm -JS -o coops.so
[2012-01-23 11:15:46 UTC] felix wrote:
It seems to work with 4.6.7 and 4.7.4. I'm not sure what to do and if or how to support older chickens. Does syn's suggested modifications work with 4.6.5?
[2012-04-27 23:19:03 UTC] felix changed status from reopened to closed
[2012-04-27 23:19:03 UTC] felix set resolution to fixed
[2012-04-27 23:19:03 UTC] felix wrote:
I close this now. I think upgrading to 4.7.0 is acceptable.