Compiling Stacker compiler

Hi, I'm new to LLVM, and I'm trying to get things set up. So far I've
successfully gotten the C and C++ frontends to run, using the
pre-compiled Mac OS X PPC binaries. I've also successfully compiled
the main LLVM package (minus the gcc frontend).

I'm now trying to get the Stacker sample project to compile.

I checked out the Stacker directory from svn, and put it in my
llvm-src/projects directory. Unfortunately, when I run make, I get the
errors below. I wondered whether the stacker code might simply be out
of date, so I looked at the source code referenced by the error
messages - it looks to me like the code should compile cleanly, but it
doesn't. I read through the documentation that I could find, and I
don't see what I'm doing wrong.

Any tips or pointers would be much appreciated.

Lane

$ make
llvm[2]: Compiling StackerCompiler.cpp for Release build
StackerCompiler.cpp: In member function 'llvm::Module*
StackerCompiler::compile(const std::string&, bool, unsigned int,
size_t)':
StackerCompiler.cpp:159: error: no matching function for call to
'llvm::PointerType::get(const llvm::IntegerType*&)'
/opt/src-llvm/include/llvm/DerivedTypes.h:374: note: candidates are:
static llvm::PointerType* llvm::PointerType::get(const llvm::Type*,
unsigned int)
StackerCompiler.cpp: In member function 'llvm::Instruction*
StackerCompiler::get_stack_pointer(llvm::BasicBlock*, llvm::Value*)':
StackerCompiler.cpp:432: error: no matching function for call to
'llvm::GetElementPtrInst::GetElementPtrInst(llvm::GlobalVariable*&,
llvm::Value**, size_t)'
/opt/src-llvm/include/llvm/Instructions.h:480: note: candidates are:
llvm::GetElementPtrInst::GetElementPtrInst(llvm::Value*, llvm::Value*,
const std::string&, llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:478: note:
llvm::GetElementPtrInst::GetElementPtrInst(llvm::Value*, llvm::Value*,
const std::string&, llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:382: note:
llvm::GetElementPtrInst::GetElementPtrInst(const
llvm::GetElementPtrInst&)
StackerCompiler.cpp: In member function 'llvm::Instruction*
StackerCompiler::pop_string(llvm::BasicBlock*)':
StackerCompiler.cpp:528: error: no matching function for call to
'llvm::PointerType::get(const llvm::IntegerType*&)'
/opt/src-llvm/include/llvm/DerivedTypes.h:374: note: candidates are:
static llvm::PointerType* llvm::PointerType::get(const llvm::Type*,
unsigned int)
StackerCompiler.cpp: In member function 'llvm::Instruction*
StackerCompiler::stack_top_string(llvm::BasicBlock*, llvm::Value*)':
StackerCompiler.cpp:581: error: no matching function for call to
'llvm::PointerType::get(const llvm::IntegerType*&)'
/opt/src-llvm/include/llvm/DerivedTypes.h:374: note: candidates are:
static llvm::PointerType* llvm::PointerType::get(const llvm::Type*,
unsigned int)
StackerCompiler.cpp: In member function 'llvm::BasicBlock*
StackerCompiler::handle_if(char*, char*)':
StackerCompiler.cpp:750: error: no matching function for call to
'llvm::CallInst::CallInst(llvm::Function*&, llvm::Value**, size_t)'
/opt/src-llvm/include/llvm/Instructions.h:900: note: candidates are:
llvm::CallInst::CallInst(llvm::Value*, const std::string&,
llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:899: note:
llvm::CallInst::CallInst(llvm::Value*, const std::string&,
llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:897: note:
llvm::CallInst::CallInst(llvm::Value*, llvm::Value*, const
std::string&, llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:895: note:
llvm::CallInst::CallInst(llvm::Value*, llvm::Value*, const
std::string&, llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:842: note:
llvm::CallInst::CallInst(const llvm::CallInst&)
StackerCompiler.cpp:768: error: no matching function for call to
'llvm::CallInst::CallInst(llvm::Function*&, llvm::Value**, size_t)'
/opt/src-llvm/include/llvm/Instructions.h:900: note: candidates are:
llvm::CallInst::CallInst(llvm::Value*, const std::string&,
llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:899: note:
llvm::CallInst::CallInst(llvm::Value*, const std::string&,
llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:897: note:
llvm::CallInst::CallInst(llvm::Value*, llvm::Value*, const
std::string&, llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:895: note:
llvm::CallInst::CallInst(llvm::Value*, llvm::Value*, const
std::string&, llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:842: note:
llvm::CallInst::CallInst(const llvm::CallInst&)
StackerCompiler.cpp: In member function 'llvm::BasicBlock*
StackerCompiler::handle_while(char*)':
StackerCompiler.cpp:823: error: no matching function for call to
'llvm::CallInst::CallInst(llvm::Function*&, llvm::Value**, size_t)'
/opt/src-llvm/include/llvm/Instructions.h:900: note: candidates are:
llvm::CallInst::CallInst(llvm::Value*, const std::string&,
llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:899: note:
llvm::CallInst::CallInst(llvm::Value*, const std::string&,
llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:897: note:
llvm::CallInst::CallInst(llvm::Value*, llvm::Value*, const
std::string&, llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:895: note:
llvm::CallInst::CallInst(llvm::Value*, llvm::Value*, const
std::string&, llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:842: note:
llvm::CallInst::CallInst(const llvm::CallInst&)
StackerCompiler.cpp: In member function 'llvm::BasicBlock*
StackerCompiler::handle_word(int)':
StackerCompiler.cpp:904: error: no matching function for call to
'llvm::CallInst::CallInst(llvm::Constant*&, llvm::Value**, size_t)'
/opt/src-llvm/include/llvm/Instructions.h:900: note: candidates are:
llvm::CallInst::CallInst(llvm::Value*, const std::string&,
llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:899: note:
llvm::CallInst::CallInst(llvm::Value*, const std::string&,
llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:897: note:
llvm::CallInst::CallInst(llvm::Value*, llvm::Value*, const
std::string&, llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:895: note:
llvm::CallInst::CallInst(llvm::Value*, llvm::Value*, const
std::string&, llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:842: note:
llvm::CallInst::CallInst(const llvm::CallInst&)
StackerCompiler.cpp:1525: error: no matching function for call to
'llvm::GetElementPtrInst::GetElementPtrInst(llvm::CastInst*&,
llvm::Value**, size_t)'
/opt/src-llvm/include/llvm/Instructions.h:480: note: candidates are:
llvm::GetElementPtrInst::GetElementPtrInst(llvm::Value*, llvm::Value*,
const std::string&, llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:478: note:
llvm::GetElementPtrInst::GetElementPtrInst(llvm::Value*, llvm::Value*,
const std::string&, llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:382: note:
llvm::GetElementPtrInst::GetElementPtrInst(const
llvm::GetElementPtrInst&)
StackerCompiler.cpp:1558: error: no matching function for call to
'llvm::GetElementPtrInst::GetElementPtrInst(llvm::CastInst*&,
llvm::Value**, size_t)'
/opt/src-llvm/include/llvm/Instructions.h:480: note: candidates are:
llvm::GetElementPtrInst::GetElementPtrInst(llvm::Value*, llvm::Value*,
const std::string&, llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:478: note:
llvm::GetElementPtrInst::GetElementPtrInst(llvm::Value*, llvm::Value*,
const std::string&, llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:382: note:
llvm::GetElementPtrInst::GetElementPtrInst(const
llvm::GetElementPtrInst&)
StackerCompiler.cpp:1574: error: no matching function for call to
'llvm::CallInst::CallInst(llvm::Function*&, llvm::Value**, size_t)'
/opt/src-llvm/include/llvm/Instructions.h:900: note: candidates are:
llvm::CallInst::CallInst(llvm::Value*, const std::string&,
llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:899: note:
llvm::CallInst::CallInst(llvm::Value*, const std::string&,
llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:897: note:
llvm::CallInst::CallInst(llvm::Value*, llvm::Value*, const
std::string&, llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:895: note:
llvm::CallInst::CallInst(llvm::Value*, llvm::Value*, const
std::string&, llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:842: note:
llvm::CallInst::CallInst(const llvm::CallInst&)
StackerCompiler.cpp:1597: error: no matching function for call to
'llvm::CallInst::CallInst(llvm::Function*&, llvm::Value**, size_t)'
/opt/src-llvm/include/llvm/Instructions.h:900: note: candidates are:
llvm::CallInst::CallInst(llvm::Value*, const std::string&,
llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:899: note:
llvm::CallInst::CallInst(llvm::Value*, const std::string&,
llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:897: note:
llvm::CallInst::CallInst(llvm::Value*, llvm::Value*, const
std::string&, llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:895: note:
llvm::CallInst::CallInst(llvm::Value*, llvm::Value*, const
std::string&, llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:842: note:
llvm::CallInst::CallInst(const llvm::CallInst&)
StackerCompiler.cpp:1609: error: no matching function for call to
'llvm::GetElementPtrInst::GetElementPtrInst(llvm::GlobalVariable*&,
llvm::Value**, size_t)'
/opt/src-llvm/include/llvm/Instructions.h:480: note: candidates are:
llvm::GetElementPtrInst::GetElementPtrInst(llvm::Value*, llvm::Value*,
const std::string&, llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:478: note:
llvm::GetElementPtrInst::GetElementPtrInst(llvm::Value*, llvm::Value*,
const std::string&, llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:382: note:
llvm::GetElementPtrInst::GetElementPtrInst(const
llvm::GetElementPtrInst&)
StackerCompiler.cpp:1621: error: no matching function for call to
'llvm::CallInst::CallInst(llvm::Function*&, llvm::Value**, size_t)'
/opt/src-llvm/include/llvm/Instructions.h:900: note: candidates are:
llvm::CallInst::CallInst(llvm::Value*, const std::string&,
llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:899: note:
llvm::CallInst::CallInst(llvm::Value*, const std::string&,
llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:897: note:
llvm::CallInst::CallInst(llvm::Value*, llvm::Value*, const
std::string&, llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:895: note:
llvm::CallInst::CallInst(llvm::Value*, llvm::Value*, const
std::string&, llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:842: note:
llvm::CallInst::CallInst(const llvm::CallInst&)
StackerCompiler.cpp:1632: error: no matching function for call to
'llvm::GetElementPtrInst::GetElementPtrInst(llvm::GlobalVariable*&,
llvm::Value**, size_t)'
/opt/src-llvm/include/llvm/Instructions.h:480: note: candidates are:
llvm::GetElementPtrInst::GetElementPtrInst(llvm::Value*, llvm::Value*,
const std::string&, llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:478: note:
llvm::GetElementPtrInst::GetElementPtrInst(llvm::Value*, llvm::Value*,
const std::string&, llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:382: note:
llvm::GetElementPtrInst::GetElementPtrInst(const
llvm::GetElementPtrInst&)
StackerCompiler.cpp:1644: error: no matching function for call to
'llvm::CallInst::CallInst(llvm::Function*&, llvm::Value**, size_t)'
/opt/src-llvm/include/llvm/Instructions.h:900: note: candidates are:
llvm::CallInst::CallInst(llvm::Value*, const std::string&,
llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:899: note:
llvm::CallInst::CallInst(llvm::Value*, const std::string&,
llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:897: note:
llvm::CallInst::CallInst(llvm::Value*, llvm::Value*, const
std::string&, llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:895: note:
llvm::CallInst::CallInst(llvm::Value*, llvm::Value*, const
std::string&, llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:842: note:
llvm::CallInst::CallInst(const llvm::CallInst&)
StackerCompiler.cpp:1655: error: no matching function for call to
'llvm::GetElementPtrInst::GetElementPtrInst(llvm::GlobalVariable*&,
llvm::Value**, size_t)'
/opt/src-llvm/include/llvm/Instructions.h:480: note: candidates are:
llvm::GetElementPtrInst::GetElementPtrInst(llvm::Value*, llvm::Value*,
const std::string&, llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:478: note:
llvm::GetElementPtrInst::GetElementPtrInst(llvm::Value*, llvm::Value*,
const std::string&, llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:382: note:
llvm::GetElementPtrInst::GetElementPtrInst(const
llvm::GetElementPtrInst&)
StackerCompiler.cpp:1667: error: no matching function for call to
'llvm::CallInst::CallInst(llvm::Function*&, llvm::Value**, size_t)'
/opt/src-llvm/include/llvm/Instructions.h:900: note: candidates are:
llvm::CallInst::CallInst(llvm::Value*, const std::string&,
llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:899: note:
llvm::CallInst::CallInst(llvm::Value*, const std::string&,
llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:897: note:
llvm::CallInst::CallInst(llvm::Value*, llvm::Value*, const
std::string&, llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:895: note:
llvm::CallInst::CallInst(llvm::Value*, llvm::Value*, const
std::string&, llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:842: note:
llvm::CallInst::CallInst(const llvm::CallInst&)
StackerCompiler.cpp:1678: error: no matching function for call to
'llvm::PointerType::get(const llvm::IntegerType*&)'
/opt/src-llvm/include/llvm/DerivedTypes.h:374: note: candidates are:
static llvm::PointerType* llvm::PointerType::get(const llvm::Type*,
unsigned int)
StackerCompiler.cpp:1689: error: no matching function for call to
'llvm::CallInst::CallInst(llvm::Function*&, llvm::Value**, size_t)'
/opt/src-llvm/include/llvm/Instructions.h:900: note: candidates are:
llvm::CallInst::CallInst(llvm::Value*, const std::string&,
llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:899: note:
llvm::CallInst::CallInst(llvm::Value*, const std::string&,
llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:897: note:
llvm::CallInst::CallInst(llvm::Value*, llvm::Value*, const
std::string&, llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:895: note:
llvm::CallInst::CallInst(llvm::Value*, llvm::Value*, const
std::string&, llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:842: note:
llvm::CallInst::CallInst(const llvm::CallInst&)
StackerCompiler.cpp:1713: error: no matching function for call to
'llvm::CallInst::CallInst(llvm::Function*&, llvm::Value**, size_t)'
/opt/src-llvm/include/llvm/Instructions.h:900: note: candidates are:
llvm::CallInst::CallInst(llvm::Value*, const std::string&,
llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:899: note:
llvm::CallInst::CallInst(llvm::Value*, const std::string&,
llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:897: note:
llvm::CallInst::CallInst(llvm::Value*, llvm::Value*, const
std::string&, llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:895: note:
llvm::CallInst::CallInst(llvm::Value*, llvm::Value*, const
std::string&, llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:842: note:
llvm::CallInst::CallInst(const llvm::CallInst&)
StackerCompiler.cpp:1737: error: no matching function for call to
'llvm::CallInst::CallInst(llvm::Function*&, llvm::Value**, size_t)'
/opt/src-llvm/include/llvm/Instructions.h:900: note: candidates are:
llvm::CallInst::CallInst(llvm::Value*, const std::string&,
llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:899: note:
llvm::CallInst::CallInst(llvm::Value*, const std::string&,
llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:897: note:
llvm::CallInst::CallInst(llvm::Value*, llvm::Value*, const
std::string&, llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:895: note:
llvm::CallInst::CallInst(llvm::Value*, llvm::Value*, const
std::string&, llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:842: note:
llvm::CallInst::CallInst(const llvm::CallInst&)
StackerCompiler.cpp:1754: error: no matching function for call to
'llvm::GetElementPtrInst::GetElementPtrInst(llvm::GlobalVariable*&,
llvm::Value**, size_t)'
/opt/src-llvm/include/llvm/Instructions.h:480: note: candidates are:
llvm::GetElementPtrInst::GetElementPtrInst(llvm::Value*, llvm::Value*,
const std::string&, llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:478: note:
llvm::GetElementPtrInst::GetElementPtrInst(llvm::Value*, llvm::Value*,
const std::string&, llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:382: note:
llvm::GetElementPtrInst::GetElementPtrInst(const
llvm::GetElementPtrInst&)
StackerCompiler.cpp:1762: error: no matching function for call to
'llvm::CallInst::CallInst(llvm::Function*&, llvm::Value**, size_t)'
/opt/src-llvm/include/llvm/Instructions.h:900: note: candidates are:
llvm::CallInst::CallInst(llvm::Value*, const std::string&,
llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:899: note:
llvm::CallInst::CallInst(llvm::Value*, const std::string&,
llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:897: note:
llvm::CallInst::CallInst(llvm::Value*, llvm::Value*, const
std::string&, llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:895: note:
llvm::CallInst::CallInst(llvm::Value*, llvm::Value*, const
std::string&, llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:842: note:
llvm::CallInst::CallInst(const llvm::CallInst&)
StackerCompiler.cpp:1776: error: no matching function for call to
'llvm::GetElementPtrInst::GetElementPtrInst(llvm::GlobalVariable*&,
llvm::Value**, size_t)'
/opt/src-llvm/include/llvm/Instructions.h:480: note: candidates are:
llvm::GetElementPtrInst::GetElementPtrInst(llvm::Value*, llvm::Value*,
const std::string&, llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:478: note:
llvm::GetElementPtrInst::GetElementPtrInst(llvm::Value*, llvm::Value*,
const std::string&, llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:382: note:
llvm::GetElementPtrInst::GetElementPtrInst(const
llvm::GetElementPtrInst&)
StackerCompiler.cpp:1786: error: no matching function for call to
'llvm::CallInst::CallInst(llvm::Function*&, llvm::Value**, size_t)'
/opt/src-llvm/include/llvm/Instructions.h:900: note: candidates are:
llvm::CallInst::CallInst(llvm::Value*, const std::string&,
llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:899: note:
llvm::CallInst::CallInst(llvm::Value*, const std::string&,
llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:897: note:
llvm::CallInst::CallInst(llvm::Value*, llvm::Value*, const
std::string&, llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:895: note:
llvm::CallInst::CallInst(llvm::Value*, llvm::Value*, const
std::string&, llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:842: note:
llvm::CallInst::CallInst(const llvm::CallInst&)
StackerCompiler.cpp:1800: error: no matching function for call to
'llvm::GetElementPtrInst::GetElementPtrInst(llvm::GlobalVariable*&,
llvm::Value**, size_t)'
/opt/src-llvm/include/llvm/Instructions.h:480: note: candidates are:
llvm::GetElementPtrInst::GetElementPtrInst(llvm::Value*, llvm::Value*,
const std::string&, llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:478: note:
llvm::GetElementPtrInst::GetElementPtrInst(llvm::Value*, llvm::Value*,
const std::string&, llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:382: note:
llvm::GetElementPtrInst::GetElementPtrInst(const
llvm::GetElementPtrInst&)
StackerCompiler.cpp:1809: error: no matching function for call to
'llvm::CallInst::CallInst(llvm::Function*&, llvm::Value**, size_t)'
/opt/src-llvm/include/llvm/Instructions.h:900: note: candidates are:
llvm::CallInst::CallInst(llvm::Value*, const std::string&,
llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:899: note:
llvm::CallInst::CallInst(llvm::Value*, const std::string&,
llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:897: note:
llvm::CallInst::CallInst(llvm::Value*, llvm::Value*, const
std::string&, llvm::BasicBlock*)
/opt/src-llvm/include/llvm/Instructions.h:895: note:
llvm::CallInst::CallInst(llvm::Value*, llvm::Value*, const
std::string&, llvm::Instruction*)
/opt/src-llvm/include/llvm/Instructions.h:842: note:
llvm::CallInst::CallInst(const llvm::CallInst&)
make[2]: *** [/opt/src-llvm/projects/stacker/lib/compiler/Release/StackerCompiler.o]
Error 1
make[1]: *** [all] Error 1
make: *** [all] Error 1

It is. The fixes are likely mechanical, but just require someone stepping up and submitting a patch.

— Gordon

OK. Thanks for the info. Is there a working sample project that I could look at?

I'm interested in tinkering around with my own custom frontend for a
toy language, and I was hoping for something I could use as a template
in getting a project set up properly.

Or, alternatively, do the error messages I posted indicate any obvious
(easily fixable) problems that you could suggest I start with to get
Stacker compiling?

Thanks,
Lane

Did you try the kaleidoscope tutorial? LLVM Tutorial: Table of Contents — LLVM 16.0.0git documentation

When I first started looking at LLVM, I did, yes. But to be honest
after I got into things, and started looking at Stacker, I'd forgotten
about it. I'll take a look at that, and hopefully that will help.

Thanks!
Lane