search for: link_compon

Displaying 20 results from an estimated 72 matches for "link_compon".

2009 Sep 21
3
[LLVMdev] Error when building tutorial example
..., I was trying out the first tutorial (http://llvm.org/docs/tutorial/JITTutorial1.html). I attempted to do this in another folder that was copied from llvm/projects/sample. I created a new folder called "tut1" in sample/tools/ folder, and the following Makefile. LEVEL=../.. TOOLNAME=tut1 LINK_COMPONENTS += --cxxflags LINK_COMPONENTS += --ldflags LINK_COMPONENTS += --libs LINK_COMPONENTS += core LINK_COMPONENTS += engine include $(LEVEL)/Makefile.common However, I'm getting the following error on gmake. gmake[2]: *** No rule to make target `-I/usr/src/llvm/include', needed by `/sample/...
2016 Feb 09
2
D16945: LLVM overhaul to avoid linking LLVM component libraries with libLLVM
...(LLVM_LINK_LLVM_DYLIB AND NOT ARG_STATIC AND NOT ARG_DISABLE_LLVM_LINK_LLVM_DYLIB) - set(llvm_libs LLVM) + if (LLVM_LINK_LLVM_DYLIB AND ${name} STREQUAL gtest) + set_property(GLOBAL PROPERTY LLVMBUILD_LIB_DEPS_gtest LLVM) else() - llvm_map_components_to_libnames(llvm_libs - ${ARG_LINK_COMPONENTS} - ${LLVM_LINK_COMPONENTS} - ) + get_property(lib_deps GLOBAL PROPERTY LLVMBUILD_LIB_DEPS_${name}) endif() + if (DEFINED LLVM_LINK_COMPONENTS OR DEFINED ARG_LINK_COMPONENTS) + if (LLVM_LINK_LLVM_DYLIB AND NOT ARG_DISABLE_LLVM_LINK_LLVM_DYLIB) + set(llvm_libs LLVM) +...
2016 Feb 06
2
D16945: LLVM overhaul to avoid linking LLVM component libraries with libLLVM
...# property has been set to an empty value. get_property(lib_deps GLOBAL PROPERTY LLVMBUILD_LIB_DEPS_${name}) - if (LLVM_LINK_LLVM_DYLIB AND NOT ARG_STATIC AND NOT ARG_DISABLE_LLVM_LINK_LLVM_DYLIB) - set(llvm_libs LLVM) - else() - llvm_map_components_to_libnames(llvm_libs - ${ARG_LINK_COMPONENTS} - ${LLVM_LINK_COMPONENTS} - ) + if (DEFINED LLVM_LINK_COMPONENTS OR DEFINED ARG_LINK_COMPONENTS) + if (LLVM_LINK_LLVM_DYLIB AND NOT ARG_DISABLE_LLVM_LINK_LLVM_DYLIB) + set(llvm_libs LLVM) + else() + llvm_map_components_to_libnames(llvm_libs + ${ARG_LINK_COMPON...
2008 Oct 27
2
[LLVMdev] Is it possible to use EE within optimization pass?
...symbol) at the line where I am creating EE. opt: symbol lookup error: ../../../build/Release/lib/Try.so: undefined symbol: _ZN4llvm15ExecutionEngine6createEPNS_14ModuleProviderEbPSs So, I thought I need to link the EE library files as it is not able to load EE. In order to do so, I added the line LINK_COMPONENTS=engine to the Makefile. Now, when I execute using opt, I get the error that the pass is registered multiple times. I know that there has to be a way out of this. Please let me know how I should link/load the EE library files with my optimization pass. I hope the question is clear now. Sorry fo...
2008 Oct 27
0
[LLVMdev] Is it possible to use EE within optimization pass?
...the line where I am creating EE. > opt: symbol lookup error: ../../../build/Release/lib/Try.so: undefined symbol: _ZN4llvm15ExecutionEngine6createEPNS_14ModuleProviderEbPSs > So, I thought I need to link the EE library files as it is not able to load EE. In order to do so, I added the line LINK_COMPONENTS=engine to the Makefile. Now, when I execute using opt, I get the error that the pass is registered multiple times. I know that there has to be a way out of this. Please let me know how I should link/load the EE library files with my optimization pass. Make sure you aren't linking both your...
2008 Apr 15
2
[LLVMdev] Bugs in Kaleidoscope tutorial code, and a bus error
...Tutorial section 2.4 Adding JIT and Optimizer Support, Line 29 has a comma at the end of line that shouldn't be there I get several link errors when compiling the code for section 2.4. These errors go away if I make the following change to the relevant Makefile (tools/sample/Makefile): old: LINK_COMPONENTS = core new LINK_COMPONENTS = core scalaropts ExecutionEngine ------- After successfully compiling the code in section 2.4 Adding JIT and Optimizer Support, I attempted to run that code: $ ./Release/bin/Sample ready> 4 + 5; Bus error I was able to successfully run the program using the c...
2008 Oct 27
3
[LLVMdev] Is it possible to use EE within optimization pass?
Thanks John! My pass is registered only in 1 cpp file. It registers and executes fine without the EE. I only get the Pass registered multiple times error when I try to link to the EE by using LINK_COMPONENTS=engine in the Makefile. Without that line in the Makefile, my pass gets registered fine but it is not able to create EE(Error reading Symbol). So, how do I link LLVMExecutionEngine.o without causing the multiple registration error. thanks, Bhavani --- On Mon, 10/27/08, John Criswell <crisw...
2008 Oct 27
0
[LLVMdev] Is it possible to use EE within optimization pass?
bhavani krishnan wrote: > Thanks John! My pass is registered only in 1 cpp file. It registers and executes fine without the EE. > > I only get the Pass registered multiple times error when I try to link to the EE by using LINK_COMPONENTS=engine in the Makefile. Without that line in the Makefile, my pass gets registered fine but it is not able to create EE(Error reading Symbol). So, how do I link LLVMExecutionEngine.o without causing the multiple registration error. > Just to make sure we've covered all the obvious stu...
2008 Oct 27
2
[LLVMdev] Is it possible to use EE within optimization pass?
Hi all, I am repeating my question from yesterday coz I need to find a solution to this ASAP. How do I link the executionengine to an optimization pass. If I use LINK_COMPONENTS=engine in the Makefile, I get the Pass registered multiple times error. And if i dont use anything, it is not able to load the EE. It gives error loading symbol error. So, 1. Is it possible to use the EE within an optimization pass? 2. If it is possible, how do I do it? Please help me out here...
2011 Jul 15
2
[LLVMdev] Makefile Question
Hello, I have a question about how to set up a Makefile that generate a .so that I can load into opt without getting duplicate symbols. Here's what I have right now: LIBRARYNAME=previrt SHARED_LIBRARY=previrt LINK_COMPONENTS := transformUtils LINK_LIBS_IN_SHARED=1 include $(LEVEL)/Makefile.common LIBS += -lprotobuf CPPFLAGS += -I${HOME}/.root/usr/include -DGOOGLE_PROTOBUF_NO_RTTI LDFLAGS += -Wl,-L${HOME}/.root/usr/lib/ PROTOC=${HOME}/.root/usr/bin/protoc I'm pretty sure the problem comes from LINK_LIBS_IN_S...
2009 Jan 02
2
[LLVMdev] link problem with llvm-pass
...blem and don't know how to solve it: The target machine uses 'FindUsedTypes' pass and when I try to use my target machine in the tool I got "Undefined symbols: "llvm::FindUsedTypes ... ld: symbol(s) not found" I tried following link options: LLVMLIBS = LLVMAnalysis.a LINK_COMPONENTS = analysis LINK_COMPONENTS = all But nothing solved my problem (in fact the last made some other problems with code I never touched). I would be very appreciated for any idea. Thanks a lot Nico PS: output from "make VERBOSE=1" llvm[2]: Linking Release executable llx (without sym...
2008 Oct 27
0
[LLVMdev] Is it possible to use EE within optimization pass?
bhavani krishnan wrote: > Hi all, > > I am repeating my question from yesterday coz I need to find a solution to this ASAP. > > How do I link the executionengine to an optimization pass. If I use LINK_COMPONENTS=engine in the Makefile, I get the Pass registered multiple times error. And if i dont use anything, it is not able to load the EE. It gives error loading symbol error. So, > 1. Is it possible to use the EE within an optimization pass? > 2. If it is possible, how do I do it? > I have...
2011 Jul 15
2
[LLVMdev] Makefile Question
...>wrote: > On 7/14/11 7:36 PM, Gregory Malecha wrote: > > Hello, > > I have a question about how to set up a Makefile that generate a .so that I > can load into opt without getting duplicate symbols. Here's what I have > right now: > > > Have you tried removing LINK_COMPONENTS below? I suspect that the opt > binary already contains everying in the transformUtils library. > > -- John T. > > > LIBRARYNAME=previrt > SHARED_LIBRARY=previrt > LINK_COMPONENTS := transformUtils > LINK_LIBS_IN_SHARED=1 > > include $(LEVEL)/Makefile.common &g...
2011 Jul 15
0
[LLVMdev] Makefile Question
On 7/14/11 7:36 PM, Gregory Malecha wrote: > Hello, > > I have a question about how to set up a Makefile that generate a .so > that I can load into opt without getting duplicate symbols. Here's > what I have right now: Have you tried removing LINK_COMPONENTS below? I suspect that the opt binary already contains everying in the transformUtils library. -- John T. > > LIBRARYNAME=previrt > SHARED_LIBRARY=previrt > LINK_COMPONENTS := transformUtils > LINK_LIBS_IN_SHARED=1 > > include $(LEVEL)/Makefile.common > > LIBS += -...
2009 Jan 04
0
[LLVMdev] link problem with llvm-pass
Dear Nico, I believe you need to add LLVMipa to the list of libraries to link into your tool. FindUsedTypes::ID is defined in lib/Analysis/IPA. I think it would be LLVMipa.a if you added it to LLVMLIBS and ipa if you added it to LINK_COMPONENTS. -- John T. Nico wrote: > Hi, > > I tried to implement an 'llc'-like tool in my project to manage > different passes and a target machine. > > I use given llvm project structure to avoid problems but I have a link > problem and don't know how to solve it:...
2008 Jul 30
2
[LLVMdev] Is there room for another build system?
...LVM administrators: Do you object to having a CMakeLists.txt file >> on every source directory? > > No, particularly if it means we eventually lose the Makefile :). Okay, I'll keep working on this project then. > One trick is that we want to keep llvm-config and the > 'LINK_COMPONENTS' system used when building tools. I am sure cmake > can handle this, but I just wanted to mention that it is important. Actually, I plan to use llvm-config (and LINK_COMPONENTS) even for VC++ users :-). Probably as an alternative, as some Visual Studio users would complain if Perl is...
2012 May 14
0
[LLVMdev] MCJIT
...vm::InitializeNativeTargetAsmParser()': > /local/mnt/workspace/ashoknn/crd/neo/llvm/proto/llvmsvn/llvm/include/llvm/Support/TargetSelect.h:149: undefined reference to `LLVMInitializeX86AsmParser' > collect2: ld returned 1 exit status So I add back to lli/CMakeLists.txt: < set(LLVM_LINK_COMPONENTS mcjit jit interpreter nativecodegen bitreader asmparser selectiondag) > set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} mcjit jit interpreter nativecodegen bitreader asmparser selectiondag) lli/Makefile (a simple make invocation didnt seem to regenerate the Makefile): <LINK_COMPONENT...
2011 Jul 15
0
[LLVMdev] Makefile Question
...1 7:36 PM, Gregory Malecha wrote: >> >> Hello, >> >> I have a question about how to set up a Makefile that generate a .so that >> I can load into opt without getting duplicate symbols. Here's what I have >> right now: >> >> Have you tried removing LINK_COMPONENTS below?  I suspect that the opt >> binary already contains everying in the transformUtils library. >> >> -- John T. >> >> >> LIBRARYNAME=previrt >> SHARED_LIBRARY=previrt >> LINK_COMPONENTS := transformUtils >> LINK_LIBS_IN_SHARED=1 >>...
2010 Jul 30
2
[LLVMdev] Building LLVM 2.7 on OpenSolaris
The build process fails to link the LLVM tools. Specifically, the first tool to build is 'opt' which results in 700+ undefined symbols. I looked into the Makefiles and found that the "LINK_COMPONENTS" make variable does not get the correct set of libraries. In fact, at the top level Makefile.rules, the variable is set to "support system", however, these do not seem to make it to the 'opt' make context. The list of libraries for 'opt' is (from the g++ li...
2012 May 14
2
[LLVMdev] MCJIT
On 5/14/2012 10:28 AM, Jim Grosbach wrote: > > On May 14, 2012, at 10:21 AM, Ashok Nalkund<ashoknn at qualcomm.com> wrote: > >> On 5/14/2012 9:51 AM, Jim Grosbach wrote: >>> >>>>> >>>>> If you're hitting that code, you're running the old JIT (which does indeed not support inline assembly), not the MCJIT. >>>>>