The debugger output is as follows:
Primitive called with incorrect number of arguments. #[primitive-procedure 13
%record-length] 2
S0 (if (not (primitive-arity-correct? primitive frame-size)) (error "Prim ...
SUBPROBLEM LEVEL: 0
COMPILED expression (from stack):
Subproblem being executed is highlighted.
(begin
(if (not (primitive-arity-correct? primitive frame-size))
(error "Primitive called with incorrect number of arguments."
primitive
frame-size))
((or (special-primitive-handler primitive)
rtl:make-invocation:primitive)
(|1+| frame-size)
continuation
primitive))
S1 (let ((primitive (vector-ref (rvalue-known-value operator) 2))) (if (n ...
(scfg*scfg->scfg!
(prefix frame-size 0)
(let ((primitive (vector-ref ... 2)))
(if (not (primitive-arity-correct? primitive frame-size))
(error "Primitive called with incorrect number of arguments."
primitive
frame-size))
((or (special-primitive-handler primitive)
rtl:make-invocation:primitive)
(|1+| frame-size)
continuation
primitive)))
S2 (generate/node/no-memoize node)
(rtl-precompress! (generate/node/no-memoize node))
S3 (generate/node/ (edge-next-node) (vector-ref node 6)))
(scfg*scfg->scfg! (generator node)
(generate/node (edge-next-node (vector-ref node 6))))
S4 to S9 are pairs the same as S2 and S3
On 17 Oct 2023, at 10:49 PM, Chris Hanson <cph@chris-hanson.org> wrote:
Sorry for the long delay in responding.
I'd be interested in seeing what the debugger shows for that error. Can you run
it and show the first few frames to give me an idea where the problem is?
On 10/13/23 04:30, David Gray wrote:
How to track down the following error?
In the latest scheme (12.1) compiled exactly as the instructions for a unix
binary and with a plain Xcode command line system I get a fully working system
under the Monterey version of macOS. However from Ventura on I am not able to
compile a simple scheme file. If the file has already been compiled under
Monterey I can load the file and experience 50x faster function calls but I
cannot re-compile it
The error is:
(cf "fib-sonoma.scm")
;Generating SCode for file: "fib-sonoma.scm" => "fib-sonoma.bin"... done
;Compiling file: "fib-sonoma.bin" => "fib-sonoma.com"...
;Warning: Procedure called with wrong number of arguments #[primitive-procedure
15 %record-length] 2
;Warning: Procedure called with wrong number of arguments #[primitive-procedure
15 %record-length] 2
;Primitive called with incorrect number of arguments. #[primitive-procedure 15
%record-length] 2
;To continue, call RESTART with an option number:
; (RESTART 2) => Return to read-eval-print level 2.
What is the best way to try to track this down. I tried various things:
Compile mit-scheme x86_64 under Monterey and transfer to Sonoma
Compile mit-scheme x86_64 under Sonoma
Compile portable SVM under Sonoma
I’ve run out of energy to try gcc