Skip to content

Building of native image fails if ant clobber` has been called  #340

@sophie-kaleba

Description

@sophie-kaleba

Linux-only (I assume)

A call to ant native after an ant clobber makes the build fail with the following error:

native:
     [exec] Error: Invalid Path entry /home/sopi/Documents/Experiments/SOMns/libs/truffle/substratevm/mxbuild/linux-amd64/SVM_HOSTED_NATIVE/linux-amd64
     [exec] Caused by: java.nio.file.NoSuchFileException: /home/sopi/Documents/Experiments/SOMns/libs/truffle/substratevm/mxbuild/linux-amd64/SVM_HOSTED_NATIVE/linux-amd64
     [exec] 

BUILD FAILED
/home/sopi/Documents/Experiments/SOMns/build.xml:544: exec returned: 1

The directory SVM_HOSTED_NATIVE is indeed missing. It is usually generated by a call to mx build in the substratevm directory.

it comes from a change made on the dev branch (the clobber command actually cleans the truffle build, along with this directory) - I assume a call to mx build for the substratevm is missing somewhere, that or clobber is being overzealous.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugFixes an issue, incorrect implementation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions