Weird build failure on MacOS/Big Sur/AArch64

David Holmes david.holmes at
Wed May 5 01:44:48 UTC 2021

On 5/05/2021 2:33 am, erik.joelsson at wrote:
> Hello Andrew,
> I think you are first in trying this on MacOS AArch64. I don't currently 
> have access to such a machine to try it. Most likely it's something 
> simple with the logic for picking the JDK to download for running the 
> build.

Build instructions assume CDS is always available?


project.exec((spec) -> {
                 spec.setCommandLine(java, "-Xshare:dump", "-version");

but no guarantee a JDK has CDS enabled. Also seems wrong to assume that 
you should create a new CDS archive for the JDK being used even if CDS 
is enabled.


> /Erik
> On 2021-05-04 08:08, Andrew Haley wrote:
>> aph at laxton ~ % git token store
>> Compiling ...
>>> Task :cli:linkLocal
>> Shared spaces are not supported in this VM
>> Error: Could not create the Java Virtual Machine.
>> Error: A fatal exception has occurred. Program will exit.
>>> Task :cli:linkLocal FAILED
>> FAILURE: Build failed with an exception.
>> * What went wrong:
>> Execution failed for task ':cli:linkLocal'.
>>> Process 'command '/Users/aph/skara/cli/build/images/local/bin/java'' 
>>> finished with non-zero exit value 1
>> Any ideas?
>> Thanks,

More information about the skara-dev mailing list