bthnycl / tinyos-main

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

CoapBlip ip_malloc_init dangerous relocation: unaligned address (using mspgcc4.7) #155

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. msp430-gcc (GCC) 4.7.0 20120322 (mspgcc dev 20120911)
2. cd /opt/release_tinyos_2_1_2/apps/CoapBlip ; make z1 blip coap

What is the expected output? What do you see instead?
expected: compilation of apps/CoapBlip

What did I see:
pdemil@Beaumon:/opt/release_tinyos_2_1_2/apps/CoapBlip$ make z1 blip coap
mkdir -p build/z1
    compiling CoapBlipC to a z1 binary
ncc -o build/z1/main.exe  -Os -DRPL_ROUTING -DRPL_STORING_MODE 
-I/opt/release_tinyos_2_1_2/tos/lib/net/rpl -DIN6_PREFIX=\"fec0::\" 
-DCC2420_HW_ACKNOWLEDGEMENTS  -DCC2420_HW_ADDRESS_RECOGNITION -DPACKET_LINK 
-DTOSH_DATA_LENGTH=112 -I/opt/release_tinyos_2_1_2/tos/lib/net/ 
-I/opt/release_tinyos_2_1_2/tos/lib/printf/ 
-I/opt/release_tinyos_2_1_2/support/sdk/c/blip/ 
-I/opt/release_tinyos_2_1_2/tos/lib/net/blip/ 
-I/opt/release_tinyos_2_1_2/tos/lib/net/blip/interfaces/  
-I/opt/release_tinyos_2_1_2/tos/lib/net/blip/nwprog/ 
-I/opt/release_tinyos_2_1_2/tos/lib/net/blip/shell/ 
-I/opt/release_tinyos_2_1_2/tos/lib/net/blip/serial/ 
-I/opt/release_tinyos_2_1_2/tos/lib/net/blip/platform/ 
-I/opt/release_tinyos_2_1_2/tos/lib/net/blip/icmp/ 
-I/opt/release_tinyos_2_1_2/tos/lib/net/blip/dhcp/ 
/opt/release_tinyos_2_1_2/support/sdk/c/blip/lib6lowpan/iovec.c 
/opt/release_tinyos_2_1_2/support/sdk/c/blip/lib6lowpan/in_cksum.c 
/opt/release_tinyos_2_1_2/support/sdk/c/blip/lib6lowpan/ip_malloc.c 
/opt/release_tinyos_2_1_2/support/sdk/c/blip/lib6lowpan/utility.c 
/opt/release_tinyos_2_1_2/tos/lib/net/blip/table.c -DBIG_ENDIAN=4321 
-DLITTLE_ENDIAN=1234 -DBYTE_ORDER=LITTLE_ENDIAN -DNDEBUG=1 
-I/opt/release_tinyos_2_1_2/tos/lib/net/coap/ 
-I/opt/release_tinyos_2_1_2/tos/lib/app/coap/interfaces/ 
-I/opt/release_tinyos_2_1_2/support/sdk/c/coap 
/opt/release_tinyos_2_1_2/tos/lib/net/coap/tinyos_net.c 
/opt/release_tinyos_2_1_2/support/sdk/c/coap/encode.c 
/opt/release_tinyos_2_1_2/support/sdk/c/coap/list.c 
/opt/release_tinyos_2_1_2/support/sdk/c/coap/net.c 
/opt/release_tinyos_2_1_2/support/sdk/c/coap/pdu.c 
/opt/release_tinyos_2_1_2/support/sdk/c/coap/str.c 
/opt/release_tinyos_2_1_2/support/sdk/c/coap/subscribe.c 
/opt/release_tinyos_2_1_2/support/sdk/c/coap/uri.c -fnesc-separator=__ -Wall 
-Wshadow -Wnesc-all -target=z1 -fnesc-cfile=build/z1/app.c -board= 
-DDEFINED_TOS_AM_GROUP=0x22 -Ibuild/z1 -DCOAP_SERVER_ENABLED 
-DCOAP_SERVER_PORT=61616L -DMAX_URI_LENGTH=5 -DNUM_URIS=1 -DCOAP_RESOURCE_LED 
-DCOAP_PREACK_TIMEOUT=500 -DCOAP_CLIENT_PORT=61617L 
-DCOAP_CLIENT_DEST=\"fec0::100\" -I. -DIDENT_APPNAME=\"CoapBlipC\" 
-DIDENT_USERNAME=\"pdemil\" -DIDENT_HOSTNAME=\"Beaumon\" 
-DIDENT_USERHASH=0x0001bce5L -DIDENT_TIMESTAMP=0x50b76794L 
-DIDENT_UIDHASH=0xea424b37L  CoapBlipC.nc -lm 
/opt/release_tinyos_2_1_2/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning: 
#warning "*** LOW POWER COMMUNICATIONS DISABLED ***"
/opt/release_tinyos_2_1_2/tos/chips/cc2420/link/PacketLinkC.nc:38:2: warning: 
#warning "*** USING PACKET LINK LAYER"
/opt/release_tinyos_2_1_2/tos/lib/net/coap/CoapUdpServerP.nc:293:2: warning: 
#warning "CoAP Resource .wellknown/core disabled. Add CFLAGS += 
-DINCLUDE_WELLKNOWN to Makefile, if you want it included."
/opt/release_tinyos_2_1_2/tos/lib/net/coap/CoapUdpServerP.nc:496:2: warning: 
#warning "FIXME: CoAP: subscriptions not yet implemented"
/opt/release_tinyos_2_1_2/tos/lib/net/coap/CoapUdpServerP.nc:803:2: warning: 
#warning "FIXME: CoAP: putDoneDeferred not yet implemented"
/opt/release_tinyos_2_1_2/tos/lib/net/coap/CoapUdpServerP.nc:809:2: warning: 
#warning "FIXME: CoAP: POST method not yet implemented"
/opt/release_tinyos_2_1_2/tos/lib/net/coap/CoapUdpServerP.nc:816:2: warning: 
#warning "FIXME: CoAP: DELETE method not yet implemented"
/opt/release_tinyos_2_1_2/tos/lib/net/coap/CoapUdpServerP.nc:482: warning: call 
via function pointer
/opt/release_tinyos_2_1_2/tos/lib/net/coap/CoapUdpServerP.nc:714: warning: call 
via function pointer
/opt/release_tinyos_2_1_2/tos/lib/net/rpl/RPLDAORoutingEngineP.nc: In function 
‘RPLDAORoutingEngineP__0__sendDAO__runTask’:
/opt/release_tinyos_2_1_2/tos/lib/net/rpl/RPLDAORoutingEngineP.nc:114:22: 
warning: variable ‘dao’ set but not used [-Wunused-but-set-variable]
/opt/release_tinyos_2_1_2/tos/lib/net/rpl/RPLRoutingEngineP.nc: In function 
‘RPLRoutingEngineP__0__sendDIOTask__runTask’:
/opt/release_tinyos_2_1_2/tos/lib/net/rpl/RPLRoutingEngineP.nc:176:21: warning: 
variable ‘body’ set but not used [-Wunused-but-set-variable]
/opt/release_tinyos_2_1_2/tos/lib/net/rpl/RPLOF0P.nc: In function 
‘RPLOF0P__RPLOF__recalculateRank’:
/opt/release_tinyos_2_1_2/tos/lib/net/rpl/RPLOF0P.nc:101:12: warning: variable 
‘prevRank’ set but not used [-Wunused-but-set-variable]
/opt/release_tinyos_2_1_2/tos/lib/net/rpl/RPLOF0P.nc:101:12: warning: variable 
‘prevEtx’ set but not used [-Wunused-but-set-variable]
/opt/release_tinyos_2_1_2/tos/lib/net/rpl/RPLRankP.nc: In function 
‘RPLRankP__parseDIO’:
/opt/release_tinyos_2_1_2/tos/lib/net/rpl/RPLRankP.nc:618:12: warning: variable 
‘preRank’ set but not used [-Wunused-but-set-variable]
/opt/release_tinyos_2_1_2/tos/lib/net/blip/IPForwardingEngineP.nc: In function 
‘IPForwardingEngineP__IPForward__recv’:
/opt/release_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]
/tmp/ccIv2cxU.o: In function `ip_malloc_init':
ip_malloc.c:(.text+0x4): dangerous relocation: unaligned address
collect2: error: ld returned 1 exit status
make: *** [exe0] Error 1

What version of the product are you using? On what operating system?
release_tinyos_2_1_2,
msp430-gcc (GCC) 4.7.0 20120322 (mspgcc dev 20120911)

Please provide any additional information below.

Original issue reported on code.google.com by pde...@gmail.com on 29 Nov 2012 at 1:55