meghs94 / tinyos-main

Automatically exported from code.google.com/p/tinyos-main
1 stars 0 forks source link

PppRouter too big with 4.6.3 #151

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
PppRouter is too big with msp430-gcc 4.6.3 for telosb.

Since 4.6.3 is the recommended toolchain version for the 2.1.2 release, this 
should be fixed, although that toolchain is still not in the Stanford 
repository.

(And several compile time warnings are added with 4.6.3)

What steps will reproduce the problem?
1. cd apps/PppRouter/
2. make telosb blip

What do you see instead?

mkdir -p build/telosb
    compiling PppRouterC to a telosb binary
ncc -o build/telosb/main.exe  -Os -DRPL_ROUTING -DRPL_STORING_MODE 
-I/opt/tinyos-gitmab2/src/tinyos-main/tos/lib/net/rpl 
-I/opt/tinyos-gitmab2/src/tinyos-main/tos/lib/ppp 
-I/opt/tinyos-gitmab2/src/tinyos-main/tos/lib/fragpool 
-DPPP_HDLC_RX_FRAME_LIMIT=1 -DPPP_HDLC_TX_FRAME_LIMIT=8 -DIN6_PREFIX=\"fec0::\" 
-DBLIP_DERIVE_SHORTADDRS -DCC2420_HW_ACKNOWLEDGEMENTS  
-DCC2420_HW_ADDRESS_RECOGNITION -DPACKET_LINK -DTOSH_DATA_LENGTH=112 
-I/opt/tinyos-gitmab2/src/tinyos-main/tos/lib/net/ 
-I/opt/tinyos-gitmab2/src/tinyos-main/tos/lib/printf/ 
-I/opt/tinyos-gitmab2/src/tinyos-main/support/sdk/c/blip/ 
-I/opt/tinyos-gitmab2/src/tinyos-main/tos/lib/net/blip/ 
-I/opt/tinyos-gitmab2/src/tinyos-main/tos/lib/net/blip/interfaces/  
-I/opt/tinyos-gitmab2/src/tinyos-main/tos/lib/net/blip/nwprog/ 
-I/opt/tinyos-gitmab2/src/tinyos-main/tos/lib/net/blip/shell/ 
-I/opt/tinyos-gitmab2/src/tinyos-main/tos/lib/net/blip/serial/ 
-I/opt/tinyos-gitmab2/src/tinyos-main/tos/lib/net/blip/platform/ 
-I/opt/tinyos-gitmab2/src/tinyos-main/tos/lib/net/
blip/icmp/ -I/opt/tinyos-gitmab2/src/tinyos-main/tos/lib/net/blip/dhcp/ 
/opt/tinyos-gitmab2/src/tinyos-main/support/sdk/c/blip/lib6lowpan/iovec.c 
/opt/tinyos-gitmab2/src/tinyos-main/support/sdk/c/blip/lib6lowpan/in_cksum.c 
/opt/tinyos-gitmab2/src/tinyos-main/support/sdk/c/blip/lib6lowpan/ip_malloc.c 
/opt/tinyos-gitmab2/src/tinyos-main/support/sdk/c/blip/lib6lowpan/utility.c 
/opt/tinyos-gitmab2/src/tinyos-main/tos/lib/net/blip/table.c 
-fnesc-separator=__ -Wall -Wshadow -Wnesc-all -target=telosb 
-fnesc-cfile=build/telosb/app.c -board= -DDEFINED_TOS_AM_GROUP=0x22 
-DIDENT_APPNAME=\"PppRouterC\" -DIDENT_USERNAME=\"jp\" 
-DIDENT_HOSTNAME=\"VirtualBox\" -DIDENT_USERHASH=0x8ae4e946L 
-DIDENT_TIMESTAMP=0x5087ff43L -DIDENT_UIDHASH=0x30c5ac61L  PppRouterC.nc -lm 
/opt/tinyos-gitmab2/src/tinyos-main/tos/platforms/telosa/PlatformHdlcUartC.nc:40
:2: warning: #warning Enabling DMA on UART1RX
/opt/tinyos-gitmab2/src/tinyos-main/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: 
warning: #warning "*** LOW POWER COMMUNICATIONS DISABLED ***"
/opt/tinyos-gitmab2/src/tinyos-main/tos/chips/cc2420/link/PacketLinkC.nc:38:2: 
warning: #warning "*** USING PACKET LINK LAYER"
/opt/tinyos-gitmab2/src/tinyos-main/tos/lib/net/blip/shell/UDPShellP.nc:260: 
warning: call via function pointer
/opt/tinyos-gitmab2/src/tinyos-main/tos/platforms/telosa/PlatformHdlcUartP.nc:18
1: warning: `HdlcUart.receivedByte' called asynchronously from 
`UsartInterrupts.rxDone'
/opt/tinyos-gitmab2/src/tinyos-main/tos/lib/net/rpl/RPLDAORoutingEngineP.nc: In 
function ‘RPLDAORoutingEngineP__0__sendDAO__runTask’:
/opt/tinyos-gitmab2/src/tinyos-main/tos/lib/net/rpl/RPLDAORoutingEngineP.nc:114:
22: warning: variable ‘dao’ set but not used 
[-Wunused-but-set-variable]
/opt/tinyos-gitmab2/src/tinyos-main/tos/lib/net/rpl/RPLRoutingEngineP.nc: In 
function ‘RPLRoutingEngineP__0__sendDIOTask__runTask’:
/opt/tinyos-gitmab2/src/tinyos-main/tos/lib/net/rpl/RPLRoutingEngineP.nc:176:21:
 warning: variable ‘body’ set but not used [-Wunused-but-set-variable]
/opt/tinyos-gitmab2/src/tinyos-main/tos/lib/net/rpl/RPLOF0P.nc: In function 
‘RPLOF0P__RPLOF__recalculateRank’:
/opt/tinyos-gitmab2/src/tinyos-main/tos/lib/net/rpl/RPLOF0P.nc:101:12: warning: 
variable ‘prevRank’ set but not used [-Wunused-but-set-variable]
/opt/tinyos-gitmab2/src/tinyos-main/tos/lib/net/rpl/RPLOF0P.nc:101:12: warning: 
variable ‘prevEtx’ set but not used [-Wunused-but-set-variable]
/opt/tinyos-gitmab2/src/tinyos-main/tos/lib/net/rpl/RPLRankP.nc: In function 
‘RPLRankP__parseDIO’:
/opt/tinyos-gitmab2/src/tinyos-main/tos/lib/net/rpl/RPLRankP.nc:618:12: 
warning: variable ‘preRank’ set but not used 
[-Wunused-but-set-variable]
/opt/tinyos-gitmab2/src/tinyos-main/tos/chips/msp430/dma/HplMsp430DmaXP.nc: In 
function ‘HplMsp430DmaXP__2__DMA__setState’:
/opt/tinyos-gitmab2/src/tinyos-main/tos/chips/msp430/dma/HplMsp430DmaXP.nc:220:2
5: warning: dereferencing type-punned pointer will break strict-aliasing rules 
[-Wstrict-aliasing]
/opt/tinyos-gitmab2/src/tinyos-main/tos/chips/msp430/dma/HplMsp430DmaXP.nc:220:2
5: warning: dereferencing type-punned pointer will break strict-aliasing rules 
[-Wstrict-aliasing]
/opt/tinyos-gitmab2/src/tinyos-main/tos/lib/ppp/PppP.nc: In function 
‘PppP__processError_task__runTask’:
/opt/tinyos-gitmab2/src/tinyos-main/tos/lib/ppp/PppP.nc:413:16: warning: 
variable ‘ifd’ set but not used [-Wunused-but-set-variable]
/opt/tinyos-gitmab2/src/tinyos-main/tos/lib/ppp/PppP.nc:412:15: warning: 
variable ‘in_frame_error’ set but not used [-Wunused-but-set-variable]
PppRouterP.nc: In function ‘PppRouterP__Boot__booted’:
PppRouterP.nc:57:11: warning: variable ‘rc’ set but not used 
[-Wunused-but-set-variable]
/opt/tinyos-gitmab2/src/tinyos-main/tos/lib/net/blip/IPForwardingEngineP.nc: In 
function ‘IPForwardingEngineP__IPForward__recv’:
/opt/tinyos-gitmab2/src/tinyos-main/tos/lib/net/blip/IPForwardingEngineP.nc:253:
15: warning: variable ‘next_hop_key’ set but not used 
[-Wunused-but-set-variable]
/opt/tinyos-gitmab2/src/tinyos-main/tos/lib/ppp/LcpAutomatonP.nc: In function 
‘LcpAutomatonP__1__processEventActions_’:
/opt/tinyos-gitmab2/src/tinyos-main/tos/lib/ppp/LcpAutomatonP.nc:543:81: 
warning: variable ‘in_actions’ set but not used 
[-Wunused-but-set-variable]
/opt/tinyos-gitmab2/src/tinyos-main/tos/lib/ppp/LcpAutomatonP.nc: In function 
‘LcpAutomatonP__0__processEventActions_’:
/opt/tinyos-gitmab2/src/tinyos-main/tos/lib/ppp/LcpAutomatonP.nc:543:93: 
warning: variable ‘in_actions’ set but not used 
[-Wunused-but-set-variable]
/usr/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld: 
build/telosb/main.exe section `.text' will not fit in region `rom'
/usr/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld: section .vectors 
loaded at [0000ffe0,0000ffff] overlaps section .text loaded at 
[00004000,00010013]
/usr/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld: region `rom' 
overflowed by 898 bytes
/usr/bin/../lib/gcc/msp430/4.6.3/mmpy-16/libcrt0.a(_copy_data.o): In function 
`__do_copy_data':
/home/cire/mm/w/tinyos-main.git/tinyos-2.x/packaging/msp430-46/gcc-4.6.3/build/g
cc/../../gcc/config/msp430/crt0.S:195: relocation truncated to fit: 
R_MSP430_16_BYTE against symbol `__data_load_start' defined in *ABS* section in 
build/telosb/main.exe
/tmp/ccLceus2.o: In function `LcpAutomatonP__1__calculateEventActions_':
app.c:(.text+0x4f2): relocation truncated to fit: R_MSP430_16_BYTE against `no 
symbol'
/tmp/ccLceus2.o: In function `LcpAutomatonP__0__calculateEventActions_':
app.c:(.text+0x89c): relocation truncated to fit: R_MSP430_16_BYTE against `no 
symbol'
/tmp/ccLceus2.o: In function `IPDispatchP__lowpan_recon_start':
app.c:(.text+0x16f8): relocation truncated to fit: R_MSP430_16_BYTE against `no 
symbol'
/tmp/ccLceus2.o: In function `UDPShellP__action_help':
app.c:(.text+0x406e): relocation truncated to fit: R_MSP430_16_BYTE against `no 
symbol'
/tmp/ccLceus2.o: In function `UDPShellP__action_uptime':
app.c:(.text+0x432e): relocation truncated to fit: R_MSP430_16_BYTE against `no 
symbol'
/tmp/ccLceus2.o: In function `IPForwardingEngineP__IPForward__recv.isra.315':
app.c:(.text+0x4f96): relocation truncated to fit: R_MSP430_16_BYTE against `no 
symbol'
app.c:(.text+0x4fba): relocation truncated to fit: R_MSP430_16_BYTE against `no 
symbol'
app.c:(.text+0x4ff8): relocation truncated to fit: R_MSP430_16_BYTE against `no 
symbol'
app.c:(.text+0x5034): relocation truncated to fit: R_MSP430_16_BYTE against `no 
symbol'
/tmp/ccLceus2.o: In function `HdlcFramingP__0__HdlcUart__receivedByte':
app.c:(.text+0x5e3e): additional relocation overflows omitted from the output
collect2: ld returned 1 exit status
make: *** [exe0] Error 1

Original issue reported on code.google.com by marku...@gmail.com on 26 Oct 2012 at 8:09

GoogleCodeExporter commented 8 years ago
Fixed (workaround) in r6024.  There are several other parts we could slim down 
but removing this components is the easiest way to get it to compile.

Original comment by sdh...@gmail.com on 29 Oct 2012 at 7:42