[android-ICS] test-librsloader_intermediates/test-librsloader] Error

379 views
Skip to first unread message

krisand

unread,
Nov 21, 2012, 7:05:51 PM11/21/12
to android-...@googlegroups.com
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

krishna android

unread,
Nov 23, 2012, 7:33:13 PM11/23/12
to android-...@googlegroups.com, android-d...@googlegroups.com, android...@googlegroups.com
If some one had tried to answer this?
I am through it. Thanks.

--
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 android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.

yuanwei-204

unread,
Nov 23, 2012, 7:57:43 PM11/23/12
to krishna.android, android-platform, android-developers, android-porting
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

krishna android

unread,
Nov 23, 2012, 8:17:02 PM11/23/12
to android-...@googlegroups.com, android-d...@googlegroups.com, android...@googlegroups.com
By the way the solution is here:
http://blog.markloiseau.com/2012/07/how-to-compile-android-on-ubuntu-12-04/

I just had to unlink the gcc 4.6 and link to gcc 4.4
If you are running 12.04 Ubuntu.

Rest is history..
Reply all
Reply to author
Forward
0 new messages