ubuntu11.10,32位操作系统,编译源码的时候出现一下错误,求帮助。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':
/data/Android4.0SourceCode2/Android4.0SourceCode/external/llvm/lib/Support/Unix/Signals.inc:219: undefined reference to `dladdr'
/data/Android4.0SourceCode2/Android4.0SourceCode/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)':
/data/Android4.0SourceCode2/Android4.0SourceCode/external/llvm/lib/Support/Threading.cpp:96: undefined reference to `pthread_create'
/data/Android4.0SourceCode2/Android4.0SourceCode/external/llvm/lib/Support/Threading.cpp:91: undefined reference to `pthread_attr_setstacksize'
/data/Android4.0SourceCode2/Android4.0SourceCode/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':
/data/Android4.0SourceCode2/Android4.0SourceCode/external/llvm/lib/Support/Mutex.cpp:69: undefined reference to `pthread_mutexattr_init'
/data/Android4.0SourceCode2/Android4.0SourceCode/external/llvm/lib/Support/Mutex.cpp:75: undefined reference to `pthread_mutexattr_settype'
/data/Android4.0SourceCode2/Android4.0SourceCode/external/llvm/lib/Support/Mutex.cpp:80: undefined reference to `pthread_mutexattr_setpshared'
/data/Android4.0SourceCode2/Android4.0SourceCode/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()':
/data/Android4.0SourceCode2/Android4.0SourceCode/external/llvm/lib/Support/Mutex.cpp:143: undefined reference to `pthread_mutex_trylock'
collect2: ld 返回 1
make: *** [out/host/linux-x86/obj/EXECUTABLES/test-librsloader_intermediates/test-librsloader] 错误 1
out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMSupport_intermediates/libLLVMSupport.a(Signals.o): In function `PrintStackTrace':
/data/Android4.0SourceCode2/Android4.0SourceCode/external/llvm/lib/Support/Unix/Signals.inc:219: undefined reference to `dladdr'
/data/Android4.0SourceCode2/Android4.0SourceCode/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)':
/data/Android4.0SourceCode2/Android4.0SourceCode/external/llvm/lib/Support/Threading.cpp:96: undefined reference to `pthread_create'
/data/Android4.0SourceCode2/Android4.0SourceCode/external/llvm/lib/Support/Threading.cpp:91: undefined reference to `pthread_attr_setstacksize'
/data/Android4.0SourceCode2/Android4.0SourceCode/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':
/data/Android4.0SourceCode2/Android4.0SourceCode/external/llvm/lib/Support/Mutex.cpp:69: undefined reference to `pthread_mutexattr_init'
/data/Android4.0SourceCode2/Android4.0SourceCode/external/llvm/lib/Support/Mutex.cpp:75: undefined reference to `pthread_mutexattr_settype'
/data/Android4.0SourceCode2/Android4.0SourceCode/external/llvm/lib/Support/Mutex.cpp:80: undefined reference to `pthread_mutexattr_setpshared'
/data/Android4.0SourceCode2/Android4.0SourceCode/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()':
/data/Android4.0SourceCode2/Android4.0SourceCode/external/llvm/lib/Support/Mutex.cpp:143: undefined reference to `pthread_mutex_trylock'
collect2: ld 返回 1
make: *** [out/host/linux-x86/obj/EXECUTABLES/test-librsloader_intermediates/test-librsloader] 错误 1
解决方案 »
- Android ListView失去焦点后之前选中的项无法突出显示
- 为什么我在service中无法启动新的service?
- 网易android客户端开发授权正确API调用出错
- SQLite 删除记录后, 自增ID置0的问题
- handleMessage里面更新ListView内容
- 关于listview的问题
- 找一个Android数据显示控件
- Android 应用程序退出后接受广播通知
- android4.2 在调用系统的拍照返回后操作其它activity,application重启,请教这个问题怎么解决。
- 求助帖
- android Socket 关于read的问题
- 请问:怎么监控手机上的每个程序产生了多少流量?
使用命令:gedit external/llvm/lib/Support/Android.mk在文件中的两部分都加入LOCAL_C_INCLUDES+=system/core/include/cutils和LOCAL_SHARED_LIBRARIES := libcutil使用命令:gedit external/llvm/lib/Support/Mutex.cpp在Mutex.cpp中加入头文件 “#include <threads.h>”使用命令:gedit external/llvm/lib/Support/Threading.cpp在Threading.cpp中加入头文件 “#include <threads.h>”
TARGET_CPU_ABI属性设置了吧?
试一下以下组件
1. sudo apt-get install bison2. sudo apt-get install build-essential3. sudo apt-get install zlib1g-dev4. sudo apt-get install flex5. sudo apt-get install libncurses-dev6. sudo apt-get install libx11-dev7. sudo apt-get install gperf
另外你不能拉最新版本,需要checkout一个version
以下供参考:
sudo apt-get install gcc-4.4 g++-4.4 g++-4.4-multilibcd /usr/bin
sudo ln -sf cpp-4.4 cpp
sudo ln -sf gcc-4.4 gcc
sudo ln -sf g++-4.4 g++
麻烦各位大侠帮解决一下
host Executable: minigzip (out/host/linux-x86/obj/EXECUTABLES/minigzip_intermediates/minigzip)
host Executable: mkbootfs (out/host/linux-x86/obj/EXECUTABLES/mkbootfs_intermediates/mkbootfs)
true
host StaticLib: libmincrypt (out/host/linux-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/libmincrypt.a)
true
true
host Executable: mksdcard (out/host/linux-x86/obj/EXECUTABLES/mksdcard_intermediates/mksdcard)
host Executable: mkyaffs2image (out/host/linux-x86/obj/EXECUTABLES/mkyaffs2image_intermediates/mkyaffs2image)
host C++: obbtool <= frameworks/base/tools/obbtool/Main.cpp
true
true
host C++: post_trace <= sdk/emulator/qtools/post_trace.cpp
host C++: post_trace <= sdk/emulator/qtools/trace_reader.cpp
true
host C++: post_trace <= sdk/emulator/qtools/decoder.cpp
<命令行>:0:16: 错误: #undef 指示的末尾有多余的标识符 [-Werror]
<命令行>:0:16: 警告: #undef 指示的末尾有多余的标识符 [默认启用]
<命令行>:0:16: 警告: #undef 指示的末尾有多余的标识符 [默认启用]
cc1plus:所有的警告都被当作是错误make: *** [out/host/linux-x86/obj/EXECUTABLES/obbtool_intermediates/Main.o] 错误 1
make: *** 正在等待未完成的任务....
<命令行>:0:16: 警告: #undef 指示的末尾有多余的标识符 [默认启用]
Install: out/target/product/generic/system/lib/libm.so
target SharedLib: liblog (out/target/product/generic/obj/SHARED_LIBRARIES/liblog_intermediates/LINKED/liblog.so)
target SharedLib: libicuuc (out/target/product/generic/obj/SHARED_LIBRARIES/libicuuc_intermediates/LINKED/libicuuc.so)
Install: out/target/product/generic/system/lib/libgabi++.so
Install: out/host/linux-x86/bin/adb
target SharedLib: libext4_utils (out/target/product/generic/obj/SHARED_LIBRARIES/libext4_utils_intermediates/LINKED/libext4_utils.so)
Install: out/host/linux-x86/bin/simg2img
acp: file 'out/host/linux-x86/obj/EXECUTABLES/vm-tests_intermediates/tests/data' does not exist
make: *** [out/host/linux-x86/bin/../cts_dalviktests/timestamp] Error 1
make: *** Waiting for unfinished jobs....
Note: Some input files use unchecked or unsafe operations.
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/generic/obj/STATIC_LIBRARIES/libwebcore_intermediates/libwebcore.a(V8Int16ArrayCustom.o): in function WebCore::toV8(WebCore::Int16Array*):external/webkit/Source/WebCore/bindings/v8/custom/V8Int16ArrayCustom.cpp:62: error: undefined reference to 'v8::Object::SetIndexedPropertiesToExternalArrayData(void*, v8::ExternalArrayType, int)'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/generic/obj/STATIC_LIBRARIES/libwebcore_intermediates/libwebcore.a(V8SQLTransactionCustom.o): in function WebCore::V8SQLTransaction::executeSqlCallback(v8::Arguments const&):external/webkit/Source/WebCore/bindings/v8/custom/V8SQLTransactionCustom.cpp:71: error: undefined reference to 'v8::Object::GetPropertyNames()'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/generic/obj/STATIC_LIBRARIES/libwebcore_intermediates/libwebcore.a(V8SQLTransactionSyncCustom.o): in function WebCore::V8SQLTransactionSync::executeSqlCallback(v8::Arguments const&):external/webkit/Source/WebCore/bindings/v8/custom/V8SQLTransactionSyncCustom.cpp:71: error: undefined reference to 'v8::Object::GetPropertyNames()'
collect2: ld returned 1 exit status
make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libwebcore_intermediates/LINKED/libwebcore.so] Error 1
make: *** Waiting for unfinished jobs....
sudo apt-get install gcc-4.5 g++-4.5 gcc-4.5-multilib g++-4.5-multilib cd /usr/bin
sudo ln -sf cpp-4.5 cpp
sudo ln -sf gcc-4.5 gcc
sudo ln -sf g++-4.5 g++