Skip to content

native-image @argfile parse failure on Windows with the error Fatal error: Unsupported OptionOrigin #4502

@imkiva

Description

@imkiva

Describe the issue

The @argfile option of native-image show Fatal error: Unsupported OptionOrigin: <the arg file>

For example, this command works (in powershell):

native-image '@args.txt'

while these do not

native-image '@.\args.txt'
native-image '@C:\Users\kiva\git\aya-dev\args.txt'

Steps to reproduce the issue

Please include both build steps as well as run steps

  1. git clone --depth 1 https://github.com/aya-prover/aya-dev.git
  2. .\gradlew nativeCompile

note: the args.txt is just copied from Gradle generated argument file, which is introduced in #3734 but I don't know whether this issue is due to native-image or the Gradle plugin, so I posted here (sorry)

Describe GraalVM and your environment:

More details

Possibly this issue was introduced in #4464

File contents of args.txt and Stack trace: https://gist.github.com/imkiva/3aa4ee72f01df4774ca5c122e9ac4ff5

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions