Summary
MAGIC-LIMIT is undefined in lookup-table
Metadata
- Id: 3225476bc605865586e873b03476a856ecd63338
- Trac id: 468
- Type: defect
- Reporter: ckeen
- Owner: kon
- Cc:
- Status: closed
- Component: extensions
- Estimated difficulty:
- Resolution: invalid
- Priority: major
- Milestone: 4.9.0
- Version: 4.6.x
- Changetime: 2012-09-24 21:47:48 UTC
- Created: 2011-01-02 14:40:33 UTC
- Keywords:
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))
Changes and comments
[2011-01-02 17:08:24 UTC] ckeen changed component from unknown to extensions
[2011-01-02 17:08:24 UTC] ckeen wrote:
It works when including the (define-constant MAGIC-LIMIT 12) from the -prelude option into the source. Has -prelude been deprecated?
[2011-01-13 23:08:40 UTC] kon changed status from new to closed
[2011-01-13 23:08:40 UTC] kon set resolution to invalid
[2011-01-13 23:08:40 UTC] kon wrote:
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.
[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-09-24 21:47:48 UTC] felix changed milestone from 4.8.0 to 4.9.0
[2012-09-24 21:47:48 UTC] felix wrote:
Milestone 4.8.0 deleted