[llvm-dev] Help with "Undefined temporary symbol" error

Revital1 Eres via llvm-dev llvm-dev at lists.llvm.org
Thu Dec 24 06:44:05 PST 2015


Hi Lang,

Yes, I'm using lazy kaleidoscope JIT.
Sure, I will file a bug.

Thanks again!
Revital




From:   Lang Hames <lhames at gmail.com>
To:     Revital1 Eres/Haifa/IBM at IBMIL
Cc:     llvmdev at cs.uiuc.edu
Date:   24/12/2015 04:30 PM
Subject:        Re: Help with "Undefined temporary symbol" error



Hi Revital,

You're using the lazy kaleidoscope JIT, right? In that case I think the 
JIT may be failing to promote the visibility of that string when it breaks 
the module up. Can you file a bug on llvm.org/bugs and assign it it me?

- Lang.

Sent from my iPad

On Dec 24, 2015, at 6:08 AM, Revital1 Eres <ERES at il.ibm.com> wrote:

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



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151224/3327cd90/attachment.html>


More information about the llvm-dev mailing list