llvm / llvm/llvm-project

clang-repl JIT session error: Symbols not found ... _emutls_get_address, __emutls_v._Init_thread_epoch ...error: Failed to materialize symbols

Open
#187,040 0 comments 0 reactions 0 assignees View on GitHub
clang-repl
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

I have just installed visual studio 2026 v18.4.0 and LLVM 22.1.1, downloaded from https://github.com/llvm/llvm-project/releases/download/llvmorg-22.1.1/LLVM-22.1.1-win64.exe. Unfortunately, simple tests with `` on `clang-repl` fail -

```
clang-repl --version
LLVM (http://llvm.org/):
LLVM version 22.1.1
Optimized build.

clang-repl> #include
clang-repl> std::cout << "Welcome to CLANG-REPL" << std::endl;

JIT session error: Symbols not found: [ ?_Facet_Register@std@@YAXPEAV_Facet_base@1@@Z, __emutls_get_address, __emutls_v._Init_thread_epoch ]
error: Failed to materialize symbols: { (main, { ?_Init@?$ctype@D@std@@IEAAXAEBV_Locinfo@2@@Z,///....
```
`clang++` was able to successfully compile a similar hello world program -

```
#include

int main() {
std::cout << "Hello World!";
return 0;
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.