hughperman / pure-lang

Automatically exported from code.google.com/p/pure-lang
0 stars 0 forks source link

Does not build with llvm-devel 2.9 #51

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. ./configure --mandir=/usr/local/man --without-readline 
--with-libgmp-prefix=/usr/local
2. gmake

What is the expected output? What do you see instead?
g++ -g -O2 -fPIC -I/usr/local/include -I/usr/local/include   -D_GNU_SOURCE 
-D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -I. -I. 
-DLIBDIR='"/usr/local/lib"' -DLIBPURE='"libpure.so.6"' -c -o interpreter.o 
interpreter.cc
interpreter.cc:35:40: error: llvm/System/DynamicLibrary.h: No such file or 
directory

What version of the product are you using? On what operating system?
pure-0.46
FreeBSD 8.2-STABLE

Please provide any additional information below.
In llvm >2.8, this header file has been moved to llvm/Support.
After fix this, pure is still not be able to build with llvm 2.9:

interpreter.cc: In member function 'bool interpreter::LoadFaustDSP(bool, const 
char*, std::string*, const char*)':
interpreter.cc:1601:54: error: no matching function for call to 
'llvm::MemoryBuffer::getFile(const char*&, std::string*&)'
/usr/local/include/llvm/Support/MemoryBuffer.h:65:21: note: candidates are: 
static llvm::error_code llvm::MemoryBuffer::getFile(llvm::StringRef, 
llvm::OwningPtr<llvm::MemoryBuffer>&, int64_t)
/usr/local/include/llvm/Support/MemoryBuffer.h:67:21: note:                 
static llvm::error_code llvm::MemoryBuffer::getFile(const char*, 
llvm::OwningPtr<llvm::MemoryBuffer>&, int64_t)
interpreter.cc: In member function 'bool interpreter::LoadBitcode(bool, const 
char*, std::string*)':
interpreter.cc:1878:54: error: no matching function for call to 
'llvm::MemoryBuffer::getFile(const char*&, std::string*&)'
/usr/local/include/llvm/Support/MemoryBuffer.h:65:21: note: candidates are: 
static llvm::error_code llvm::MemoryBuffer::getFile(llvm::StringRef, 
llvm::OwningPtr<llvm::MemoryBuffer>&, int64_t)
/usr/local/include/llvm/Support/MemoryBuffer.h:67:21: note:                 
static llvm::error_code llvm::MemoryBuffer::getFile(const char*, 
llvm::OwningPtr<llvm::MemoryBuffer>&, int64_t)

Original issue reported on code.google.com by lich...@gmail.com on 17 Mar 2011 at 9:36

GoogleCodeExporter commented 8 years ago
This should be fixed in the latest hg sources (forthcoming Pure 0.47). Can you 
please verify?

Original comment by aggraef@gmail.com on 29 Mar 2011 at 12:49