天嵌 ARM开发社区

 找回密码
 注册
查看: 6707|回复: 5

编译busybox的时候出现很多头文件找不到,是EABI4.3.3缺少文件吗

[复制链接]
一无所有 发表于 2013-6-5 17:56:09 | 显示全部楼层 |阅读模式
[root@localhost busybox-1.13.0]# make install
  CC      applets/applets.o
In file included from include/libbb.h:13,
                 from include/busybox.h:10,
                 from applets/applets.c:11:
include/platform.h:120:23: error: byteswap.h: No such file or directory
include/platform.h:121:21: error: endian.h: No such file or directory
include/platform.h:127:7: warning: "__BYTE_ORDER" is not defined
include/platform.h:127:23: warning: "__BIG_ENDIAN" is not defined
include/platform.h:166:24: error: arpa/inet.h: No such file or directory
include/platform.h:209:22: error: features.h: No such file or directory
In file included from /opt/EmbedSky/EABI4.3.3/bin/../lib/gcc/arm-none-eabi/4.3.3/../../../../arm-none-eabi/include/dirent.h:6,
                 from include/libbb.h:16,
                 from include/busybox.h:10,
                 from applets/applets.c:11:
/opt/EmbedSky/EABI4.3.3/bin/../lib/gcc/arm-none-eabi/4.3.3/../../../../arm-none-eabi/include/sys/dirent.h:10:2: error: #error "<dirent.h> not supported"
In file included from include/busybox.h:10,
                 from applets/applets.c:11:
include/libbb.h:20:19: error: netdb.h: No such file or directory
include/libbb.h:28:22: error: sys/poll.h: No such file or directory
include/libbb.h:29:23: error: sys/ioctl.h: No such file or directory
include/libbb.h:30:22: error: sys/mman.h: No such file or directory
include/libbb.h:31:24: error: sys/socket.h: No such file or directory
In file included from include/libbb.h:36,
                 from include/busybox.h:10,
                 from applets/applets.c:11:
/opt/EmbedSky/EABI4.3.3/bin/../lib/gcc/arm-none-eabi/4.3.3/../../../../arm-none-eabi/include/termios.h:4:25: error: sys/termios.h: No such file or directory
In file included from include/busybox.h:10,
                 from applets/applets.c:11:
include/libbb.h:48:20: error: mntent.h: No such file or directory
include/libbb.h:52:24: error: sys/statfs.h: No such file or directory
include/libbb.h:75:21: error: shadow.h: No such file or directory
In file included from include/busybox.h:10,
                 from applets/applets.c:11:
include/libbb.h:312: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
include/libbb.h:313: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
include/libbb.h:403: error: 'SOCK_STREAM' undeclared here (not in a function)
include/libbb.h:404: error: 'SOCK_DGRAM' undeclared here (not in a function)
include/libbb.h:405: error: 'SOCK_RDM' undeclared here (not in a function)
include/libbb.h:406: error: 'SOCK_SEQPACKET' undeclared here (not in a function)include/libbb.h:407: error: 'SOCK_RAW' undeclared here (not in a function)
include/libbb.h:410: error: 'AF_UNSPEC' undeclared here (not in a function)
include/libbb.h:411: error: 'AF_INET' undeclared here (not in a function)
include/libbb.h:412: error: 'AF_INET6' undeclared here (not in a function)
include/libbb.h:413: error: 'AF_UNIX' undeclared here (not in a function)
include/libbb.h:427: warning: 'struct sockaddr' declared inside parameter list
include/libbb.h:427: warning: its scope is only this definition or declaration,
which is probably not what you want
include/libbb.h:429: warning: 'struct sockaddr' declared inside parameter list
include/libbb.h:431: warning: 'struct sockaddr' declared inside parameter list
include/libbb.h:445: error: field 'sa' has incomplete type
include/libbb.h:446: error: field 'sin' has incomplete type
include/libbb.h:448: error: field 'sin6' has incomplete type
include/libbb.h:456: error: field 'sa' has incomplete type
include/libbb.h:457: error: field 'sin' has incomplete type
include/libbb.h:459: error: field 'sin6' has incomplete type
include/libbb.h:504: error: expected declaration specifiers or '...' before 'sa_family_t'
include/libbb.h:505: error: expected declaration specifiers or '...' before 'sa_family_t'
include/libbb.h:648: error: expected declaration specifiers or '...' before 'nfds_t'
include/libbb.h:648: warning: 'struct pollfd' declared inside parameter list
In file included from include/busybox.h:10,
                 from applets/applets.c:11:
include/libbb.h:1006: warning: 'struct mntent' declared inside parameter list
include/libbb.h:1010: error: expected ')' before 'speed'
include/libbb.h:1011: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'tty_value_to_baud'
include/libbb.h:1145: warning: 'struct termios' declared inside parameter list
include/libbb.h:1222: error: expected specifier-qualifier-list before 'DIR'
make[1]: *** [applets/applets.o] Error 1
make: *** [applets] Error 2
[root@localhost busybox-1.13.0]#
wbz073 发表于 2013-6-5 18:04:51 | 显示全部楼层
这么多错误,你是网上下载的吗,有没有./configure配置啊
亚瑟王 发表于 2013-6-5 18:06:57 | 显示全部楼层
make menuconfig之后再make,再make install
 楼主| 一无所有 发表于 2013-6-5 18:21:37 | 显示全部楼层
wbz073 发表于 2013-6-5 18:04
这么多错误,你是网上下载的吗,有没有./configure配置啊

恩,从手册上的网址上下载的,不是光盘中的busybox,有做了make menuconfig,然后再make的,看错误好像很多都是头文件找不到,是不是交叉编译器EABI不健全,少了文件了?
 楼主| 一无所有 发表于 2013-6-5 18:22:50 | 显示全部楼层
亚瑟王 发表于 2013-6-5 18:06
make menuconfig之后再make,再make install

一样的错误,只是出现2遍而已
我一直感觉是交叉编译器的问题,有这个可能吗?交叉编译器少了头文件,所以编译的时候找不到?
亚瑟王 发表于 2013-6-6 16:08:24 | 显示全部楼层
一无所有 发表于 2013-6-5 18:21
恩,从手册上的网址上下载的,不是光盘中的busybox,有做了make menuconfig,然后再make的,看错误好像很 ...

网上下载的吗?编译出错很正常了,建议使用天嵌科技提供的busybox源码镜像编译。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2024-7-3 04:27 , Processed in 1.031250 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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