Skip to content

[Native Image] LLVM backend options are now unrecognized #12246

@koutheir

Description

@koutheir

Describe the Issue

Attempting to build a native image with the LLVM backend doesn't recognize the LLVM backend parameter. Trying other LLVM backend parameters (defined in substratevm/src/com.oracle.svm.core.graal.llvm/src/com/oracle/svm/core/graal/llvm/util/LLVMOptions.java) produces the same error.

$ ./native-image -H:CompilerBackend=llvm -H:LLVMMaxFunctionsPerBatch=1 ...
Error: Unrecognized option '-H:LLVMMaxFunctionsPerBatch=...' from command line. Use '--expert-options' (see also '--help-extra') to list all available options.

Using the latest version of GraalVM can resolve many issues.

GraalVM Version

native-image 25 2025-09-16
GraalVM Runtime Environment Oracle GraalVM 25+37.1 (build 25+37-LTS-jvmci-b01)
Substrate VM Oracle GraalVM 25+37.1 (build 25+37-LTS, serial gc, compressed references)

Operating System and Version

Linux ... 6.12.48-1-lts #1 SMP PREEMPT_DYNAMIC Sun, 21 Sep 2025 17:47:58 +0000 x86_64 GNU/Linux

Build Command

./native-image -H:CompilerBackend=llvm -H:LLVMMaxFunctionsPerBatch=1 ...

Expected Behavior

Build should start.

Actual Behavior

Error: Unrecognized option '-H:LLVMMaxFunctionsPerBatch=...' from command line. Use '--expert-options' (see also '--help-extra') to list all available options.

Steps to Reproduce

$ ./native-image -H:CompilerBackend=llvm -H:LLVMMaxFunctionsPerBatch=1 ...

Additional Context

No response

Build Log Output and Error Messages

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions