Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
RT-Thread一般讨论
求助
发布于 2010-01-18 09:50:54 浏览:5531
订阅该版
最近在学习SAM7X,通过网络搜索到RT-THREAD这个操作系统,通过SVN CHECKOUT下来,在KEIL下编译时出现如下错误提示: Build target 'RT-Thread/AT91SAM7X' compiling init.c... ..\..
et\lwip\src\include\ipv4\lwip/ip.h(130): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed ..\..
et\lwip\src\include\ipv4\lwip/ip.h(131): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed ..\..
et\lwip\src\include\ipv4\lwip/igmp.h(91): error: #1031: Definition of "struct ip_addr" in packed "struct igmp_msg" must be __packed ..\..
et\lwip\src\include
etif/etharp.h(79): error: #1031: Definition of "struct eth_addr" in packed "struct eth_hdr" must be __packed ..\..
et\lwip\src\include
etif/etharp.h(80): error: #1031: Definition of "struct eth_addr" in packed "struct eth_hdr" must be __packed ..\..
et\lwip\src\include
etif/etharp.h(120): error: #1031: Definition of "struct eth_addr" in packed "struct etharp_hdr" must be __packed ..\..
et\lwip\src\include
etif/etharp.h(121): error: #1031: Definition of "struct ip_addr2" in packed "struct etharp_hdr" must be __packed ..\..
et\lwip\src\include
etif/etharp.h(122): error: #1031: Definition of "struct eth_addr" in packed "struct etharp_hdr" must be __packed ..\..
et\lwip\src\include
etif/etharp.h(123): error: #1031: Definition of "struct ip_addr2" in packed "struct etharp_hdr" must be __packed compiling netif.c... ..\..
et\lwip\src\include\ipv4\lwip/ip.h(130): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed ..\..
et\lwip\src\include\ipv4\lwip/ip.h(131): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed ..\..
et\lwip\src\include\ipv4\lwip/igmp.h(91): error: #1031: Definition of "struct ip_addr" in packed "struct igmp_msg" must be __packed ..\..
et\lwip\src\include
etif/etharp.h(79): error: #1031: Definition of "struct eth_addr" in packed "struct eth_hdr" must be __packed ..\..
et\lwip\src\include
etif/etharp.h(80): error: #1031: Definition of "struct eth_addr" in packed "struct eth_hdr" must be __packed ..\..
et\lwip\src\include
etif/etharp.h(120): error: #1031: Definition of "struct eth_addr" in packed "struct etharp_hdr" must be __packed ..\..
et\lwip\src\include
etif/etharp.h(121): error: #1031: Definition of "struct ip_addr2" in packed "struct etharp_hdr" must be __packed ..\..
et\lwip\src\include
etif/etharp.h(122): error: #1031: Definition of "struct eth_addr" in packed "struct etharp_hdr" must be __packed ..\..
et\lwip\src\include
etif/etharp.h(123): error: #1031: Definition of "struct ip_addr2" in packed "struct etharp_hdr" must be __packed compiling pbuf.c... ..\..
et\lwip\src\include\ipv4\lwip/ip.h(130): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed ..\..
et\lwip\src\include\ipv4\lwip/ip.h(131): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed ..\..
et\lwip\src\include\ipv4\lwip/igmp.h(91): error: #1031: Definition of "struct ip_addr" in packed "struct igmp_msg" must be __packed compiling raw.c... ..\..
et\lwip\src\include\ipv4\lwip/ip.h(130): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed ..\..
et\lwip\src\include\ipv4\lwip/ip.h(131): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed compiling sys.c... ..\..
et\lwip\src\include\ipv4\lwip/igmp.h(91): error: #1031: Definition of "struct ip_addr" in packed "struct igmp_msg" must be __packed compiling tcp.c... ..\..
et\lwip\src\include\ipv4\lwip/ip.h(130): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed ..\..
et\lwip\src\include\ipv4\lwip/ip.h(131): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed compiling tcp_in.c... ..\..
et\lwip\src\include\ipv4\lwip/ip.h(130): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed ..\..
et\lwip\src\include\ipv4\lwip/ip.h(131): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed compiling tcp_out.c... ..\..
et\lwip\src\include\ipv4\lwip/ip.h(130): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed ..\..
et\lwip\src\include\ipv4\lwip/ip.h(131): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed compiling udp.c... ..\..
et\lwip\src\include\ipv4\lwip/ip.h(130): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed ..\..
et\lwip\src\include\ipv4\lwip/ip.h(131): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed compiling icmp.c... ..\..
et\lwip\src\include\ipv4\lwip/ip.h(130): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed ..\..
et\lwip\src\include\ipv4\lwip/ip.h(131): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed compiling igmp.c... ..\..
et\lwip\src\include\ipv4\lwip/igmp.h(91): error: #1031: Definition of "struct ip_addr" in packed "struct igmp_msg" must be __packed ..\..
et\lwip\src\include\ipv4\lwip/ip.h(130): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed ..\..
et\lwip\src\include\ipv4\lwip/ip.h(131): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed compiling ip.c... ..\..
et\lwip\src\include\ipv4\lwip/ip.h(130): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed ..\..
et\lwip\src\include\ipv4\lwip/ip.h(131): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed ..\..
et\lwip\src\include\ipv4\lwip/igmp.h(91): error: #1031: Definition of "struct ip_addr" in packed "struct igmp_msg" must be __packed compiling ip_frag.c... ..\..
et\lwip\src\include\ipv4\lwip/ip.h(130): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed ..\..
et\lwip\src\include\ipv4\lwip/ip.h(131): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed compiling api_lib.c... ..\..
et\lwip\src\include\ipv4\lwip/igmp.h(91): error: #1031: Definition of "struct ip_addr" in packed "struct igmp_msg" must be __packed ..\..
et\lwip\src\include\ipv4\lwip/ip.h(130): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed ..\..
et\lwip\src\include\ipv4\lwip/ip.h(131): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed compiling api_msg.c... ..\..
et\lwip\src\include\ipv4\lwip/igmp.h(91): error: #1031: Definition of "struct ip_addr" in packed "struct igmp_msg" must be __packed ..\..
et\lwip\src\include\ipv4\lwip/ip.h(130): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed ..\..
et\lwip\src\include\ipv4\lwip/ip.h(131): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed compiling tcpip.c... ..\..
et\lwip\src\include\ipv4\lwip/ip.h(130): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed ..\..
et\lwip\src\include\ipv4\lwip/ip.h(131): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed ..\..
et\lwip\src\include\ipv4\lwip/igmp.h(91): error: #1031: Definition of "struct ip_addr" in packed "struct igmp_msg" must be __packed ..\..
et\lwip\src\include
etif/etharp.h(79): error: #1031: Definition of "struct eth_addr" in packed "struct eth_hdr" must be __packed ..\..
et\lwip\src\include
etif/etharp.h(80): error: #1031: Definition of "struct eth_addr" in packed "struct eth_hdr" must be __packed ..\..
et\lwip\src\include
etif/etharp.h(120): error: #1031: Definition of "struct eth_addr" in packed "struct etharp_hdr" must be __packed ..\..
et\lwip\src\include
etif/etharp.h(121): error: #1031: Definition of "struct ip_addr2" in packed "struct etharp_hdr" must be __packed ..\..
et\lwip\src\include
etif/etharp.h(122): error: #1031: Definition of "struct eth_addr" in packed "struct etharp_hdr" must be __packed ..\..
et\lwip\src\include
etif/etharp.h(123): error: #1031: Definition of "struct ip_addr2" in packed "struct etharp_hdr" must be __packed compiling etharp.c... ..\..
et\lwip\src\include\ipv4\lwip/ip.h(130): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed ..\..
et\lwip\src\include\ipv4\lwip/ip.h(131): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed ..\..
et\lwip\src\include
etif/etharp.h(79): error: #1031: Definition of "struct eth_addr" in packed "struct eth_hdr" must be __packed ..\..
et\lwip\src\include
etif/etharp.h(80): error: #1031: Definition of "struct eth_addr" in packed "struct eth_hdr" must be __packed ..\..
et\lwip\src\include
etif/etharp.h(120): error: #1031: Definition of "struct eth_addr" in packed "struct etharp_hdr" must be __packed ..\..
et\lwip\src\include
etif/etharp.h(121): error: #1031: Definition of "struct ip_addr2" in packed "struct etharp_hdr" must be __packed ..\..
et\lwip\src\include
etif/etharp.h(122): error: #1031: Definition of "struct eth_addr" in packed "struct etharp_hdr" must be __packed ..\..
et\lwip\src\include
etif/etharp.h(123): error: #1031: Definition of "struct ip_addr2" in packed "struct etharp_hdr" must be __packed compiling ethernetif.c... ..\..
et\lwip\src\include\ipv4\lwip/igmp.h(91): error: #1031: Definition of "struct ip_addr" in packed "struct igmp_msg" must be __packed ..\..
et\lwip\src\include\ipv4\lwip/ip.h(130): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed ..\..
et\lwip\src\include\ipv4\lwip/ip.h(131): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed ..\..
et\lwip\src\include
etif/etharp.h(79): error: #1031: Definition of "struct eth_addr" in packed "struct eth_hdr" must be __packed ..\..
et\lwip\src\include
etif/etharp.h(80): error: #1031: Definition of "struct eth_addr" in packed "struct eth_hdr" must be __packed ..\..
et\lwip\src\include
etif/etharp.h(120): error: #1031: Definition of "struct eth_addr" in packed "struct etharp_hdr" must be __packed ..\..
et\lwip\src\include
etif/etharp.h(121): error: #1031: Definition of "struct ip_addr2" in packed "struct etharp_hdr" must be __packed ..\..
et\lwip\src\include
etif/etharp.h(122): error: #1031: Definition of "struct eth_addr" in packed "struct etharp_hdr" must be __packed ..\..
et\lwip\src\include
etif/etharp.h(123): error: #1031: Definition of "struct ip_addr2" in packed "struct etharp_hdr" must be __packed compiling loopif.c... ..\..
et\lwip\src\include\ipv4\lwip/ip.h(130): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed ..\..
et\lwip\src\include\ipv4\lwip/ip.h(131): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed compiling sys_arch_init.c... ..\..
et\lwip\src\include\ipv4\lwip/igmp.h(91): error: #1031: Definition of "struct ip_addr" in packed "struct igmp_msg" must be __packed ..\..
et\lwip\src\include\ipv4\lwip/ip.h(130): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed ..\..
et\lwip\src\include\ipv4\lwip/ip.h(131): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed ..\..
et\lwip\src\include
etif/etharp.h(79): error: #1031: Definition of "struct eth_addr" in packed "struct eth_hdr" must be __packed ..\..
et\lwip\src\include
etif/etharp.h(80): error: #1031: Definition of "struct eth_addr" in packed "struct eth_hdr" must be __packed ..\..
et\lwip\src\include
etif/etharp.h(120): error: #1031: Definition of "struct eth_addr" in packed "struct etharp_hdr" must be __packed ..\..
et\lwip\src\include
etif/etharp.h(121): error: #1031: Definition of "struct ip_addr2" in packed "struct etharp_hdr" must be __packed ..\..
et\lwip\src\include
etif/etharp.h(122): error: #1031: Definition of "struct eth_addr" in packed "struct etharp_hdr" must be __packed ..\..
et\lwip\src\include
etif/etharp.h(123): error: #1031: Definition of "struct ip_addr2" in packed "struct etharp_hdr" must be __packed compiling sockets.c... ..\..
et\lwip\src\include\ipv4\lwip/igmp.h(91): error: #1031: Definition of "struct ip_addr" in packed "struct igmp_msg" must be __packed ..\..
et\lwip\src\include\ipv4\lwip/ip.h(130): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed ..\..
et\lwip\src\include\ipv4\lwip/ip.h(131): error: #1031: Definition of "struct ip_addr" in packed "struct ip_hdr" must be __packed compiling memp_tiny.c... memp_tiny.c: Error: #5: cannot open source input file "..\..
et\lwip\src\core\memp_tiny.c": No such file or directory Target not created 因为对LWIP还没有深入研究,看了以前的帖子也没有相关的说明,希望版主能够指点迷津,谢谢。
查看更多
7
个回答
默认排序
按发布时间排序
mbbill
2010-01-18
这家伙很懒,什么也没写!
你是用的3.x的UV2工程文件还是MDK4.x的uvproj?
bluebin
2010-01-18
这家伙很懒,什么也没写!
多谢回复,我用的是破解的Keil uVision3,版本号是3.51,打开的是sam7x目录下的uv2工程文件。
mbbill
2010-01-19
这家伙很懒,什么也没写!
uv2的工程在我这里只需要把那个memp_tiny删除,添加memp.c就可以通过编译,可能是我的MDK版本较高的缘故吧,你试试更新最新版的MDK再编译一次呢
bernard
2010-01-19
这家伙很懒,什么也没写!
3.x的版本应该3.7,3.8可以的。3.5可能编译kernel + finsh shell问题不大,但没试过编译lwip。
bluecd
2010-01-19
这家伙很懒,什么也没写!
>uv2的工程在我这里只需要把那个memp_tiny删除,添加memp.c就可以通过编译,可能是我的MDK版本较高的缘故吧,你试试更新最新版的MDK再编译一次呢 --- 我在LPC2460上用这个协议栈时,是删除的memp.c,保留的memp_tiny。应该也没有问题吧。求证一下。
mbbill
2010-01-21
这家伙很懒,什么也没写!
lwip之前升级过,memp_tiny.c被去掉了。
撰写答案
登录
注册新账号
关注者
0
被浏览
5.5k
关于作者
bluebin
这家伙很懒,什么也没写!
提问
1
回答
2
被采纳
0
关注TA
发私信
相关问题
1
有关动态模块加载的一篇论文
2
最近的调程序总结
3
晕掉了,这么久都不见layer2的踪影啊
4
继续K9ii的历程
5
[GUI相关] FreeType 2
6
[GUI相关]嵌入式系统中文输入法的设计
7
20081101 RT-Thread开发者聚会总结
8
嵌入式系统基础
9
linux2.4.19在at91rm9200 上的寄存器设置
10
[转]基于嵌入式Linux的通用触摸屏校准程序
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
使用百度AI助手辅助编写一个rt-thread下的ONVIF设备发现功能的功能代码
2
RT-Thread 发布 EtherKit开源以太网硬件!
3
rt-thread使用cherryusb实现虚拟串口
4
《C++20 图形界面程序:速度与渲染效率的双重优化秘籍》
5
《原子操作:程序世界里的“最小魔法单位”解析》
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
USB
DMA
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
FAL
rt-smart
ESP8266
I2C_IIC
WIZnet_W5500
UART
ota在线升级
PWM
cubemx
freemodbus
flash
packages_软件包
BSP
潘多拉开发板_Pandora
定时器
ADC
GD32
flashDB
socket
中断
Debug
编译报错
msh
SFUD
keil_MDK
rt_mq_消息队列_msg_queue
at_device
ulog
C++_cpp
本月问答贡献
踩姑娘的小蘑菇
7
个答案
3
次被采纳
a1012112796
13
个答案
2
次被采纳
张世争
9
个答案
2
次被采纳
rv666
5
个答案
2
次被采纳
用户名由3_15位
11
个答案
1
次被采纳
本月文章贡献
程序员阿伟
7
篇文章
2
次点赞
hhart
3
篇文章
4
次点赞
大龄码农
1
篇文章
3
次点赞
ThinkCode
1
篇文章
1
次点赞
Betrayer
1
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部