Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
[JVM] build is broken (error in stage parse during generation of CORE.d.setting.jar) #2628
Trying to build rakudo-jvm on current head (304feae) leads to this error during generation of CORE.d.setting.jar:
As far as I can see, the error happens if one declares a constant with a nqp::hash.
I tried different variations by adding a single line near the start of a random source code file (in my case src/core/Date.pm6).
The same error occurs without the 'my':
None of the following lines lead to an error (I tested them one at a time):
So to me it looks like
Please not that CORE.setting.jar is build correctly in all cases -- the error only happens for CORE.setting.d.
Those commits cause problem with the js backed too (I have them locally reverted till I got round to figuring out how to handle that). The problem is that native nqp hashes are usually special cased during serialization but if they are used as constants they are forcefully serialized as objects.