search for: dllvm_enable_rtti

Displaying 20 results from an estimated 40 matches for "dllvm_enable_rtti".

2019 Jun 28
2
Conflicts with custom passes
...ginally I used a builtin Clang in the system and it does not produce this issue. When I search for this issue on Google, it seems to be relevant to “RTTI”. But as I know LLVM is built by default -fno-rtti. I also explicitly turned off it. Here is my cmake command: $ cmake -DCMAKE_BUILD_TYPE=Debug -DLLVM_ENABLE_RTTI=OFF -DLLVM_ENABLE_PROJECTS=clang -G "Unix Makefiles" ../llvm Any thought? Best, - Kihong > On Jun 28, 2019, at 5:39 AM, Tim Northover <t.p.northover at gmail.com> wrote: > > Hi Kihong, > > On Fri, 28 Jun 2019 at 05:58, Kihong Heo via llvm-dev > <llvm-dev a...
2019 Jun 28
2
Conflicts with custom passes
...; When I search for this issue on Google, it seems to be relevant to “RTTI”. > > Yep, that's a typeinfo symbol. > >> But as I know LLVM is built by default -fno-rtti. I also explicitly turned off it. Here is my cmake command: >> >> $ cmake -DCMAKE_BUILD_TYPE=Debug -DLLVM_ENABLE_RTTI=OFF -DLLVM_ENABLE_PROJECTS=clang -G "Unix Makefiles" ../llvm >> >> Any thought? > > My best guess is that your pass was built *with* RTTI (i.e. no > -fno-rtti) but LLVM without. A quick fix would be to switch to > -DLLVM_ENABLE_RTTI=ON, but longer term you may w...
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 LLVM 8. I only need the components requested here https://gitlab.freedesktop.org/mesa/mesa/blob/master/scons/llvm.py#L103 After reading https:/...
2017 May 23
3
Removing "fno-rtti" flag from llvm-config --cxxflags
Hi everyone, I just had a question - I am aware that LLVM supports it's own form of RTTI ( using dyn_cast<>() ,etc) but I wish to use C++ RTTI currently. I have tried building with "cmake -G "Unix Makefiles" -LLVM_ENABLE_RTTI=ON" but that doesnt seem to remove the "fno-rtti" flag from llvm-config and I still get an error when I try using
2018 May 05
4
Slow IR compilation/JIT, profiling points to LLVM?
...9;s architecture to be sure. Could this be pointing to something I'm doing wrong in my LLVM setup, or is it just slow? I'm reasonably certain I'm compiling LLVM in optimized mode, but for reference, this is my build line:     cmake .. -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_EH=ON -DLLVM_ENABLE_RTTI=ON -DLLVM_REQUIRES_RTTI=ON -DLLVM_ENABLE_CXX1Y=ON -DLLVM_LINK_LLVM_DYLIB=ON -DLLVM_ENABLE_FFI=ON -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_OPTIMIZED_TABLEGEN=ON -DCMAKE_INSTALL_PREFIX="/opt/llvm/install" The overall time split, from valgrind, between shared libraries in my code is:     80.48%...
2019 Jan 08
2
[LLD] [WASM] wasm/function-index.test failing
Are you using static linking, -DBUILD_SHARED_LIBS, or -DLLVM_LINK_LLVM_DYLIB? On Tue, Jan 8, 2019 at 7:21 AM David Greene via llvm-dev < llvm-dev at lists.llvm.org> wrote: > Rui Ueyama <ruiu at google.com> writes: > > > I cannot reproduce this error, but this could be real. > > > > David, is this reproducible every time or is this flaky? > > It's
2016 Mar 14
2
LLVM-3.8.0 libcxx in-tree build fails with cmath error ::signbit has not been declared
...-DGCC_INSTALL_PREFIX=$GCC_ROOT \ -DLLVM_BINUTILS_INCDIR=${DESTROOT}/include \ -DLLVM_BUILD_32_BITS=OFF \ -DLLVM_BUILD_EXAMPLES=ON \ -DLLVM_ENABLE_CXX1Y=ON \ -DLLVM_ENABLE_EH=ON \ -DLLVM_ENABLE_FFI=ON \ -DLLVM_ENABLE_LIBCXX=ON \ -DLLVM_ENABLE_RTTI=ON \ -DLLVM_ENABLE_THREADS=ON \ -DLLVM_ENABLE_ZLIB=ON \ -DLLVM_INCLUDE_EXAMPLES=ON \ -DLLVM_INCLUDE_UTILS=ON \ -DLLVM_OPTIMIZED_TABLEGEN=ON \ -DLLVM_PARALLEL_COMPILE_JOBS=15 \ -DLLVM_PARALLEL_LINK_JOBS=15 \ -DLLVM_TARGETS_TO_BUILD=&quo...
2019 Oct 28
2
How to Switch to Static Runtime and Enable C++ Exceptions?
Hi. I'm trying to build LLVM 10.0.0 with CMake on the command line (Developer Command Prompt for VS2019) and I need to know how to switch to a static runtime. I've tried setting LLVM's variable for this, but it didn't work. I still have a dynamic runtime. Along with that, I also need to know how to enable C++ exceptions. One thing I tried was to do
2019 Oct 30
2
Recent LLVM Build Attempt -- obj.ClangAST.vcxproj Failed to Build
I configured with this command: " cmake ../llvm -G"Visual Studio 16 2019" -A Win32 -Thost=x64 -DLLVM_ENABLE_EH=ON -DCMAKE_BUILD_TYPE=Release -DLLVM_USE_CRT_RELEASE=MT -DLLVM_ENABLE_RTTI=ON -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;lld;libcxx;libcxxabi" -DCMAKE_CXX_FLAGS="/permissive- /D_SILENCE_ALL_CXX17_DEPRECATION_WARNINGS" -DCMAKE_CXX_STANDARD=17 " and when building the target ALL_BUILD.vcxproj I redirected the output to a file. I'm attaching...
2016 Oct 24
2
RuntimeDyLdCOFF and RTTI on Windows
...failed > > As the issue is reproducible with lli, it's probably unrelated to the COFF > implementation as originally stated. > I built LLVM and Clang from release39 HEAD and used both, clang and lli > from this build. OS versions and CMake flags are: > > * OSX 10.10.6 with -DLLVM_ENABLE_RTTI=ON -DLLVM_ENABLE_EH=ON > -DLLVM_TARGETS_TO_BUILD=X86 > * Windows 10 64bit OS Build 14393.222 with -DLLVM_ENABLE_RTTI=ON > -DLLVM_ENABLE_EH=ON -DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_USE_CRT_DEBUG=MDd > -DLLVM_USE_CRT_RELEASE=MD > > Hope this helps nailing down the issue. Maybe I can he...
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
2018 May 05
0
Slow IR compilation/JIT, profiling points to LLVM?
...s be pointing to something I'm doing wrong in my LLVM setup, or > is it just slow? > > > I'm reasonably certain I'm compiling LLVM in optimized mode, but for > reference, this is my build line: > > cmake .. -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_EH=ON > -DLLVM_ENABLE_RTTI=ON -DLLVM_REQUIRES_RTTI=ON -DLLVM_ENABLE_CXX1Y=ON > -DLLVM_LINK_LLVM_DYLIB=ON -DLLVM_ENABLE_FFI=ON > -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_OPTIMIZED_TABLEGEN=ON > -DCMAKE_INSTALL_PREFIX="/opt/llvm/install" > > > The overall time split, from valgrind, between shared librar...
2016 Feb 19
3
undefined reference to typeinfo for CmpInst
Hi all, I am having some some trouble with LLVM 3.8... I built it with GCC 4.8.2 with cmake and no special CXX/C flags. That means in case of GCC that RTTI is switched on, I believe. However, building my MCJIT application against the just built LLVM and linking results in: libqdp.a(qdp_llvm.o):(.rodata._ZTIN4llvm8FCmpInstE[_ZTIN4llvm8FCmpInstE]+0x10): undefined reference to `typeinfo for
2016 Mar 14
2
LLVM-3.8.0 libcxx in-tree build fails with cmath error ::signbit has not been declared
...-DGCC_INSTALL_PREFIX=$GCC_ROOT \ -DLLVM_BINUTILS_INCDIR=${DESTROOT}/include \ -DLLVM_BUILD_32_BITS=OFF \ -DLLVM_BUILD_EXAMPLES=ON \ -DLLVM_ENABLE_CXX1Y=ON \ -DLLVM_ENABLE_EH=ON \ -DLLVM_ENABLE_FFI=ON \ -DLLVM_ENABLE_LIBCXX=ON \ -DLLVM_ENABLE_RTTI=ON \ -DLLVM_ENABLE_THREADS=ON \ -DLLVM_ENABLE_ZLIB=ON \ -DLLVM_INCLUDE_EXAMPLES=ON \ -DLLVM_INCLUDE_UTILS=ON \ -DLLVM_OPTIMIZED_TABLEGEN=ON \ -DLLVM_PARALLEL_COMPILE_JOBS=15 \ -DLLVM_PARALLEL_LINK_JOBS=15 \ -DLLVM_TARGETS_TO_BUILD=&quo...
2019 Sep 05
3
Building LLVM with LLVM
...s/libcxx mv libcxxabi-${VERSION}.src llvm-${VERSION}.src/projects/libcxxabi mv lld-${VERSION}.src llvm-${VERSION}.src/projects/lld mv compiler-rt-${VERSION}.src llvm-${VERSION}.src/projects/compiler-rt mkdir build cd build cmake \ -DLLVM_ENABLE_FFI=ON \ -DCMAKE_BUILD_TYPE=Release \ -DLLVM_ENABLE_RTTI=ON \ -DLLVM_TARGETS_TO_BUILD="host" \ -DBUILD_SHARED_LIBS=ON \ ../llvm-${VERSION}.src cmake --build . cmake -DCMAKE_INSTALL_PREFIX=${DESTDIR}${PREFIX} -P cmake_install.cmake === snap === Any hints? Greetings, Fabiano
2016 Oct 07
3
RuntimeDyLdCOFF and RTTI on Windows
HI Stefan, CC'ing Reid Kleckner, who might have some insight here, and llvm-dev as this may be of interest to other windows JIT users. I am facing the issue that C++ dynamic_cast doesn't work for types > loaded from object files with RuntimeDyLd. <snip> Do you think it is possible that RuntimeDyLd misses type info data in > the COFF file or doesn't wire it up
2018 Mar 17
0
Building issue at configure step on ARM host (AddLLVM.cmake)
...PE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_C_FLAGS="-march=armv7-a -mcpu=cortex-a9" -DCMAKE_C_COMPILER_TARGET=arm-linux-gnueabi -DPYTHON_EXECUTABLE=/usr/bin/python2.7 -DLLVM_ENABLE_LIBCXX=OFF -DLLVM_BUILD_TESTS=ON -DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_LINK_LLVM_DYLIB=ON -DLLVM_ENABLE_RTTI=ON -DLLVM_ENABLE_FFI=ON -DLLVM_ENABLE_ASSERTIONS=True -DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON -DCOMPILER_RT_BUILD_BUILTINS=ON -DCOMPILER_RT_BUILD_SANITIZERS=OFF -DCOMPILER_RT_BUILD_XRAY=OFF And I got the following error : -- Performing Test CXX_SUPPORTS_NO_MACRO_REDEFINED - Success -- Sy...
2018 May 05
0
Slow IR compilation/JIT, profiling points to LLVM?
...>     4.54%; 3,722,489 Calls; llvm::PMDataManager::findAnalysisPass(void > const*, bool)'2 > I'm reasonably certain I'm compiling LLVM in optimized mode, but for > reference, this is my build line: > >     cmake .. -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_EH=ON > -DLLVM_ENABLE_RTTI=ON -DLLVM_REQUIRES_RTTI=ON -DLLVM_ENABLE_CXX1Y=ON > -DLLVM_LINK_LLVM_DYLIB=ON -DLLVM_ENABLE_FFI=ON > -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_OPTIMIZED_TABLEGEN=ON > -DCMAKE_INSTALL_PREFIX="/opt/llvm/install" You're building LLVM with assertions enabled (-DLLVM_ENABLE_ASSERTIONS=O...
2018 Sep 10
2
OpenJDK8 failed to work after compiled by LLVM 8 for X86
..... -DCMAKE_BUILD_TYPE=Release \     -DCMAKE_C_COMPILER=clang \     -DCMAKE_CXX_COMPILER=clang++ \     -DCMAKE_C_FLAGS="-fPIC" \     -DCMAKE_CXX_FLAGS="-std=c++11 -fPIC" \     -DLLVM_BUILD_LLVM_DYLIB=ON \     -DLLVM_LINK_LLVM_DYLIB=ON \     -DLLVM_INSTALL_UTILS=ON \     -DLLVM_ENABLE_RTTI=ON \     -DLLVM_ENABLE_FFI=ON \     -DLLVM_ENABLE_EH=ON \     -DLLVM_BUILD_TESTS=ON \     -DLLVM_BUILD_DOCS=OFF \     -DLLVM_ENABLE_SPHINX=OFF \     -DLLVM_ENABLE_DOXYGEN=OFF \     -DLLDB_DISABLE_LIBEDIT=1 \     -DSPHINX_WARNINGS_AS_ERRORS=OFF \     -DFFI_INCLUDE_DIR=$(pkg-config --variabl...
2019 Sep 17
2
Building LLVM with LLVM with no dependence on GCC
...ild-essential libffi-dev cmake # see aptget.txt for packages installed sudo mv /usr/local /usr/local.orig git clone https://github.com/llvm/llvm-project.git cd llvm-project; git checkout llvmorg-9.0.0-rc5; cd - mkdir build; cd build cmake \ -DLLVM_ENABLE_FFI=ON \ -DCMAKE_BUILD_TYPE=Release \ -DLLVM_ENABLE_RTTI=ON \ -DLLVM_TARGETS_TO_BUILD="host" \ -DBUILD_SHARED_LIBS=ON \ -DLLVM_ENABLE_PROJECTS="clang;libcxx;libcxxabi;compiler-rt;lld" \ ../llvm-project/llvm # configure1.txt cmake --build . cmake -DCMAKE_INSTALL_PREFIX=/tmp/llvm/usr/local -P cmake_install.cmake sudo mv /tmp/llv...