配置msp430-unknown-none不支持 [英] Configuration msp430-unknown-none not supported

查看:276
本文介绍了配置msp430-unknown-none不支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何摆脱我得到的错误 make TARGET = sky



错误1: ( .text 不适合区域 rom



<$
1.c:14:57:warning:'last_informer'已定义但未使用[-Wunused-variable]
/ usr / lib / gcc / msp430 / 4.6.3 /../../../../ msp430 / bin / ld:1.sky section`.text'不适合区域'rom'
/usr/lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld:在[000000000000ffeff0,000000000000ffff]加载的.vectors部分重叠部分.text在[0000000000004000, 00000000000110eb]
/usr/lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld:region'rom'溢出6342字节
/在函数`__do_copy_data'中:
/build/buildd/gcc-msp430-4.6.3~mspgcc- 20120406 /./gcc-4.6.3/gcc/config/msp430/crt0.S:195:重新定位被截断为适合:R_MSP430_16_BYTE针对在1.sky * ABS *节中定义的符号__data_load_start
obj_sky / contiki-sky-main.o:在函数`main'中:
contiki-sky-main.c :( .init9 + 0x76):重定位被截断为适合:R_MSP430_16针对符号'memset'在/usr/lib/gcc/msp430/4.6.3/../../../../msp430/lib/mmpy-16/libc.a(memset.o)的.text部分定义
contiki-sky-main.c :( .init9 + 0x82):重定位被截断为适合:R_MSP430_16针对/usr/lib/gcc/msp430/4.6.3/../中.text段中定义的符号memcpy。 ./../../msp430/lib/mmpy-16/libc.a(memcpy.o)
contiki-sky-main.c :( .init9 + 0x8c):重定位被截断为适合:R_MSP430_16_BYTE针对`no symbol'
contiki-sky-main.c :( .init9 + 0x90):重定位被截断为适合:R_MSP430_16针对/usr/lib/gcc/msp430/4.6中.text段中定义的符号`printf' .3 /../../../../ msp430 / lib / mmpy-16 / libc.a(printf.o)
contiki-sky-main.c :( .init9 + 0xa0):重定位被截断为适合:R_MSP430_16_BYTE针对`no symbol'
contiki-sky-main.c :( .init9 + 0xa4):重定位被截断为适合:R_MSP430_16针对符号'printf'd在/usr/lib/gcc/msp430/4.6.3/../../../../msp430/lib/mmpy-16/libc.a(printf.o)中的.text节中定义
contiki-sky-main.c :( .init9 + 0xb8):重定位被截断为适合:R_MSP430_16_BYTE针对`no symbol'
contiki-sky-main.c :( .init9 + 0xbc):重定位被截断为适合:R_MSP430_16针对/usr/lib/gcc/msp430/4.6.3 /../../../../ msp430 / lib / mmpy-16 / libc.a中的.text节中定义的符号`printf' printf.o)
contiki-sky-main.c :( .init9 + 0xd8):重定位被截断为适合:R_MSP430_16针对/usr/lib/gcc/msp430/4.6中.text段落中定义的符号memset .3 /../../../../ msp430 / lib / mmpy-16 / libc.a(memset.o)
contiki-sky-main.c :( .init9 + 0x116):输出中省略了额外的重定位溢出
collect2:ld返回1退出状态$ b $ make:*** [1.sky]错误1

Makefile:

  dINES + = PROJECT_CONF_H = \project-conf。 h \
CONTIKI_PROJECT = 1 2
LIBS + =节点ID
全部:$(CONTIKI_PROJECT)

CONTIKI = ../ ..

WITH_UIP6 = 1
UIP_CONF_IPV6 = 1

CFLAGS + = -DUIP_CONF_IPV6_RPL -DUIP_CONF_IPV6 -DWITH_UIP6
TARGET_LIBFILES + = - lm
ifdef PERIOD
CFLAGS = -DPERIOD = $(PERIOD)
endif

include $(CONTIKI)/Makefile.include

我正在使用mspgcc版本4.6.3。有些网站建议使用mspgcc版本4.7来摆脱 ERROR 1

按照上的说明操作https://github.com/contiki-os/contiki/wiki/MSP430X 我得到了以下错误:

错误2 :(配置msp430-unknown - 没有支持)

 检查是否声明了次数...是
检查是否声明了sigaltstack ...是
检查是否宣布madvise ...是
检查struct tms ...是
检查clock_t ...是
检查mkdir是否需要一个参数... no
***配置msp430-unknown-none不支持$ b $ make [1]:*** [configure-gcc]错误1
make [1]:离开目录`/ home / taare / tmp / gcc-4.7.0-msp430'

正在尝试更新mspgcc的正确方法摆脱 ERROR 1



如果是,我该如何解决 ERROR 2



如果不是,我该如何解决错误1

解决方案

回答我自己的问题以供将来的用户使用。



如果部分'.text'不适合区域rom 错误仍然存​​在,那么可以通过以下方式解决:


  1. 使用任何其他contiki平台根据收音机的需要。 尝试将您的 mspgcc 更新为最新版本。 [这可能并不总能解决你的问题。在其他一些论坛上,我阅读了这个建议,所以我在这里列出了它。]



How do I get rid of the error I got on make TARGET=sky?

ERROR 1: (.text will not fit in region rom)

1.c: At top level:
1.c:14:57: warning: ‘last_informer’ defined but not used [-Wunused-variable]
/usr/lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld: 1.sky section `.text' will not fit in region `rom'
/usr/lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld: section .vectors loaded at [000000000000ffe0,000000000000ffff] overlaps section .text loaded at [0000000000004000,00000000000110eb]
/usr/lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld: region `rom' overflowed by 6342 bytes
/usr/lib/gcc/msp430/4.6.3/mmpy-16/libcrt0.a(_copy_data.o): In function `__do_copy_data':
/build/buildd/gcc-msp430-4.6.3~mspgcc-20120406/./gcc-4.6.3/gcc/config/msp430/crt0.S:195: relocation truncated to fit: R_MSP430_16_BYTE against symbol `__data_load_start' defined in *ABS* section in 1.sky
obj_sky/contiki-sky-main.o: In function `main':
contiki-sky-main.c:(.init9+0x76): relocation truncated to fit: R_MSP430_16 against symbol `memset' defined in .text section in /usr/lib/gcc/msp430/4.6.3/../../../../msp430/lib/mmpy-16/libc.a(memset.o)
contiki-sky-main.c:(.init9+0x82): relocation truncated to fit: R_MSP430_16 against symbol `memcpy' defined in .text section in /usr/lib/gcc/msp430/4.6.3/../../../../msp430/lib/mmpy-16/libc.a(memcpy.o)
contiki-sky-main.c:(.init9+0x8c): relocation truncated to fit: R_MSP430_16_BYTE against `no symbol'
contiki-sky-main.c:(.init9+0x90): relocation truncated to fit: R_MSP430_16 against symbol `printf' defined in .text section in /usr/lib/gcc/msp430/4.6.3/../../../../msp430/lib/mmpy-16/libc.a(printf.o)
contiki-sky-main.c:(.init9+0xa0): relocation truncated to fit: R_MSP430_16_BYTE against `no symbol'
contiki-sky-main.c:(.init9+0xa4): relocation truncated to fit: R_MSP430_16 against symbol `printf' defined in .text section in /usr/lib/gcc/msp430/4.6.3/../../../../msp430/lib/mmpy-16/libc.a(printf.o)
contiki-sky-main.c:(.init9+0xb8): relocation truncated to fit: R_MSP430_16_BYTE against `no symbol'
contiki-sky-main.c:(.init9+0xbc): relocation truncated to fit: R_MSP430_16 against symbol `printf' defined in .text section in /usr/lib/gcc/msp430/4.6.3/../../../../msp430/lib/mmpy-16/libc.a(printf.o)
contiki-sky-main.c:(.init9+0xd8): relocation truncated to fit: R_MSP430_16 against symbol `memset' defined in .text section in /usr/lib/gcc/msp430/4.6.3/../../../../msp430/lib/mmpy-16/libc.a(memset.o)
contiki-sky-main.c:(.init9+0x116): additional relocation overflows omitted from the output
collect2: ld returned 1 exit status
make: *** [1.sky] Error 1

Makefile:

dINES+=PROJECT_CONF_H=\"project-conf.h\"
CONTIKI_PROJECT = 1 2 
LIBS += node-id
all: $(CONTIKI_PROJECT)

CONTIKI = ../..

WITH_UIP6=1
UIP_CONF_IPV6=1

CFLAGS+= -DUIP_CONF_IPV6_RPL -DUIP_CONF_IPV6 -DWITH_UIP6
TARGET_LIBFILES+=-lm
ifdef PERIOD
CFLAGS=-DPERIOD=$(PERIOD)
endif

include $(CONTIKI)/Makefile.include

I am using mspgcc version 4.6.3. Some sites suggested to use mspgcc version 4.7 to get rid of ERROR 1.

While following the instructions on https://github.com/contiki-os/contiki/wiki/MSP430X I got the following error:

ERROR 2: (Configuration msp430-unknown-none not supported)

checking whether times is declared... yes
checking whether sigaltstack is declared... yes
checking whether madvise is declared... yes
checking for struct tms... yes
checking for clock_t... yes
checking if mkdir takes one argument... no
*** Configuration msp430-unknown-none not supported
make[1]: *** [configure-gcc] Error 1
make[1]: Leaving directory `/home/taare/tmp/gcc-4.7.0-msp430'

Was trying to update mspgcc a correct way of getting rid of ERROR 1?

If yes, how do I solve ERROR 2?

If no, how do I solve ERROR 1?

解决方案

Answering my own question for future users.

Even after optimizing the code if section '.text' will not fit in region rom error persists then it can be solved in following ways:

  1. Use any of the other contiki platforms according to the radio needed.

  2. Try updating your mspgcc to latest version. [This might not always solve your problem. On some other forums I read this suggestion,so I have listed it here.]

这篇关于配置msp430-unknown-none不支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆