[LLVMdev] bytecode -> native code

Reid Spencer reid at x10sys.com
Tue Mar 22 20:06:03 PST 2005


try:

gcc grep.s -o grep.native -lstdc++ -lc

Its telling you that you're missing libraries that need to be linked in.

Reid.

On Tue, 2005-03-22 at 17:54 -0800, Tanu Sharma wrote:
> I am trying to obtain native code from the bytecode by using commands:
> 
> % llc hello.bc -o hello.s
> 
> % gcc hello.s -o hello.native
> 
>  
> 
> This is working for a simple program( a single source file) but when I
> try to run it on grep utility (grep.bc) , it gives me the following
> error:
> 
>  
> 
> $ llc grep.bc -o grep.s
> 
> $ gcc grep.s -o grep.native
> /tmp/ccY3oNAA.o(.text+0x2f2f): In function `main':
> : undefined reference to `__main'
> collect2: ld returned 1 exit status
> 
> 
> How should i fix this?
> 
> Thanks
> 
> - T
> 
> 
> ______________________________________________________________________
> Do you Yahoo!?
> Yahoo! Small Business - Try our new resources site! 
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev


_______________________
Reid Spencer
President & CTO
eXtensible Systems, Inc.
rspencer at x10sys.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20050322/189037ce/attachment.sig>


More information about the llvm-dev mailing list