Hi,
I installed TinyOS 2 on a Windows machine using the instructions in
http://www.tinyos.net/tinyos-2.x/doc/html/install-tinyos.html. I
installed a new copy of Cygwin from the provided tar.gz package (after
trying the standard distribution of cygwin, which didn't work because it
included Python 2.4 and not 2.3).
While working throught the tutorial "Lesson 1: TinyOS", I was unable to
build Blink for the target "micaz sim". The build failed with the
following link errors (I chopped the end). The build went fine for
telosb and for micaz (without sim).
I would appreciate any help.
Thanks, Sivan Toledo
=========================================================================
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 -DDEF_TOS_AM_GROUP=0x7d -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
In file included from /opt/tinyos-2.x/tos/lib/tossim/sim_mac.c:34,
from /opt/tinyos-2.x/tos/lib/tossim/tos.h:90:
/opt/tinyos-2.x/tos/lib/tossim/sim_gain.c:14: warning: declaration of
`link' shadows global declaration
/usr/include/sys/unistd.h:97: warning: location of shadowed declaration
/opt/tinyos-2.x/tos/lib/tossim/sim_gain.c:20: warning: declaration of
`link' shadows global declaration
/usr/include/sys/unistd.h:97: warning: location of shadowed declaration
/opt/tinyos-2.x/tos/lib/tossim/sim_gain.c: In function
`sim_gain_allocate_link':
/opt/tinyos-2.x/tos/lib/tossim/sim_gain.c:134: warning: declaration of
`link' shadows global declaration
/usr/include/sys/unistd.h:97: warning: location of shadowed declaration
/opt/tinyos-2.x/tos/lib/tossim/sim_gain.c: At top level:
/opt/tinyos-2.x/tos/lib/tossim/sim_gain.c:141: warning: declaration of
`link' shadows global declaration
/usr/include/sys/unistd.h:97: warning: location of shadowed declaration
In file included from
/opt/tinyos-2.x/tos/chips/atm128/timer/sim/HplAtm128Timer0AsyncC.nc:58,
from
/opt/tinyos-2.x/tos/platforms/mica/AlarmCounterMilliP.nc:30,
from
/opt/tinyos-2.x/tos/platforms/mica/sim/HilTimerMilliC.nc:41,
from /opt/tinyos-2.x/tos/system/TimerMilliP.nc:41,
from /opt/tinyos-2.x/tos/system/TimerMilliC.nc:40,
from BlinkAppC.nc:46:
In component `HplAtm128CompareC':
/opt/tinyos-2.x/tos/chips/atm128/timer/sim/HplAtm128CompareC.nc: In
function `timer0_compare_handle':
/opt/tinyos-2.x/tos/chips/atm128/timer/sim/HplAtm128CompareC.nc:195:
warning: declaration of `time' shadows global declaration
/usr/include/time.h:49: warning: location of shadowed declaration
cc1: warning: -fPIC ignored for target (all code is position independent)
compiling Python support into pytossim.o and tossim.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
cc1plus: warning: -fPIC ignored for target (all code is position
independent)
g++ -c -shared -fPIC -o build/micaz/tossim.o -g -O0
/opt/tinyos-2.x/tos/lib/tossim/tossim.c -I/usr/include/python2.3
-I/opt/tinyos-2.x/tos/lib/tossim
cc1plus: warning: -fPIC ignored for target (all code is position
independent)
linking into shared object ./_TOSSIMmodule.so
g++ -shared -fPIC build/micaz/pytossim.o build/micaz/sim.o
build/micaz/tossim.o -lstdc++ -o _TOSSIMmodule.so
build/micaz/pytossim.o(.text+0x490): In function `swig_varlink_repr':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:388: undefined reference
to `_PyString_FromString'
build/micaz/pytossim.o(.text+0x56e): In function `swig_varlink_getattr':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:413: undefined reference
to `__imp__PyExc_NameError'
build/micaz/pytossim.o(.text+0x578):/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:413:
undefined reference to `_PyErr_SetString'
build/micaz/pytossim.o(.text+0x5de): In function `swig_varlink_setattr':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:426: undefined reference
to `__imp__PyExc_NameError'
build/micaz/pytossim.o(.text+0x5e8):/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:426:
undefined reference to `_PyErr_SetString'
build/micaz/pytossim.o(.text+0x615): In function `SWIG_Python_newvarlink':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:452: undefined reference
to `__imp__PyType_Type'
build/micaz/pytossim.o(.text+0x6f7): In function `SWIG_Python_ConvertPtr':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:484: undefined reference
to `__imp___Py_NoneStruct'
build/micaz/pytossim.o(.text+0x71a):/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:506:
undefined reference to `__imp__PyString_Type'
build/micaz/pytossim.o(.text+0x725):/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:506:
undefined reference to `__imp__PyString_Type'
build/micaz/pytossim.o(.text+0x737):/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:506:
undefined reference to `_PyType_IsSubtype'
build/micaz/pytossim.o(.text+0x754):/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:508:
undefined reference to `_PyString_FromString'
build/micaz/pytossim.o(.text+0x773):/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:510:
undefined reference to `_PyObject_GetAttr'
build/micaz/pytossim.o(.text+0x794):/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:513:
undefined reference to `__imp__PyString_Type'
build/micaz/pytossim.o(.text+0x79b):/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:513:
undefined reference to `__imp__PyString_Type'
build/micaz/pytossim.o(.text+0x7ad):/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:513:
undefined reference to `_PyType_IsSubtype'
build/micaz/pytossim.o(.text+0x7e1):/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:518:
undefined reference to `_PyString_AsString'
build/micaz/pytossim.o(.text+0x909):/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:546:
undefined reference to `_PyInt_FromLong'
build/micaz/pytossim.o(.text+0x926):/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:547:
undefined reference to `_PyObject_SetAttrString'
build/micaz/pytossim.o(.text+0x9c3):/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:557:
undefined reference to `__imp__PyExc_TypeError'
build/micaz/pytossim.o(.text+0x9cd):/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:557:
undefined reference to `_PyErr_SetString'
build/micaz/pytossim.o(.text+0x9e7):/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:560:
undefined reference to `__imp__PyExc_TypeError'
build/micaz/pytossim.o(.text+0x9f1):/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:560:
undefined reference to `_PyErr_SetString'
build/micaz/pytossim.o(.text+0xa54): In function
`SWIG_Python_ConvertPacked':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:580: undefined reference
to `__imp__PyString_Type'
build/micaz/pytossim.o(.text+0xa5b):/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:580:
undefined reference to `__imp__PyString_Type'
build/micaz/pytossim.o(.text+0xa6d):/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:580:
undefined reference to `_PyType_IsSubtype'
build/micaz/pytossim.o(.text+0xa7e):/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:581:
undefined reference to `_PyString_AsString'
build/micaz/pytossim.o(.text+0xb4b):/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:598:
undefined reference to `__imp__PyExc_TypeError'
build/micaz/pytossim.o(.text+0xb55):/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:598:
undefined reference to `_PyErr_SetString'
build/micaz/pytossim.o(.text+0xb6f):/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:601:
undefined reference to `__imp__PyExc_TypeError'
build/micaz/pytossim.o(.text+0xb79):/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:601:
undefined reference to `_PyErr_SetString'
build/micaz/pytossim.o(.text+0xb9e): In function
`SWIG_Python_NewPointerObj':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:612: undefined reference
to `__imp___Py_NoneStruct'
...
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help