soegaard2
2017-7-20 09:29:14

I am playing around with the extractor.


soegaard2
2017-7-20 09:29:36

When I use displayln, I get the following:


soegaard2
2017-7-20 09:29:44

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)


soegaard2
2017-7-20 09:30:53

Is there a way to make the extractor generate source anyway?


soegaard2
2017-7-20 09:32:35

foo.rkt: #lang racket/base (provide foo) (define (foo x) (displayln “foo”)


cadr
2017-7-20 12:30:22

@soegaard2 You can use the “knot” on multiple bindings, e.g. "++knot core - ++knot read - ++knot main -"


mflatt
2017-7-20 12:41:39

@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.


soegaard2
2017-7-20 12:50:24

Ok - I’ll experiment later.


spall
2017-7-20 17:39:14

@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?


mflatt
2017-7-20 17:40:26

You may need make rktl


spall
2017-7-20 17:55:28

thanks I did forget that


mflatt
2017-7-20 18:06:10

Probably it’s time to change the default make target so that it always does make rktl