meghs94 / tinyos-main

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

apps/PppRouter does not compile with telosb - memory overflow #99

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

andres@ubuntu:/opt/tinyos-main/apps/PppRouter$ make telosb blip
mkdir -p build/telosb
    compiling PppRouterC to a telosb binary
ncc -o build/telosb/main.exe  -Os -O -DRPL_ROUTING -DRPL_STORING_MODE 
-I/opt/tinyos-main/tos/lib/net/rpl -I/opt/tinyos-main/tos/lib/ppp 
-I/opt/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-main/tos/lib/net/ 
-I/opt/tinyos-main/tos/lib/printf/ -I/opt/tinyos-main/support/sdk/c/blip/ 
-I/opt/tinyos-main/tos/lib/net/blip/ 
-I/opt/tinyos-main/tos/lib/net/blip/interfaces/  
-I/opt/tinyos-main/tos/lib/net/blip/nwprog/ 
-I/opt/tinyos-main/tos/lib/net/blip/shell/ 
-I/opt/tinyos-main/tos/lib/net/blip/serial/ 
-I/opt/tinyos-main/tos/lib/net/blip/platform/ 
-I/opt/tinyos-main/tos/lib/net/blip/icmp/ 
-I/opt/tinyos-main/tos/lib/net/blip/dhcp/ 
/opt/tinyos-main/support/sdk/c/blip/lib6lowpan/iovec.c 
/opt/tinyos-main/support/sdk/c/blip/lib6lowpan/in_cksum.c 
/opt/tinyos-main/support/sdk/c/blip/lib6lowpan/ip_malloc.c 
/opt/tinyos-main/support/sdk/c/blip/lib6lowpan/utility.c 
/opt/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=\"andres\" -DIDENT_HOSTNAME=\"ubuntu\" 
-DIDENT_USERHASH=0x377922e5L -DIDENT_TIMESTAMP=0x4ed5ddd3L 
-DIDENT_UIDHASH=0x320a0071L  PppRouterC.nc -lm 
/opt/tinyos-main/tos/platforms/telosa/PlatformHdlcUartC.nc:40:2: warning: 
#warning Enabling DMA on UART1RX
/opt/tinyos-main/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning: #warning "*** 
LOW POWER COMMUNICATIONS DISABLED ***"
/opt/tinyos-main/tos/chips/cc2420/link/PacketLinkC.nc:38:2: warning: #warning 
"*** USING PACKET LINK LAYER"
/opt/tinyos-main/tos/lib/net/blip/shell/UDPShellP.nc:260: warning: call via 
function pointer
/opt/tinyos-main/tos/platforms/telosa/PlatformHdlcUartP.nc:181: warning: 
`HdlcUart.receivedByte' called asynchronously from `UsartInterrupts.rxDone'
/usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/bin/ld: 
build/telosb/main.exe section `.text' will not fit in region `rom'
/usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/bin/ld: section .vectors 
loaded at [000000000000ffe0,000000000000ffff] overlaps section .text loaded at 
[0000000000004000,0000000000011b01]
/usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/bin/ld: region `rom' 
overflowed by 7172 bytes
collect2: ld returned 1 exit status
make: *** [exe0] Error 1 

What version of the product are you using? On what operating system?
r5829

Please provide any additional information below.

Using latest tools from http://tinyprod.net/debian-dev/ 
However it did not compile with stanford version either, so I guess it is not 
question of toolchain.

Original issue reported on code.google.com by andres.v...@gmail.com on 30 Nov 2011 at 4:10

GoogleCodeExporter commented 8 years ago
Fix is commenting
#OPTFLAGS += -O
in support/make/telosb.target.

Original comment by marku...@gmail.com on 1 Dec 2011 at 9:50

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r5849.

Original comment by vlado.handziski on 21 Dec 2011 at 9:19