正在加载
请稍等

菜单

红楼飞雪 梦

15526773247

文章

Home android 嵌入式开发 android编译错误
Home android 嵌入式开发 android编译错误

android编译错误

android 嵌入式开发 by

external/boringssl/src/ssl/t1_reneg.c:219:41: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Wsign-compare]
  if (CBS_len(&renegotiated_connection) != expected_len) {
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~
1 warning generated.
host SharedLib: libssl-host (out/host/linux-x86/obj/lib/libssl-host.so)
Export includes file: external/conscrypt/Android.mk -- out/host/linux-x86/obj/EXECUTABLES/conscrypt_generate_constants_intermediates/export_includes
host Executable: conscrypt_generate_constants (out/host/linux-x86/obj/EXECUTABLES/conscrypt_generate_constants_intermediates/conscrypt_generate_constants)
Notice file: external/conscrypt/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//bin/conscrypt_generate_constants.txt
Notice file: external/boringssl/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib64/libcrypto-host.so.txt
Install: out/host/linux-x86/lib64/libcrypto-host.so
Notice file: external/boringssl/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib64/libssl-host.so.txt
Install: out/host/linux-x86/lib64/libssl-host.so
Install: out/host/linux-x86/bin/conscrypt_generate_constants
mkdir -p out/target/common/gen/conscrypt/
out/host/linux-x86/bin/conscrypt_generate_constants > out/target/common/gen/conscrypt/NativeConstants.java
target Java: core-libart (out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes)
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000d0837000, 62148608, 0) failed; error='无法分配内存' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 62148608 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /tmp/jvm-21449/hs_error.log
make: *** [out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes-full-debug.jar] 错误 41
 
#### make failed to build some targets (04:45 (mm:ss)) ####

 

Copy: out/target/product/generic/root/ueventd.rc
target R.java/Manifest.java: BasicDreams (out/target/common/obj/APPS/BasicDreams_intermediates/src/R.stamp)
host Prebuilt: jack-launcher (out/host/common/obj/JAVA_LIBRARIES/jack-launcher_intermediates/jack-launcher.jar)
Install: out/host/linux-x86/framework/jack-launcher.jar
host Prebuilt: jack (out/host/common/obj/JAVA_LIBRARIES/jack_intermediates/jack.jar)
host Prebuilt: jack (out/host/linux-x86/obj/EXECUTABLES/jack_intermediates/jack)
Install: out/host/linux-x86/bin/jack
host Prebuilt: jack-admin (out/host/linux-x86/obj/EXECUTABLES/jack-admin_intermediates/jack-admin)
Install: out/host/linux-x86/bin/jack-admin
Writing local settings in /home/ulps/.jack
Stopping background server
ERROR: No Jack server running
Killing background server
ERROR: No Jack server to kill
touch out/host/common/obj/JAVA_LIBRARIES/jack_intermediates/kill_server.stamp
Install: out/host/linux-x86/framework/jack.jar
Launching Jack server java -Dfile.encoding=UTF-8 -Xms2560m -XX:+TieredCompilation -jar out/host/linux-x86/framework/jack-launcher.jar -cp out/host/linux-x86/framework/jack.jar com.android.jack.server.JackSimpleServer
Building with Jack: out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/with-local/classes.dex
 
Building with Jack: out/target/common/obj/JAVA_LIBRARIES/core-junit_intermediates/with-local/classes.dex
java.lang.AssertionError: java.lang.ClassNotFoundException: com.android.jack.backend‮dex.MethodBodyRemover
	at com.android.sched.reflections.AnnotationProcessorReflectionManager.getSubTypesOf(AnnotationProcessorReflectionManager.java:73)
	at com.android.sched.reflections.SchedulableManagerReflections.scan(SchedulableManagerReflections.java:64)
	at com.android.sched.scheduler.SchedulableManager.getAllSchedulable(SchedulableManager.java:104)
	at com.android.sched.scheduler.Scheduler.getAllSchedulable(Scheduler.java:83)
	at com.android.jack.Jack.createInitialRequest(Jack.java:626)
	at com.android.jack.Jack.run(Jack.java:432)
	at com.android.jack.Jack.checkAndRun(Jack.java:367)
	at com.android.jack.CommandLine.runJack(CommandLine.java:66)
	at com.android.jack.server.ServerTaskInsideVm.run(ServerTaskInsideVm.java:94)
	at com.android.jack.server.JackSimpleServer$JackRun.handle(JackSimpleServer.java:427)
	at com.android.jack.server.JackSimpleServer$JackRouter.handle(JackSimpleServer.java:311)
	at org.simpleframework.http.core.RequestDispatcher.dispatch(RequestDispatcher.java:121)
	at org.simpleframework.http.core.RequestDispatcher.run(RequestDispatcher.java:103)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: com.android.jack.backend‮dex.MethodBodyRemover
	at com.android.jack.launcher.ZipLoader.findClass(ZipLoader.java:133)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:195)
	at com.android.sched.reflections.AnnotationProcessorReflectionManager.getSubTypesOf(AnnotationProcessorReflectionManager.java:71)
	... 15 more
 
Internal compiler error (version 1.1-mr2 'Brest' (175100 000a2f91edbe638090dc577801ba49592229fd8b)).
java.lang.ClassNotFoundException: com.android.jack.backend‮dex.MethodBodyRemover.
Warning: This may have produced partial or corrupted output.
build/core/java.mk:643: recipe for target 'out/target/common/obj/JAVA_LIBRARIES/core-junit_intermediates/with-local/classes.dex' failed
make: *** [out/target/common/obj/JAVA_LIBRARIES/core-junit_intermediates/with-local/classes.dex] Error 41
 
#### make failed to build some targets (01:46:51 (hh:mm:ss)) ####
host C: libcrypto-host <= external/boringssl/src/crypto/asn1/a_type.c
host C: libcrypto-host <= external/boringssl/src/crypto/asn1/a_utctm.c
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f9dd98eae37, pid=31560, tid=140315785660160
#
# JRE version: OpenJDK Runtime Environment (7.0_91) (build 1.7.0_91-mockbuild_2015_11_20_16_53-b00)
# Java VM: OpenJDK 64-Bit Server VM (24.91-b01 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea 2.6.2
# Distribution: CentOS Linux release 7.1.1503 (Core) , package rhel-2.6.2.3.el7-x86_64 u91-b00
# Problematic frame:
# V  [libjvm.so+0x85de37]
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /tmp/jvm-31560/hs_error.log
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
#   http://icedtea.classpath.org/bugzilla
#
host C: libcrypto-host <= external/boringssl/src/crypto/asn1/a_utf8.c
host C: libcrypto-host <= external/boringssl/src/crypto/asn1/asn1_lib.c
host C: libcrypto-host <= external/boringssl/src/crypto/asn1/asn1_par.c
host C: libcrypto-host <= external/boringssl/src/crypto/asn1/asn_pack.c
host C: libcrypto-host <= external/boringssl/src/crypto/asn1/bio_asn1.c
host C: libcrypto-host <= external/boringssl/src/crypto/asn1/bio_ndef.c
host C: libcrypto-host <= external/boringssl/src/crypto/asn1/f_enum.c
host C: libcrypto-host <= external/boringssl/src/crypto/asn1/f_int.c
host C: libcrypto-host <= external/boringssl/src/crypto/asn1/f_string.c
/bin/bash: 行 1: 31560 已放弃               (吐核)javac -J-Xmx1024M -source 1.7 -target 1.7 -Xmaxerrs 9999999 -encoding UTF-8 -g -classpath out/host/common/obj/JAVA_LIBRARIES/jsr305lib_intermediates/javalib.jar -extdirs "" -d out/host/common/obj/JAVA_LIBRARIES/guavalib_intermediates/classes \@out/host/common/obj/JAVA_LIBRARIES/guavalib_intermediates/classes/java-source-list-uniq
make: *** [out/host/common/obj/JAVA_LIBRARIES/guavalib_intermediates/javalib.jar] 错误 41
make: *** 正在等待未完成的任务....
 
#### make failed to build some targets (03:29 (mm:ss)) ####
host C++: aprotoc <= external/protobuf/src/google/protobuf/compiler/javamicro/javamicro_primitive_field.cc
host C++: aprotoc <= external/protobuf/src/google/protobuf/compiler/javanano/javanano_enum.cc
host C++: aprotoc <= external/protobuf/src/google/protobuf/compiler/javanano/javanano_enum_field.cc
host C++: aprotoc <= external/protobuf/src/google/protobuf/compiler/javanano/javanano_extension.cc
host C++: aprotoc <= external/protobuf/src/google/protobuf/compiler/javanano/javanano_field.cc
clang++: error: unable to execute command: Segmentation fault (core dumped)
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 3.6 
Target: x86_64--linux-gnu
Thread model: posix
clang++: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
clang++: note: diagnostic msg: 
********************
 
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang++: note: diagnostic msg: /tmp/javanano_enum-826292.cpp
clang++: note: diagnostic msg: /tmp/javanano_enum-826292.sh
clang++: note: diagnostic msg: 
 
********************
make: *** [out/host/linux-x86/obj/EXECUTABLES/aprotoc_intermediates/src/google/protobuf/compiler/javanano/javanano_enum.o] 错误 254
make: *** 正在等待未完成的任务....
 
#### make failed to build some targets (17:14 (mm:ss)) ####
 
[lps@localhost android-source-code]$ clang -v
 
clang version 3.4.2 (tags/RELEASE_34/dot2-final)
Target: x86_64-redhat-linux-gnu
Thread model: posix
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8.1
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.2
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.1
Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/4.8.2
Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/4.8.5
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.5
7fab4c41e000-7fab4c43f000 r-xp 00000000 08:02 8655258                    /usr/lib64/ld-2.17.soclang: error: unable to execute command: Aborted (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 3.6 
Target: x86_64--linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
clang: note: diagnostic msg: 
********************
 
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/sqlite3-196123.c
clang: note: diagnostic msg: /tmp/sqlite3-196123.sh
clang: note: diagnostic msg: 
 
********************
make: *** [out/host/linux-x86/obj/EXECUTABLES/sqlite3_intermediates/sqlite3.o] 错误 254
 
#### make failed to build some targets (01:18:33 (hh:mm:ss)) ####

错误原因:clnag以及gcc的依赖库没有安装完成

解决方案:打开终端,依次执行如下命令:

sudo yum install epel-release
sudo yum clean all
sudo yum install gcc* java*
target thumb C++: libandroid_runtime <= frameworks/base/core/jni/android_view_SurfaceSession.cpp
target thumb C++: libandroid_runtime <= frameworks/base/core/jni/android_view_TextureView.cpp
target thumb C++: libandroid_runtime <= frameworks/base/core/jni/android_view_ThreadedRenderer.cpp
target thumb C++: libandroid_runtime <= frameworks/base/core/jni/android_view_VelocityTracker.cpp
target thumb C++: libandroid_runtime <= frameworks/base/core/jni/android_text_AndroidCharacter.cpp
target thumb C++: libandroid_runtime <= frameworks/base/core/jni/android_text_AndroidBidi.cpp
target thumb C++: libandroid_runtime <= frameworks/base/core/jni/android_text_StaticLayout.cpp
target thumb C++: libandroid_runtime <= frameworks/base/core/jni/android_os_Debug.cpp
3 warnings generated.
target thumb C++: libandroid_runtime <= frameworks/base/core/jni/android_os_MemoryFile.cpp
target thumb C++: libandroid_runtime <= frameworks/base/core/jni/android_os_MessageQueue.cpp
target thumb C++: libandroid_runtime <= frameworks/base/core/jni/android_os_Parcel.cpp
target thumb C++: libandroid_runtime <= frameworks/base/core/jni/android_os_SELinux.cpp
In file included from external/libcxx/include/vector:274:0,
                 from frameworks/base/core/jni/android_text_StaticLayout.cpp:29:
external/libcxx/include/__split_buffer: In constructor 'std::__1::__split_buffer<_Tp, _Allocator>::__split_buffer(std::__1::__split_buffer<_Tp, _Allocator>::size_type, std::__1::__split_buffer<_Tp, _Allocator>::size_type, std::__1::__split_buffer<_Tp, _Allocator>::__alloc_rr&) [with _Tp = float; _Allocator = std::__1::allocator<float>&; std::__1::__split_buffer<_Tp, _Allocator>::size_type = unsigned int; std::__1::__split_buffer<_Tp, _Allocator>::__alloc_rr = std::__1::allocator<float>]':
external/libcxx/include/__split_buffer:323:30: internal compiler error: in get_expr_operands, at tree-ssa-operands.c:901
     : __end_cap_(nullptr, __a)
                              ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://source.android.com/source/report-bugs.html> for instructions.
make: *** [out/target/product/shamu/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/android_text_StaticLayout.o] 错误 1
make: *** 正在等待未完成的任务....
 
#### make failed to build some targets (01:09:59 (hh:mm:ss)) ####

错误原因:一些目标编译的时候生成失败,可能是磁盘空间不足或者内存占用过大导致,

解决方案:重启电脑,然后clean一下,再次编译,不要运行其他程序

Notice file: external/conscrypt/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//bin/conscrypt_generate_constants.txt
Notice file: external/boringssl/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib64/libcrypto-host.so.txt
Install: out/host/linux-x86/lib64/libcrypto-host.so
Notice file: external/boringssl/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib64/libssl-host.so.txt
Install: out/host/linux-x86/lib64/libssl-host.so
Install: out/host/linux-x86/bin/conscrypt_generate_constants
mkdir -p out/target/common/gen/conscrypt/
out/host/linux-x86/bin/conscrypt_generate_constants > out/target/common/gen/conscrypt/NativeConstants.java
target Java: core-libart (out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes)
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007efcd98384be, pid=24514, tid=139624298718976
#
# JRE version: OpenJDK Runtime Environment (7.0_91) (build 1.7.0_91-mockbuild_2015_11_20_16_53-b00)
# Java VM: OpenJDK 64-Bit Server VM (24.91-b01 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea 2.6.2
# Distribution: CentOS Linux release 7.1.1503 (Core) , package rhel-2.6.2.3.el7-x86_64 u91-b00
# Problematic frame:
# V  [libjvm.so+0x5ca4be]
#
# Core dump written. Default location: /home/android/android-source-code/core or core.24514
#
# An error report file with more information is saved as:
# /tmp/jvm-24514/hs_error.log
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
#   http://icedtea.classpath.org/bugzilla
#
/bin/bash: 行 1: 24514 已放弃               (吐核)javac -J-Xmx1024M -source 1.7 -target 1.7 -Xmaxerrs 9999999 -encoding UTF-8 -g -bootclasspath out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.jar -extdirs "" -d out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes -encoding UTF-8 -Xmaxwarns 9999999 \@out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes/java-source-list-uniq
make: *** [out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes-full-debug.jar] 错误 41
 
#### make failed to build some targets (04:46 (mm:ss)) ####

错误原因:这个错误的好像是由于在make一个任务时,并没有结束,这时在进行make就会报

解决方案:make clobber的功能是把上一次make命令生成的文件或目录清除掉,效果比make clean更严格。

make clobber
make -j8

 

 

16 2015-12

 

我要 分享

 

 

本文 作者

 

相关 文章