[q-lang-users] [Fwd: Pure Programming Langauge: Compile bugs on Mac OS X]
Brought to you by:
agraef
From: Albert G. <Dr....@t-...> - 2008-04-29 21:28:48
|
Hi John, thanks for reporting. I'm forwarding this to the list so that maybe Ryan Schmidt can have a look at it, he's already working on a MacOS port of Pure for http://www.macports.org/. Greetings, Albert -------- Original Message -------- Subject: Pure Programming Langauge: Compile bugs on Mac OS X Date: Tue, 29 Apr 2008 16:50:22 +0100 From: John Lunney <lu...@tc...> To: Dr....@t-... Dear Albert, I downloaded your new Pure programming language release this morning when I saw it linked on Reddit. I have to say it looks very interesting! I was particularly intrigued by the use of LLVM, having studied Compiler Design in this my final year of university (Computer Science, Linguistics and French). I downloaded the tar-ball from the SourceForge page, and downloaded and installed LLVM, all on my Mac OS X 10.4.11 system. Unfortunately, I get some errors when I run "make": g++ -g -Wall `llvm-config --cppflags` -c -o expr.o expr.cc g++ -g -Wall `llvm-config --cppflags` -c -o interpreter.o interpreter.cc interpreter.cc: In member function ‘expr* interpreter::mkwhen_expr (expr*, rulel*)’: interpreter.cc:1325: error: no match for ‘operator!=’ in ‘it != std::list<_Tp, _Alloc>::rend() [with _Tp = rule, _Alloc = std::allocator<rule>]()’ interpreter.cc: In member function ‘llvm::Function* interpreter::declare_extern(std::string, std::string, const std::list<std::string, std::allocator<std::string> >&, bool, void*, std::string)’: interpreter.cc:2243: warning: passing negative value ‘INT’ for argument 2 to ‘static llvm::ConstantInt* llvm::ConstantInt::get(const llvm::Type*, uint64_t, bool)’ ... repeated about 10 times ... interpreter.cc: In member function ‘llvm::Value* interpreter::fbox (Env&, bool)’: interpreter.cc:3269: warning: control reaches end of non-void function interpreter.cc: In member function ‘llvm::Value* interpreter::fref (int32_t, uint8_t, bool)’: interpreter.cc:3494: warning: control reaches end of non-void function make: *** [interpreter.o] Error 1 I decided to try out the version from the SVN repository. With it, I get the following errors: g++ -g -Wall `llvm-config --cppflags` -c -o expr.o expr.cc bison -v -o parser.cc parser.yy g++ -g -Wall `llvm-config --cppflags` -c -o interpreter.o interpreter.cc /usr/local/include/llvm/CallingConv.h:26: error: expected identifier before numeric constant /usr/local/include/llvm/CallingConv.h:26: error: expected unqualified- id before numeric constant interpreter.cc: In member function ‘void interpreter::compile(expr)’: interpreter.cc:609: error: expected unqualified-id before numeric constant ... many hundreds of lines of errors ... interpreter.cc:2959: warning: control reaches end of non-void function interpreter.cc: In member function ‘llvm::Value* interpreter::fbox (Env&, bool)’: interpreter.cc:3269: warning: control reaches end of non-void function interpreter.cc: In member function ‘llvm::Value* interpreter::fref (int32_t, uint8_t, bool)’: interpreter.cc:3494: warning: control reaches end of non-void function make: *** [interpreter.o] Error 1 I hope this feedback will be of some use to you. Yours sincerely, John Lunney -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |