Ticket #1744 (new bug)
load_language "nqp" fails
Reported by: | whiteknight | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | install | Version: | 2.6.0 |
Severity: | medium | Keywords: | nqp |
Cc: | jkeenan | Language: | |
Patch status: | Platform: |
Description
.sub "main" :main load_language "nqp" .end
this fails with error message
"load_language" couldn't find a compiler module for the language 'nqp'
calling the opcode with the argument "nqp-rx" does no better. Since NQP is a language compiler, and since it ships with Parrot, I would expect it to be loadable using this mechanism, somehow.
the load_language opcode calls src/packfile.c:Parrot_load_language(), which expects to find a "languages/nqp/nqp.pbc" or "library/nqp/nqp.pbc" in the installation directory. The NQP PBC is instead located at "library/nqp-rx.pbc".
To make this work and keep compatibility with the current setup, I suggest that nqp-rx.pbc be copied (or symlinked, where supported) to "languages/nqp/nqp.pbc". Necessary supporting files can be copied/symlinked in that same directory too.