#468 closed defect (invalid)
MAGIC-LIMIT is undefined in lookup-table
| Reported by: | Christian Kellermann | Owned by: | Kon Lovett |
|---|---|---|---|
| Priority: | major | Milestone: | 4.9.0 |
| Component: | extensions | Version: | 4.6.x |
| Keywords: | Cc: | ||
| Estimated difficulty: |
Description
This is with experimental chicken 4.6.4 on OpenBSD. I have no idea what magic limit does, I guess it is the threshhold for increasing the table or using another bucket size / algorithm...
$ chicken-install -n
retrieving ...
checking platform for `lookup-table' ...
checking dependencies for `lookup-table' ...
install order:
("lookup-table")
installing lookup-table: ...
changing current directory to .
/usr/local/bin/csi -bnq -setup-mode -e "(require-library setup-api)" -e "(import setup-api)" -e "(setup-error-handling)" -e "(extension-name-and-version '(\"lookup-table\" \"\"))" -e "(keep-intermediates #t)" -e "(setup-install-mode #f)" lookup-table.setup
/usr/local/bin/csc -feature compiling-extension -setup-mode -k lookup-table.scm -shared -optimize-leaf-routines -inline -output-file lookup-table.so -emit-import-library lookup-table -prelude "(define-constant MAGIC-LIMIT 12)" -disable-interrupts -fixnum-arithmetic -local -inline-limit 50 -no-procedure-checks -debug-level 1
Warning: reference to possibly unbound identifier `MAGIC-LIMIT' in:
Warning: g641
Warning: g613
Warning: g526
Error: module unresolved: lookup-table
Error: shell command terminated with non-zero exit status 256: /usr/local/bin/chicken lookup-table.scm -output-file lookup-table.c -dynamic -feature chicken-compile-shared -feature compiling-extension -setup-mode -optimize-leaf-routines -inline -output-file lookup-table.so -emit-import-library lookup-table -prelude "\\(define-constant\\ MAGIC-LIMIT\\ 12\\)" -disable-interrupts -fixnum-arithmetic -local -inline-limit 50 -no-procedure-checks -debug-level 1
Error: shell command failed with nonzero exit status 256:
/usr/local/bin/csc -feature compiling-extension -setup-mode -k lookup-table.scm -shared -optimize-leaf-routines -inline -output-file lookup-table.so -emit-import-library lookup-table -prelude "(define-constant MAGIC-LIMIT 12)" -disable-interrupts -fixnum-arithmetic -local -inline-limit 50 -no-procedure-checks -debug-level 1
Error: shell command terminated with nonzero exit code
17920
"/usr/local/bin/csi -bnq -setup-mode -e \"(require-library setup-api)\" -e \"(im...
[14:35:39] ckeen@athene:~/proj/chicken/chicken-eggs/release/4/lookup-table/trunk
$ grep MAGIC-LIMIT *scm
lookup-table-body.scm:(define-inline (magic-count? count) (<= count MAGIC-LIMIT))
Change History (4)
comment:1 Changed 15 years ago by
| Component: | unknown → extensions |
|---|
comment:2 Changed 15 years ago by
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
I am told the failing prelude' was a temporary aberration. So I am marking this as "invalid" as it is not an error in the egg itself but with the argument processing of some versions of csc'. I know it was not submitted as a mistake but none of the other choices seem appropriate either.
Note: See
TracTickets for help on using
tickets.

It works when including the (define-constant MAGIC-LIMIT 12) from the -prelude option into the source. Has -prelude been deprecated?