I am playing around with the extractor.
When I use displayln, I get the following:
Unfortunately, some linklets depend on pre-defined host instances that are not part of the runtime system: - /Users/soegaard/Dropbox/GitHub/racket7/racket7/racket/collects/racket/private/misc.rkt at 0 needs #%main: load-extension load namespace-syntax-introduce current-eval needs #%core: datum->syntax syntax? needed by #s(link #<path:/Users/soegaard/Dropbox/GitHub/racket7/ur/foo.rkt> 0)
Is there a way to make the extractor generate source anyway?
foo.rkt: #lang racket/base (provide foo) (define (foo x) (displayln “foo”)
@soegaard2 You can use the “knot” on multiple bindings, e.g. "++knot core - ++knot read - ++knot main -"
@soegaard2 I think you won’t be able to use displayln
unless it’s moved to a different module than “misc.rkt”. Maybe Caner’s suggestion will work, but there’s a good chance that the extractor won’t be able to discard the problem parts of “misc.rkt”, and then you’ll end up with other errors or with free variables.
Ok - I’ll experiment later.
@mflatt echo '(load "<http://compile-config.ss\|compile-config.ss>")' '(compile-file "io.sls")' \| scheme -q chezpart.so core.so thread.so
compiling io.sls with output to io.so
Exception: attempt to reference unbound identifier \x23;%thread-instance at line 217, char 21 of io.sls
echo '(load "<http://compile-config.ss\|compile-config.ss>")' '(compile-file "regexp.sls")' \| scheme -q chezpart.so core.so thread.so io.so
I’m using the latest racket7 and getting this error, any idea how to fix?
You may need make rktl
thanks I did forget that
Probably it’s time to change the default make
target so that it always does make rktl