==> Making package: smlsharp 2.0.0-1 (Mon Oct 13 19:45:33 EEST 2014) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Found smlsharp-2.0.0.tar.gz ==> Validating source files with md5sums... smlsharp-2.0.0.tar.gz ... Passed ==> Extracting sources... -> Extracting smlsharp-2.0.0.tar.gz with bsdtar ==> Removing existing pkg/ directory... ==> Starting build()... configure: WARNING: LLVM later than 3.4 is found. Since SML# is written for LLVM 3.4, build will fail due to library incompatibility. src/llvm/main/llvm_support.o: In function `sml_llvm_add_func_attr': llvm_support.cpp:(.text.sml_llvm_add_func_attr+0xa0): undefined reference to `llvm::AttributeSet::get(llvm::LLVMContext&, unsigned int, llvm::AttrBuilder&)' src/llvm/main/llvm_support.o: In function `sml::sml_llvm_compile(llvm::Module*, std::string const&, llvm::StringRef, llvm::StringRef, unsigned int, unsigned int, llvm::Reloc::Model, llvm::CodeModel::Model, sml::OutputFileType, char const*, std::string&)': llvm_support.cpp:(.text._ZN3sml16sml_llvm_compileEPN4llvm6ModuleERKSsNS0_9StringRefES5_jjNS0_5Reloc5ModelENS0_9CodeModel5ModelENS_14OutputFileTypeEPKcRSs+0x60f): undefined reference to `llvm::createVerifierPass(llvm::VerifierFailureAction)' llvm_support.cpp:(.text._ZN3sml16sml_llvm_compileEPN4llvm6ModuleERKSsNS0_9StringRefES5_jjNS0_5Reloc5ModelENS0_9CodeModel5ModelENS_14OutputFileTypeEPKcRSs+0x771): undefined reference to `llvm::createPrintModulePass(llvm::raw_ostream*, bool, std::string const&)' llvm_support.cpp:(.text._ZN3sml16sml_llvm_compileEPN4llvm6ModuleERKSsNS0_9StringRefES5_jjNS0_5Reloc5ModelENS0_9CodeModel5ModelENS_14OutputFileTypeEPKcRSs+0x7fa): undefined reference to `llvm::DataLayout::ID' llvm_support.cpp:(.text._ZN3sml16sml_llvm_compileEPN4llvm6ModuleERKSsNS0_9StringRefES5_jjNS0_5Reloc5ModelENS0_9CodeModel5ModelENS_14OutputFileTypeEPKcRSs+0x811): undefined reference to `vtable for llvm::DataLayout' llvm_support.cpp:(.text._ZN3sml16sml_llvm_compileEPN4llvm6ModuleERKSsNS0_9StringRefES5_jjNS0_5Reloc5ModelENS0_9CodeModel5ModelENS_14OutputFileTypeEPKcRSs+0x887): undefined reference to `llvm::DataLayout::ID' llvm_support.cpp:(.text._ZN3sml16sml_llvm_compileEPN4llvm6ModuleERKSsNS0_9StringRefES5_jjNS0_5Reloc5ModelENS0_9CodeModel5ModelENS_14OutputFileTypeEPKcRSs+0x89a): undefined reference to `vtable for llvm::DataLayout' llvm_support.cpp:(.text._ZN3sml16sml_llvm_compileEPN4llvm6ModuleERKSsNS0_9StringRefES5_jjNS0_5Reloc5ModelENS0_9CodeModel5ModelENS_14OutputFileTypeEPKcRSs+0xada): undefined reference to `llvm::DataLayout::ID' llvm_support.cpp:(.text._ZN3sml16sml_llvm_compileEPN4llvm6ModuleERKSsNS0_9StringRefES5_jjNS0_5Reloc5ModelENS0_9CodeModel5ModelENS_14OutputFileTypeEPKcRSs+0xaed): undefined reference to `vtable for llvm::DataLayout' src/llvm/main/llvm_support.o: In function `sml_llvm_compile_c': llvm_support.cpp:(.text.sml_llvm_compile_c+0x71): undefined reference to `llvm::SubtargetFeatures::AddFeature(llvm::StringRef, bool)' src/llvm/main/compile.o: In function `main': compile.cpp:(.text.startup.main+0x2bb): undefined reference to `llvm::MemoryBuffer::getFileOrSTDIN(llvm::StringRef, llvm::OwningPtr&, long long)' compile.cpp:(.text.startup.main+0x2da): undefined reference to `llvm::error_code::message() const' src/llvm/main/SMLSharpGC.o: In function `(anonymous namespace)::SMLSharpGCPrinter::beginAssembly(llvm::AsmPrinter&)': SMLSharpGC.cpp:(.text._ZN12_GLOBAL__N_117SMLSharpGCPrinter13beginAssemblyERN4llvm10AsmPrinterE+0xb2): undefined reference to `llvm::Mangler::getNameWithPrefix(llvm::SmallVectorImpl&, llvm::Twine const&, llvm::Mangler::ManglerPrefixTy, bool)' src/llvm/main/SMLSharpGC.o: In function `(anonymous namespace)::SMLSharpGCPrinter::finishAssembly(llvm::AsmPrinter&)': SMLSharpGC.cpp:(.text._ZN12_GLOBAL__N_117SMLSharpGCPrinter14finishAssemblyERN4llvm10AsmPrinterE+0x164): undefined reference to `llvm::AsmPrinter::EmitAlignment(unsigned int, llvm::GlobalValue const*) const' SMLSharpGC.cpp:(.text._ZN12_GLOBAL__N_117SMLSharpGCPrinter14finishAssemblyERN4llvm10AsmPrinterE+0x1d0): undefined reference to `llvm::Mangler::getNameWithPrefix(llvm::SmallVectorImpl&, llvm::Twine const&, llvm::Mangler::ManglerPrefixTy, bool)' SMLSharpGC.cpp:(.text._ZN12_GLOBAL__N_117SMLSharpGCPrinter14finishAssemblyERN4llvm10AsmPrinterE+0x321): undefined reference to `llvm::AsmPrinter::EmitAlignment(unsigned int, llvm::GlobalValue const*) const' /usr/lib32/libLLVMSupport.a(Compression.o): In function `llvm::zlib::compress(llvm::StringRef, llvm::SmallVectorImpl&, llvm::zlib::CompressionLevel)': (.text._ZN4llvm4zlib8compressENS_9StringRefERNS_15SmallVectorImplIcEENS0_16CompressionLevelE+0x30): undefined reference to `compressBound' /usr/lib32/libLLVMSupport.a(Compression.o): In function `llvm::zlib::compress(llvm::StringRef, llvm::SmallVectorImpl&, llvm::zlib::CompressionLevel)': (.text._ZN4llvm4zlib8compressENS_9StringRefERNS_15SmallVectorImplIcEENS0_16CompressionLevelE+0xaa): undefined reference to `compress2' /usr/lib32/libLLVMSupport.a(Compression.o): In function `llvm::zlib::uncompress(llvm::StringRef, llvm::SmallVectorImpl&, unsigned int)': (.text._ZN4llvm4zlib10uncompressENS_9StringRefERNS_15SmallVectorImplIcEEj+0x72): undefined reference to `uncompress' /usr/lib32/libLLVMSupport.a(Compression.o): In function `llvm::zlib::crc32(llvm::StringRef)': (.text._ZN4llvm4zlib5crc32ENS_9StringRefE+0x1a): undefined reference to `crc32' /usr/lib32/libLLVMSupport.a(Mutex.o): In function `llvm::sys::MutexImpl::MutexImpl(bool)': (.text._ZN4llvm3sys9MutexImplC2Eb+0x40): undefined reference to `pthread_mutexattr_init' /usr/lib32/libLLVMSupport.a(Mutex.o): In function `llvm::sys::MutexImpl::MutexImpl(bool)': (.text._ZN4llvm3sys9MutexImplC2Eb+0x4e): undefined reference to `pthread_mutexattr_settype' /usr/lib32/libLLVMSupport.a(Mutex.o): In function `llvm::sys::MutexImpl::MutexImpl(bool)': (.text._ZN4llvm3sys9MutexImplC2Eb+0x5f): undefined reference to `pthread_mutexattr_destroy' /usr/lib32/libLLVMSupport.a(Mutex.o): In function `llvm::sys::MutexImpl::tryacquire()': (.text._ZN4llvm3sys9MutexImpl10tryacquireEv+0x16): undefined reference to `pthread_mutex_trylock' /usr/lib32/libLLVMSupport.a(RWMutex.o): In function `llvm::sys::RWMutexImpl::RWMutexImpl()': (.text._ZN4llvm3sys11RWMutexImplC2Ev+0x2a): undefined reference to `pthread_rwlock_init' /usr/lib32/libLLVMSupport.a(RWMutex.o): In function `llvm::sys::RWMutexImpl::~RWMutexImpl()': (.text._ZN4llvm3sys11RWMutexImplD2Ev+0x18): undefined reference to `pthread_rwlock_destroy' /usr/lib32/libLLVMSupport.a(RWMutex.o): In function `llvm::sys::RWMutexImpl::reader_acquire()': (.text._ZN4llvm3sys11RWMutexImpl14reader_acquireEv+0x16): undefined reference to `pthread_rwlock_rdlock' /usr/lib32/libLLVMSupport.a(RWMutex.o): In function `llvm::sys::RWMutexImpl::reader_release()': (.text._ZN4llvm3sys11RWMutexImpl14reader_releaseEv+0x16): undefined reference to `pthread_rwlock_unlock' /usr/lib32/libLLVMSupport.a(RWMutex.o): In function `llvm::sys::RWMutexImpl::writer_acquire()': (.text._ZN4llvm3sys11RWMutexImpl14writer_acquireEv+0x16): undefined reference to `pthread_rwlock_wrlock' /usr/lib32/libLLVMSupport.a(RWMutex.o): In function `llvm::sys::RWMutexImpl::writer_release()': (.text._ZN4llvm3sys11RWMutexImpl14writer_releaseEv+0x16): undefined reference to `pthread_rwlock_unlock' /usr/lib32/libLLVMSupport.a(Signals.o): In function `llvm::sys::PrintStackTrace(_IO_FILE*)': (.text._ZN4llvm3sys15PrintStackTraceEP8_IO_FILE+0x8b): undefined reference to `dladdr' /usr/lib32/libLLVMSupport.a(Signals.o): In function `llvm::sys::PrintStackTrace(_IO_FILE*)': (.text._ZN4llvm3sys15PrintStackTraceEP8_IO_FILE+0x1c2): undefined reference to `dladdr' /usr/lib32/libLLVMSupport.a(ThreadLocal.o): In function `llvm::sys::ThreadLocalImpl::~ThreadLocalImpl()': (.text._ZN4llvm3sys15ThreadLocalImplD2Ev+0x22): undefined reference to `pthread_key_delete' /usr/lib32/libLLVMSupport.a(ThreadLocal.o): In function `llvm::sys::ThreadLocalImpl::ThreadLocalImpl()': (.text._ZN4llvm3sys15ThreadLocalImplC2Ev+0x41): undefined reference to `pthread_key_create' /usr/lib32/libLLVMSupport.a(ThreadLocal.o): In function `llvm::sys::ThreadLocalImpl::setInstance(void const*)': (.text._ZN4llvm3sys15ThreadLocalImpl11setInstanceEPKv+0x1b): undefined reference to `pthread_setspecific' /usr/lib32/libLLVMSupport.a(ThreadLocal.o): In function `llvm::sys::ThreadLocalImpl::getInstance()': (.text._ZN4llvm3sys15ThreadLocalImpl11getInstanceEv+0x17): undefined reference to `pthread_getspecific' /usr/lib32/libLLVMSupport.a(Threading.o): In function `llvm::llvm_execute_on_thread(void (*)(void*), void*, unsigned int)': (.text._ZN4llvm22llvm_execute_on_threadEPFvPvES0_j+0x58): undefined reference to `pthread_create' /usr/lib32/libLLVMSupport.a(Threading.o): In function `llvm::llvm_execute_on_thread(void (*)(void*), void*, unsigned int)': (.text._ZN4llvm22llvm_execute_on_threadEPFvPvES0_j+0x6d): undefined reference to `pthread_join' /usr/lib32/libLLVMSupport.a(Threading.o): In function `llvm::llvm_execute_on_thread(void (*)(void*), void*, unsigned int)': (.text._ZN4llvm22llvm_execute_on_threadEPFvPvES0_j+0xa1): undefined reference to `pthread_attr_setstacksize' collect2: error: ld returned 1 exit status make: *** [src/llvm/main/compile] Error 1 ==> ERROR: A failure occurred in build(). Aborting...