search for: disableabibreakingcheck

Displaying 8 results from an estimated 8 matches for "disableabibreakingcheck".

2016 Nov 16
2
[RFC] Runtime checks for ABI breaking build of LLVM
...gining something like: I’d love to, but didn’t find a universal solution unfortunately :( > #if LLVM_ENABLE_ABI_BREAKING_CHECKS > extern int EnableABIBreakingChecks; > __attribute__((weak)) int *VerifyEnableABIBreakingChecks = &EnableABIBreakingChecks; > #else > extern int DisableABIBreakingChecks; > __attribute__((weak)) int *VerifyDisableABIBreakingChecks = &VDisableABIBreakingChecks; > #endif > > in llvm-config.h.cmake, and: > > #if LLVM_ENABLE_ABI_BREAKING_CHECKS > int EnableABIBreakingChecks; > #else > int DisableABIBreakingChecks; > #endif &g...
2019 Jan 09
4
Problems trying to build LLVM
...killed by the OOM killer. I finally realized that I needed to build using shared libraries, and succeeded. This was in November. - I put aside my LLVM project, and just got back to it. I got stuck compiling the Kaleidoscope demo, encountering this error: /tmp/kal-2072b8.o:(.data._ZN4llvm30VerifyDisableABIBreakingChecksE+0x0): undefined reference to `llvm::DisableABIBreakingChecks' This discussion, from this mailing list, points out that I need to build LLVM with -DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=OFF. - So now I am trying to rebuild LLVM, and ran into a few new problems. First, I discovered tha...
2018 Jun 01
3
[Kaleidoscope] symbol(s) not found during compiling
...; #include "llvm/IR/Module.h" #include "llvm/IR/Type.h" #include "llvm/IR/Verifier.h" """ """error $ g++ -I/usr/local/opt/llvm/include -L/usr/local/opt/llvm/lib -std=c++11 k-lang.cc Undefined symbols for architecture x86_64: "llvm::DisableABIBreakingChecks", referenced from: llvm::VerifyDisableABIBreakingChecks in k-lang-14fa17.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) """ My OS is MacOS High Sierra v10.13.3 Source Codes could be viewe...
2019 Mar 22
2
undefined symbol EnableABIBreakingChecks
Hi, when using the "Debug" build of LLVM 8.0 my application which uses the LLVM builder and MCJIT components fails at startup with: symbol lookup error: ./main: undefined symbol: _ZN4llvm23EnableABIBreakingChecksE (unmangled: llvm::EnableABIBreakingChecks) The application works fine with the "Release" build of LLVM 8.0! (Right now, I need the Debug build for access to
2016 Nov 16
4
[RFC] Runtime checks for ABI breaking build of LLVM
Hi all, An issue that come up from time to time and has cost hours for debug for many of us and users of LLVM is that an assert build isn’t ABI compatible with a release build. The CMake flags that controls this behavior is LLVM_ABI_BREAKING_CHECKS ( LLVM_ABI_BREAKING_CHECKS:STRING Used to decide if LLVM should be built with ABI breaking checks or not. Allowed values are WITH_ASSERTS (default),
2020 May 15
2
Building A Project Against LLVM
...from the cmake output corresponding to those message lines: -- Found LLVM 10.0.0 -- Using LLVMConfig.cmake in: /usr/local/lib/cmake/llvm There are dozens of link errors.. the first few and last few are: CMakeFiles/CBreakCompiler.dir/src/main.cpp.o:(.data.rel+0x0): undefined reference to `llvm::DisableABIBreakingChecks' CMakeFiles/CBreakCompiler.dir/src/main.cpp.o: In function `std::default_delete<llvm::LLVMContext>::operator()(llvm::LLVMContext*) const': main.cpp:(.text._ZNKSt14default_deleteIN4llvm11LLVMContextEEclEPS1_[_ZNKSt14default_deleteIN4llvm11LLVMContextEEclEPS1_]+0x1e): undefined referen...
2020 May 16
2
Building A Project Against LLVM
...hose message lines: > > -- Found LLVM 10.0.0 > -- Using LLVMConfig.cmake in: /usr/local/lib/cmake/llvm > > > There are dozens of link errors.. the first few and last few are: > > CMakeFiles/CBreakCompiler.dir/src/main.cpp.o:(.data.rel+0x0): undefined > reference to `llvm::DisableABIBreakingChecks' > CMakeFiles/CBreakCompiler.dir/src/main.cpp.o: In function > `std::default_delete<llvm::LLVMContext>::operator()(llvm::LLVMContext*) > const': > main.cpp:(.text._ZNKSt14default_deleteIN4llvm11LLVMContextEEclEPS1_[_ZNKSt14default_deleteIN4llvm11LLVMContextEEclEPS1_]+0x1e...
2020 May 16
2
Building A Project Against LLVM
...gt;> -- Using LLVMConfig.cmake in: /usr/local/lib/cmake/llvm >>> >>> >>> There are dozens of link errors.. the first few and last few are: >>> >>> CMakeFiles/CBreakCompiler.dir/src/main.cpp.o:(.data.rel+0x0): undefined >>> reference to `llvm::DisableABIBreakingChecks' >>> CMakeFiles/CBreakCompiler.dir/src/main.cpp.o: In function >>> `std::default_delete<llvm::LLVMContext>::operator()(llvm::LLVMContext*) >>> const': >>> main.cpp:(.text._ZNKSt14default_deleteIN4llvm11LLVMContextEEclEPS1_[_ZNKSt14default_deleteIN4...