Compilation problem with oprofile regarding libbfd

来源:互联网 发布:释放被占用的端口 编辑:程序博客网 时间:2024/06/16 07:47
remake: *** No rule to make target `/media/linux/1/touch/cm/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libbfd_intermediates/export_includes', needed by `/media/linux/1/touch/cm/android/system/out/host/linux-x86/obj/EXECUTABLES/opannotate_intermediates/import_includes'.  Stop.
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


原创粉丝点击