search for: gccld

Displaying 20 results from an estimated 255 matches for "gccld".

Did you mean: ccld
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...
2006 Sep 18
2
[LLVMdev] llvm-g++: Internal error
Hi, i used CVS to checkout the source of llvm and llvm-gcc, compiled and built them on my machine successfully. i tried a c-language hello program, it was OK. But when i tried a c++-language hello program, i got: ~/project/llvm/examples$ llvm-g++ t3.cc -o t3 gccld: /developer/zsth/project/llvm/src/llvm/lib/Analysis/IPA/CallGraph.cpp:277: void llvm::CallGraphNode::removeCallEdgeTo(llvm::CallGraphNode*): Assertion `i && "Cannot find callee to remove!"' failed. gccld((anonymous namespace)::PrintStackTrace()+0x1a)[0x84eb812] gccld((anonymou...
2005 Aug 02
0
[LLVMdev] [patch] gccld not passing -export-dynamic to gcc for link
...las Riley wrote: > The attached patch fixes this. ...but had tabs in it. Misha kindly reminded me off-list that this was bad. Try this one instead. -- Nicholas Riley <njriley at uiuc.edu> | <http://www.uiuc.edu/ph/www/njriley> -------------- next part -------------- Index: tools/gccld/GenerateCode.cpp =================================================================== RCS file: /var/cvs/llvm/llvm/tools/gccld/GenerateCode.cpp,v retrieving revision 1.50 diff -u -r1.50 GenerateCode.cpp --- tools/gccld/GenerateCode.cpp 8 Jul 2005 16:48:52 -0000 1.50 +++ tools/gccld/GenerateCode.cpp...
2006 Sep 14
1
[LLVMdev] use LLVM to convert C++ code to C code
...bytecode for the following c++ code(to be used for c-code generation)<br> <br> #include <vector><br> using namespace std;<br> <br> int main()<br> {<br> vector<int> v;<br> }<br> <br> $ llvm-g++ test.cpp<br> <br> gccld: CallGraph.cpp:277: void llvm::CallGraphNode::removeCallEdgeTo(llvm::CallGraphNode*): Assertion `i && "Cannot find callee to remove!"' failed.<br> gccld((anonymous namespace)::PrintStackTrace()+0x18)[0x84833b4]<br> gccld((anonymous namespace)::SignalHandler(int)+0x...
2005 Mar 01
3
[LLVMdev] question about gccld and external libraries
hi, 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] all is fine, if I just use intrinsified functions like printf and friends, but I want to use the clock_gettime function and now the lli dumps. thanks for any pointers. -- jakob [1] gccld -o tes...
2006 Oct 30
2
[LLVMdev] Multisource Test Failures?
Hi all, Is anyone else seeing tests in the Multisource/Applications directory failing with something looking like this: /Users/wendling/llvm/llvm.obj/Debug/bin/gccld -L/Users/wendling/llvm/ llvm-gcc4.install/lib/gcc/powerpc-apple-darwin8.8.0/3.4-llvm -L/ Users/wendling/llvm/llvm-gcc4.install/lib Output/siod.linked.bc -lc -lpthread -lltdl -lm -o Output/siod.llvm gccld: warning: Cannot find library 'c' gccld: warning: Cannot find library 'pthr...
2005 Mar 13
0
[LLVMdev] Linking LLVM code with LLVM
On Fri, 11 Mar 2005, Marc Ordinas i Llopis wrote: > Sorry if this is obvious. > I'm trying to link LLVM-generated code with LLVM itself, and don't know how > to do it. Just as a little test, I've tried compiling the example > HowToUseJIT.cpp using llvm-g++, but I get tons of errors. > > Is there an easy way of doing this? Has anyone tried it before? What sort of
2005 Mar 11
2
[LLVMdev] Linking LLVM code with LLVM
Hi all, Sorry if this is obvious. I'm trying to link LLVM-generated code with LLVM itself, and don't know how to do it. Just as a little test, I've tried compiling the example HowToUseJIT.cpp using llvm-g++, but I get tons of errors. Is there an easy way of doing this? Has anyone tried it before? Thanks, Marc Ordinas i Llopis | Tragnarion Studios
2004 Dec 23
2
[LLVMdev] Undefined reference to `llvm::sys::CopyFile(llvm::sys::Path const&, llvm::sys::P
Hi, Can anyone tell me why CopyFile is the only undefined reference from Path.cpp? --------------- llvm[2]: Linking Debug executable gccld c:/projects/build/MinGW/llvm-1-1/tools/gccld/Debug/gccld.o(.text+0x439): In function `Z15EmitShellScriptPPc': c:/projects/src/llvm-1/llvm/tools/gccld/gccld.cpp:127: undefined reference to `llvm::sys::CopyFile(llvm::sys::Path const&, llvm::sys::Path const&)' collect2: ld returned 1...
2005 Mar 01
2
[LLVMdev] Re: question about gccld and external libraries
...n 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 "crtend". [1] > > > Did you install the bytecode libraries into the C/C++ frontend lib > directory? > thanks for the pointer. Yes I've done that, but in the new shell session I appar...
2005 May 25
5
[LLVMdev] LLVM Cygwin Run Errors
...no solution provided.) Another problem is when I run hello.c which is #include <stdio.h> int main() { printf("hello world\n"); return 0; } I got this, ******************************************************* u0201201 at 9nnvf2ay /home $ llvm-gcc hello.c -o hello gccld: warning: Cannot find library 'user32' gccld: warning: Cannot find library 'kernel32' gccld: warning: Cannot find library 'advapi32' gccld: warning: Cannot find library 'shell32' ******************************************************** The lli tool doesn't work...
2005 Mar 14
2
[LLVMdev] Linking LLVM code with LLVM
...ytecode file. The problem is when I try to link it to LLVM to produce a executable. To try things out, I created a project based on the sample and included the HowToUseJIT code. This compiles perfectly. Next I tried changing the CXX and CC variables in the makefile to use llvm-g++. This got me gccld: Unknown command line argument '--rpath'. Try: 'gccld --help' Then I tried the last command produced by the makefile without the --rpath option, but the makefile always removes the produced .o in .libs, even when RM is set to 'touch'. I haven't found any way to keep...
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 these because they are located in > librt. Try this (or adapt to whatever system you're using): > > lli -load /usr/lib/librt.so you...
2003 May 23
0
[LLVMdev] Bug: GCCLD bugs section of How to Submit a Bug
The quoted command line prints an error. 129 gally> gccld -debug-pass=Arguments < /dev/null -o - > /dev/null Not enough positional command line arguments specified! Must specify at least 1 positional arguments: See: gccld --help Instead, use: 126 gally> as < /dev/null > null.bc 127 gally> gccld -debug-pass=Arguments null.bc Pass Argume...
2005 Feb 26
0
[LLVMdev] Patch to make gccld link natively, revised and extended... again :)
Here is the latest version of the native linker patch. This differs from the previous patch in one major way... It no longer takes the crude hack of screening for 'llvm' in the -L path. Instead, gccld now actively screens for -L paths that contain bytecode shared libraries or true llvm bytecode archives. Those -L paths that do contain them are omitted from the call to the system linker. This should resolve http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=525 We can not just issue an error when...
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 libraries into the C/C++ frontend lib directory? See http://llvm.cs.uiuc.edu/docs/CFEBuildInstrs.html#instructions 7. Go back into the LLVM source tree proper. Re...
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 whatever system you're using): lli -load /usr/lib/librt.so yourprog.bc If you pass '-lrt'...
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...
2005 May 25
0
[LLVMdev] LLVM Cygwin Run Errors
...I run hello.c which is > #include <stdio.h> > int main() { > printf("hello world\n"); > return 0; > } > > I got this, > ******************************************************* > u0201201 at 9nnvf2ay /home > $ llvm-gcc hello.c -o hello > gccld: warning: Cannot find library 'user32' > gccld: warning: Cannot find library 'kernel32' > gccld: warning: Cannot find library 'advapi32' > gccld: warning: Cannot find library 'shell32' > > ******************************************************** > T...
2004 Dec 21
2
[LLVMdev] llvm-test failures on FreeBSD
I'm getting a large number of failures with this error: gccld: error: Cannot link in module '/home/llvm-gcc/install/lib/libstdc++.a(ostream-inst.o)': Linking globals named '_ZN16__Atomicity_lockILi0EE17_S_atomicity_lockE': symbol multiply defined! gccld: error: Cannot link archive '/home/llvm-gcc/install/lib/libstdc++.a' Any simple...