[Tinyos-help] make mica2/micaz sim compilation problem

Kamal Gakhar kgakhar at gmail.com
Mon Jan 1 03:21:21 PST 2007


Hi,
I installed TinyOS as explained on the webpage for TinyOS 2.0. I am using a
debian 2.6.8-2-386. When I try to run "make micaz sim" at
"/opt/tiny~/apps/Blink/" as explained on online tutorial, I get the
following error. I think there is some installation problem but being
totally novice to TinyOS I am not able to figure it out alone.
I am including a small part of error that I get. Please go through the
following and suggest some help !!!

*********************************************************************
(Also make mica2 sim didn't work.. it gives something like...
 make mica2 sim
mkdir -p build/mica2
  placing object files in build/mica2
  writing XML schema to app.xml
  compiling BlinkAppC 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\(\)   -finline-limit=100000 -Wall -Wshadow
-Wnesc-all -target=mica2 -fnesc-cfile=build/mica2/app.c -board=micasb
-Wno-nesc-data-race BlinkAppC.nc   -fnesc-dump=components
-fnesc-dump=variables -fnesc-dump=constants -fnesc-dump=typedefs
-fnesc-dump=interfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml
Unknown target mica2
Known targets for TinyOS directory /opt/tinyos-2.x/tos
and the specified include directories are:
  intelmote2 eyesIFXv1 eyesIFXv2 mica2dot mica2 tinynode micaz null telosb
make: *** [sim-exe] Error 2

************************************************************
make micaz sim
mkdir -p build/micaz
  placing object files in build/micaz
  writing XML schema to app.xml
  compiling BlinkAppC 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
-Wno-nesc-data-race BlinkAppC.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 build/micaz/pytossim.o -g -O0
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx
-I/usr/include/python2.3 -I/opt/tinyos-2.x/tos/lib/tossim -DHAVE_CONFIG_H
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:129:20: Python.h: No such
file or directory
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:718:20: Python.h: No such
file or directory
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:736: error: syntax error
before
   `*' token
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:741: error: `ap' was not
   declared in this scope
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:741: error: `fmt' was not
   declared in this scope
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:741: error: ISO C++ forbids
   declaration of `va_start' with no type
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:741: error: initializer list
   being treated as compound expression
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:742: error: ISO C++ forbids
   declaration of `res' with no type
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:742: error: redefinition of
`int
   res'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:740: error: `int res'
previously
   declared here
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:742: error: `fmt' was not
   declared in this scope
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:742: error: `ap' was not
   declared in this scope
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:742: error: `vsnprintf' was
not
   declared in this scope
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:743: error: `ap' was not
   declared in this scope
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:743: error: ISO C++ forbids
   declaration of `va_end' with no type
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:744: error: parse error
before `
   return'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:791: error: syntax error
before
   `*' token
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:794: error: `result' was not
   declared in this scope
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:794: error: ISO C++ forbids
   declaration of `Py_INCREF' with no type
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:795: error: parse error
before `
   return'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:804: error: syntax error
before
   `*' token
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx: In function `void
   SWIG_Python_AddErrorMsg(const char*)':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:851: error: `PyObject'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20070101/21cb74b3/attachment.html


More information about the Tinyos-help mailing list