Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: llvm
Choose a base branch
from
Open

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

wants to merge 1 commit into from

Conversation

soc
Copy link

@soc soc commented Apr 1, 2012

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant