Displaying 20 results from an estimated 2000 matches similar to: "[LLVMdev] question about gccld and external libraries"
2005 Mar 01
2
[LLVMdev] Re: question about gccld and external libraries
Misha Brukman wrote:
> Hey, Jakob --
>
> On Tue, Mar 01, 2005 at 05:55:07PM +0100, Jakob Praher wrote:
>
>>I'm really new to llvm. I've successfully bootstrapped llvm-14 on my
>>system and am able to successfully compile c code to llvm.
>>
>>the problem is now that gccld is complaining that it can't find the
>>libraries, like "c" or
2005 Mar 01
0
[LLVMdev] question about gccld and external libraries
Hey, Jakob --
On Tue, Mar 01, 2005 at 05:55:07PM +0100, Jakob Praher wrote:
> I'm really new to llvm. I've successfully bootstrapped llvm-14 on my
> system and am able to successfully compile c code to llvm.
>
> the problem is now that gccld is complaining that it can't find the
> libraries, like "c" or "crtend". [1]
Did you install the bytecode
2005 Mar 01
0
[LLVMdev] Re: question about gccld and external libraries
On Tue, 1 Mar 2005, Jakob Praher wrote:
> thanks for the pointer. Yes I've done that, but in the new shell session I
> apparently forgot to set the LLVM_LIB_SEARCH_PATH.
>
> now gccld isn't complaining anymore but the interpreter doesn't seem to like
> it still:
It looks like the jit doesn't find these because they are located in
librt. Try this (or adapt to
2003 Dec 07
2
[LLVMdev] Can you hint on solution to following problem
gccld: Cannot find linker input file 'crtend.o
I have set the LLVM_LIB_SEARCH_PATH
ls -l $LLVM_LIB_SEARCH_PATH
total 104
-rw-r--r-- 1 muj20 muj20 12788 Dec 7 17:05 crtend.o
-rw-r--r-- 1 muj20 muj20 1984 Dec 7 17:05 libc.bc
-rw-r--r-- 1 muj20 muj20 120 Dec 7 17:05 libcurses.bc
2005 Mar 01
2
[LLVMdev] Re: question about gccld and external libraries
Chris Lattner wrote:
> On Tue, 1 Mar 2005, Jakob Praher wrote:
>
>> thanks for the pointer. Yes I've done that, but in the new shell
>> session I apparently forgot to set the LLVM_LIB_SEARCH_PATH.
>>
>> now gccld isn't complaining anymore but the interpreter doesn't seem
>> to like it still:
>
>
> It looks like the jit doesn't find
2005 Mar 01
0
[LLVMdev] Re: question about gccld and external libraries
On Tue, 1 Mar 2005, Jakob Praher wrote:
>> If you pass '-lrt' when linking your program, it should take care of this
>> for you.
>>
>
> ah ok. so every library thet gccld can't find as a bytecode lib is added to
> the shell script then.
Yup. Note there are other options if you don't want to run your program
in the JIT. In particular, you can use
2006 Jun 02
2
[LLVMdev] Compiling natively vsftp with LLVM
Hi,
I am using LLVM to compile vsftp to native x86 ELF code.
One of it's object file (sysdeputil) contains inline asm so cannot be compiled by gcc-3.4 frontend.
So I decided to firstly link together the llvm objects and libcrtend and compile it to native .o file and then link it with sysdeputil.o .
The Makefile is sth like this:
vsftpd: $(OBJS)
gccld -r -native -o vsftpd.o $(OBJS)
2006 Jun 02
0
[LLVMdev] Compiling natively vsftp with LLVM
On Fri, 2 Jun 2006, Nai Xia wrote:
> The Makefile is sth like this:
>
> vsftpd: $(OBJS)
> gccld -r -native -o vsftpd.o $(OBJS) -L/home/xianai/my_projects/llvm/cfrontend/x86/llvm-gcc/lib/ -lcrtend
> gcc -o vsftpd vsftpd.o sysdeputil.o `./vsf_findlibs.sh`
>
>
> But the gcc/ld still cannot find the reference to __main.
> Do I have to compile crtend to native to
2004 Oct 27
2
[LLVMdev] Some Questions about LLVM
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=GB2312" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Yes, I checked that envvar, and it is set.<br>
The error msg when compiling a .c
2005 Mar 01
1
[LLVMdev] Re: question about gccld and external libraries
Chris Lattner wrote:
> On Tue, 1 Mar 2005, Jakob Praher wrote:
>
>>> If you pass '-lrt' when linking your program, it should take care of
>>> this for you.
>>>
>>
>> ah ok. so every library thet gccld can't find as a bytecode lib is
>> added to the shell script then.
>
>
> Yup. Note there are other options if you
2006 Aug 21
1
[LLVMdev] stdlib.h
Thank you, Reid,
I tried llvm-gcc -lcrtend ary3.c -o ary3, but I get
gccld: warning: Cannot find library 'crtend'
gccld: warning: Cannot find library 'c'
I have the libraries in my llvm directory:
llvm/runtime/GCCLibraries/crtend
Well, how do I link this to the LLVM runtime stuff? Before building from
the source, I had copied all the .h from my old gcc 4.0 to
2005 Aug 01
2
[LLVMdev] [patch] gccld not passing -export-dynamic to gcc for link
gccld passes -shared through if it's generating a shared library, but
if you're compiling a program that needs to have its symbols
externally accessible, it doesn't pass -export-dynamic through to gcc
for the final link.
The attached patch fixes this. I've tested with a small test case I
sent Chris, and with Python; both seem to work.
I also fixed some inaccurate comments in
2004 Dec 05
1
[LLVMdev] Building llvm and cfrontend under cygwin
Hi there,
I'm trying to build llvm under cygwin running under windows xp, and have
struck the following problem:
-- llvm: tools-only built ok
-- cfrontend: built ok
-- llvm: full build failed at the following point:
make[3]: Entering directory
`/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend'
Compiling crtend.c to bytecode
Compiling listend.ll to bytecode
Linking comp_main.bc
2005 Jul 07
5
[LLVMdev] External function 'pthread_once' could not be resolved
Hi LLVM'ers,
I'm trying to build the DotGNU project with the LLVM-tools.
After minor modifications of source and build code and some configure
housekeeping, it seems that I've managed so far to build all the DotGNU
tools. However, when extensively using the DotGNU tools I get this error
message:
make[1]: Entering directory `/home/hb/projects/build/LLVM/pnet-1-1/samples'
2006 Feb 28
1
[LLVMdev] Using llvm-gcc with a simple program and the '-c' option
Reid Spencer wrote:
> On Mon, 2006-02-27 at 20:43 -0800, Wink Saville wrote:
>
>>> Try passing "-L/opt/llvm-1.6/llvm-gcc/lib/ -lcrtend" to llvm-ld.
>>>
>> This didn't work for me:
>> llvm-ld -o t1.app t1.bc t1.a -L/opt/llvm-1.6/llvm-gcc/lib/ -lcrtend.a
>>
>> I get two warning's about library 'crtend' missing
2006 Feb 28
3
[LLVMdev] Using llvm-gcc with a simple program and the '-c' option
Chris Lattner wrote:
> On Sun, 26 Feb 2006, Wink Saville wrote:
>> I then do the following in my makefile:
>>
>> llvm-gcc -c t1.c -o t1.bc
>> llvm-gcc -c t1sub1.c -o t1sub1.bc
>> llvm-gcc -c t1sub2.c -o t1sub2.bc
>> llvm-ar r t1.a t1sub1.bc t1sub2.bc
>> llvm-ar: creating t1.a
>> llvm-ld -o t1.app t1.bc t1.a /opt/llvm-1.6/llvm-gcc/lib/libcrtend.a
2003 Dec 07
0
[LLVMdev] Important change to LLVM makefiles
I have recently built the LLVM suite .. The problem is when I run
llvmgcc( after setting alias to $LLVM )
gcc: installation problem, cannot exec `gccld': No such file or directory
the LLVM_LIB_SEARCH_PATH=..
is set to LLVMGCCDIR/bytecode-libs
Any idea
2006 Feb 27
2
[LLVMdev] Using llvm-gcc with a simple program and the '-c' option
Misha Brukman wrote:
> On Sun, Feb 26, 2006 at 10:00:18PM -0800, Wink Saville wrote:
>
>
[snip]
> If you're using -c, you're telling LLVM that there are other modules you
> will link into the executable. Thus, LLVM does not know whether there
> will be static ctors/dtors to run or not, so there's the call to
> __main() from main.
>
> __main() gets
2006 Feb 27
0
[LLVMdev] Using llvm-gcc with a simple program and the '-c' option
On Sun, Feb 26, 2006 at 10:00:18PM -0800, Wink Saville wrote:
> Thanks for the info, you've confirmed what I was trying to do, but when
> I compile:
[snip]
> without "-c" (llvm-gcc t1.c -o t1) the dissassembled bytecode does not
> call __main:
__main() is used to run static constructors and destructors, so if
you're compiling without -c, LLVM knows all the files
2006 Feb 27
0
[LLVMdev] Using llvm-gcc with a simple program and the '-c' option
On Sun, 26 Feb 2006, Wink Saville wrote:
> I then do the following in my makefile:
>
> llvm-gcc -c t1.c -o t1.bc
> llvm-gcc -c t1sub1.c -o t1sub1.bc
> llvm-gcc -c t1sub2.c -o t1sub2.bc
> llvm-ar r t1.a t1sub1.bc t1sub2.bc
> llvm-ar: creating t1.a
> llvm-ld -o t1.app t1.bc t1.a /opt/llvm-1.6/llvm-gcc/lib/libcrtend.a
> llvm-ld: warning: Cannot find library 'crtend'