Skip to content

[clang-repl] JIT unable to find __clang_Interpreter_SetValueNoAlloc #122397

Open

Description

@lz-bro

The output of running the test of clang/test/Interpreter/pretty-print.c

$ ./bin/llvm-lit -v /workspace/compiler/llvm/clang/test/Interpreter/pretty-print.c

llvm-lit: /workspace/compiler/llvm/llvm/utils/lit/lit/llvm/config.py:508: note: using clang: /workspace/compiler/llvm/build-19/bin/clang
-- Testing: 1 tests, 1 workers --
FAIL: Clang :: Interpreter/pretty-print.c (1 of 1)
******************** TEST 'Clang :: Interpreter/pretty-print.c' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 3: cat /workspace/compiler/llvm/clang/test/Interpreter/pretty-print.c | /workspace/compiler/llvm/build-19/bin/clang-repl -Xcc -xc  | /workspace/compiler/llvm/build-19/bin/FileCheck /workspace/compiler/llvm/clang/test/Interpreter/pretty-print.c
+ cat /workspace/compiler/llvm/clang/test/Interpreter/pretty-print.c
+ /workspace/compiler/llvm/build-19/bin/clang-repl -Xcc -xc
+ /workspace/compiler/llvm/build-19/bin/FileCheck /workspace/compiler/llvm/clang/test/Interpreter/pretty-print.c
JIT session error: Symbols not found: [ __clang_Interpreter_SetValueNoAlloc ]
error: Failed to materialize symbols: { (main, { $.incr_module_10.__inits.0, __orc_init_func.incr_module_10, c_str }) }
error: Failed to materialize symbols: { (main, { __orc_init_func.incr_module_10 }) }
/workspace/compiler/llvm/clang/test/Interpreter/pretty-print.c:11:11: error: CHECK: expected string not found in input
// CHECK: Not implement yet.
          ^
<stdin>:1:1: note: scanning from here
clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl>
^
<stdin>:1:135: note: possible intended match here
clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl>
                                                                                                                                      ^

Input file: <stdin>
Check file: /workspace/compiler/llvm/clang/test/Interpreter/pretty-print.c

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            1: clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl>
check:11'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
check:11'1                                                                                                                                           ?           possible intended match
>>>>>>

--

********************
********************
Failed Tests (1):
  Clang :: Interpreter/pretty-print.c


Testing Time: 0.10s

Total Discovered Tests: 1
  Failed: 1 (100.00%)

Activity

  1. ferdymercury commented on Jan 17, 2025

    @ferdymercury
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions