每次编译Android4.0系统都出错!
这几天刚收到板子,就着手搭建开发系统。并在自己的笔记本上按转了最新的Ubuntu12.10。按照说明书按转软件后,编译TQ210_Android_4.0.4_v1.0.tar.bz2。
大约30分钟后,出现以下错误:
host C++: libclangDriver <= external/clang/lib/Driver/OptTable.cpp
host C++: libclangDriver <= external/clang/lib/Driver/Phases.cpp
host C++: libclangDriver <= external/clang/lib/Driver/Tool.cpp
#
# A fatal error has been detected by the Java Runtime Environment:
#
#SIGSEGV (0xb) at pc=0x00002ba342d8a053, pid=3851, tid=47980223776512
#
# JRE version: 6.0_30-b12
# Java VM: Java HotSpot(TM) 64-Bit Server VM (20.5-b03 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# Chost C++: libclangDriver <= external/clang/lib/Driver/ToolChain.cpp
host C++: libclangDriver <= external/clang/lib/Driver/ToolChains.cpp
host C++: libclangDriver <= external/clang/lib/Driver/Tools.cpp
这是JAVA虚拟机崩溃吗?
后来删除out目录重新编译。
又出现以下错误
In file included from external/clang/include/clang/Lex/Preprocessor.h:20,
from external/clang/include/clang/Parse/Parser.h:19,
from external/clang/lib/Parse/ParseAST.cpp:23:
external/clang/include/clang/Lex/PPCallbacks.h:214: internal compiler error: 总线错误
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.4/README.Bugs> for instructions.
make: *** 错误 1
make: *** 正在等待未完成的任务....
libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area
g++: Internal error: 段错误 (program cc1plus)
Please submit a full bug report.
See <file:///usr/share/doc/gcc-4.4/README.Bugs> for instructions.
make: *** 错误 1
aapt: warning: string 'gsm_alphabet_default_charset' has no default translation in frameworks/base/core/res/res; found: ko
还有一次如下:
target thumb C++: libwebcore <= external/webkit/Source/WebCore/svg/SVGStopElement.cpp
target thumb C++: libwebcore <= external/webkit/Source/WebCore/svg/SVGStringList.cpp
target thumb C++: libwebcore <= external/webkit/Source/WebCore/svg/SVGStylable.cpp
external/webkit/Source/WebCore/svg/SVGScriptElement.cpp: In member function 'virtual void WebCore::SVGScriptElement::addSubresourceAttributeURLs(WTF::ListHashSet<WebCore::KURL>&) const':
external/webkit/Source/WebCore/svg/SVGScriptElement.cpp:162: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** 错误 1
make: *** 正在等待未完成的任务....
还有很多,好像每次都不一样。
我的笔记本CPU为i5,内存刚加到6G。不应该硬件引起这种问题吧?
又,不知道是不是安装时,选择了联网更新。我的gcc版本是4.47。
Java倒是只有一个1.6.0_30版本
操作系统是Ubuntu12.10 64位版
可是我编译Linux Kernel都很正常,没有出错。
那么会是哪里引起的错误呢? gardensu 发表于 2013-1-5 17:54 static/image/common/back.gif
又,不知道是不是安装时,选择了联网更新。我的gcc版本是4.47。
Java倒是只有一个1.6.0_30版本
操作系统是 ...
你把gcc版本降为4.4.6的吧,安装方法:
echo y|apt-get install gcc-4.4 g++-4.4 g++-4.4-multilib
mv -f /usr/bin/gcc /usr/bin/bak_gcc
mv -f /usr/bin/g++ /usr/bin/bak_g++
ln -s /usr/bin/gcc-4.4 /usr/bin/gcc
ln -s /usr/bin/g++-4.4 /usr/bin/g++
昨天重新安装了Ubuntu11,按照手册安装了各种软件。成功编译了Android2.3
可是编译Android4.0最后还是出错了:
Created filesystem with 982/16384 inodes and 37582/65536 blocks
Install system fs image: out/target/product/tq210/system.img
out/target/product/tq210/system.img+ total size is 151788456
Target ram disk: out/target/product/tq210/ramdisk.img
mkimage -A arm -O linux -T ramdisk -C none -a 0x30A00000 -n "ramdisk" -d out/target/product/tq210/ramdisk.img out/target/product/tq210/ramdisk-uboot.img
/bin/bash: mkimage: 未找到命令
make: *** 错误 127
make: *** 正在删除文件“out/target/product/tq210/ramdisk.img”
root@gardensug470:/opt/EmbedSky/TQ210/TQ210_Android_4.0.4_V1.0#
以上信息提示:找不到命令mkimage
需要手工添加这条命令吗?
按照QQ群里“冰蓝”的方法搞定。
通过以下方法添加这条命令
apt-get install uboot-mkimage
然后,继续执行.build_android.sh
最终编译成功。 亚瑟王 发表于 2013-1-5 18:14 static/image/common/back.gif
你把gcc版本降为4.4.6的吧,安装方法:
echo y|apt-get install gcc-4.4 g++-4.4 g++-4.4-multilib
您好,
我编译TQ210的代码,出现这样的问题,这是什么原因呢?
网上找过,没有找到答案。
make: *** Killed
make: *** Waiting for unfinished jobs....
make: *** Killed
make: *** Killed
make: *** Killed
:'(可是编译Android4.0最后还是出错了,以上信息提示:找不到命令mkimage,按照楼主的方法我重新编译下看看 caoshukai 发表于 2013-8-26 18:42 static/image/common/back.gif
您好,
我编译TQ210的代码,出现这样的问题,这是什么原因呢?
网上找过,没有找到答案。
修一下编译脚本,将大概33行的make -j$CPU_JOB_NUM修改为make -j4试试。同时确保PC分配给Linux的内存有至少2GB。
页:
[1]