[llvm-bugs] [Bug 25940] New: "Undefined temporary symbol" error in Kaleidoscope example

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Dec 24 06:47:52 PST 2015


https://llvm.org/bugs/show_bug.cgi?id=25940

            Bug ID: 25940
           Summary: "Undefined temporary symbol" error in Kaleidoscope
                    example
           Product: new-bugs
           Version: trunk
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: eres at il.ibm.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

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))

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151224/aecbb08a/attachment.html>


More information about the llvm-bugs mailing list