android_working_dir/external/llvm/lib/Support/Mutex.cpp:144: undefined reference to `pthread_mutex_trylock'
pthread_mutex_trylock' is undefined here, check the Mutex.cpp +144 . yuanwei-204 From: krishna android Date: 2012-11-24 08:33 To: android-platform; android-developers; android-porting Subject: [android-porting] Re: [android-ICS] test-librsloader_intermediates/test-librsloader] Error If some one had tried to answer this? I am through it. Thanks. On Wed, Nov 21, 2012 at 4:05 PM, krisand <[email protected]> wrote: have tried the existing solutions on google groups. None works. Any idea is appreciated. Compilation platform: Ubuntu 12.04 host C: test-librsloader <= frameworks/compile/linkloader/ android/test-librsloader.c host Executable: test-librsloader (out/host/linux-x86/obj/EXECUTABLES/test-librsloader_intermediates/test-librsloader) out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMSupport_intermediates/libLLVMSupport.a(Signals.o): In function `PrintStackTrace': /android_working_dir/external/llvm/lib/Support/Unix/Signals.inc:219: undefined reference to `dladdr' /android_working_dir/external/llvm/lib/Support/Unix/Signals.inc:231: undefined reference to `dladdr' out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMSupport_intermediates/libLLVMSupport.a(Threading.o): In function `llvm::llvm_execute_on_thread(void (*)(void*), void*, unsigned int)': android_working_dir/external/llvm/lib/Support/Threading.cpp:97: undefined reference to `pthread_create' android_working_dir/external/llvm/lib/Support/Threading.cpp:92: undefined reference to `pthread_attr_setstacksize' android_working_dir/external/llvm/lib/Support/Threading.cpp:101: undefined reference to `pthread_join' out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMSupport_intermediates/libLLVMSupport.a(Mutex.o): In function `MutexImpl': /android_working_dir/external/llvm/lib/Support/Mutex.cpp:70: undefined reference to `pthread_mutexattr_init' android_working_dir/external/llvm/lib/Support/Mutex.cpp:76: undefined reference to `pthread_mutexattr_settype' android_working_dir/external/llvm/lib/Support/Mutex.cpp:81: undefined reference to `pthread_mutexattr_setpshared' android_working_dir/external/llvm/lib/Support/Mutex.cpp:90: undefined reference to `pthread_mutexattr_destroy' out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMSupport_intermediates/libLLVMSupport.a(Mutex.o): In function `llvm::sys::MutexImpl::tryacquire()': android_working_dir/external/llvm/lib/Support/Mutex.cpp:144: undefined reference to `pthread_mutex_trylock' collect2: ld returned 1 exit status make: *** [out/host/linux-x86/obj/EXECUTABLES/test-librsloader_intermediates/test-librsloader] Error 1 -- You received this message because you are subscribed to the Google Groups "android-platform" group. To view this discussion on the web visit https://groups.google.com/d/msg/android-platform/-/w-wiywtUiLYJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/android-platform?hl=en. -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
