原因
wheezy是2.13,编译android4.4 需要2.14的,报错如下:
rebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8-linaro/bin/arm-linux-androideabi-gcc: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8-linaro/bin/arm-linux-androideabi-gcc)
所以需要升级glibc
出现问题:
出现这个是因为在/etc/apt/sources.list中没有添加testing的源
E: The value 'testing' is invalid for APT::Default-Release as such a release is not available in the sources
升级步骤:
1 添加163的testing的源
#testing
deb http://mirrors.163.com/debian/ testing contrib main non-free
deb-src http://mirrors.163.com/debian/ testing contrib main non-free
2 刷新源
jb@e3v2:~$ sudo apt-get update
3 升级glibc
jb@e3v2:~$ sudo apt-get -t testing install libc6-dev
The following extra packages will be installed:
libc-dev-bin libc6 libc6:i386 libc6-dev-i386 libc6-i386 libc6-i686:i386
locales
Suggested packages:
glibc-doc glibc-doc:i386 locales:i386
The following packages will be upgraded:
libc-dev-bin libc6 libc6:i386 libc6-dev libc6-dev-i386 libc6-i386
libc6-i686:i386 locales
8 upgraded, 0 newly installed, 0 to remove and 1320 not upgraded.
安装过程中会提示有些服务会重启:
选择“yes”后
Restarting services possibly affected by the upgrade:
exim4: restarting...done.
cron: restarting...done.
atd: restarting...done.
Services restarted successfully.
Setting up libc6:i386 (2.18-4) ...
Checking for services that may need to be restarted...
Checking init scripts...
Restarting services possibly affected by the upgrade:
exim4: restarting...done.
cron: restarting...done.
atd: restarting...done.
Services restarted successfully.
Setting up locales (2.18-4) ...
Installing new version of config file /etc/locale.alias ...
Generating locales (this might take a while)...
en_US.UTF-8... done
Generation complete.
(Reading database ... 135658 files and directories currently installed.)
Preparing to replace libc6-i686:i386 2.13-38+deb7u1 (using .../libc6-i686_2.18-4_i386.deb) ...
Unpacking replacement libc6-i686:i386 ...
Setting up libc6-i386 (2.18-4) ...
Setting up libc-dev-bin (2.18-4) ...
Setting up libc6-dev:amd64 (2.18-4) ...
Setting up libc6-dev-i386 (2.18-4) ...
Setting up libc6-i686:i386 (2.18-4) ...