Activity log for bug #1018832

Date Who What changed Old value New value Message
2012-06-28 12:42:57 Zygmunt Krynicki bug added bug
2012-06-28 12:50:40 Zygmunt Krynicki description This bug hampers my local development / research as I simply cannot successfully build the 'tests' variant locally. The build failure seems to be: * libLLVMSupport.a requires -lpthreads -ldl * something links to that library * it fails to specify those depencencies I'm trying to understand the build system enough to know if the linkage dependencies are defined in one place (for each .a) or is this a separate per-executable responsibility. The actual build can be reproduced by https://github.com/zyga/android-build-scripts The actual error message is: (to be updated as current build fails again, make is not stable for some reason) This bug hampers my local development / research as I simply cannot successfully build the 'tests' variant locally. The build failure seems to be:  * libLLVMSupport.a requires -lpthreads -ldl  * something links to that library  * it fails to specify those depencencies I'm trying to understand the build system enough to know if the linkage dependencies are defined in one place (for each .a) or is this a separate per-executable responsibility. The actual build can be reproduced by https://github.com/zyga/android-build-scripts The actual error message is: 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': /home/zyga/Android/panda-ics-gcc47-tilt-tracking-tests-blob/android/external/llvm/lib/Support/Unix/Signals.inc:219: undefined reference to `dladdr' /home/zyga/Android/panda-ics-gcc47-tilt-tracking-tests-blob/android/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)': /home/zyga/Android/panda-ics-gcc47-tilt-tracking-tests-blob/android/external/llvm/lib/Support/Threading.cpp:96: undefined reference to `pthread_create' /home/zyga/Android/panda-ics-gcc47-tilt-tracking-tests-blob/android/external/llvm/lib/Support/Threading.cpp:91: undefined reference to `pthread_attr_setstacksize' /home/zyga/Android/panda-ics-gcc47-tilt-tracking-tests-blob/android/external/llvm/lib/Support/Threading.cpp:100: undefined reference to `pthread_join' out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMSupport_intermediates/libLLVMSupport.a(Mutex.o): In function `MutexImpl': /home/zyga/Android/panda-ics-gcc47-tilt-tracking-tests-blob/android/external/llvm/lib/Support/Mutex.cpp:69: undefined reference to `pthread_mutexattr_init' /home/zyga/Android/panda-ics-gcc47-tilt-tracking-tests-blob/android/external/llvm/lib/Support/Mutex.cpp:75: undefined reference to `pthread_mutexattr_settype' /home/zyga/Android/panda-ics-gcc47-tilt-tracking-tests-blob/android/external/llvm/lib/Support/Mutex.cpp:80: undefined reference to `pthread_mutexattr_setpshared' /home/zyga/Android/panda-ics-gcc47-tilt-tracking-tests-blob/android/external/llvm/lib/Support/Mutex.cpp:89: 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()': /home/zyga/Android/panda-ics-gcc47-tilt-tracking-tests-blob/android/external/llvm/lib/Support/Mutex.cpp:143: 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
2012-06-28 15:35:52 Zygmunt Krynicki attachment added Use LOLCAL_LDLIBS instead of LOCAL_LDFLAGS to link to libraries https://bugs.launchpad.net/linaro-android/+bug/1018832/+attachment/3206817/+files/fix-lp-1018832-use-LOCAL_LDLIBS-instead-of-LOCAL_LDFLAGS-to-link-executable-with-libraries.diff
2012-06-28 15:36:41 Zygmunt Krynicki summary ~zkrynicki/panda-ics-gcc47-tilt-tracking-tests-blob fails to build on ubuntu 12.04 test-librsloader target fails to build on ubuntu 12.04
2012-06-28 15:37:33 Zygmunt Krynicki linaro-android: status New In Progress
2012-06-28 15:37:33 Zygmunt Krynicki linaro-android: milestone 12.07
2012-06-28 15:37:33 Zygmunt Krynicki linaro-android: assignee Zygmunt Krynicki (zkrynicki)
2012-07-03 10:32:25 Zygmunt Krynicki linaro-android: status In Progress Fix Released
2012-07-16 14:37:40 Zach Pfeffer linaro-android: importance Undecided Medium