Ticket #1744 (new bug)

Opened 4 years ago

Last modified 4 years ago

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.

Change History

Changed 4 years ago by pmichaud

On Sun, Aug 15, 2010 at 01:15:05PM -0000, Parrot wrote:
>  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.

Arguably, "languages/nqp/nqp.pbc"  should be the canonical location,
and we can deprecate "languages/nqp-rx.pbc".

I'm curious where nqp-setting.pbc should ultimately go, and how one 
would get to it.

Pm

Changed 4 years ago by jkeenan

  • cc jkeenan added
  • component changed from none to install
Note: See TracTickets for help on using tickets.