search for: usedlib

Displaying 20 results from an estimated 56 matches for "usedlib".

Did you mean: usedlibs
2012 Mar 14
2
[LLVMdev] Linking static external library into an LLVM pass library?
This document http://llvm.org/docs/Projects.html says the USEDLIBS should be used to statically link libraries: USEDLIBSThis variable holds a space separated list of libraries that should be linked into the program. These libraries must be libraries that come from your *lib* directory. The libraries must be specified without their "lib" prefix. For exa...
2006 Sep 02
2
[LLVMdev] Adding register allocator to LLVM
Hi all! I didn't manage to link my regalloc to lli (I added USEDLIBS to its makefile). Without it I can't run tests cause they need lli to be built. So how can I link createMyRegisterAllocator function to lli? Thanks. On 8/22/06, Anton Vayvod <avayvod at gmail.com> wrote: > > I managed to link my RegAlloc.a library to llc tool but can;t make the...
2009 Jan 19
0
[LLVMdev] ocaml build system
...ecause it > doesn't support the -L argument. > > Does anyone have any ideas how this ought to work? The linker flags for each .cma (ocaml library) are baked in by ocaml. Here's the relevant section from Makefile.ocaml: # Info from llvm-config and similar ifdef UsedComponents UsedLibs = $(shell $(LLVM_CONFIG) --libs $(UsedComponents)) UsedLibNames = $(shell $(LLVM_CONFIG) --libnames $(UsedComponents)) endif # Tools OCAMLCFLAGS += -I $(OcamlDir) -I $(ObjDir) ifneq ($(ObjectsO),) OCAMLAFLAGS += $(patsubst %,-cclib %, \ $(filter-out -L$(LibDir),-l$(LIBRARYNAME)...
2009 Jan 19
2
[LLVMdev] ocaml build system
I have an issue with the OCaml build system and the ExecutionEngine. PR2128 has a patch to change the Interpreter to use libffi. This breaks test/Bindings/Ocaml/executionengine.ml because OCaml doesn't try to link with libffi, even though llvm-config knows that we should: $ Debug/bin/llvm-config --ldflags interpreter -L/home/nicholas/llvm-commit/Debug/lib -lpthread -lffi -ldl -lm
2006 Sep 02
2
[LLVMdev] Adding register allocator to LLVM
On 9/2/06, Chris Lattner <sabre at nondot.org> wrote: > > Make sure to add it to Codegen/LinkAllCodegenComponents.h. I'm sure I did. I did so from the first time and I also needed to add my library .a file to the USEDLIBS variable within llc makefile to build llc. I wonder how lli links with all the rest LLVM as it seems to include no lib within its makefile. May be I need to include/link my lib somewhere else? Thanks, Tony. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http:/...
2010 Jul 14
0
[LLVMdev] How to cope with 'undefined reference' errors taken the example of building VMkit x86_64 version
...build fails with some "undefined reference to symbol" errors, Error occurs in try to link-in some symbol defined in B, which is undefined symbol in A library. Linker somehow looks for that symbol only in A library, where it is undefined, U-symbol, in terms of nm(1). Solution is to add in USEDLIBS line name of B library immediately after name of A, for every such A for which linker gets so confused. *** Example for VMkit: USEDLIBS = J3.a Classpath.a J3Compiler.a Allocator.a \ Mvm.a MvmCompiler.a $(GCLIB).a CommonThread.a make output: <<< make[1]: Leaving dir...
2007 Apr 13
2
[LLVMdev] [llvm-commits] CVS: llvm/lib/Transforms/Hello/Makefile
...le:1.7 llvm/lib/Transforms/ > Hello/Makefile:1.8 > --- llvm/lib/Transforms/Hello/Makefile:1.7 Mon Apr 9 14:17:47 2007 > +++ llvm/lib/Transforms/Hello/Makefile Fri Apr 13 13:28:23 2007 > @@ -10,7 +10,7 @@ > LEVEL = ../../.. > LIBRARYNAME = LLVMHello > LOADABLE_MODULE = 1 > -USEDLIBS = > +USEDLIBS = LLVMSupport.a > > include $(LEVEL)/Makefile.common > > > > > _______________________________________________ > llvm-commits mailing list > llvm-commits at cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
2010 Mar 08
2
[LLVMdev] Machine Function pass
...).data() << ":\n"; return false; } }; } char MyPass::ID = 0; static RegisterPass<MyPass> X("mypass", "MyPass Pass"); ----------------------- And a makefile: ----------------------- LEVEL = ../../.. LIBRARYNAME = LLVMMyPass LOADABLE_MODULE = 1 USEDLIBS = include $(LEVEL)/Makefile.common ----------------------- I managed to build the pass, but when I use it, i get: ----------------------- opt -load ~/.../libLLVMMyPass.so Error opening 'libLLVMMyPass.so': libLLVMMyPass.so: undefined symbol: _ZNK4llvm19MachineFunctionPass16getAnalysisUs...
2005 Feb 25
2
[LLVMdev]Linker error building (modified) lli
I forgot that lli was "special". It uses the "JIT" keywoard which means "figure out the right libraries to use for a JIT compiler and runtime". So, just add this, to tools/lli/Makefile: USEDLIBS := LLVMBCWriter That worked for me. Reid. On Thu, 2005-02-24 at 16:58, Patrick Meredith wrote: > Where do I add that line? Just putting it in the vanilla Makefile in > tools/lli doesn't work. > > ----- Original Message ----- > From: "Reid Spencer" <reid at x10...
2006 Aug 22
0
[LLVMdev] Adding register allocator to LLVM
I managed to link my RegAlloc.a library to llc tool but can;t make the same with lli tool. Should I use USEDLIBS variable in lli makefile (like llc) or there is another way? On 8/20/06, Fernando Magno Quintao Pereira <fernando at cs.ucla.edu> wrote: > > > Dear Anton, > > you can add your register allocator strait iin the > "lib/CodeGen/Passes.cpp", and then 're-make...
2006 Sep 02
0
[LLVMdev] Adding register allocator to LLVM
On Sat, 2 Sep 2006, Anton Vayvod wrote: > I didn't manage to link my regalloc to lli (I added USEDLIBS to its > makefile). Without it I can't run tests cause they need lli to be built. So > how can I link createMyRegisterAllocator function to lli? Make sure to add it to Codegen/LinkAllCodegenComponents.h. -Chris > On 8/22/06, Anton Vayvod <avayvod at gmail.com> wrote: >>...
2006 Sep 02
0
[LLVMdev] Adding register allocator to LLVM
On Sat, 2 Sep 2006, Anton Vayvod wrote: > I'm sure I did. I did so from the first time and I also needed to add my > library .a file to the USEDLIBS variable within llc makefile to build llc. > I wonder how lli links with all the rest LLVM as it seems to include no lib > within its makefile. May be I need to include/link my lib somewhere else? Ah, that's probably it. Try adding your lib to the JIT_LIBS variable in llvm/Makefile.ru...
2006 Aug 20
2
[LLVMdev] Adding register allocator to LLVM
Dear Anton, you can add your register allocator strait iin the "lib/CodeGen/Passes.cpp", and then 're-make' it: "makellvm llc", on the top of lib/CodeGen. It is faster than running make from LLVMOBJDIR. The problem is that it only add to llc the changes on the lib/CodeGen directory. If you change other parts, a make from LLVMOBJDIR will synchronize it. Try adding
2006 May 30
2
[LLVMdev] Adding an object to llc
...pass: I had to add my object to the namespace llvm instead of anonymous. This took me some time since i was looking for an linking failure... but as errors go i should have looked at the error message a little closer. So for all those trying to add an analysis path: * add the object name to the USEDLIBS variable in the tools/llc/Makefile * use the llvm namespace instead of anonyous This mail is intended as references for people using the search engines, prior to asking questions :-). But maybe this information could also be added to http://llvm.org/docs/WritingAnLLVMPass.html? Thanks ST
2009 Mar 09
1
[LLVMdev] Cygwin patch
...on Cygwin now. The following adds libraries for Cygwin and also for MinGW (not tested) where Linux's g++ ld finds these from a path using a weird command line which does not work on Cygwin or MinGW. lib/Transofrms/Helol/Makefile :- +ifeq ($(OS), $(filter $(OS), Cygwin MingW)) + USEDLIBS = LLVMAnalysis.a LLVMCore.a LLVMInstrumentation.a LLVMScalarOpts.a LLVMSupport.a LLVMSystem.a LLVMTransformUtils.a LLVMipa.a LLVMipo.a +else + USEDLIBS = +endif Aaron -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/l...
2005 Feb 25
0
[LLVMdev]Linker error building (modified) lli
Yikes, my tree must be more outdated than I thought. My library is still called bcwriter. Unfortunately when I add that line I get even more errors, seems like the only solution is going to be updating everything ;-) ----- Original Message ----- From: "Reid Spencer" <reid at x10sys.com> To: "LLVM Developers Mailing List" <llvmdev at cs.uiuc.edu> Sent: Thursday,
2007 Apr 13
0
[LLVMdev] [llvm-commits] CVS: llvm/lib/Transforms/Hello/Makefile
...;> Hello/Makefile:1.8 >> --- llvm/lib/Transforms/Hello/Makefile:1.7 Mon Apr 9 14:17:47 2007 >> +++ llvm/lib/Transforms/Hello/Makefile Fri Apr 13 13:28:23 2007 >> @@ -10,7 +10,7 @@ >> LEVEL = ../../.. >> LIBRARYNAME = LLVMHello >> LOADABLE_MODULE = 1 >> -USEDLIBS = >> +USEDLIBS = LLVMSupport.a >> >> include $(LEVEL)/Makefile.common >> >> >> >> >> _______________________________________________ >> llvm-commits mailing list >> llvm-commits at cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/lis...
2010 May 21
1
[LLVMdev] Hello example plugin has unresolved symbol in llvm 2.7
...VMHello.so': /opt/lib/libLLVMHello.so: Undefined symbol "_ZNK4llvm4Pass5printERNS_11raw_ostreamEPKNS_6ModuleE" -load request ignored. OVERVIEW: llvm .bc -> .bc modular optimizer and analysis printer [...] I edited the lib/Transforms/Hello/Makefile with various forms of LLVMLIBS, USEDLIBS, and LINK_COMPONENTS. Basically, I needed to include "LLVMCore.a LLVMSupport.a LLVMSystem.a" in order to get rid of all 3 unresolved symbols. However, when I tried to load that library with opt, I got the dreaded "pass loaded multiple times" assert. This is the Release build....
2005 Feb 25
0
[LLVMdev]Linker error building (modified) lli
Where do I add that line? Just putting it in the vanilla Makefile in tools/lli doesn't work. ----- Original Message ----- From: "Reid Spencer" <reid at x10sys.com> To: "LLVM Developers Mailing List" <llvmdev at cs.uiuc.edu> Sent: Thursday, February 24, 2005 6:50 PM Subject: Re: [LLVMdev]Linker error building (modified) lli >
2015 Jul 22
2
[LLVMdev] (no subject)
Hello, I have tried a lot fix this error but am not able to can you please find me a solution am trying to compile the SAFECode in Cygwin Environment to work for windows. used make -j4 command to make the files in cygwin i have got this error make[5]: Leaving directory '/home/uidr7475/Work/LLVM_OBJ/projects/safecode/tools/clang/include' /usr/bin/cp: cannot stat