search for: lcrtend

Displaying 20 results from an estimated 35 matches for "lcrtend".

Did you mean: crtend
2006 Feb 28
0
[LLVMdev] Using llvm-gcc with a simple program and the '-c' option
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 > You didn't get the instructions quite right. The option is -lcrtend not -lcrtend.a Re...
2006 Feb 28
3
[LLVMdev] Using llvm-gcc with a simple program and the '-c' option
...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' > > 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 > Alternatively, instead of using llvm-ld, just use gccld to link like > this: > > llvm-gcc -o t1.app t...
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 >> >> > > You didn't get the instru...
2006 Dec 01
1
[LLVMdev] crtend
Before upgrading to the latest LLVM today, I used to run the following command: llvm-gcc -fno-inline -o __tmp.homer___ llvmtest/sliceme2.bc -L/home/testbed1/lefever/work/llvm/install/lib -lcrtend However, it is given the following error. /usr/bin/ld: cannot find -lcrtend collect2: ld returned 1 exit status make: *** [llvmtest/sliceme2.cbc] Error 1 Has the crtend library been moved? Thanks, Ryan
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 co...
2006 Feb 27
2
[LLVMdev] Using llvm-gcc with a simple program and the '-c' option
...generates the t.app script that runs t1.app.bc, obviously no big deal, but isn't what I expected and would seem to be to be unnecessary. Another is the warning: llvm-ld: warning: Cannot find library 'crtend' I tried: llvm-ld -o t1.app t1.bc t1.a -L/opt/llvm-1.6/llvm-gcc/lib -lcrtend But that gives me two cannot find library warnings and __main is undefined. Again, the when using libcrtend.a directly everything works bit gives the warning which seems very odd as it is "obviously" there. Also, why does the second version not work? Thanks again, Wink
2006 Jun 02
2
[LLVMdev] Compiling natively vsftp with LLVM
...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) -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 solve this problem? -- Regards, Nai
2006 Aug 20
0
[LLVMdev] stdlib.h
Try adding -lcrtend to the gcc link line. You need to link in the LLVM runtime stuff. Reid. On Sun, 2006-08-20 at 14:30 -0700, Fernando Magno Quintao Pereira wrote: > > Rebuilding llvm-gcc4 from source should work fine. Please see the > > directions in the file README.LLVM at the top level src directory....
2006 Feb 27
0
[LLVMdev] Using llvm-gcc with a simple program and the '-c' option
...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' Try passing "-L/opt/llvm-1.6/llvm-gcc/lib/ -lcrtend" to llvm-ld. Alternatively, instead of using llvm-ld, just use gccld to link like this: llvm-gcc -o t1.app t1.bc t1.a ... which should work. > llc t1.app.bc -o t1.app.s > gcc -m32 t1.app.s -o t1 If you want a native app, try this: llvm-gcc -o t1.app t1.bc t1.a -Wl,-native ... whic...
2006 Aug 20
2
[LLVMdev] stdlib.h
> Rebuilding llvm-gcc4 from source should work fine. Please see the > directions in the file README.LLVM at the top level src directory. You > can check llvm-gcc4 out from Subversion with the command: Dear guys, I've rebuild my llvm-gcc3 (not llvm-gcc4) from source, and now it can find stdlib.c and all the other sources, but I am having some other problems with the new
2004 Dec 12
5
[LLVMdev] LLVM_LIB_SEARCH_PATH
Hello, I need to solicit your opinion about something. I'm toying with the idea of getting rid of LLVM_LIB_SEARCH_PATH. Right now the linkers will use this environment variable if it specifies a single directory. It will look in that directory to find libraries when things like -lc or -lcrtend are specified on the command line. Right now, the only known place this is useful to set to is the CFE's install/bytecode-libs directory. However, the configure script can make that path available to us already because LLVM requires configuring with --with-llvmgccdir=... So, it is my understand...
2006 Mar 05
1
[LLVMdev] Possible solution to a llvm-ld bug
Hello, As previously mentioned I had a linking problem using llvm-ld (http://lists.cs.uiuc.edu/pipermail/llvmdev/2006-February/005246.html) I was getting a error if I used -L switch when linking using the following command line: llvm-ld -o t1.app t1.bc t1.a -L/opt/llvm-1.6/llvm-gcc/lib -lcrtend I believe I've tracked down the problem; in the "main" of tools/llvm-ld.cpp the call to ParseCommandLineOptions is after the TheLinker.addPaths(LibPaths) statement so the -L command line parameter is ignored. My fix was to move the ParseCommandLineOptions to the beginning of the mai...
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 solve this problem? gccld -r doesn't work with -native. Also, you do need to link in crtend, which doesn&...
2004 Oct 27
2
[LLVMdev] Some Questions about LLVM
...lt;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 file is:<br> gccld: WARNING: Cannot find library -lc<br> gccld: WARNING: Cannot find library -lcrtend<br> Can LLVM be installed using a prefix?<br> --zhoufeng<br> <br> Chris Lattner wrote: <blockquote cite="midPine.LNX.4.44.0410251347490.27028-100000@nondot.org" type="cite"> <pre wrap="">On Mon, 25 Oct 2004, zhou feng wrote: &l...
2004 Dec 12
0
[LLVMdev] LLVM_LIB_SEARCH_PATH
...solicit your opinion about something. > > I'm toying with the idea of getting rid of LLVM_LIB_SEARCH_PATH. Right > now the linkers will use this environment variable if it specifies a > single directory. It will look in that directory to find libraries when > things like -lc or -lcrtend are specified on the command line. Right > now, the only known place this is useful to set to is the CFE's > install/bytecode-libs directory. However, the configure script can make > that path available to us already because LLVM requires configuring with > --with-llvmgccdir=... Ac...
2006 Apr 25
0
[LLVMdev] src to src conversion
...ler passes to convert file.bc->file.opt.bc. Then I use llc to > convert file.opt.bc->file.opt.c. Now, I want to use normal gcc to > compile file.opt.c into an executable. However, I'm getting the > following errors: Please try the following: llvm-gcc -o final file.opt.bc -lcrtend llc -march=c final.bc gcc -o finalexec final.cbe.c The first line uses llvm-gcc to link libcrtend.a to your optimized bytecode file. Using llvm-gcc ensures that it picks up the version of libcrtend.a located within your llvm-gcc distribution (which should work). The second and third lines gene...
2006 Apr 25
3
[LLVMdev] src to src conversion
I am trying to use LLVM as a source to source C compiler. I use llvm-gcc to convert file.c->file.bc. Then I use opt to run my own compiler passes to convert file.bc->file.opt.bc. Then I use llc to convert file.opt.bc->file.opt.c. Now, I want to use normal gcc to compile file.opt.c into an executable. However, I'm getting the following errors: test.opt.c:89: warning:
2005 Mar 01
3
[LLVMdev] question about gccld and external libraries
...f and friends, but I want to use the clock_gettime function and now the lli dumps. thanks for any pointers. -- jakob [1] gccld -o test-llvm -L/mnt/fire300/jp/llvm-14/lib/gcc/i686-pc-linux-gnu/3.4-llvm -L/mnt/fire300/jp/llvm-14/lib/gcc/i686-pc-linux-gnu/3.4-llvm/../../.. /tmp/ccc7ax7O.o -lc -lcrtend gccld: warning: Cannot find library 'c' gccld: warning: Cannot find library 'crtend' gccld: warning: Cannot find library 'c' gccld: warning: Cannot find library 'crtend'
2004 Nov 17
2
[LLVMdev] llvm-test portability failures
...nked.rbc -o Output/city.linked.rll -f /usr/home/llvm/obj/tools/Debug/gccas Output/city.linked.rll -o Output/city.linked.bc /usr/home/llvm/obj/tools/Debug/gccld -L/usr/home/cfe/x86/llvm-gcc/bin/../lib/gcc/i386-unknown-freebsd5.3/3.4-llvm/ -L/home/cfe/x86/llvm-gcc/lib Output/city.linked.bc -lc -lm -lcrtend -o Output/city.llvm Assertion failed: (isa<X>(Val) && "cast<Ty>() argument of incompatible type!"), function cast, file /usr/home/llvm/obj/../include/llvm/Support/Casting.h, line 197. gmake[4]: *** [Output/city.llvm.bc] Abort trap (core dumped) The only place trying t...
2008 Apr 04
0
[LLVMdev] PATCH: Use size reduction -- wave1
On Fri, 4 Apr 2008, heisenbug wrote: >> point taken. thanks! > > > Whatever I try I get something like this: > > ggreif$ cd MultiSource/ > ggreif$ make > make[2]: *** No rule to make target `Output/be.bc', needed by `Output/ > burg.linked.rbc'. Stop. > make[1]: *** [Burg/.makeall] Error 2 > make: *** [Applications/.makeall] Error 2 This is the