[Tinyos-help] problems with tymo-dymo
Eric Decker
cire831 at gmail.com
Thu Jul 3 14:03:14 PDT 2008
I ran into something similar when compiling for the mm3 platform (similar to
telosb).
David Gay fixed something (I looked at it but don't remember what it is) and
it started
working after I updated to the head of the CVS tree. I'm currently using
ncc 1.2.9
eric
On Thu, Jul 3, 2008 at 1:29 PM, Chieh-Jan (Mike) Liang <cliang4 at cs.jhu.edu>
wrote:
> I get the same error when compiling any app for TOSSIM. I have the
> latest CVS head and nescc 1.3.0 beta4.
>
> Mike
>
> On Jul 2, 2008, at 7:57 AM, Andrey Gursky wrote:
>
> > Hi!
> >
> > So there is an error I get when I compile TestTymo with the latest
> > tinyos-2.x cvs and nesc-1.3.0beta4 for sim or sim-sf. The platforms
> > I'm
> > using are IRIS and MicaZ.
> >
> > It doesn't like these lines in
> > $TOSROOT/tos/lib/safe/include/annots_stage1.h
> >
> > ....
> > (31) struct @safe { };
> > (32) struct @unsafe { };
> > ....
> >
> > --------------------------------------------------------------------
> >
> > andrii at wetnts19:~/tinyos-2.x/apps/tests/TestTymo$ make micaz sim
> > mkdir -p simbuild/micaz
> > placing object files in simbuild/micaz
> > writing XML schema to app.xml
> > compiling TestC to object file sim.o
> > ncc -c -shared -fPIC -o simbuild/micaz/sim.o -g -O0
> > -I../../../tos/lib/net/tymo -I../../../tos/lib/net/tymo/dymo
> > -I../../../tos/lib/net/tymo/mh -tossim -fnesc-nido-tosnodes=1000
> > -fnesc-simulate -fnesc-nido-motenumber=sim_node\(\) -Wall -Wshadow
> > -Wnesc-all -target=micaz -fnesc-cfile=simbuild/micaz/app.c -
> > board=micasb
> > -DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000
> > -Isimbuild/micaz -DIDENT_APPNAME=\"TestC\" -DIDENT_USERNAME=\"andrii\"
> > -DIDENT_HOSTNAME=\"wetnts19\" -DIDENT_USERHASH=0x54b84176L
> > -DIDENT_TIMESTAMP=0x486b6c77L -DIDENT_UIDHASH=0xdf6689cfL
> > -Wno-nesc-data-race TestC.nc -fnesc-dump=components
> > -fnesc-dump=variables -fnesc-dump=constants -fnesc-dump=typedefs
> > -fnesc-dump=interfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml
> > compiling Python support and C libraries into pytossim.o, tossim.o,
> > and c-support.o
> > g++ -c -shared -fPIC -o simbuild/micaz/pytossim.o -g -O0
> > -DIDENT_APPNAME=\"TestC\" -DIDENT_USERNAME=\"andrii\"
> > -DIDENT_HOSTNAME=\"wetnts19\" -DIDENT_USERHASH=0x54b84176L
> > -DIDENT_TIMESTAMP=0x486b6c77L -DIDENT_UIDHASH=0xdf6689cfL
> > /home/andrii/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx
> > -I/usr/include/python2.5 -I/home/andrii/tinyos-2.x/tos/lib/tossim
> > -DHAVE_CONFIG_H
> > In file included from /home/andrii/tinyos-2.x/tos/lib/tossim/tos.h:66,
> > from /home/andrii/tinyos-2.x/tos/lib/tossim/
> > tossim.h:39,
> > from
> > /home/andrii/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:681:
> > /home/andrii/tinyos-2.x/tos/lib/tossim/../../lib/safe/include/
> > annots_stage1.h:31:
> > error: stray '@' in program
> > /home/andrii/tinyos-2.x/tos/lib/tossim/../../lib/safe/include/
> > annots_stage1.h:32:
> > error: stray '@' in program
> > /home/andrii/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx: In function
> > 'PyObject* _wrap_nesc_app_t_numVariables_set(PyObject*, PyObject*)':
> > /home/andrii/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1999: warning:
> > deprecated conversion from string constant to 'char*'
> > /home/andrii/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2000: warning:
> > deprecated conversion from string constant to 'char*'
> > /home/andrii/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx: In function
> > 'PyObject* _wrap_nesc_app_t_numVariables_get(PyObject*, PyObject*)':
> > /home/andrii/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2066: warning:
> > deprecated conversion from string constant to 'char*'
> > /home/andrii/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2067: warning:
> > deprecated conversion from string constant to 'char*'
> > /home/andrii/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx: In function
> > 'PyObject* _wrap_nesc_app_t_variableNames_set(PyObject*, PyObject*)':
> > /home/andrii/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2134: warning:
> > deprecated conversion from string constant to 'char*'
> > /home/andrii/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2135: warning:
> > deprecated conversion from string constant to 'char*'
> > /home/andrii/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx: In function
> > 'PyObject* _wrap_nesc_app_t_variableNames_get(PyObject*, PyObject*)':
> > /home/andrii/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2202: warning:
> > deprecated conversion from string constant to 'char*'
> > /home/andrii/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2203: warning:
> > deprecated conversion from string constant to 'char*'
> > /home/andrii/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx: In function
> > 'PyObject* _wrap_nesc_app_t_variableTypes_set(PyObject*, PyObject*)':
> > /home/andrii/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2270: warning:
> > deprecated conversion from string constant to 'char*'
> > /home/andrii/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2271: warning:
> > deprecated conversion from string constant to 'char*'
> > /home/andrii/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx: In function
> > 'PyObject* _wrap_nesc_app_t_variableTypes_get(PyObject*, PyObject*)':
> > /home/andrii/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2338: warning:
> > deprecated conversion from string constant to 'char*'
> > /home/andrii/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2339: warning:
> > deprecated conversion from string constant to 'char*'
> > /home/andrii/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx: In function
> > 'PyObject* _wrap_nesc_app_t_variableArray_set(PyObject*, PyObject*)':
> > /home/andrii/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2406: warning:
> > deprecated conversion from string constant to 'char*'
> > /home/andrii/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2407: warning:
> > deprecated conversion from string constant to 'char*'
> > /home/andrii/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx: In function
> > 'PyObject* _wrap_nesc_app_t_variableArray_get(PyObject*, PyObject*)':
> > /home/andrii/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2474: warning:
> > deprecated conversion from string constant to 'char*'
> > /home/andrii/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2475: warning:
> > deprecated conversion from string constant to 'char*'
> > /home/andrii/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx: In function
> > 'PyObject* _wrap_delete_nesc_app_t(PyObject*, PyObject*)':
> > /home/andrii/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2554: warning:
> > deprecated conversion from string constant to 'char*'
> > /home/andrii/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2555: warning:
> > deprecated conversion from string constant to 'char*'
> > /home/andrii/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx: In function
> > 'PyObject* _wrap_new_Mote(PyObject*, PyObject*)':
> > /home/andrii/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2698: warning:
> > deprecated conversion from string constant to 'char*'
> > /home/andrii/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2699: warning:
> > deprecated conversion from string constant to 'char*'
> > /home/andrii/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx: In function
> > 'PyObject* _wrap_new_Tossim(PyObject*, PyObject*)':
> > /home/andrii/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2997: warning:
> > deprecated conversion from string constant to 'char*'
> > /home/andrii/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2998: warning:
> > deprecated conversion from string constant to 'char*'
> > make: *** [sim-exe] Error 1
> > andrii at wetnts19:~/tinyos-2.x/apps/tests/TestTymo$
> >
> > -------------------------------------------------------------------------
> >
> > Am I missing something due to new changes?
> >
> > Andrey
> >
> >
> >
> >
> >
> > Andrey Gursky wrote:
> >> Hi!
> >>
> >> There was here already a discussion about this. If you've
> >> downloaded the
> >> example tymaluate from the original sourceforge repository than it is
> >> not more compatible with the actual version of TinyOS. You have
> >> always a
> >> possibility to try $TOSROOT/apps/tests/TestTymo.
> >>
> >> I've tried it successfully on TOSSIM and on 3 MicaZ motes.
> >>
> >> But with the latest tinyos-2.x cvs TestTymo doesn't compile anymore
> >> for
> >> sim and sim-sf. Something wrong with "safe" declarations or
> >> indirect. I
> >> post later the error if it remains.
> >>
> >>
> >> Andrey
> >>
> >>
> >>
> >> fhg07 at c3sl.ufpr.br wrote:
> >>> Well, I was searching for some implemented protocols for tinyOS
> >>> 2.x and
> >>> I found this one, which seemed to be what I was looking for.
> >>> However,
> >>> after downloading its source and placing it inside my tinyos2
> >>> installation
> >>> directory, whenever I try to create the binary, with make, lots of
> >>> errors
> >>> appear, and I really cannot understand why that happens.
> >>>
> >>> For instance, when I am in the MHBaseStation/ Directory, and type
> >>> make mica2,
> >>> that is what follows:
> >>>
> >>> "fernando at baco:/opt/tinyos2/tinyos-2.x-src/apps/MHBaseStation$
> >>> make mica2
> >>> mkdir -p build/mica2
> >>> compiling TymaBaseAppC to a mica2 binary
> >>> ncc -o build/mica2/main.exe -Os -I../../tos/lib/net/dymo
> >>> -I../../tos/lib/net/multihop -I../tymaluate/monitor/ -I../
> >>> tymaluate/sense/
> >>> -Wall -Wshadow -Wnesc-all -target=mica2 -fnesc-cfile=build/mica2/
> >>> app.c
> >>> -board=micasb -DDEFINED_TOS_AM_GROUP=0x22 -finline-limit=100000
> >>> -DIDENT_PROGRAM_NAME=\"TymaBaseAppC\" -DIDENT_USER_ID=\"fernando\"
> >>> -DIDENT_HOSTNAME=\"baco.inf.ufpr.b\" -DIDENT_USER_HASH=0x92905e1aL
> >>> -DIDENT_UNIX_TIME=0x486a3a0fL -DIDENT_UID_HASH=0xb0fea519L
> >>> -fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())'
> >>> -fnesc-dump='referenced(interfacedefs, components)'
> >>> -fnesc-dumpfile=build/mica2/wiring-check.xml TymaBaseAppC.nc -lm
> >>> ../tymaluate/monitor/MonitorM.nc:1:26: dymo_routing.h: No such
> >>> file or
> >>> directory
> >>> In file included from TymaBaseAppC.nc:11:
> >>> In component `MonitorC':
> >>> MonitorC.nc:5: failed to preprocess ../tymaluate/monitor/MonitorM.nc
> >>> MonitorC.nc:5: component DymoNetworkC not found
> >>> MonitorC.nc:8: cannot find `Leds'
> >>> MonitorC.nc:9: cannot find `Read'
> >>> MonitorC.nc:10: cannot find `SplitControl'
> >>> MonitorC.nc:11: cannot find `DymoMonitor'
> >>> MonitorC.nc:12: cannot find `RoutingTableInfo'
> >>> MonitorC.nc:18: cannot find `Receive'
> >>> MonitorC.nc:19: cannot find `MHSend'
> >>> MonitorC.nc:20: cannot find `Intercept'
> >>> MonitorC.nc:22: cannot find `MHPacket'
> >>> In file included from BaseStationC.nc:73,
> >>> from TymaBaseAppC.nc:13:
> >>> In component `ConverterM':
> >>> ConverterM.nc:30: conflicting types for `AMSend.getPayload'
> >>> /opt/tinyos2/tinyos-2.x-src/tos/interfaces/AMSend.nc:124: previous
> >>> declaration of `AMSend.getPayload'
> >>> ConverterM.nc: In function `AMSend.getPayload':
> >>> ConverterM.nc:31: too few arguments to function
> >>> ConverterM.nc: At top level:
> >>> ConverterM.nc:46: `getPayload' is not in interface `Receive'
> >>> ConverterM.nc: In function `Receive.getPayload':
> >>> ConverterM.nc:47: interface has no command or event named
> >>> `getPayload'
> >>> ConverterM.nc: At top level:
> >>> ConverterM.nc:50: `payloadLength' is not in interface `Receive'
> >>> ConverterM.nc: In function `Receive.payloadLength':
> >>> ConverterM.nc:51: interface has no command or event named
> >>> `payloadLength'
> >>> In component `BaseStationC':
> >>> BaseStationC.nc: At top level:
> >>> BaseStationC.nc:77: cannot find `SplitControl'
> >>> BaseStationC.nc:87: cannot find `MHSend'
> >>> BaseStationC.nc:88: cannot find `Receive'
> >>> BaseStationC.nc:89: cannot find `Receive'
> >>> BaseStationC.nc:90: cannot find `MHPacket'
> >>> BaseStationC.nc:96: cannot find `Packet'
> >>> BaseStationC.nc:97: cannot find `MHPacket'
> >>> make: *** [exe0] Error 1"
> >>>
> >>> Any idea of what could possibly be wrong?
> >>>
> >>> _______________________________________________
> >>> Tinyos-help mailing list
> >>> Tinyos-help at millennium.berkeley.edu
> >>>
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >>>
> >>>
> >>
> >> _______________________________________________
> >> Tinyos-help mailing list
> >> Tinyos-help at millennium.berkeley.edu
> >>
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >>
> >>
> >
> > _______________________________________________
> > Tinyos-help mailing list
> > Tinyos-help at millennium.berkeley.edu
> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
--
Eric B. Decker
Senior (over 50 :-) Researcher
Autonomous Systems Lab
Jack Baskin School of Engineering
UCSC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20080703/26202ae2/attachment-0001.htm
More information about the Tinyos-help
mailing list