LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1130|回复: 3

求助:Cross-Compiled Linux From Scratch - Embedded失败

[复制链接]
发表于 2010-3-18 00:10:21 | 显示全部楼层 |阅读模式
Cross-Compiled Linux From Scratch - Embedded - Version SVN-0.0.1-20090726-x86
Chapter 6. Constructing Cross-Compile Tools
6.10. uClibc-0.9.30.1


  AR cr lib/libpthread.a
  STRIP -x -R .note -R .comment lib/libpthread.a
install -d /mnt/clfs/lib
install -m 644 lib/lib*-0.9.30.2-svn.so \
                /mnt/clfs/lib
cd lib && tar -cf - *.so.* | tar -xf - -C /mnt/clfs/lib
  HOSTCC extra/scripts/unifdef
extra/scripts/unifdef.c:209: error: conflicting types for 'getline'
/usr/include/stdio.h:651: note: previous declaration of 'getline' was here
make: *** [extra/scripts/unifdef] Error 1
发表于 2010-3-18 21:44:12 | 显示全部楼层
[color="Red"]/usr/include/stdio.h:651: note: previous declaration of 'getline' was here
低级路径问题,好好看手册。

懒得话,直接 http://buildroot.uclibc.org/
回复 支持 反对

使用道具 举报

发表于 2010-3-18 21:58:13 | 显示全部楼层
交叉编译,基本要点:禁止目标系统访问宿主系统,禁止访问宿主系统库、头文件。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-3-19 07:30:56 | 显示全部楼层
谢谢。首次进行,感觉跟LFS是两回事。
想做一个用Busybox作为基本工具,带uClibc或者glibc库,开发工具目录另立,等系统建筑完毕,将开发工具目录简单地删除。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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