petdance/scratch — Issue #327: load_language "nqp" fails
Author: petdance
Created: 2011-11-14 05:55:41+00:00
State: open
Labels: bug, install, Pri-normal, Sev-medium

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

Originally http://trac.parrot.org/parrot/ticket/1744