Hi,
I try to compile my fork :
https://github.com/Heitai-C11/MiniX-C11
I use : sh build.sh -U -mi386 -O ../build tools
to compile and have this errors :
=======================================================================
/home/heitai/Documents/MiniX-C11/tools/llvm-
lib/libLLVMCodeGen/../../llvm/../../external/bsd/llvm/lib/../dist/llvm/
include/llvm/IR/ValueMap.h: In member function 'bool
llvm::ValueMap<KeyT, ValueT, Config>::hasMD() const':
/home/heitai/Documents/MiniX-C11/tools/llvm-
lib/libLLVMCodeGen/../../llvm/../../external/bsd/llvm/lib/../dist/llvm/
include/llvm/IR/ValueMap.h:104:31: error: cannot convert 'const
std::unique_ptr<llvm::DenseMap<const llvm::Metadata*,
llvm::TrackingMDRef> >' to 'bool' in return
104 | bool hasMD() const { return MDMap; }
| ^~~~~
| |
| const
std::unique_ptr<llvm::DenseMap<const llvm::Metadata*,
llvm::TrackingMDRef> >
/home/heitai/Documents/MiniX-C11/tools/llvm-
lib/libLLVMCodeGen/../../llvm/../../external/bsd/llvm/lib/../dist/llvm/
lib/CodeGen/CodeGenPrepare.cpp: In constructor
'{anonymous}::CodeGenPrepare::CodeGenPrepare(const
llvm::TargetMachine*)':
/home/heitai/Documents/MiniX-C11/tools/llvm-
lib/libLLVMCodeGen/../../llvm/../../external/bsd/llvm/lib/../dist/llvm/
lib/CodeGen/CodeGenPrepare.cpp:150:62: error: call of overloaded
'ValueMap()' is ambiguous
150 | : FunctionPass(ID), TM(TM), TLI(nullptr), TTI(nullptr)
{
| ^
In file included from /home/heitai/Documents/MiniX-C11/tools/llvm-
lib/libLLVMCodeGen/../../llvm/../../external/bsd/llvm/lib/../dist/llvm/
lib/CodeGen/CodeGenPrepare.cpp:36:
/home/heitai/Documents/MiniX-C11/tools/llvm-
lib/libLLVMCodeGen/../../llvm/../../external/bsd/llvm/lib/../dist/llvm/
include/llvm/IR/ValueMap.h:102:3: note: candidate:
'llvm::ValueMap<KeyT, ValueT, Config>::ValueMap() [with KeyT =
llvm::Value*; ValueT = llvm::Value*; Config =
llvm::ValueMapConfig<llvm::Value*, llvm::sys::SmartMutex<false> >]'
102 | ValueMap() {}
| ^~~~~~~~
/home/heitai/Documents/MiniX-C11/tools/llvm-
lib/libLLVMCodeGen/../../llvm/../../external/bsd/llvm/lib/../dist/llvm/
include/llvm/IR/ValueMap.h:97:12: note: candidate:
'llvm::ValueMap<KeyT, ValueT, Config>::ValueMap(unsigned int) [with
KeyT = llvm::Value*; ValueT = llvm::Value*; Config =
llvm::ValueMapConfig<llvm::Value*, llvm::sys::SmartMutex<false> >]'
97 | explicit ValueMap(unsigned NumInitBuckets = 64)
| ^~~~~~~~
*** Failed target: CodeGenPrepare.lo
=======================================================================
102 /// what do ValueMap()
103 ValueMap() {}
104
105 bool hasMD() const { return MDMap; }
106 MDMapT &MD() {
107 if (!MDMap)
108 MDMap.reset(new MDMapT);
109 return *MDMap;
110 }
=======================================================================
Can you help me to arrive to test my forx and compile IT.
Best Regard,
Heitai.
--