hi All,
when I tried to compile PppRouter in tinyos-2.1.2 I' getting ROM overflow
error from the compiler
the result is as follows.
root@ubuntu:/opt/tinyos-2.1.2/apps/PppRouter# make telosb blip
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-2.1.2/tos/lib/net/rpl -I/opt/tinyos-2.1.2/tos/lib/ppp
-I/opt/tinyos-2.1.2/tos/lib/fragpool -DPPP_HDLC_RX_FRAME_LIMIT=1
-DPPP_HDLC_TX_FRAME_LIMIT=8 -DCC2420_HW_ACKNOWLEDGEMENTS
-DCC2420_HW_ADDRESS_RECOGNITION -DPACKET_LINK -DTOSH_DATA_LENGTH=112
-I/opt/tinyos-2.1.2/tos/lib/net/ -I/opt/tinyos-2.1.2/tos/lib/printf/
-I/opt/tinyos-2.1.2/support/sdk/c/blip/
-I/opt/tinyos-2.1.2/tos/lib/net/blip/
-I/opt/tinyos-2.1.2/tos/lib/net/blip/interfaces/
-I/opt/tinyos-2.1.2/tos/lib/net/blip/nwprog/
-I/opt/tinyos-2.1.2/tos/lib/net/blip/shell/
-I/opt/tinyos-2.1.2/tos/lib/net/blip/serial/
-I/opt/tinyos-2.1.2/tos/lib/net/blip/platform/
-I/opt/tinyos-2.1.2/tos/lib/net/blip/icmp/
-I/opt/tinyos-2.1.2/tos/lib/net/blip/dhcp/
/opt/tinyos-2.1.2/support/sdk/c/blip/lib6lowpan/iovec.c
/opt/tinyos-2.1.2/support/sdk/c/blip/lib6lowpan/in_cksum.c
/opt/tinyos-2.1.2/support/sdk/c/blip/lib6lowpan/ip_malloc.c
/opt/tinyos-2.1.2/support/sdk/c/blip/lib6lowpan/utility.c
/opt/tinyos-2.1.2/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=\"root\" -DIDENT_HOSTNAME=\"ubuntu\"
-DIDENT_USERHASH=0xa3473ba6L -DIDENT_TIMESTAMP=0x50cac046L
-DIDENT_UIDHASH=0xde6029fcL PppRouterC.nc -lm
/opt/tinyos-2.1.2/tos/platforms/telosa/PlatformHdlcUartC.nc:40:2: warning:
#warning Enabling DMA on UART1RX
/opt/tinyos-2.1.2/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning: #warning
"*** LOW POWER COMMUNICATIONS DISABLED ***"
/opt/tinyos-2.1.2/tos/chips/cc2420/link/PacketLinkC.nc:38:2: warning:
#warning "*** USING PACKET LINK LAYER"
/opt/tinyos-2.1.2/tos/lib/net/blip/shell/UDPShellP.nc:260: warning: call
via function pointer
/opt/tinyos-2.1.2/tos/platforms/telosa/PlatformHdlcUartP.nc:181: warning:
`HdlcUart.receivedByte' called asynchronously from `UsartInterrupts.rxDone'
/opt/tinyos-2.1.2/tos/lib/net/rpl/RPLDAORoutingEngineP.nc: In function
‘RPLDAORoutingEngineP__0__sendDAO__runTask’:
/opt/tinyos-2.1.2/tos/lib/net/rpl/RPLDAORoutingEngineP.nc:114:22: warning:
variable ‘dao’ set but not used [-Wunused-but-set-variable]
/opt/tinyos-2.1.2/tos/lib/net/rpl/RPLRoutingEngineP.nc: In function
‘RPLRoutingEngineP__0__sendDIOTask__runTask’:
/opt/tinyos-2.1.2/tos/lib/net/rpl/RPLRoutingEngineP.nc:176:21: warning:
variable ‘body’ set but not used [-Wunused-but-set-variable]
/opt/tinyos-2.1.2/tos/lib/net/rpl/RPLOF0P.nc: In function
‘RPLOF0P__RPLOF__recalculateRank’:
/opt/tinyos-2.1.2/tos/lib/net/rpl/RPLOF0P.nc:101:12: warning: variable
‘prevRank’ set but not used [-Wunused-but-set-variable]
/opt/tinyos-2.1.2/tos/lib/net/rpl/RPLOF0P.nc:101:12: warning: variable
‘prevEtx’ set but not used [-Wunused-but-set-variable]
/opt/tinyos-2.1.2/tos/lib/net/rpl/RPLRankP.nc: In function
‘RPLRankP__parseDIO’:
/opt/tinyos-2.1.2/tos/lib/net/rpl/RPLRankP.nc:618:12: warning: variable
‘preRank’ set but not used [-Wunused-but-set-variable]
/opt/tinyos-2.1.2/tos/chips/msp430/dma/HplMsp430DmaXP.nc: In function
‘HplMsp430DmaXP__2__DMA__setState’:
/opt/tinyos-2.1.2/tos/chips/msp430/dma/HplMsp430DmaXP.nc:220:25: warning:
dereferencing type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
/opt/tinyos-2.1.2/tos/chips/msp430/dma/HplMsp430DmaXP.nc:220:25: warning:
dereferencing type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
/opt/tinyos-2.1.2/tos/lib/ppp/PppP.nc: In function
‘PppP__processError_task__runTask’:
/opt/tinyos-2.1.2/tos/lib/ppp/PppP.nc:413:16: warning: variable ‘ifd’ set
but not used [-Wunused-but-set-variable]
/opt/tinyos-2.1.2/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-2.1.2/tos/lib/net/blip/IPForwardingEngineP.nc: In function
‘IPForwardingEngineP__IPForward__recv’:
/opt/tinyos-2.1.2/tos/lib/net/blip/IPForwardingEngineP.nc:253:15: warning:
variable ‘next_hop_key’ set but not used [-Wunused-but-set-variable]
/opt/tinyos-2.1.2/tos/lib/ppp/LcpAutomatonP.nc: In function
‘LcpAutomatonP__1__processEventActions_’:
/opt/tinyos-2.1.2/tos/lib/ppp/LcpAutomatonP.nc:543:81: warning: variable
‘in_actions’ set but not used [-Wunused-but-set-variable]
/opt/tinyos-2.1.2/tos/lib/ppp/LcpAutomatonP.nc: In function
‘LcpAutomatonP__0__processEventActions_’:
/opt/tinyos-2.1.2/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 [000000000000ffe0,000000000000ffff] overlaps section
.text loaded at [0000000000004000,0000000000010aa7]
/usr/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld: region `rom'
overflowed by 3608 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/gcc/../../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/cciHevcd.o: In function `LcpAutomatonP__1__calculateEventActions_':
app.c:(.text+0x57a): relocation truncated to fit: R_MSP430_16_BYTE against
`no symbol'
/tmp/cciHevcd.o: In function `LcpAutomatonP__0__calculateEventActions_':
app.c:(.text+0x924): relocation truncated to fit: R_MSP430_16_BYTE against
`no symbol'
/tmp/cciHevcd.o: In function `IPDispatchP__lowpan_recon_start':
app.c:(.text+0x1780): relocation truncated to fit: R_MSP430_16_BYTE against
`no symbol'
/tmp/cciHevcd.o: In function `UDPShellP__action_help':
app.c:(.text+0x4148): relocation truncated to fit: R_MSP430_16_BYTE against
`no symbol'
/tmp/cciHevcd.o: In function `UDPShellP__action_uptime':
app.c:(.text+0x4408): relocation truncated to fit: R_MSP430_16_BYTE against
`no symbol'
app.c:(.text+0x4414): relocation truncated to fit: R_MSP430_16 against
symbol `snprintf' defined in .text section in
/usr/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/lib/mmpy-16/libc.a(sprintf.o)
/tmp/cciHevcd.o: In function `HdlcFramingP__0__HdlcUart__receivedByte':
app.c:(.text+0x52ce): relocation truncated to fit: R_MSP430_16_BYTE against
`no symbol'
/tmp/cciHevcd.o: In function `PppConfigureEngineP__0__setOptions':
app.c:(.text+0x5b2c): relocation truncated to fit: R_MSP430_16_BYTE against
`no symbol'
/tmp/cciHevcd.o: In function `Dhcp6ClientP__sendSolicit':
app.c:(.text+0x613a): relocation truncated to fit: R_MSP430_16_BYTE against
`no symbol'
/tmp/cciHevcd.o: In function
`IPForwardingEngineP__IPForward__recv.isra.331':
app.c:(.text+0x6a62): additional relocation overflows omitted from the
output
collect2: ld returned 1 exit status
make: *** [exe0] Error 1
root@ubuntu:/opt/tinyos-2.1.2/apps/PppRouter#
--
Tulasi Dwarakanath.V
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help