Hi everyone,
the compilation of Dissemination-code for TOSSIM produces warnings in
tinyos-2.x. Is it a known problem or am I missing something ?
I have some shadowing warnings and a fan-out warning, see below:
Thx Marek
make micaz sim
mkdir -p build/micaz
placing object files in build/micaz
writing XML schema to app.xml
compiling AQFC to object file sim.o
ncc -c -shared -fPIC -o build/micaz/sim.o -g -O0 -tossim
-fnesc-nido-tosnodes=1000 -fnesc-simulate
-fnesc-nido-motenumber=sim_node\(\) -finline-limit=100000 -Wall
-Wshadow -Wnesc-all -target=micaz -fnesc-cfile=build/micaz/app.c
-board=micasb -I/home/marek/hiwi/tinyos-2.x/tos/lib/net
-DIDENT_PROGRAM_NAME=\"AQFC\" -DIDENT_USER_ID=\"marek\"
-DIDENT_HOSTNAME=\"x31\" -DIDENT_USER_HASH=0x4d556ffeL
-DIDENT_UNIX_TIME=0x46a85b68L -DIDENT_UID_HASH=0x890b027bL
-Wno-nesc-data-race AQFC.nc -fnesc-dump=components
-fnesc-dump=variables -fnesc-dump=constants -fnesc-dump=typedefs
-fnesc-dump=interfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml
In file included
from /home/marek/hiwi/tinyos-2.x/tos/lib/net/TrickleTimerMilliC.nc:50,
from /home/marek/hiwi/tinyos-2.x/tos/lib/net/DisseminationTimerP.nc:49,
from /home/marek/hiwi/tinyos-2.x/tos/lib/net/DisseminatorC.nc:66,
from SimplestStrategyC.nc:15,
from AQFC.nc:6:
In component `TrickleTimerImplP':
/home/marek/hiwi/tinyos-2.x/tos/lib/net/TrickleTimerImplP.nc: In
function `adjustTimer':
/home/marek/hiwi/tinyos-2.x/tos/lib/net/TrickleTimerImplP.nc:215:
warning: declaration of `time' shadows global declaration
/usr/include/time.h:187: warning: location of shadowed declaration
/home/marek/hiwi/tinyos-2.x/tos/lib/net/TrickleTimerImplP.nc: In
function `generateTime':
/home/marek/hiwi/tinyos-2.x/tos/lib/net/TrickleTimerImplP.nc:247:
warning: declaration of `time' shadows global declaration
/usr/include/time.h:187: warning: location of shadowed declaration
nesc1: warning: calls to DisseminationCache.requestSeqno in
DisseminationEngineImplP fan out, but there is no combine function
specified for the return type
nesc1: warning: calls to DisseminationCache.requestData in
DisseminationEngineImplP fan out, but there is no combine function
specified for the return type
compiling Python support and C libraries into pytossim.o, tossim.o,
and c-support.o
g++ -c -shared -fPIC -o build/micaz/pytossim.o -g -O0
-I/home/marek/hiwi/tinyos-2.x/tos/lib/net -DIDENT_PROGRAM_NAME=\"AQFC\"
-DIDENT_USER_ID=\"marek\" -DIDENT_HOSTNAME=\"x31\"
-DIDENT_USER_HASH=0x4d556ffeL -DIDENT_UNIX_TIME=0x46a85b68L
-DIDENT_UID_HASH=0x890b027bL
/home/marek/hiwi/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx
-I/usr/include/python2.5 -I/home/marek/hiwi/tinyos-2.x/tos/lib/tossim
-DHAVE_CONFIG_H
g++ -c -shared -fPIC -o build/micaz/tossim.o -g -O0
-I/home/marek/hiwi/tinyos-2.x/tos/lib/net -DIDENT_PROGRAM_NAME=\"AQFC\"
-DIDENT_USER_ID=\"marek\" -DIDENT_HOSTNAME=\"x31\"
-DIDENT_USER_HASH=0x4d556ffeL -DIDENT_UNIX_TIME=0x46a85b68L
-DIDENT_UID_HASH=0x890b027bL
/home/marek/hiwi/tinyos-2.x/tos/lib/tossim/tossim.c -I/usr/include/python2.5
-I/home/marek/hiwi/tinyos-2.x/tos/lib/tossim
g++ -c -shared -fPIC -o build/micaz/c-support.o -g -O0
-I/home/marek/hiwi/tinyos-2.x/tos/lib/net -DIDENT_PROGRAM_NAME=\"AQFC\"
-DIDENT_USER_ID=\"marek\" -DIDENT_HOSTNAME=\"x31\"
-DIDENT_USER_HASH=0x4d556ffeL -DIDENT_UNIX_TIME=0x46a85b68L
-DIDENT_UID_HASH=0x890b027bL
/home/marek/hiwi/tinyos-2.x/tos/lib/tossim/hashtable.c -I/usr/include/python2.5
-I/home/marek/hiwi/tinyos-2.x/tos/lib/tossim
linking into shared object ./_TOSSIMmodule.so
g++ -shared -fPIC build/micaz/pytossim.o build/micaz/sim.o
build/micaz/tossim.o build/micaz/c-support.o -lstdc++ -o
_TOSSIMmodule.so
copying Python script interface TOSSIM.py from lib/tossim to local
directory
*** Successfully built micaz TOSSIM library.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help