Hello We are having a problem compiling the TestMCU application (or any other for that matter) that comes with the contrib/cedt (aka POWERTOSSIM 2) project. We have checked out the latest revision of contrib/cedt from CVS and done a "make install" according to the instructions. But when trying to compile an application with the "make mica2 sim-energy" we get a very long error message with errors in /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:.
We have only provided a small portion of the error here (see end of message). Please follow this link for the full error message: http://daimi.au.dk/~hsa/PT2_error.txt<https://webmail.daimi.au.dk/horde/util/go.php?url=http%3A%2F%2Fdaimi.au.dk%2F%7Ehsa%2FPT2_error.txt&Horde=64178b1a2325db5c60a8f0828b1771e6> We have also tried compiling with just "make mica2" which works fine without any errors or warnings. Is there anyone that might be able to see what is going wrong here? Thank you in advance for your time. Regards Elvar and Henrik. [EMAIL PROTECTED]:/opt/tinyos-2.x-contrib/cedt/apps/tests/TestMCU$ make mica2 sim-energy mkdir -p build/mica2 placing object files in build/mica2 writing XML schema to app.xml compiling TestMCUAppC to object file sim.o ncc -c -shared -fPIC -o build/mica2/sim.o -g -O0 -tossim -fnesc-nido-tosnodes=1000 -fnesc-simulate -fnesc-nido-motenumber=sim_node\(\) -I/opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/energy -I/opt/tinyos-2.x-contrib/cedt/tos/lib/tossim -I/opt/tinyos-2.x-contrib/cedt/tos/platforms/mica -I/opt/tinyos-2.x-contrib/cedt/tos/platforms/mica2 -I/opt/tinyos-2.x-contrib/cedt/tos/chips/atm128 -I/opt/tinyos-2.x-contrib/cedt/tos/chips/atm128/pins -I/opt/tinyos-2.x-contrib/cedt/tos/chips/atm128/adc -I/opt/tinyos-2.x-contrib/cedt/tos/chips/cc1000 -I/opt/tinyos-2.x-contrib/cedt/tos/platforms/mica2/chips/cc1000 -I/opt/tinyos-2.x-contrib/cedt/tos/chips/at45db -I/opt/tinyos-2.x-contrib/cedt/tos/platforms/mica/chips/at45db -I/opt/tinyos-2.x-contrib/cedt/tos/platforms/mica2/chips/at45db -finline-limit=100000 -Wall -Wshadow -Wnesc-all -target=mica2 -fnesc-cfile=build/mica2/app.c -board=micasb -DIDENT_PROGRAM_NAME=\"TestMCUAppC\" -DIDENT_USER_ID=\"hsa\" -DIDENT_HOSTNAME=\"wsn\" -DIDENT_USER_HASH=0xbc6b818aL -DIDENT_UNIX_TIME=0x483e8d8eL -DIDENT_UID_HASH=0xf075661dL -Wno-nesc-data-race TestMCUAppC.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 /opt/tinyos-2.x/tos/chips/cc1000/CC1000CsmaRadioC.nc:61, from /opt/tinyos-2.x/tos/chips/cc1000/CC1000ActiveMessageC.nc:57, from /opt/tinyos-2.x-contrib/cedt/tos/platforms/mica2/sim/ActiveMessageC.nc:60, from TestMCUAppC.nc:39: In interface `RadioTimeStamping': /opt/tinyos-2.x/tos/interfaces/RadioTimeStamping.nc:39: warning: declaration of `time' shadows global declaration /usr/include/time.h:187: warning: location of shadowed declaration /opt/tinyos-2.x/tos/interfaces/RadioTimeStamping.nc:50: warning: declaration of `time' shadows global declaration /usr/include/time.h:187: warning: location of shadowed declaration In file included from /opt/tinyos-2.x/tos/chips/cc1000/CC1000CsmaRadioC.nc:69, from /opt/tinyos-2.x/tos/chips/cc1000/CC1000ActiveMessageC.nc:57, from /opt/tinyos-2.x-contrib/cedt/tos/platforms/mica2/sim/ActiveMessageC.nc:60, from TestMCUAppC.nc:39: In component `CC1000SendReceiveP': /opt/tinyos-2.x-contrib/cedt/tos/chips/cc1000/sim/CC1000SendReceiveP.nc:709: warning: declaration of `time' shadows global declaration /usr/include/time.h:187: warning: location of shadowed declaration /opt/tinyos-2.x-contrib/cedt/tos/chips/cc1000/sim/CC1000SendReceiveP.nc:710: warning: declaration of `time' shadows global declaration /usr/include/time.h:187: warning: location of shadowed declaration /opt/tinyos-2.x-contrib/cedt/tos/chips/cc1000/sim/CC1000SendReceiveP.nc: In function 'CC1000SendReceiveP$enterTxDataState': /opt/tinyos-2.x-contrib/cedt/tos/chips/cc1000/sim/CC1000SendReceiveP.nc:201: warning: large integer implicitly truncated to unsigned type compiling Python support and C libraries into pytossim.o, tossim.o, and c-support.o g++ -c -shared -fPIC -o build/mica2/pytossim.o -g -O0 -DIDENT_PROGRAM_NAME=\"TestMCUAppC\" -DIDENT_USER_ID=\"hsa\" -DIDENT_HOSTNAME=\"wsn\" -DIDENT_USER_HASH=0xbc6b818aL -DIDENT_UNIX_TIME=0x483e8d8eL -DIDENT_UID_HASH=0xf075661dL /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx -I/usr/include/python2.4 -I/opt/tinyos-2.x-contrib/cedt/tos/lib/tossim -I/opt/tinyos-2.x/tos/lib/tossim -I/opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/energy -DHAVE_CONFIG_H /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:116:20: error: Python.h: No such file or directory /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:2352:4: warning: #warning "This python version probably requires to use swig with the '-classic' option" /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:724: error: expected initializer before '*' token /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:766: error: expected initializer before '*' token /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx: In function 'void SWIG_Python_AddErrorMsg(const char*)': /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:813: error: 'PyObject' was not declared in this scope /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:813: error: 'type' was not declared in this scope /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:814: error: 'value' was not declared in this scope /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:815: error: 'traceback' was not declared in this scope /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:817: error: 'PyErr_Occurred' was not declared in this scope /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:817: error: 'PyErr_Fetch' was not declared in this scope /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:819: error: 'old_str' was not declared in this scope /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:819: error: 'PyObject_Str' was not declared in this scope /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:820: error: 'PyErr_Clear' was not declared in this scope /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:821: error: 'Py_XINCREF' was not declared in this scope /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:822: error: 'PyString_AsString' was not declared in this scope /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:822: error: 'PyErr_Format' was not declared in this scope /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:823: error: 'Py_DECREF' was not declared in this scope /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:826: error: 'PyExc_RuntimeError' was not declared in this scope /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:826: error: 'PyErr_Format' was not declared in this scope /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx: At global scope: /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:992: error: variable or field 'SWIG_Python_SetErrorObj' declared void /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:992: error: 'PyObject' was not declared in this scope /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:992: error: 'errtype' was not declared in this scope /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:992: error: 'PyObject' was not declared in this scope /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:992: error: 'obj' was not declared in this scope /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:992: error: initializer expression list treated as compound expression /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:992: error: expected ',' or ';' before '{' token /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:1000: error: variable or field 'SWIG_Python_SetErrorMsg' declared void /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:1000: error: 'PyObject' was not declared in this scope /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:1000: error: 'errtype' was not declared in this scope /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:1000: error: expected primary-expression before 'const' /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:1000: error: initializer expression list treated as compound expression /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:1000: error: expected ',' or ';' before '{' token /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:1011: error: variable or field 'SWIG_Python_SetConstant' declared void /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:1011: error: 'PyObject' was not declared in this scope /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:1011: error: 'd' was not declared in this scope /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:1011: error: expected primary-expression before 'const' /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:1011: error: 'PyObject' was not declared in this scope /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:1011: error: 'obj' was not declared in this scope /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:1011: error: initializer expression list treated as compound expression /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:1011: error: expected ',' or ';' before '{' token /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:1018: error: expected initializer before '*' token /opt/tinyos-2.x-contrib/cedt/tos/lib/tossim/tossim_wrap.cxx:1064: error: 'PyObject' was not declared in this scope .. full error message here: http://daimi.au.dk/~hsa/PT2_error.txt<https://webmail.daimi.au.dk/horde/util/go.php?url=http%3A%2F%2Fdaimi.au.dk%2F%7Ehsa%2FPT2_error.txt&Horde=64178b1a2325db5c60a8f0828b1771e6>
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
