search for: llvm_config

Displaying 20 results from an estimated 106 matches for "llvm_config".

2009 Oct 21
2
[LLVMdev] Problem initializing a JIT via C bindings
...e, provider, 1, &err); After that LLVMFindFunction and RunFunction work wonderfully on 2.5. The TOT version errors out on the CreateJITCompiler call with a "JIT has not been linked in" message. I'm compiling it as follows, which completes with no errors on either LLVM version. LLVM_CONFIG=<the llvm-config from the version I want to use> gcc `$LLVM_CONFIG --cflags` -o main.o -c main.c g++ `$LLVM_CONFIG --cflags` \ `$LLVM_CONFIG --ldflags` \ main.o `$(LLVM_CONFIG) --libfiles engine BitReader` Am I missing some other post 2.5 API change or am I building things wrong? Th...
2017 Nov 16
2
Correctly linking against libLLVM (single shared library build)
...Bieneman wrote: > Sorry for the delayed response. I've been out of town a lot lately. > > The documentation you referenced is unfortunately out of date (you might notice it still references autoconf). I'll see if I can find time to update it, but the guidance should be to use the `llvm_config` CMake function instead. The proper usage of that in the example there would be to replace the call to `llvm_map_components_to_libnames` with `llvm_config(simple-tool support core irreader)`. > > `llvm_config` should properly handle the LLVM shared library. Actually it does not work at all....
2012 Dec 07
2
[LLVMdev] dragonegg now requires clang
...ange to the dragonegg 3.2 Makefile solves the problem here... --- dragonegg-3.2/Makefile.orig 2012-12-07 12:50:30.000000000 -0500 +++ dragonegg-3.2/Makefile 2012-12-07 12:51:21.000000000 -0500 @@ -42,8 +42,8 @@ else COMMON_FLAGS+=-fvisibility=hidden endif -CFLAGS+=$(COMMON_FLAGS) $(shell $(LLVM_CONFIG) --cflags) -CXXFLAGS+=$(COMMON_FLAGS) $(shell $(LLVM_CONFIG) --cxxflags) +CFLAGS+=$(COMMON_FLAGS) $(shell $(LLVM_CONFIG) --cflags | sed -e 's/-Wcovered-switch-default//') +CXXFLAGS+=$(COMMON_FLAGS) $(shell $(LLVM_CONFIG) --cxxflags | sed -e 's/-Wcovered-switch-default//') ifeq ($...
2009 Oct 22
0
[LLVMdev] Problem initializing a JIT via C bindings
...; > After that LLVMFindFunction and RunFunction work wonderfully on 2.5. The TOT version errors out on the CreateJITCompiler call with a "JIT has not been linked in" message. > > I'm compiling it as follows, which completes with no errors on either LLVM version. > > LLVM_CONFIG=<the llvm-config from the version I want to use> > gcc `$LLVM_CONFIG --cflags` -o main.o -c main.c > g++ `$LLVM_CONFIG --cflags` \ > `$LLVM_CONFIG --ldflags` \ > main.o `$(LLVM_CONFIG) --libfiles engine BitReader` > > Am I missing some other post 2.5 API change or a...
2009 Oct 22
1
[LLVMdev] Problem initializing a JIT via C bindings
>> I'm compiling it as follows, which completes with no errors on either >LLVM version. >> >> LLVM_CONFIG=<the llvm-config from the version I want to use> >> gcc `$LLVM_CONFIG --cflags` -o main.o -c main.c >> g++ `$LLVM_CONFIG --cflags` \ >> `$LLVM_CONFIG --ldflags` \ >> main.o `$(LLVM_CONFIG) --libfiles engine BitReader` >> >> Am I missing some other p...
2012 Dec 07
0
[LLVMdev] dragonegg now requires clang
...the problem here... > > --- dragonegg-3.2/Makefile.orig 2012-12-07 12:50:30.000000000 -0500 > +++ dragonegg-3.2/Makefile 2012-12-07 12:51:21.000000000 -0500 > @@ -42,8 +42,8 @@ > else > COMMON_FLAGS+=-fvisibility=hidden > endif > -CFLAGS+=$(COMMON_FLAGS) $(shell $(LLVM_CONFIG) --cflags) > -CXXFLAGS+=$(COMMON_FLAGS) $(shell $(LLVM_CONFIG) --cxxflags) > +CFLAGS+=$(COMMON_FLAGS) $(shell $(LLVM_CONFIG) --cflags | sed -e 's/-Wcovered-switch-default//') > +CXXFLAGS+=$(COMMON_FLAGS) $(shell $(LLVM_CONFIG) --cxxflags | sed -e 's/-Wcovered-switch-default//...
2017 Oct 23
2
Correctly linking against libLLVM (single shared library build)
Hi, In SUSE we have recently switched from building LLVM as multiple shared libraries (using BUILD_SHARED_LIBS) to building it as a single shared library (using LLVM_BUILD_LLVM_DYLIB). The multiple shared libraries build was causing issues and apparently it is only meant for LLVM developers. Our guidelines prohibit linking against static libraries unless there is no other option. After this
2009 Jan 19
0
[LLVMdev] ocaml build system
...n'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) \...
2012 Dec 07
0
[LLVMdev] dragonegg now requires clang
...vm-config bug in my opinion that llvm-config output includes these kinds of optional flags). Ciao, Duncan. On 07/12/12 18:11, Jack Howarth wrote: > Duncan, > I am unable to complile dragonegg 3.2 with FSF gcc 4.7 due the the > compiler errors... > > GCC=/sw/lib/gcc4.7/bin/gcc-4 LLVM_CONFIG=/sw/opt/llvm-3.2/bin/llvm-config VERBOSE=1 ENABLE_LLVM_PLUGINS=1 make CPPFLAGS="-g -DENABLE_LTO -I/sw/include" > /sw/lib/gcc4.7/bin/gcc-4 --version > /dev/null > /sw/opt/llvm-3.2/bin/llvm-config --version > /dev/null > Compiling utils/TargetInfo.cpp > /sw/lib/gcc4.7/bin/...
2012 Dec 07
2
[LLVMdev] dragonegg now requires clang
Duncan, I am unable to complile dragonegg 3.2 with FSF gcc 4.7 due the the compiler errors... GCC=/sw/lib/gcc4.7/bin/gcc-4 LLVM_CONFIG=/sw/opt/llvm-3.2/bin/llvm-config VERBOSE=1 ENABLE_LLVM_PLUGINS=1 make CPPFLAGS="-g -DENABLE_LTO -I/sw/include" /sw/lib/gcc4.7/bin/gcc-4 --version > /dev/null /sw/opt/llvm-3.2/bin/llvm-config --version > /dev/null Compiling utils/TargetInfo.cpp /sw/lib/gcc4.7/bin/g++-4 -c -DTARGET_TR...
2012 Dec 09
1
[LLVMdev] dragonegg now requires clang
...piler. Jack >>> >>> On 07/12/12 18:11, Jack Howarth wrote: >>>> Duncan, >>>> I am unable to complile dragonegg 3.2 with FSF gcc 4.7 due the the >>>> compiler errors... >>>> >>>> GCC=/sw/lib/gcc4.7/bin/gcc-4 LLVM_CONFIG=/sw/opt/llvm-3.2/bin/llvm-config VERBOSE=1 ENABLE_LLVM_PLUGINS=1 make CPPFLAGS="-g -DENABLE_LTO -I/sw/include" >>>> /sw/lib/gcc4.7/bin/gcc-4 --version > /dev/null >>>> /sw/opt/llvm-3.2/bin/llvm-config --version > /dev/null >>>> Compiling utils/Tar...
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
2010 Aug 24
4
[LLVMdev] dragonegg plugin invoking issue
Hi, I am using latest sources on GCC (gcc4.5_branch), LLVM and dragonegg. I am able to build all three bits though unsuccessfull in building. Already done obvious things - checked out the sources as per defined in "Getting the development version" on dragonegg.llvm.org - Modified the llvm-backend.cpp in dragonegg to make available the global plugin_is_GPL_compatible publically -
2011 Sep 16
2
[LLVMdev] How to duplicate a function?
...exit(-1); return 1; } int haha(int n) //int haha(int n, char* IOCallIDs) { int i; for (i=1; i<n; i++) v[i] = v[i-1] + v[i]; printf ("hahaha\n"); return 1; } Makefile ==================================================================================== LLVM_CONFIG?=llvm-config # location of the source # useful if you want separate source and object directories. SRC_DIR?=$(PWD) #ifndef VERBOSE # QUIET:=@ #endif COMMON_FLAGS=-Wall -Wextra #-fvisibility=hidden CFLAGS+=$(COMMON_FLAGS) $(shell $(LLVM_CONFIG) --cflags) CXXFLAGS+=$(COMMON_FLAGS) $(shell $(LLV...
2010 Sep 09
0
[LLVMdev] dragonegg plugin invoking issue
...egg plugin invoking issue > > > > Hi Rehman, > > > > > >>Hi Rehman, does it work if you remove -fvisibility=hidden from these two > lines > > > > > > >>in the Makefile: > > > > > >> > CFLAGS+=-Wall $(shell $(LLVM_CONFIG) --cflags) -fvisibility=hidden > > > > > >> > CXXFLAGS+=-Wall $(shell $(LLVM_CONFIG) --cxxflags) -fvisibility=hidden > > > > > > >>? > > > > > > > > > I tried it with clean build and yes it did work when I remove the...
2010 Aug 05
2
[LLVMdev] [PATCH] Capability of Win32.DLL with ENABLE_SHARED
...= $(addprefix $(LLVMLibDir)/,$(LLVMUsedLibs)) endif +# Win32.DLL may refer to other components. +ifeq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW)) + ifdef LOADABLE_MODULE + LINK_COMPONENTS := all + endif +endif + ifndef IS_CLEANING_TARGET ifdef LINK_COMPONENTS @@ -972,8 +995,13 @@ $(LLVM_CONFIG): $(ToolDir)/$(strip $(TOOLNAME))$(EXEEXT): $(LLVM_CONFIG) ifeq ($(ENABLE_SHARED), 1) +# We can take the "auto-import" feature to get rid of using dllimport. +ifeq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW)) +LLVMLibsOptions += -Wl,--enable-auto-import,--enable-runtime-pseudo-rel...
2009 Mar 09
0
[LLVMdev] Cross-Module Function Calls
...:Function *fn_main = engine->FindFunctionNamed( "main" ); int rv = engine->runFunctionAsMain( fn_main, args, environ ); return rv; } //// #### Makefile AS=/home/terrence/programming/OSS-rcs/llvm/Debug/bin/llvm-as LD=/home/terrence/programming/OSS-rcs/llvm/Debug/bin/llvm-ld CC=g++ LLVM_CONFIG=/home/terrence/programming/OSS-rcs/llvm/Debug/bin/llvm-config LLVM_CXXFLAGS=`${LLVM_CONFIG} --cxxflags` LLVM_LDFLAGS=`${LLVM_CONFIG} --ldflags` LLVM_LIBS=`${LLVM_CONFIG} --libs` lower: ${AS} -f -o=foo.bc foo.ll ${AS} -f -o=bar.bc bar.ll link: lower ${LD} -native -o=linked foo.bc bar.bc test:...
2010 Aug 02
6
[LLVMdev] CMake broken?
...-- Targeting X86 CMake Error at cmake/modules/LLVMConfig.cmake:90 (message): Library LLVMARMAsmParser not found in list of llvm libraries. Call Stack (most recent call first): cmake/modules/LLVMConfig.cmake:27 (explicit_map_components_to_libraries) cmake/modules/LLVMConfig.cmake:20 (explicit_llvm_config) cmake/modules/AddLLVM.cmake:61 (llvm_config) cmake/modules/AddLLVM.cmake:78 (add_llvm_executable) tools/llvm-mc/CMakeLists.txt:3 (add_llvm_tool) Tom
2010 Mar 14
2
[LLVMdev] patches for the LLVM cmake build system
Hi llvm-dev, Attached are two patches for the LLVM cmake build system. The first one adds static runtimes (MT and MTd) to the list of runtimes for the MSVC build. The second one makes it possible to use llvm_config in external projects. In this patch I took the liberty of changing the format of LLVMLibDeps.cmake to define a single variable LLVM_LIB_DEPS instead of MSVC_LIB_DEPS_*. LLVM_LIB_DEPS contains the list of libraries and dependencies in the following form: set ( LLVM_LIB_DEPS * <lib-name> &lt...
2013 Jul 25
1
[LLVMdev] First Pass at building dragon egg-3.3 for clang 3.3 - using gcc-4.7
Duncan, Many thanks for your comments. The core issue we're running into is this: $ GCC=/usr/bin/gcc LLVM_CONFIG=/usr/bin/llvm-config make Compiling utils/TargetInfo.cpp Linking TargetInfo ld: fatal: library -lLLVMSupport: not found ld: fatal: file processing errors. No output written to TargetInfo collect2: error: ld returned 1 exit statusAll other gyrations are attempts to shoehorn LLVMSupport into the comp...