android-6.0.0_r26 compile fail after modify ifeq ($(WITHOUT_HOST_CLANG),why?help me,thanks!

302 views
Skip to first unread message

xush...@gmail.com

unread,
Mar 15, 2016, 10:32:45 AM3/15/16
to Android Building
fail info:
make: *** 没有规则可以创建“out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/native_bridge_art_interface.o”需要的目标“art/runtime/native_bridge_art_interface.cc”。 停止。

my step:
1. lunch 1

simonbear@simonbear-VirtualBox:~/android60$ lunch

You're building on Linux

Lunch menu... pick a combo:
     1. aosp_arm-eng
     2. aosp_arm64-eng
     3. aosp_mips-eng
     4. aosp_mips64-eng
     5. aosp_x86-eng
     6. aosp_x86_64-eng
     7. aosp_deb-userdebug
     8. aosp_flo-userdebug
     9. full_fugu-userdebug
     10. aosp_fugu-userdebug
     11. mini_emulator_arm64-userdebug
     12. m_e_arm-userdebug
     13. mini_emulator_mips-userdebug
     14. mini_emulator_x86_64-userdebug
     15. mini_emulator_x86-userdebug
     16. aosp_flounder-userdebug
     17. aosp_angler-userdebug
     18. aosp_bullhead-userdebug
     19. aosp_hammerhead-userdebug
     20. aosp_hammerhead_fp-userdebug
     21. aosp_shamu-userdebug

Which would you like? [aosp_arm-eng] 1

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0
TARGET_PRODUCT=aosp_arm
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.19.0-25-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=MDB08M
OUT_DIR=out
============================================

2.I follow this change :
# Clang build support.

# Host.
ART_HOST_CLANG := false
#ifneq ($(WITHOUT_HOST_CLANG),true)
ifneq ($(WITHOUT_HOST_CLANG),false)
  # By default, host builds use clang for better warnings.
  ART_HOST_CLANG := true
endif

3.make -j4

Symlink: out/host/linux-x86/bin/dalvikvm -> dalvikvm64
Export includes file: libnativehelper/Android.mk -- out/host/linux-x86/obj32/SHARED_LIBRARIES/libnativehelper_intermediates/export_includes
Export includes file: art/sigchainlib/Android.mk -- out/host/linux-x86/obj32/STATIC_LIBRARIES/libsigchain_intermediates/export_includes
Import includes file: out/host/linux-x86/obj32/SHARED_LIBRARIES/libnativehelper_intermediates/import_includes
Import includes file: out/host/linux-x86/obj32/STATIC_LIBRARIES/libsigchain_intermediates/import_includes
Export includes file: art/dalvikvm/Android.mk -- out/host/linux-x86/obj32/EXECUTABLES/dalvikvm_intermediates/export_includes
Notice file: libnativehelper/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libnativehelper.so.txt
Export includes file: libnativehelper/Android.mk -- out/host/linux-x86/obj/SHARED_LIBRARIES/libnativehelper_intermediates/export_includes
Export includes file: art/sigchainlib/Android.mk -- out/host/linux-x86/obj/STATIC_LIBRARIES/libsigchain_intermediates/export_includes
Import includes file: out/host/linux-x86/obj/SHARED_LIBRARIES/libnativehelper_intermediates/import_includes
Import includes file: out/host/linux-x86/obj/STATIC_LIBRARIES/libsigchain_intermediates/import_includes
Export includes file: art/dalvikvm/Android.mk -- out/host/linux-x86/obj/EXECUTABLES/dalvikvm_intermediates/export_includes
Notice file: libnativehelper/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib64/libnativehelper.so.txt
Export includes file: art/compiler/Android.mk -- out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/export_includes
Export includes file: system/core/libziparchive/Android.mk -- out/host/linux-x86/obj/SHARED_LIBRARIES/libziparchive-host_intermediates/export_includes
Export includes file: art/runtime/Android.mk -- out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/export_includes
target Generated: libart-compiler_32 <= art/compiler/dex/quick/arm/arm_lir.h
target Generated: libart-compiler_32 <= art/compiler/dex/quick/arm64/arm64_lir.h
target Generated: libart-compiler_32 <= art/compiler/dex/quick/mips/mips_lir.h
target Generated: libart-compiler_32 <= art/compiler/dex/quick/resource_mask.h
target Generated: libart-compiler_32 <= art/compiler/dex/compiler_enums.h
target Generated: libart-compiler_32 <= art/compiler/dex/global_value_numbering.h
target Generated: libart-compiler_32 <= art/compiler/dex/pass_me.h
target Generated: libart-compiler_32 <= art/compiler/driver/compiler_driver.h
target Generated: libart-compiler_32 <= art/compiler/driver/compiler_options.h
target Generated: libart-compiler_32 <= art/compiler/image_writer.h
target Generated: libart-compiler_32 <= art/compiler/optimizing/locations.h
target Generated: libart-compiler_32 <= art/compiler/utils/arm/constants_arm.h
Export includes file: external/vixl/Android.mk -- out/host/linux-x86/obj/SHARED_LIBRARIES/libvixl_intermediates/export_includes
target Generated: libart_32 <= art/runtime/arch/instruction_set.h
target Generated: libart_32 <= art/runtime/base/allocator.h
target Generated: libart_32 <= art/runtime/base/mutex.h
target Generated: libart_32 <= art/runtime/debugger.h
target Generated: libart_32 <= art/runtime/base/unix_file/fd_file.h
target Generated: libart_32 <= art/runtime/dex_file.h
target Generated: libart_32 <= art/runtime/dex_instruction.h
target Generated: libart_32 <= art/runtime/dex_instruction_utils.h
target Generated: libart_32 <= art/runtime/gc_root.h
target Generated: libart_32 <= art/runtime/gc/allocator/rosalloc.h
target Generated: libart_32 <= art/runtime/gc/collector/gc_type.h
target Generated: libart_32 <= art/runtime/gc/allocator_type.h
target Generated: libart_32 <= art/runtime/gc/collector_type.h
target Generated: libart_32 <= art/runtime/gc/space/region_space.h
target Generated: libart_32 <= art/runtime/gc/space/space.h
target Generated: libart_32 <= art/runtime/gc/heap.h
target Generated: libart_32 <= art/runtime/image.h
target Generated: libart_32 <= art/runtime/instrumentation.h
target Generated: libart_32 <= art/runtime/indirect_reference_table.h
target Generated: libart_32 <= art/runtime/invoke_type.h
target Generated: libart_32 <= art/runtime/jdwp/jdwp.h
target Generated: libart_32 <= art/runtime/jdwp/jdwp_constants.h
target Generated: libart_32 <= art/runtime/lock_word.h
target Generated: libart_32 <= art/runtime/mirror/class.h
target Generated: libart_32 <= art/runtime/oat.h
target Generated: libart_32 <= art/runtime/object_callbacks.h
target Generated: libart_32 <= art/runtime/profiler_options.h
target Generated: libart_32 <= art/runtime/quick/inline_method_analyser.h
target Generated: libart_32 <= art/runtime/runtime.h
target Generated: libart_32 <= art/runtime/stack.h
target Generated: libart_32 <= art/runtime/thread.h
target Generated: libart_32 <= art/runtime/thread_state.h
target Generated: libart_32 <= art/runtime/verifier/method_verifier.h
Export includes file: system/core/libnativebridge/Android.mk -- out/host/linux-x86/obj/SHARED_LIBRARIES/libnativebridge_intermediates/export_includes
Export includes file: art/sigchainlib/Android.mk -- out/host/linux-x86/obj/SHARED_LIBRARIES/libsigchain_intermediates/export_includes
make: *** 没有规则可以创建“out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/native_bridge_art_interface.o”需要的目标“art/runtime/native_bridge_art_interface.cc”。 停止。
make: *** 正在等待未完成的任务....

#### make failed to build some targets (02:23 (mm:ss)) ####



my pc is ubuntu 14.04 64bit,an jdk is openjdk1.7 ,gcc is4.8.4

simonbear@simonbear-VirtualBox:~/android60$ javac -version
javac 1.7.0_95
simonbear@simonbear-VirtualBox:~/android60$ java -version
java version "1.7.0_95"
OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-0ubuntu0.14.04.1)
OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)
simonbear@simonbear-VirtualBox:~/android60$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.4-2ubuntu1~14.04' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04) 

please help me,thanks!!

Desconocido Nadie

unread,
Mar 17, 2016, 10:04:06 AM3/17/16
to Android Building

ifeq ($(WITHOUT_HOST_CLANG),false)

ifeq   not   ifneq

Regards
simo...@simonbear-VirtualBox:~/android60$ find . -name "Android.common_build.mk" -print
simo...@simonbear-VirtualBox:~/android60$ gcc -v

xush...@gmail.com

unread,
Mar 18, 2016, 12:47:03 AM3/18/16
to Android Building
thanks ,i know!
i hava modified,but also compile fail!!!

在 2016年3月15日星期二 UTC+8下午10:32:45,xush...@gmail.com写道:
Reply all
Reply to author
Forward
0 new messages