busybox arm-linux-gcc 4.4.4库的路径,BUSYBOX编译错误及解决方法总结

编译busybox的组合:

busybox-1.0.0 arm-linux-gcc-2.95.3 (AT91rm9200开发板)

经典参考:

http://www.doczj.com/doc/caf6ca7e31b765ce050814eb.html/downloads/ 下载busy box

http://www.doczj.com/doc/caf6ca7e31b765ce050814eb.html/balloon/releases/v0.7/roots/ 文件系统制作

移植基本过程:

1. 到http://www.doczj.com/doc/caf6ca7e31b765ce050814eb.html/downloads/busybox-1.7.3.tar.bz2下载busybox;

2. 解压busybox1.7.3

tar jxvf busy box-1.7.3.tar.bz2

3. make defconf ig

4. make menuconfig

在[build options]中选择[Build busybox as a static binary]

主要是C库的连接方式,安装目录等。

5. make

6. 创建rootfs目录

7. make install

编译过程可能出现以下错误,解决方法如下:可能会出现的错误:

1. 出现如下错误

CC miscutils/taskset.o

miscutils/taskset.c:17: error: parse error before '*' token

miscutils/taskset.c:18: warning: function declaration isn't a prototype

miscutils/taskset.c: In function `__from_cpuset':

miscutils/taskset.c:22: error: `CPU_SETSIZE' undeclared (first use in this f unction) miscutils/taskset.c:22: error: (Each undeclared identif ier is reported only once

miscutils/taskset.c:22: error: for each function it appears in.)

miscutils/taskset.c:26: warning: implicit declaration of function `CPU_ISSET'

miscutils/taskset.c:26: error: `mask' undeclared (first use in this function)

miscutils/taskset.c: In function `taskset_main':

miscutils/taskset.c:47: error: `cpu_set_t' undeclared (first use in this function)

miscutils/taskset.c:47: error: parse error before "mask"

miscutils/taskset.c:68: warning: implicit declaration of function `CPU_ZERO'

miscutils/taskset.c:68: error: `new_mask' undeclared (first use in this function)

miscutils/taskset.c:69: error: `CPU_SETSIZE' undeclared (first use in this f unction) miscutils/taskset.c:71: warning: implicit declaration of function `CPU_SET'

miscutils/taskset.c:78: error: `mask' undeclared (first use in this function)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值