(Apologies you have received multiple copies of this email)
Hello,
I am trying to run toy program within the JIT as it is done in
Kaleidoscope examples.
I am compiling two files: main.c and foo.c where foo.c which is dynamically compiled contains
a call to printf.
When I ran the program I get “LLVM ERROR: Undefined temporary symbol” for symbol “.L.str”
and it seems to be related to the printf call within foo (when I remove the call the run completes fine)
Here’s a snippet of the call from the IR:
%call = call i32 (i8*, …) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i32 0, i32 0))
I appreciate any help with that.
Thanks,
Revital