Displaying 20 results from an estimated 700 matches similar to: "[LLVMdev] llvm-config --cxxflags does not give the result the configuration script wants?"
2012 Mar 13
0
[LLVMdev] llvm-config --cxxflags does not give the result the configuration script wants?
Jun-qi Deng <dengjunqi06323011 at gmail.com> writes:
> Recently I think I found a bug in llvm's CMakeLists.(I use llvm 3.1svn and
> Clang 3.1) I follow the normal way to try to compile an application that
> utilize both clang and llvm: I ./autogen.sh it, ./configure it and make it.
> But the make fails. At last I found out the failure is because that the
> Makefile's
2012 Mar 14
2
[LLVMdev] llvm-config --cxxflags does not give the result the configuration script wants?
> > Recently I think I found a bug in llvm's CMakeLists.(I use llvm 3.1svn
> and
> > Clang 3.1) I follow the normal way to try to compile an application that
> > utilize both clang and llvm: I ./autogen.sh it, ./configure it and make
> it.
> > But the make fails. At last I found out the failure is because that the
> > Makefile's CXXFLAGS does not contain
2012 Mar 14
0
[LLVMdev] llvm-config --cxxflags does not give the result the configuration script wants?
Jun-qi Deng <dengjunqi06323011 at gmail.com> writes:
>> Is it? In my experience, it isn't. Please show the relevant command
>> generated by your makefile and the associated error message(s).
>>
>
>> RTTI is an on/off option that changes per LLVM library, so setting
>> -fno-rtti for using LLVM makes no sense. VMCore and Support have -frtti
>> while
2013 Jun 14
1
[LLVMdev] Building pass out of source with cmake: undefined symbol error
Ah! Think I figured it out -- it's rtti. When I build with -fno-rtti, the spurious symbol disappears. Blargh, that was complicated. I'm going to try an out-of-source cmake build now. So far this has been a soliloquy, hope it helps someone else.
________________________________
From: llvmdev-bounces at cs.uiuc.edu [llvmdev-bounces at cs.uiuc.edu] on behalf of Charles Jacobsen
2012 Dec 10
3
[LLVMdev] typeinfo for llvm::MCAsmInfo is missing
I've actually tried to compile both LLVM and my lib with -frtti with same results.
On Dec 10, 2012, at 21:57, Jim Grosbach <grosbach at apple.com> wrote:
> Llvm typically doesn't build with RTTI enabled. Perhaps that's what you're running into?
>
> Jim
--
Vladimir Pouzanov
http://www.farcaller.net/
-------------- next part --------------
A non-text attachment
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
2010 Oct 14
2
[LLVMdev] LLVM use of C++ exceptions and RTTI
On Thu, Oct 14, 2010 at 4:09 PM, Duncan Sands <baldrick at free.fr> wrote:
> Hi Francois,
>
>> In that case, RTTI and exception should also be disabled from CMake
>> generated projects right?
>> Currently they are enabled all over my MSVC projects.
>
> I'm not sure what you are asking. The goal is for LLVM to not require
> RTTI or exception handling.
2016 Oct 10
2
Embedding llvm as a git submodule in Project
Sorry my example wasn't helpful.
I did take a quick look at rust -- though I didn't download or try to build
it -- and they seem to allow you to use an installed or prebuilt version in
addition to building it in-tree. However, even when they build it in-tree,
they build the whole thing -- see mk/llvm.mk.
Good luck...
On Mon, Oct 10, 2016 at 1:33 AM, Timo Janssen via llvm-dev <
2012 Dec 11
0
[LLVMdev] typeinfo for llvm::MCAsmInfo is missing
Vladimir Pouzanov <farcaller at gmail.com> writes:
> On Dec 10, 2012, at 21:57, Jim Grosbach <grosbach at apple.com> wrote:
>> Llvm typically doesn't build with RTTI enabled. Perhaps that's what
>> you're running into?
>>
> I've actually tried to compile both LLVM and my lib with -frtti with
> same results.
Please show the exact commands
2012 Mar 14
2
[LLVMdev] llvm-config --cxxflags does not give the result the configuration script wants?
I got your point. Thank you, and I'd like to provide the relative message
now. But firstly, what do you mean by the "relevant command generated by
your makefile"? What I can tell you now is:
The Error Message:
make[3]: Entering directory `/home/tang.kk/ppcg/ppcg/isl/interface'
CXXLD extract_interface
extract_interface.o:(.data.rel.ro._ZTI13MyASTConsumer[typeinfo for
2012 Dec 11
2
[LLVMdev] typeinfo for llvm::MCAsmInfo is missing
> -----Original Message-----
> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
> On Behalf Of Óscar Fuentes
>
> Vladimir Pouzanov <farcaller at gmail.com> writes:
>
> > On Dec 10, 2012, at 21:57, Jim Grosbach <grosbach at apple.com> wrote:
> >> Llvm typically doesn't build with RTTI enabled. Perhaps that's what
2014 Mar 08
2
[LLVMdev] Why are the tablegen files excluded from source lists/
My problem is that the .td and .h files are not shown as sources
in the codeblocks (.cbp) output generated by cmake. I’m consuming
the .cbp file with Qt Creator - it’s seems to be an otherwise
excellent tool for llvm development.
It seems that the culprit is llvm_process_sources
function in cmake/modules/LLVMProcessSources.cmake.
The addition of .td sources and header files is wrapped
in the
2015 Oct 06
2
Extra space in LLVM_DEFINITIONS causes CMake 3.1 to fail
LLVM_DEFINITIONS used to be defined as
set(LLVM_DEFINITIONS "-D__STDC_LIMIT_MACROS" "-D__STDC_CONSTANT_MACROS")
Now it is defined as
set(LLVM_DEFINITIONS " -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS")
(note that it is no longer a cmake list but a string, and the string contains a leading space!)
This causes CMake 3.1 to emit
g++ -D
2015 Oct 06
2
Extra space in LLVM_DEFINITIONS causes CMake 3.1 to fail
I made this change (not specifically changing from a list to a string, but changing from a hardcoded value to the value
that was actually decided by cmake), and I checked that it works with cmake 2.8.12.2 which is the minimum version
set in CMakeLists.txt. So if it doesn’t work with cmake 3.1/3.2 then that looks like something new that was introduced
after 2.8.12.2.
I’ll have a look at this
2015 May 28
5
[LLVMdev] Building poolalloc with current LLVM development branch?
I'm starting to play around with poolalloc for the first time. I tried to
build it as follows:
1) Clone llvm's git repo, and build it with cmake + ninja.
2) cd .../llvm/projects
3) git clone git at github.com:llvm-mirror/poolalloc.git
When I went to re-run ninja, (or even CMake by itself), I get errors like
the following (truncated for brevity). Any suggestions for whether I'm
2013 Mar 18
2
[LLVMdev] Help with LLVM 3.2 linking error
Il giorno 18/mar/2013, alle ore 15:14, Óscar Fuentes <ofv at wanadoo.es> ha scritto:
> Nicola Gigante <nicola.gigante at gmail.com> writes:
>
>> The error I get is the following:
>> Undefined symbols for architecture x86_64:
>> "typeinfo for llvm::FoldingSetImpl", referenced from:
>> typeinfo for llvm::FoldingSet<Type> in Program.o
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)
2012 Dec 11
0
[LLVMdev] typeinfo for llvm::MCAsmInfo is missing
Gordon Keiser <gkeiser at arxan.com> writes:
> There is (was?) a CMake variable for this if you're going that route.
> Setting LLVM_REQUIRES_RTTI=1 enabled an RTTI build that I haven't had
> issues with. I don't know what the ./configure equivalent is, sorry.
LLVM_REQUIRES_RTTI is an internal variable. It works as you say, but
there is no guarantee about it.
Adding a
2014 Mar 24
2
[LLVMdev] compiler-rt CMake build ignores CMAKE_CXX_FLAGS
Submitted r204593.
On Sun, Mar 23, 2014 at 10:03 PM, Alexey Samsonov <samsonov at google.com>wrote:
> Hi Dmitri,
>
> On Sat, Mar 22, 2014 at 11:50 PM, Dmitri Gribenko <gribozavr at gmail.com>wrote:
>
>> Hello,
>>
>> It looks like compiler-rt CMake scripts don't take CMAKE_CXX_FLAGS
>> into account. This is because clang_compile and
2019 Nov 18
2
Crash using exceptions
Hello,
I get a crash in my program that uses exceptions and the LLVM JIT,
even though the exceptions are controlled and thrown/catched in a part
that doesn't deal with LLVM. I noticed that llvm-config --cxxflags
includes the -fno-exceptions flag. Do I need to throw no exceptions
whatsoever in my application to use LLVM JIT?
As a minimal example, I modified the code in