Comments (7)
This looks like particular to FreeBSD (or more probably how llvm was configured on FreeBSD).
You can safely #if 0/#endif the llvm_jit functions at the end of llvm-cbinding.cpp
What is the output of llvm-config --components
?
from ghdl.
$ llvm-config15 --components
aarch64 aarch64asmparser aarch64codegen aarch64desc aarch64disassembler aarch64info aarch64utils aggressiveinstcombine all all-targets amdgpu amdgpuasmparser amdgpucodegen amdgpudesc amdgpudisassembler amdgpuinfo amdgputargetmca amdgpuutils analysis arm armasmparser armcodegen armdesc armdisassembler arminfo armutils asmparser asmprinter avr avrasmparser avrcodegen avrdesc avrdisassembler avrinfo binaryformat bitreader bitstreamreader bitwriter bpf bpfasmparser bpfcodegen bpfdesc bpfdisassembler bpfinfo cfguard codegen core coroutines coverage debuginfocodeview debuginfodwarf debuginfogsym debuginfomsf debuginfopdb demangle dlltooldriver dwarflinker dwp engine executionengine extensions filecheck frontendopenacc frontendopenmp fuzzercli fuzzmutate globalisel hexagon hexagonasmparser hexagoncodegen hexagondesc hexagondisassembler hexagoninfo instcombine instrumentation interfacestub interpreter ipo irreader jitlink lanai lanaiasmparser lanaicodegen lanaidesc lanaidisassembler lanaiinfo libdriver lineeditor linker lto mc mca mcdisassembler mcjit mcparser mips mipsasmparser mipscodegen mipsdesc mipsdisassembler mipsinfo mirparser msp430 msp430asmparser msp430codegen msp430desc msp430disassembler msp430info native nativecodegen nvptx nvptxcodegen nvptxdesc nvptxinfo objcarcopts objcopy object objectyaml option orcjit orcshared orctargetprocess passes powerpc powerpcasmparser powerpccodegen powerpcdesc powerpcdisassembler powerpcinfo profiledata remarks riscv riscvasmparser riscvcodegen riscvdesc riscvdisassembler riscvinfo runtimedyld scalaropts selectiondag sparc sparcasmparser sparccodegen sparcdesc sparcdisassembler sparcinfo support symbolize systemz systemzasmparser systemzcodegen systemzdesc systemzdisassembler systemzinfo tablegen target textapi transformutils ve veasmparser vecodegen vectorize vedesc vedisassembler veinfo webassembly webassemblyasmparser webassemblycodegen webassemblydesc webassemblydisassembler webassemblyinfo webassemblyutils windowsdriver windowsmanifest x86 x86asmparser x86codegen x86desc x86disassembler x86info x86targetmca xcore xcorecodegen xcoredesc xcoredisassembler xcoreinfo xray
from ghdl.
I tried to compile and link this code:
#include "llvm-c/Target.h"
#include "llvm/IR/Type.h"
#include "llvm/IR/Value.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/Config/llvm-config.h"
#include "llvm-c/TargetMachine.h"
#include "llvm-c/Core.h"
#include "llvm-c/BitWriter.h"
#include "llvm-c/Analysis.h"
#include <llvm/ExecutionEngine/ExecutionEngine.h>
#include <llvm/ExecutionEngine/MCJIT.h>
#include <llvm/IR/Mangler.h>
using namespace llvm;
static LLVMModuleRef TheModule;
static ExecutionEngine *EE;
int main() {
std::string error;
EE = llvm::EngineBuilder(std::unique_ptr<Module>(unwrap(TheModule)))
.setErrorStr(&error)
.setEngineKind(llvm::EngineKind::JIT)
.create();
}
but it links fine.
from ghdl.
Weird. Two questions:
how do you compile and link your small reproducer ?
Is it exactly the same symbol (not demangled, as reported by nm) ?
from ghdl.
Related Issues (20)
- [BUG] Cannot use external names with constants HOT 7
- ghdl raises ASSERTION_ERROR when 'high used on array as slice bound in complex actual expression
- GHDL Returns Integers/naturals as 32 bit binaryValue HOT 1
- [Bug] - pyGHDL: error when importing packages HOT 1
- 'last_value is raising CONSTRAIN_ERROR HOT 1
- VPI Unconstrained Array Bug
- [Bug] GHDL fails to analyze the `transactions.vhd` ModelSim library file HOT 2
- [Bug] GHDL fails to analyze the `recording.vhd` ModelSim library file HOT 1
- [Bug] GHDL fails to analyze the `mti_util.vhd` ModelSim library file HOT 7
- Build fails on the arm64 architecture: error: "s-expllli.ali" not found, "s-expllli.ads" must be compiled HOT 1
- ghdl with mcode backend crashes on if generate when .ghw output is enabled HOT 5
- 4.0.0: issue880 and ticket24 tests fail on ppc64el with the llvm backend HOT 2
- 4.0.0: issue880 and ticket24 tests fail on amd64 with the mcode backend HOT 6
- Wiki Contibuting Link Dead HOT 1
- Crash when running UVVM Axistream VVC HOT 5
- std.textio.read assertion failure for boolean values HOT 2
- Overflow in exponentiation HOT 5
- Non-synthesizable code leads to latches HOT 4
- Type of element is ambiguous in a nested array or record position asignment with concatenation HOT 18
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ghdl.