Displaying 20 results from an estimated 1000 matches similar to: "Correctly linking against libLLVM (single shared library build)"
2017 Nov 16
2
Correctly linking against libLLVM (single shared library build)
On 11/14/2017, 01:26 AM, Chris 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
2020 May 16
2
Building A Project Against LLVM
I've managed to get 10.0.0 working now.. there were a couple things I had
to adjust.
The Kaleidoscope example had me doing this before creating the object file:
llvm::InitializeAllTargetInfos();
llvm::InitializeAllTargets();
llvm::InitializeAllTargetMCs();
llvm::InitializeAllAsmParsers();
llvm::InitializeAllAsmPrinters();
It turns out I can get away with just this, since I'm not (yet)
2020 May 16
2
Building A Project Against LLVM
On Fri, May 15, 2020 at 6:53 PM Neil Nelson via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> Rarrum,
>
> Kubuntu 20.04 LTS is available. You may be able to upgrade to 19.10, and
> then to 20.04 without reinstalling. It can be done on Xubuntu. A direct
> upgrade to 20.04 should become available. LLVM 10 then installs from the
> distribution packages. I put all this on a
2019 Sep 18
2
EngineBuilder(std::move(Owner)).create() return null
I just copy the latest code in HowToUseJIT and run, but
the EngineBuilder(std::move(Owner)).create() keeps return null, any idea
why?
Here's my CMakeList:
cmake_minimum_required(VERSION 3.12)
project(llvm_test)
set(CMAKE_CXX_STANDARD 14)
find_package(LLVM REQUIRED CONFIG)
llvm_map_components_to_libnames(llvm_libs support core irreader orcjit native)
add_executable(llvm_test main.cpp)
2019 Sep 18
2
EngineBuilder(std::move(Owner)).create() return null
I found a private ErrorStr member, but didn't find the get function of this
member, could you tell me how I can get the error message?
On Wed, Sep 18, 2019 at 4:02 PM mayuyu.io <admin at mayuyu.io> wrote:
> Isn’t there a method in EngineBuilder to get the error message or
> something?
> I assume it’s you didn’t link in the JIT module
>
> Zhang
>
> 在
2016 Feb 06
2
D16945: LLVM overhaul to avoid linking LLVM component libraries with libLLVM
Hans,
I have posted a complete patch for solving the linkage issues
with LLVM_LINK_LLVM_DYLIB on Phabricator at
http://reviews.llvm.org/D16945. The bulk of the fix the simple
changes of...
Index: cmake/modules/AddLLVM.cmake
===================================================================
--- cmake/modules/AddLLVM.cmake (revision 259743)
+++ cmake/modules/AddLLVM.cmake (working copy)
@@
2016 Feb 09
2
D16945: LLVM overhaul to avoid linking LLVM component libraries with libLLVM
On Mon, Feb 8, 2016 at 12:45 PM, Hans Wennborg <hans at chromium.org> wrote:
> Chris Bieneman is probably your best bet, and maybe also Dan Liew.
>
Hans,
My current, and hopefully final, revision of the proposed patch
is simplified and reworked to solve the problem entirely from cmake
without touching the the llvm-build python scripts. Basically, the new
fix for avoiding the
2020 May 15
2
Building A Project Against LLVM
I decided to start playing around with building my own programming language
recently, and to use LLVM to handle the assembly-level details. I'm on
Kubuntu 18.04, and I started out using LLVM 6.0 from Kubuntu's packages. I
put together code for dealing with my language, then went over the
Kaleidoscope tutorials (which have been extremely helpful btw!). I was
able to successfully get my
2016 Jan 19
5
Building SVN head with CMake - shared libraries?
On 01/17/2016 02:53 PM, Dan Liew wrote:
> @Brad: CC'ing you because I know you use
> ``llvm_map_components_to_libnames()`` so you will likely have
> something to say about it breaking.
I'm using it in CastXML but that could easily be adapted to something
different if needed. The larger concern is that that API is the
documented way to use LLVM in an application with CMake so
2018 Mar 19
1
How to link against all available targets - problems with NVPTX?
As the question asks, I'm having some trouble using initializeAllTargets().
I have a CMakeLists that uses:
llvm_map_components_to_libnames(LLVM_LIBS ...
AllTargetsAsmParsers
AllTargetsAsmPrinters
AllTargetsDescs
AllTargetsInfos
...)
However, even with these, when I try to compile my program, I get linker
errors:
CMakeFiles/sxhc.dir/src/main.cpp.o: In function
2015 Mar 04
2
[LLVMdev] [RFC] March Update: Progress report on CMake build system's ability to replace autoconf
> On Mar 4, 2015, at 12:25 PM, Dan Liew <dan at su-root.co.uk> wrote:
>
> Hi Chris,
>
> Thanks for working on this. I haven't been following LLVM for a few
> months and in that time it seems support for building a monolithic
> shared library has been added which is great! I've been looking over
> it and I have a few questions/comments.
>
> * The
2015 Jun 22
3
[LLVMdev] Long-Term Support for LLVM Projects Extension to Build System?
On 20 June 2015 at 02:46, David Chisnall <David.Chisnall at cl.cam.ac.uk> wrote:
> On 19 Jun 2015, at 23:25, Dan Liew <dan at su-root.co.uk> wrote:
>>
>> This is what I effectively do. Although because I build the projects I
>> work on I use the CMake config file that LLVM exports to make it
>> trivially easy to use the LLVM libraries from within CMake (see
2018 Mar 02
2
EngineBuilder().create() => NULL
Hi,
I try to create an execution engine, but I always got a nullptr value :
_executionEngine = EngineBuilder(std::move(_module)).create();
I build my project with cmake and add the following command in my cmake.
llvm_map_components_to_libnames(llvm_libs Analysis Core
ExecutionEngine InstCombine Object RuntimeDyld ScalarOpts Support native
mcjit)
BTW, I have also try to execute the
2018 Mar 02
0
EngineBuilder().create() => NULL
EngineBuilder should provided an error string option, try printing it out?
Zhang
> 在 2018年3月2日,上午8:23,Christophe Demez via llvm-dev <llvm-dev at lists.llvm.org> 写道:
>
> Hi,
>
> I try to create an execution engine, but I always got a nullptr value :
>
> _executionEngine = EngineBuilder(std::move(_module)).create();
>
> I build my project with cmake and add
2016 Jan 17
3
Building SVN head with CMake - shared libraries?
Hi,
On Sun, Jan 17, 2016 at 1:04 PM, Dan Liew <dan at su-root.co.uk> wrote:
> On 16 January 2016 at 20:21, Ismail Donmez <ismail at i10z.com> wrote:
>> On Sat, Jan 16, 2016 at 9:33 PM, Dan Liew <dan at su-root.co.uk> wrote:
>>>> I am trying to enable this on openSUSE but it seems to break
>>>> standalone lldb (note that we don't ship static
2016 Oct 10
2
Embedding llvm as a git submodule in Project
Hi Timo:
You need to find LLVMConfig.cmake in the binary or install directory tree,
not the source tree.
Although I don't embed clang/llvm, my config might help you figure it --
clang/llvm installed under (could have used build directory) ~/usr :
$ cd /Users/dhinton/projects/cover/build/ && rm -rf * && CC=~/usr/bin/clang
CXX=~/usr/bin/clang++ LLVM_DIR=~/usr/lib/cmake/llvm
2017 Aug 04
2
Cross compiling C++ program
On Fri, Aug 04, 2017 at 01:54:33PM -0600, Jonathan Roelofs wrote:
>
>
> On 8/4/17 1:14 PM, Goran Mekić via llvm-dev wrote:
> > On Thu, Aug 03, 2017 at 08:22:24AM -0600, Jonathan Roelofs wrote:
> > > IIUC, you don't want to cross compile llvm itself (which is what those
> > > instructions are for), but instead you want to *use* llvm to cross compile
> >
2016 Oct 09
3
Embedding llvm as a git submodule in Project
Hi all.
I want to use llvm in my project and I want to make llvm a git submodule
in my project.
http://llvm.org/docs/CMake.html#embedding-llvm-in-your-project
At this in the documentation it claims to describe how to embed llvm
into a project. I tried it that way but it doesn't work, because there
isn't any findLLVM.cmake in the llvm/cmake/modules directory anymore (i
don't
2019 Mar 29
2
How to build only the necessary components with MSVC
I configure LLVM build with this command
cd llvm-8.0.0.src & md buildsys-x64-MT & cd buildsys-x64-MT & cmake -G "Ninja" -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_BUILD_TYPE=Release -DLLVM_USE_CRT_RELEASE=MT -DLLVM_ENABLE_RTTI=1 -DLLVM_ENABLE_TERMINFO=OFF -DCMAKE_INSTALL_PREFIX=../x64-MT ..
The number of build objects grew with every major release to 1660 for LLVM 7 and 1761 for
2017 Aug 04
3
Cross compiling C++ program
On Fri, Aug 04, 2017 at 04:03:35PM -0600, Jonathan Roelofs wrote:
> > > 1) Pick a directory as your sysroot
> > ~/arm-sysroot
> >
> > > 2) Install the libc headers there (without having built it)
> > What I did was mv musl-*/include ~/arm-sysroot/usr/include.
>
> I think you need to copy them, not move them.
On a new directories and fresh untar of musl, I