Compilation problem with oprofile regarding libbfd
来源:互联网 发布:释放被占用的端口 编辑:程序博客网 时间:2024/06/16 07:47
http://forum.xda-developers.com/showthread.php?p=37554743
Yes, if you're using linaro's toolchain you need to set HAVE_LIBBFD := false in external/oprofile/common.mk
Depending on how you named the folder containing the toolchain you have to put an if statement that sets HAVE_LIBBFD := false
in external/oprofile/common.mk:
ifeq ($(findstring linaro,$(TARGET_TOOLS_PREFIX)),)
ifeq ($(HOST_OS)-$(HOST_ARCH),linux-x86)
HAVE_LIBBFD := true
endif
endif
endif
https://groups.google.com/forum/#!topic/android-building/aqQGU3I-eVo
http://blog.sina.com.cn/s/blog_4cd5d2bb0101gxz7.html
http://www.cnblogs.com/sinojelly/
http://www.cnblogs.com/sinojelly/archive/2013/04/03/2998790.html
Compilation problem with oprofile regarding libbfd on latest android-4.2.2_r1 branch - sinojelly - 博客园.htm
\\192.168.2.8\1\touch\cm\android\system\prebuilts\gcc\linux-x86\arm\arm-linux-androideabi-4.6\lib\libbfd.a
$ ls -1 <toolchainpath>/arm-linux-androideabi-4.6/lib32
libbfd.a
libbfd.la
libiberty.a
libintl.a
The Android platform build system will pick up the prebuilt libbfd (and other libraries) via the following makefiles:
<paths-to-the-root-of-the-toolchain>/lib32/Android.mk
<paths-to-the-root-of-the-toolchain>/toolchain.mk
Then that file will be conditionally included in build/libs/host/Android.mk.
\\192.168.2.8\1\touch\cm\android\system\build\libs\host\Android.mk:
# Include toolchain prebuilt modules if they exist.
-include $(TARGET_TOOLCHAIN_ROOT)/toolchain.mk
cp \\192.168.2.8\1\touch\cm\android\system\prebuilts\gcc\linux-x86\arm\arm-linux-androideabi-4.6.bak\toolchain.mk \\192.168.2.8\1\touch\cm\android\system\prebuilts\gcc\linux-x86\arm\arm-linux-androideabi-4.6\
cp \\192.168.2.8\1\touch\cm\android\system\prebuilts\gcc\linux-x86\arm\arm-linux-androideabi-4.6.bak\lib32\Android.mk \\192.168.2.8\1\touch\cm\android\system\prebuilts\gcc\linux-x86\arm\arm-linux-androideabi-4.6\lib\
build/core/base_rules.mk:130: *** prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/lib: MODULE.HOST.STATIC_LIBRARIES.libbfd already defined by prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/lib. Stop.
mv \\192.168.2.8\1\touch\cm\android\system\prebuilts\gcc\linux-x86\arm\arm-linux-androideabi-4.6\toolchain.mk \\192.168.2.8\1\touch\cm\android\system\prebuilts\gcc\linux-x86\arm\arm-linux-androideabi-4.6\toolchain.mk.bak
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-gcc: cannot execute binary file
mv \\192.168.1.101\1\touch\cm\android\system\prebuilts\gcc\linux-x86\arm\arm-linux-androideabi-4.6\ \\192.168.1.101\1\touch\cm\android\system\prebuilts\gcc\linux-x86\arm\arm-linux-androideabi-4.6.bak\
cp \\192.168.1.101\1\touch\export\phablet-ubuntu-20130618\prebuilts\gcc\linux-x86\arm\linaro-4.7.2\ \\192.168.1.101\1\touch\cm\android\system\prebuilts\gcc\linux-x86\arm\arm-linux-androideabi-4.6\
host Executable: opannotate (/media/linux/1/touch/cm/android/system/out/host/linux-x86/obj/EXECUTABLES/opannotate_intermediates/opannotate)
/media/linux/1/touch/cm/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libiberty_intermediates/libiberty.a(make-temp-file.o): In function `make_temp_file':
make-temp-file.c:(.text+0x20f): undefined reference to `mkstemps64'
since prebuilts\gcc\linux-x86\arm\arm-linux-androideabi-4.6\ is copied from 1\touch\export\phablet-ubuntu-20130618\prebuilts\gcc\linux-x86\arm\linaro-4.7.2\ , I would try to make HAVE_LIBBFD := false in \\192.168.2.8\1\touch\cm\android\system\external\oprofile\common.mk
- Compilation problem with oprofile regarding libbfd
- 解决龙芯3A Debian6.0.3 o32系统编译oprofile的libbfd动态链接问题
- Unresolved compilation problem
- Unresolved compilation problem:
- oprofile
- oprofile
- Oprofile
- oprofile
- oprofile
- OProfile
- oProfile
- oprofile
- oprofile
- OProfile
- java.lang.Error: Unresolved compilation problem.
- matcaffe compilation problem: undefined reference to mxIsGPUArray
- java.lang.Error: Unresolved compilation problem:
- java.lang.Error: Unresolved compilation problem解决方案
- 搭建android开发环境
- 用div+css制作圆角矩形的原理
- 如何让你的进程更加“强硬”
- SQL 查询数据
- easyui与ssh(struts1)的整合实现增删改查、分页
- Compilation problem with oprofile regarding libbfd
- sort的用法
- 插件框架实现思路及原理
- Spring配置:用context:property-placeholder替换PropertyPlaceholderConfigurer
- SQL 函数与分组查询数据
- 多表连接查询与子查询
- Android上的内存分配策略优化
- hdu3652
- Android Paint和Color类