2017-02-03 6 views
0

make TARGET=skyのエラーを取り除くにはどうすればよいですか?設定msp430-unknown-noneがサポートされていません

ERROR 1:(.text地域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 

私はmspgccバージョン4.6.3を使用しています。一部のサイトでは、mspgccバージョン4.7を使用してERROR 1を取り除くことを提案していました。

https://github.com/contiki-os/contiki/wiki/MSP430Xの指示に従いながら、私は次のエラーを得た:

ERROR 2:(設定MSP430-不明-どれもサポートされていません)

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' 

は、取得のmspgcc正しい方法を更新しようとしていましたERROR 1を削除しますか?

「はい」の場合は、ERROR 2をどのように解決すればよいですか?

いいえ、どうすればERROR 1を解決できますか?

+0

あなたがここにMSP430 4.6を得ることができます。http://simonduq.github.io/resources/mspgcc-4.7.2-compiled。 tar.bz2 – kfx

+1

あなたの問題は助けにならないでしょう。フラッシュ領域から6342バイトです。あなたがSkyのために構築しているものを構築する方法はありません。別のmsp430プラットフォームを選択してください。 – kfx

+0

ありがとう!他のmsp430プラットフォームとは何ですか?またはメモリ制約を満たすためにプログラムをネイティブに実行する必要がありますか? –

答えて

0

将来のユーザーのために私自身の質問に答える。

でもsection '.text' will not fit in region romエラーが、それは次の方法で解決することができる持続する場合、コードの最適化後:

  1. 使用に必要な無線に従ってother contiki platformsのいずれか。

  2. mspgccを最新バージョンにアップデートしてください。 [これはあなたの問題を常に解決するとは限りません。いくつかの他のフォーラムでは、私はこの提案を読んで、私はそれをここに列挙されている]

関連する問題