Displaying 6 results from an estimated 6 matches for "llvm_build_root".
2014 Sep 09
2
[LLVMdev] Can't build against LLVM-3.5 with CMake: CMakeExports.cmake broken?
Hi all,
I can't seem to get the simplest CMakeLists.txt file working from http://llvm.org/docs/CMake.html#embedding-llvm-in-your-project. Do any of the LLVM projects use `find_package(LLVM REQUIRED CONFIG)`? Should I just be using `llvm-config` directly?
http://llvm.org/bugs/show_bug.cgi?id=20884
David
2014 Sep 09
3
[LLVMdev] Can't build against LLVM-3.5 with CMake: CMakeExports.cmake broken?
...ld
directory and don't bother installing it)
$ mkdir tutorial/
# Build LLVM
$ mkdir llvm/
$ cd llvm/
$ svn co http://llvm.org/svn/llvm-project/llvm/branches/release_35 src
$ mkdir build
$ cd build
$ cmake -G Ninja ../src
$ ninja
# This is just for convenience when setting LLVM_DIR later on.
$ LLVM_BUILD_ROOT="$(pwd)"
# Build simple tutorial project
$ cd ../
$ mkdir srg-llvm-pass-tutorial
$ git clone https://github.com/delcypher/srg-llvm-pass-tutorial.git src
$ mkdir build
$ cd build/
# I'm assuming your shell will example ${LLVM_BUILD_ROOT} before invoking cmake
$ cmake -DLLVM_DIR:PATH=$...
2009 Dec 10
2
[LLVMdev] Rebuilding LLVM libraries with LLVM-GCC on Windows
...en linked already. The errors change depending on the order of
> the components. There is obviously dependency issues--references to libs
> that have already been linked. How do I resolve these dependency problems?
What's the output of
llvm-config --libs x86
?
Take a look at the $LLVM_BUILD_ROOT/bin/llvm-deps script and see if the
library dependencies listed at the end looks normal, i.e. every library
depends on other libraries, with Support and System on almost every
dependency list.
> Also, I'm unable to use "llvm-config --libs all" because I receive the
> error: &q...
2009 Dec 10
0
[LLVMdev] Rebuilding LLVM libraries with LLVM-GCC on Windows
Thanks Óscar,
I decided to forget 2.5 and move on to 2.6 which built fine with CMake.
However, I continue to have problems with llvm-config when using the
following command:
$ llvm-g++ out.s -o out `llvm-config --ldflags --libs core support system
x86`
I consistently get undefined reference errors that are from libraries that
should've been linked already. The errors change depending
2009 Dec 08
2
[LLVMdev] Rebuilding LLVM libraries with LLVM-GCC on Windows
"Michael Ness" <mike at liquido2.com> writes:
> Some additional information about the setup may be of interest:
>
> I'm using CMake to generate the make files for MSYS. All appears to go well
> until the tools are compiled.
>
> The undefined references seem to be coming from the libraries that were just
> compiled:
>
>
2009 Dec 11
0
[LLVMdev] Rebuilding LLVM libraries with LLVM-GCC on Windows
...cc build, but still unable to link
everything correctly. Any other ideas?
Thanks,
--Mike
> From: "Óscar Fuentes" <ofv at wanadoo.es>
> Sent: Wednesday, December 09, 2009 10:02 PM
> What's the output of
>
> llvm-config --libs x86
>
> Take a look at the $LLVM_BUILD_ROOT/bin/llvm-deps script and see if the
> library dependencies listed at the end looks normal, i.e. every library
> depends on other libraries, with Support and System on almost every
> dependency list.
>
> Maybe there is a bug on the generation of library dependencies. This may
> due...