scala icon indicating copy to clipboard operation
scala copied to clipboard

WIP: More information in the README and mahing it run with LLVM 3.0.

Open soc opened this issue 12 years ago • 0 comments

Still getting this error, though:

% make run-sample
make -C ../../../src/llvm/runtime llvmrt.a runscala
make[1]: Entering directory `/home/soc/Entwicklung/scala-llvm/src/llvm/runtime'
make[1]: `llvmrt.a' is up to date.
g++ -g `icu-config --ldflags-searchpath --ldflags-icuio` `llvm-config --ldflags core jit bitreader native interpreter archive bitwriter` `apr-1-config --link-ld --libs` -o runscala runscala.o wrapper.o unwind.o `icu-config --ldflags-libsonly --ldflags-icuio` `llvm-config --libs core jit bitreader native interpreter archive bitwriter` -lm
/usr/lib/llvm-3.0/lib/libLLVMInterpreter.a(ExternalFunctions.o): In function `ffiTypeFor(llvm::Type*)':
(.text+0x45): undefined reference to `ffi_type_float'
/usr/lib/llvm-3.0/lib/libLLVMInterpreter.a(ExternalFunctions.o): In function `ffiTypeFor(llvm::Type*)':
(.text+0x53): undefined reference to `ffi_type_void'
/usr/lib/llvm-3.0/lib/libLLVMInterpreter.a(ExternalFunctions.o): In function `ffiTypeFor(llvm::Type*)':
(.text+0x63): undefined reference to `ffi_type_double'
/usr/lib/llvm-3.0/lib/libLLVMInterpreter.a(ExternalFunctions.o): In function `ffiTypeFor(llvm::Type*)':
(.text+0x73): undefined reference to `ffi_type_pointer'
/usr/lib/llvm-3.0/lib/libLLVMInterpreter.a(ExternalFunctions.o): In function `ffiTypeFor(llvm::Type*)':
(.text+0x8d): undefined reference to `ffi_type_sint64'
/usr/lib/llvm-3.0/lib/libLLVMInterpreter.a(ExternalFunctions.o): In function `ffiTypeFor(llvm::Type*)':
(.text+0x9b): undefined reference to `ffi_type_sint32'
/usr/lib/llvm-3.0/lib/libLLVMInterpreter.a(ExternalFunctions.o): In function `ffiTypeFor(llvm::Type*)':
(.text+0xab): undefined reference to `ffi_type_sint8'
/usr/lib/llvm-3.0/lib/libLLVMInterpreter.a(ExternalFunctions.o): In function `ffiTypeFor(llvm::Type*)':
(.text+0xbb): undefined reference to `ffi_type_sint16'
/usr/lib/llvm-3.0/lib/libLLVMInterpreter.a(ExternalFunctions.o): In function `llvm::Interpreter::callExternalFunction(llvm::Function*, std::vector<llvm::GenericValue, std::allocator<llvm::GenericValue> > const&)':
(.text+0x21b3): undefined reference to `ffi_prep_cif'
/usr/lib/llvm-3.0/lib/libLLVMInterpreter.a(ExternalFunctions.o): In function `llvm::Interpreter::callExternalFunction(llvm::Function*, std::vector<llvm::GenericValue, std::allocator<llvm::GenericValue> > const&)':
(.text+0x2208): undefined reference to `ffi_call'
/usr/lib/llvm-3.0/lib/libLLVMSupport.a(DynamicLibrary.o): In function `llvm::sys::DynamicLibrary::getPermanentLibrary(char const*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >*)':
(.text+0x336): undefined reference to `dlopen'
/usr/lib/llvm-3.0/lib/libLLVMSupport.a(DynamicLibrary.o): In function `llvm::sys::DynamicLibrary::getPermanentLibrary(char const*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >*)':
(.text+0x3ff): undefined reference to `dlclose'
/usr/lib/llvm-3.0/lib/libLLVMSupport.a(DynamicLibrary.o): In function `llvm::sys::DynamicLibrary::getPermanentLibrary(char const*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >*)':
(.text+0x8c6): undefined reference to `dlerror'
/usr/lib/llvm-3.0/lib/libLLVMSupport.a(DynamicLibrary.o): In function `llvm::sys::DynamicLibrary::SearchForAddressOfSymbol(char const*)':
(.text+0xabd): undefined reference to `dlsym'
/usr/lib/llvm-3.0/lib/libLLVMSupport.a(DynamicLibrary.o): In function `llvm::sys::DynamicLibrary::getAddressOfSymbol(char const*)':
(.text+0x97d): undefined reference to `dlsym'
/usr/lib/llvm-3.0/lib/libLLVMSupport.a(Signals.o): In function `PrintStackTrace(void*)':
(.text+0x6c): undefined reference to `dladdr'
/usr/lib/llvm-3.0/lib/libLLVMSupport.a(Signals.o): In function `PrintStackTrace(void*)':
(.text+0x187): undefined reference to `dladdr'
/usr/lib/llvm-3.0/lib/libLLVMSupport.a(Mutex.o): In function `llvm::sys::MutexImpl::MutexImpl(bool)':
(.text+0x41): undefined reference to `pthread_mutexattr_init'
/usr/lib/llvm-3.0/lib/libLLVMSupport.a(Mutex.o): In function `llvm::sys::MutexImpl::MutexImpl(bool)':
(.text+0x4d): undefined reference to `pthread_mutexattr_settype'
/usr/lib/llvm-3.0/lib/libLLVMSupport.a(Mutex.o): In function `llvm::sys::MutexImpl::MutexImpl(bool)':
(.text+0x57): undefined reference to `pthread_mutexattr_setpshared'
/usr/lib/llvm-3.0/lib/libLLVMSupport.a(Mutex.o): In function `llvm::sys::MutexImpl::MutexImpl(bool)':
(.text+0x6a): undefined reference to `pthread_mutexattr_destroy'
/usr/lib/llvm-3.0/lib/libLLVMSupport.a(Mutex.o): In function `llvm::sys::MutexImpl::tryacquire()':
(.text+0x108): undefined reference to `pthread_mutex_trylock'
/usr/lib/llvm-3.0/lib/libLLVMSupport.a(RWMutex.o): In function `llvm::sys::RWMutexImpl::RWMutexImpl()':
(.text+0x2b): undefined reference to `pthread_rwlock_init'
/usr/lib/llvm-3.0/lib/libLLVMSupport.a(RWMutex.o): In function `llvm::sys::RWMutexImpl::~RWMutexImpl()':
(.text+0x58): undefined reference to `pthread_rwlock_destroy'
/usr/lib/llvm-3.0/lib/libLLVMSupport.a(RWMutex.o): In function `llvm::sys::RWMutexImpl::reader_acquire()':
(.text+0x78): undefined reference to `pthread_rwlock_rdlock'
/usr/lib/llvm-3.0/lib/libLLVMSupport.a(RWMutex.o): In function `llvm::sys::RWMutexImpl::reader_release()':
(.text+0x98): undefined reference to `pthread_rwlock_unlock'
/usr/lib/llvm-3.0/lib/libLLVMSupport.a(RWMutex.o): In function `llvm::sys::RWMutexImpl::writer_acquire()':
(.text+0xb8): undefined reference to `pthread_rwlock_wrlock'
/usr/lib/llvm-3.0/lib/libLLVMSupport.a(RWMutex.o): In function `llvm::sys::RWMutexImpl::writer_release()':
(.text+0xd8): undefined reference to `pthread_rwlock_unlock'
/usr/lib/llvm-3.0/lib/libLLVMSupport.a(ThreadLocal.o): In function `llvm::sys::ThreadLocalImpl::~ThreadLocalImpl()':
(.text+0x16): undefined reference to `pthread_key_delete'
/usr/lib/llvm-3.0/lib/libLLVMSupport.a(ThreadLocal.o): In function `llvm::sys::ThreadLocalImpl::ThreadLocalImpl()':
(.text+0x8a): undefined reference to `pthread_key_create'
/usr/lib/llvm-3.0/lib/libLLVMSupport.a(ThreadLocal.o): In function `llvm::sys::ThreadLocalImpl::setInstance(void const*)':
(.text+0xb7): undefined reference to `pthread_setspecific'
/usr/lib/llvm-3.0/lib/libLLVMSupport.a(ThreadLocal.o): In function `llvm::sys::ThreadLocalImpl::getInstance()':
(.text+0xc7): undefined reference to `pthread_getspecific'
/usr/lib/llvm-3.0/lib/libLLVMSupport.a(Threading.o): In function `llvm::llvm_execute_on_thread(void (*)(void*), void*, unsigned int)':
(.text+0x137): undefined reference to `pthread_create'
/usr/lib/llvm-3.0/lib/libLLVMSupport.a(Threading.o): In function `llvm::llvm_execute_on_thread(void (*)(void*), void*, unsigned int)':
(.text+0x168): undefined reference to `pthread_attr_setstacksize'
/usr/lib/llvm-3.0/lib/libLLVMSupport.a(Threading.o): In function `llvm::llvm_execute_on_thread(void (*)(void*), void*, unsigned int)':
(.text+0x180): undefined reference to `pthread_join'
collect2: ld returned 1 exit status
make[1]: *** [runscala] Error 1
make[1]: Leaving directory `/home/soc/Entwicklung/scala-llvm/src/llvm/runtime'
make: *** [run-sample] Error 2

soc avatar Apr 01 '12 19:04 soc