天嵌 ARM开发社区

 找回密码
 注册
查看: 11016|回复: 16

编译光盘中提供的Android 4.3 ,报错

[复制链接]
Naught 发表于 2015-1-28 12:50:27 来自手机 | 显示全部楼层 |阅读模式
编译光盘中提供的Android 4.3 ,报错

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
liyang477 发表于 2015-3-25 11:19:41 | 显示全部楼层

我的出现下面的错误,已经手动从新安装过ubuntu_env_install.sh文件里的库,请问怎么解决的?

root@e9_linux:/opt/EmbedSky/TQIMX6/E9/TQIMX6_android4.3# ./build_sh

[[[[[[[ Build android platform ]]]]]]]

including device/asus/deb/vendorsetup.sh
including device/asus/flo/vendorsetup.sh
including device/asus/grouper/vendorsetup.sh
including device/asus/tilapia/vendorsetup.sh
including device/fsl/imx5x/vendorsetup.sh
including device/fsl/imx6/vendorsetup.sh
including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/mips/vendorsetup.sh
including device/generic/x86/vendorsetup.sh
including device/lge/mako/vendorsetup.sh
including device/samsung/maguro/vendorsetup.sh
including device/samsung/manta/vendorsetup.sh
including device/samsung_slsi/arndale/vendorsetup.sh
including device/samsung/toroplus/vendorsetup.sh
including device/samsung/toro/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including sdk/bash_completion/adb.bash

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.3
TARGET_PRODUCT=sabresd_6dq
TARGET_BUILD_VARIANT=user
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.11.0-15-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=1.1.0-rc4
OUT_DIR=out
============================================

CPU number is 3
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.3
TARGET_PRODUCT=sabresd_6dq
TARGET_BUILD_VARIANT=user
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.11.0-15-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=1.1.0-rc4
OUT_DIR=out
============================================
PRODUCT_COPY_FILES device/fsl/common/input/HannStar_P1003_Touchscreen.idc:system/usr/idc/HannStar_P1003_Touchscreen.idc ignored.
.............................................
.............................................
Install: out/host/linux-x86/usr/share/zoneinfo/tzdata
host C++: libjavacore <= libcore/luni/src/main/native/cbigint.cpp
host C++: libjavacore <= libcore/luni/src/main/native/java_io_Console.cpp
/usr/bin/ld: cannot find -llzo2
/usr/bin/ld: cannot find -luuid
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/mkfs.ubifs] 错误 1
make: *** 正在等待未完成的任务....
root@e9_linux:/opt/EmbedSky/TQIMX6/E9/TQIMX6_android4.3#
回复 支持 1 反对 0

使用道具 举报

TQ-ZQL 发表于 2015-1-28 17:35:05 | 显示全部楼层
你用的是64位的系统?自己手动再装一下那个ubuntu_env_install.sh文件里的库.
 楼主| Naught 发表于 2015-1-28 22:48:32 | 显示全部楼层
是64位系统,我手动安装了bison、flex、m4,还是不可以,网上也有类似的问题,他们通过安装这几个就可以了,不过我不是通过apt-get install安装的,我都是下载了tar.gz压缩文件make install安装的,需要再安装其他的试一下?
TQ-ZQL 发表于 2015-1-29 10:09:24 | 显示全部楼层
都装一下吧,还有你的是ubuntu12.04吗?建议使用ubuntu12.04
zhengxi 发表于 2015-2-10 17:05:25 | 显示全部楼层
什么原因出错啊
liyang477 发表于 2015-3-25 12:00:44 | 显示全部楼层
多执行几次./build_sh ,出现了下面的现象  真晕


host Executable: mkfs.ubifs (out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/mkfs.ubifs)
/usr/bin/ld: cannot find -llzo2
/usr/bin/ld: cannot find -luuid
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/mkfs.ubifs] 错误 1
make: *** 正在等待未完成的任务....
  Kernel: arch/arm/boot/Image is ready
  SHIPPED arch/arm/boot/compressed/lib1funcs.S
  AS      arch/arm/boot/compressed/lib1funcs.o
  LD      arch/arm/boot/compressed/vmlinux
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready
  UIMAGE  arch/arm/boot/uImage
Image Name:   Linux-3.0.35
Created:      Wed Mar 25 11:53:16 2015
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    5076636 Bytes = 4957.65 kB = 4.84 MB
Load Address: 10008000
Entry Point:  10008000
  Image arch/arm/boot/uImage is ready
make[1]:正在离开目录 `/opt/EmbedSky/TQIMX6/E9/TQIMX6_android4.3/kernel_imx'
install -D kernel_imx/arch/arm/boot/uImage  out/target/product/sabresd_6dq/uImage
install -D kernel_imx/arch/arm/boot/zImage  out/target/product/sabresd_6dq/kernel
^[[Aout/host/linux-x86/obj/STATIC_LIBRARIES/libclangCodeGen_intermediates/libclangCodeGen.a(CGExprComplex.o): In functio
n `EmitStoreOfComplex':
/opt/EmbedSky/TQIMX6/E9/TQIMX6_android4.3/external/clang/lib/CodeGen/CGExprComplex.cpp:316: undefined reference to `clan
g::CodeGen::CodeGenFunction::EmitAtomicStore(clang::CodeGen::RValue, clang::CodeGen::LValue, bool)'
out/host/linux-x86/obj/STATIC_LIBRARIES/libclangCodeGen_intermediates/libclangCodeGen.a(CGExprComplex.o): In function `E
mitLoadOfLValue':
/opt/EmbedSky/TQIMX6/E9/TQIMX6_android4.3/external/clang/lib/CodeGen/CGExprComplex.cpp:289: undefined reference to `clan
g::CodeGen::CodeGenFunction::EmitAtomicLoad(clang::CodeGen::LValue, clang::CodeGen::AggValueSlot)'
out/host/linux-x86/obj/STATIC_LIBRARIES/libclangCodeGen_intermediates/libclangCodeGen.a(CGExprComplex.o): In function `V
isitAtomicExpr':
/opt/EmbedSky/TQIMX6/E9/TQIMX6_android4.3/external/clang/lib/CodeGen/CGExprComplex.cpp:275: undefined reference to `clan
g::CodeGen::CodeGenFunction::EmitAtomicExpr(clang::AtomicExpr*, llvm::Value*)'
out/host/linux-x86/obj/STATIC_LIBRARIES/libclangCodeGen_intermediates/libclangCodeGen.a(CGExprComplex.o): In function `c
lang::CodeGen::CodeGenFunction::enterFullExpression(clang::ExprWithCleanups const*)':
/opt/EmbedSky/TQIMX6/E9/TQIMX6_android4.3/external/clang/lib/CodeGen/CodeGenFunction.h:2604: undefined reference to `cla
ng::CodeGen::CodeGenFunction::enterNonTrivialFullExpression(clang::ExprWithCleanups const*)'
out/host/linux-x86/obj/STATIC_LIBRARIES/libclangCodeGen_intermediates/libclangCodeGen.a(CGExprScalar.o): In function `Vi
sitBlockExpr':
/opt/EmbedSky/TQIMX6/E9/TQIMX6_android4.3/external/clang/lib/CodeGen/CGExprScalar.cpp:3100: undefined reference to `clan
g::CodeGen::CodeGenFunction::EmitBlockLiteral(clang::BlockExpr const*)'
out/host/linux-x86/obj/STATIC_LIBRARIES/libclangCodeGen_intermediates/libclangCodeGen.a(CGExprScalar.o): In function `Vi
sitAtomicExpr':
/opt/EmbedSky/TQIMX6/E9/TQIMX6_android4.3/external/clang/lib/CodeGen/CGExprScalar.cpp:3153: undefined reference to `clan
g::CodeGen::CodeGenFunction::EmitAtomicExpr(clang::AtomicExpr*, llvm::Value*)'
out/host/linux-x86/obj/STATIC_LIBRARIES/libclangCodeGen_intermediates/libclangCodeGen.a(CGExprScalar.o): In function `cl
ang::CodeGen::CodeGenFunction::enterFullExpression(clang::ExprWithCleanups const*)':
/opt/EmbedSky/TQIMX6/E9/TQIMX6_android4.3/external/clang/lib/CodeGen/CodeGenFunction.h:2604: undefined reference to `cla
ng::CodeGen::CodeGenFunction::enterNonTrivialFullExpression(clang::ExprWithCleanups const*)'
out/host/linux-x86/obj/STATIC_LIBRARIES/libclangFrontend_intermediates/libclangFrontend.a(ASTUnit.o): In function `seria
lizeUnit':
/opt/EmbedSky/TQIMX6/E9/TQIMX6_android4.3/external/clang/lib/Frontend/ASTUnit.cpp:2528: undefined reference to `clang::A
STWriter::WriteAST(clang::Sema&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, clang::M
odule*, llvm::StringRef, bool)'
out/host/linux-x86/obj/STATIC_LIBRARIES/libclangFrontend_intermediates/libclangFrontend.a(ASTUnit.o): In function `clang
::ASTUnit::serialize(llvm::raw_ostream&)':
/opt/EmbedSky/TQIMX6/E9/TQIMX6_android4.3/external/clang/lib/Frontend/ASTUnit.cpp:2546: undefined reference to `clang::A
STWriter::ASTWriter(llvm::BitstreamWriter&)'
out/host/linux-x86/obj/STATIC_LIBRARIES/libclangFrontend_intermediates/libclangFrontend.a(ASTUnit.o): In function `seria
lizeUnit':
/opt/EmbedSky/TQIMX6/E9/TQIMX6_android4.3/external/clang/lib/Frontend/ASTUnit.cpp:2528: undefined reference to `clang::A
STWriter::WriteAST(clang::Sema&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, clang::M
odule*, llvm::StringRef, bool)'
out/host/linux-x86/obj/STATIC_LIBRARIES/libclangFrontend_intermediates/libclangFrontend.a(ASTUnit.o): In function `clang
::ASTUnit::serialize(llvm::raw_ostream&)':
/opt/EmbedSky/TQIMX6/E9/TQIMX6_android4.3/external/clang/lib/Frontend/ASTUnit.cpp:2547: undefined reference to `clang::A
STWriter::~ASTWriter()'
out/host/linux-x86/obj/STATIC_LIBRARIES/libclangFrontend_intermediates/libclangFrontend.a(ASTUnit.o): In function `clang
::ASTUnit::getPCHFile()':
/opt/EmbedSky/TQIMX6/E9/TQIMX6_android4.3/external/clang/lib/Frontend/ASTUnit.cpp:2875: undefined reference to `clang::s
erialization::ModuleManager::visit(bool (*)(clang::serialization::ModuleFile&, void*), void*, llvm::SmallPtrSet<clang::F
ileEntry const*, 4u>*)'
out/host/linux-x86/obj/STATIC_LIBRARIES/libclangFrontend_intermediates/libclangFrontend.a(ASTUnit.o): In function `Handl
eTranslationUnit':
/opt/EmbedSky/TQIMX6/E9/TQIMX6_android4.3/external/clang/lib/Frontend/ASTUnit.cpp:992: undefined reference to `clang::AS
TWriter::getDeclID(clang::Decl const*)'
lfehczl 发表于 2015-3-27 15:16:55 | 显示全部楼层
都是这问题,请问如何解决????
host StaticLib: libsparse_host (out/host/linux-x86/obj/STATIC_LIBRARIES/libsparse_host_intermediates/libsparse_host.a)

host StaticLib: libselinux (out/host/linux-x86/obj/STATIC_LIBRARIES/libselinux_intermediates/libselinux.a)

host Executable: mkfs.ubifs (out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/mkfs.ubifs)

host Executable: sqlite3 (out/host/linux-x86/obj/EXECUTABLES/sqlite3_intermediates/sqlite3)

host Executable: ubinize (out/host/linux-x86/obj/EXECUTABLES/ubinize_intermediates/ubinize)

host SharedLib: libexpat (out/host/linux-x86/obj/lib/libexpat.so)

host C++: libjavacore <= libcore/dalvik/src/main/native/org_apache_harmony_dalvi
k_NativeTestTarget.cpp

/usr/bin/ld: cannot find -llzo2

/usr/bin/ld: cannot find -luuid

collect2: ld returned 1 exit status

make: *** [out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/mkfs.ubifs] 错误 1

make: *** 正在等待未完成的任务....

johnliao 发表于 2015-3-28 16:46:18 | 显示全部楼层
THank you very much
wbz073 发表于 2015-3-31 13:42:17 | 显示全部楼层

论坛FAQ有解决办法
sjn 发表于 2015-5-4 10:48:34 | 显示全部楼层
怎么单独编译android的内核啊
siriusspy 发表于 2015-9-9 01:41:01 | 显示全部楼层
wbz073 发表于 2015-3-31 13:42
论坛FAQ有解决办法

我也遇到了,找了半天,也没有按照论坛说的解决。
能不能细说下呢?
时间看的见~ 发表于 2015-11-26 15:57:36 | 显示全部楼层
liyang477 发表于 2015-3-25 11:19
我的出现下面的错误,已经手动从新安装过ubuntu_env_install.sh文件里的库,请问怎么解决的?

root@e9 ...

我也是这个问题啊!!!
时间看的见~ 发表于 2015-11-26 16:05:45 | 显示全部楼层
wbz073 发表于 2015-3-31 13:42
论坛FAQ有解决办法

哪里啊?没找到~!!!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-5-5 03:18 , Processed in 1.031250 second(s), 21 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表