libc编译及问题解决
来源:互联网 发布:mac系统镜像下载 编辑:程序博客网 时间:2024/06/06 21:04
目标:
编译出libc库文件,进行替换验证;
下载源码:
https://www.gnu.org/software/libc/
编译:
mkdir libc
cd libc
tar -xzf glibc-2.18.tar.gz
cd glibc-2.18/
mkdir build
cd build
../configure CC=arm-cortex_a9-linux-gnueabi-gcc CXX=arm-cortex_a9-linux-gnueabi-g++ --host=arm-linux-gnueabi --build=i686-pc-linux-gnu --prefix=$ROOTDIR/out --enable-add-ons=nptl,ports --with-headers=$ROOTDIR/headers/include --enable-kernel=3.4.39 libc_cv_forced_unwind=yes libc_cv_ctors_header=yes libc_cv_c_cleanup=yes --disable-oldest-abi
make
make install
编译过程中问题及解决:
问题1:
configure: error: Old ABI no longer supported
解决:
--host=arm-linux-gnueabi
(
这里如果为--host=arm-linux将会报上面的错误,因为
glibc-2.18/ports/sysdeps/arm/preconfigure中要求--host=arm-linux-gnueabi
5 arm*)
6 case $config_os in
7 linux-gnueabi*)
8 # If the compiler enables unwind tables by default, this causes
9 # problems with undefined symbols in -nostdlib link tests. To
10 # avoid this, add -fno-unwind-tables here and remove it in
11 # sysdeps/unix/sysv/linux/arm/configure.in after those tests have
12 # been run.
13 if test "${CFLAGS+set}" != "set"; then
14 CFLAGS="-g -O2"
15 fi
16 CFLAGS="$CFLAGS -fno-unwind-tables"
17 ;;
18 linux*)
19 as_fn_error $? "Old ABI no longer supported" "$LINENO" 5
20 ;;
)
- libc编译及问题解决
- 编译安装lnmp及问题解决
- gdbm编译安装及问题解决
- APUE源码编译及问题解决
- Android 源码编译 libc++.so
- linux下编译C/C++静态链接libpthread及libc的方法
- linux:/lib/libc.so.6: version `glibc_2.7′ not found及编译glibc
- 无法打开文件"LIBC.lib"问题解决
- 无法打开文件"LIBC.lib"问题解决
- 无法打开文件"LIBC.lib"问题解决
- 无法打开文件"LIBC.lib"问题解决
- 无法打开文件"LIBC.lib"问题解决
- 无法打开文件"LIBC.lib"问题解决
- 无法打开文件"LIBC.lib"问题解决
- 无法打开文件"LIBC.lib"问题解决
- Ubuntu编译android源码出错及问题解决
- gdbm-1.10编译安装及问题解决
- CentOS编译安装perl、python及问题解决
- javascript高级程序设计学笔记——第五章 引用类型
- android手机字体库相关问题深入剖析
- 如果看了此文你还不懂傅里叶变换,那就过来掐死我吧【完整版】
- SpringMVC 中的Interceptor 拦截器---学习笔记
- combobox输入中文而对应的hidden域的value值没有及时修改的问题
- libc编译及问题解决
- spark操作mysql数据库
- 类似酷狗锁屏时页面显示在解锁页面之上的实现方法
- Same Tree
- Zookeeper学习概览
- C语言随机数函数
- 关于fl2440开发板Linux内核添加USB驱动的问题
- 165. Compare Version Numbers
- 仿IOS时间选择,五级联动,可以根据自己爱好进行修改(公司需要这样的,效果好)