Misc. bug: "CommandLine Error: Option 'sanitizer-early-opt-ep' registered more than once!"

Open
#30,937 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
cpp
Domain
backend

Research direction

Start by inspecting the supplied CMake build files and comparing the OpenCL-enabled build configuration with the reported clang and LLVM versions. Reproduce the failure by building with OpenCL support and running llama-cli --list-devices; done means the duplicate LLVM command-line option no longer aborts the CLI. The report does not identify a source file or test, so locating the affected dependency or build integration will take project familiarity.

Written by the indexing model from the issue text.

Description

bug-unconfirmed
Name and Version
$ ./bin/llama-cli  --version
version: 0.7.0 (build 11798, commit 9febe63d5)
built with GNU 15.2.0 for Linux x86_64

$ ./bin/llama-cli --list-devices
: CommandLine Error: Option 'sanitizer-early-opt-ep' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options

LIBXSMM_VERSION: feature_print_bw-1.17-3780 (25693892)
LIBXSMM_TARGET: cpx [AMD Ryzen 7 8845HS w/ Radeon 780M Graphics]
Registry and code: 13 MB
Command: ./bin/llama-cli --list-devices
Uptime: 0.191673 s
Aborted                    (core dumped) ./bin/llama-cli --list-devices

$ clang --version
Ubuntu clang version 21.1.8 (6ubuntu1)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm-21/bin

OS: Ubuntu 26.04

OpenCL info
clinfo.txt

All cmake related stuff from build directory
cmakes.zip

Operating systems

Linux

Which llama.cpp modules do you know to be affected?

llama-cli

Command line

Problem description & steps to reproduce

Build with OpenCL support, execute any cli tool

First Bad Commit

No response

Relevant log output
Logs
: CommandLine Error: Option 'sanitizer-early-opt-ep' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options

LIBXSMM_VERSION: feature_print_bw-1.17-3780 (25693892)
LIBXSMM_TARGET: cpx [AMD Ryzen 7 8845HS w/ Radeon 780M Graphics]
Registry and code: 13 MB
Command: ./bin/llama-cli --list-devices
Uptime: 0.191673 s
Aborted                    (core dumped) ./bin/llama-cli --list-devices
Dominant language
C++
Stars
133k
Forks
24.9k
Avg merge
2d 8h
Merged PRs (30d)
483

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ggml-org/llama.cpp

All issues in ggml-org/llama.cpp

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.