ubuntu 在 R40e 上 還有 Debian 在 Sempron 2600 上

2013年9月23日 星期一

follow : http://forum.xda-developers.com/showthread.php?t=2115520

repo init -u git://github.com/Team-Hydra/android.git -b cm-10.1
repo sync

然後
. build/envsetup.sh
./vendor/cm/get-prebuilts
lunch cm_pyramid-userdebug
mka bacon

中間那個 get-prebuilts 如果照原來的,用 source 作,會出現 permission deny,所以無法 download prebuilt 。

然後 build 就出現 需要 GLIBC_2.14 的錯誤。
/bin/sh: GLIBC_2.14 not found

因為 ubuntu 10.04 的 glibc 是 2.10

follow 這一篇..http://blog.csdn.net/cpplang/article/details/8462768

就是 download source, built 然後指定 ld path

所以變成 build glibc_2.14.

一樣 download glibc_2.14, configure & make .. 出現問題..
說是 awk 的 regulator expression error

這是 mawk 的問題,換成 gawk 就 OK.
換..
In file included from ../sysdeps/unix/sysv/linux/syslog.c:10:
../misc/syslog.c: In function ‘__vsyslog_chk’:
../misc/syslog.c:123: sorry, unimplemented: inlining failed in call to ‘syslog’: function body not available
../misc/syslog.c:155: sorry, unimplemented: called from here
說這是 ubuntu 的問題。變更 build option 就可以....
http://ubuntuforums.org/archive/index.php/t-1001811.html

所以 configure 時加上 CFLAGS..
CFLAGS="-O2 -U_FORTIFY_SOURCE -fno-stack-protector" 

也就是..
cd build
CFLAGS="-O2 -U_FORTIFY_SOURCE -fno-stack-protector" ../configure --prefix=/opt/glibc-2.14
make

就 OK 了。


ref: 回到 build... 先是要找到是誰要用 GLIBC_2.14...
fail log 是:
host StaticLib: libclangStaticAnalyzerFrontend (/home/charles-chang/cyanogen/Team-Hydra/out/host/linux-x86/obj
/STATIC_LIBRARIES/libclangStaticAnalyzerFrontend_intermediates/libclangStaticAnalyzerFrontend.a)
prebuilts/tools/gcc-sdk/ar crsP  /home/charles-chang/cyanogen/Team-Hydra/out/host/linux-x86/obj/STATIC_LIBRARIES
/libclangStaticAnalyzerFrontend_intermediates/libclangStaticAnalyzerFrontend.a /home/charles-chang/cyanogen/Team-Hydra/out
/host/linux-x86/obj/STATIC_LIBRARIES/libclangStaticAnalyzerFrontend_intermediates/AnalysisConsumer.o /home/charles-chang/cyanogen
/Team-Hydra/out/host/linux-x86/obj/STATIC_LIBRARIES/libclangStaticAnalyzerFrontend_intermediates/CheckerRegistration.o 
/home/charles-chang/cyanogen/Team-Hydra/out/host/linux-x86/obj/STATIC_LIBRARIES/libclangStaticAnalyzerFrontend_intermediates
/FrontendActions.o
  CC      scripts/mod/empty.o
/bin/sh: GLIBC_2.14 not found (required by /home/charles-chang/cyanogen/Team-Hydra/prebuilt/linux-x86/toolchain/linaro-
arm-cortex-a8/bin/arm-cortex_a8-linux-gnueabi-gcc) -I/home/charles-chang/cyanogen/Team-Hydra/kernel/htc/msm8660/arch/arm/include 
-Iarch/arm/include/generated -Iinclude  -I/home/charles-chang/cyanogen/Team-Hydra/kernel/htc/msm8660/include -include 
include/generated/autoconf.h  -I/home/charles-chang/cyanogen/Team-Hydra/kernel/htc/msm8660/scripts/mod -Iscripts/mod 
-D__KERNEL__ -mlittle-endian   -I/home/charles-chang/cyanogen/Team-Hydra/kernel/htc/msm8660/arch/arm/mach-msm/include -Wall 
-Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-
security -fno-delete-null-pointer-checks -Wno-unused-variable -O3 -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables 
-D__LINUX_ARM_ARCH__=7 -march=armv5t -Wa,-march=armv7-a -msoft-float -Uarm -fomit-frame-pointer  -fgcse-lm -fgcse-sm -fsched-
spec-load -fforce-addr -ffast-math -fsingle-precision-constant -mtune=cortex-a8 -march=armv7-a -mfpu=neon -ftree-vectorize 
-funswitch-loops -fgcse-lm -fgcse-sm -fsched-spec-load -fforce-addr -ffast-math -fsingle-precision-constant -mtune=cortex-a8 
-marm -march=armv7-a -mfpu=neon -ftree-vectorize -mvectorize-with-neon-quad -D"KBUILD_STR(s)=#s" 
-D"KBUILD_BASENAME=KBUILD_STR(empty)"  -D"KBUILD_MODNAME=KBUILD_STR(empty)" -c -o scripts/mod/empty.o /home/charles-
chang/cyanogen/Team-Hydra/kernel/htc/msm8660/scripts/mod/empty.c;    scripts/basic/fixdep scripts/mod/.empty.o.d scripts/mod
/empty.o /home/charles-chang/cyanogen/Team-Hydra/kernel/htc/msm8660/scripts/gcc-wrapper.py: not found
make[4]: *** [scripts/mod/empty.o] Error 1
make[3]: *** [scripts/mod] Error 2
make[2]: *** [scripts] Error 2
make[2]: *** Waiting for unfinished jobs....

?? 所以是 ? linaro ?

所以試著 run 一下 linaro 的 arm-cortex_a8-linux-genuabi-gcc
果然出現..
./arm-cortex_a8-linux-gnueabi-gcc: /lib/libc.so.6: version `GLIBC_2.14' not found 
(required by ./arm-cortex_a8-linux-gnueabi-gcc)

沒有留言:

標籤

網誌存檔