[Tinyos-help] Cannot compile TOSSIM 2.0!!
Luis E. Palafox-Maestre
palafox at cicese.mx
Tue Jun 13 13:43:47 PDT 2006
Hi,
I recently upgraded to TinyOS 2, and I'm having trouble compiling
for TOSSIM 2, this is what I get:
$ 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 -fPIC -o build/micaz/sim.o -g -O0 -tossim -fnesc-nido-tosnodes=1000
-fnes
c-simulate -fnesc-nido-motenumber=sim_node\(\) -finline-limit=100000 -Wall
-Ws
hadow -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=inte
rfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml
In file included from C:/cygwin/opt/tinyos-2.x/tos/lib/tossim/sim_mac.c:34,
from C:/cygwin/opt/tinyos-2.x/tos/lib/tossim/tos.h:90:
C:/cygwin/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
C:/cygwin/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
C:/cygwin/opt/tinyos-2.x/tos/lib/tossim/sim_gain.c: In function
`sim_gain_alloca
te_link':
C:/cygwin/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
C:/cygwin/opt/tinyos-2.x/tos/lib/tossim/sim_gain.c: At top level:
C:/cygwin/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
C:/cygwin/opt/tinyos-2.x/tos/chips/atm128/timer/sim/HplAtm
128Timer0AsyncC.nc:53,
from
C:/cygwin/opt/tinyos-2.x/tos/platforms/mica/AlarmCounterMi
lliP.nc:30,
from
C:/cygwin/opt/tinyos-2.x/tos/platforms/mica/sim/HilTimerMi
lliC.nc:41,
from C:/cygwin/opt/tinyos-2.x/tos/system/TimerMilliP.nc:41,
from C:/cygwin/opt/tinyos-2.x/tos/system/TimerMilliC.nc:40,
from BlinkAppC.nc:46:
In component `HplAtm128Counter0C':
C:/cygwin/opt/tinyos-2.x/tos/chips/atm128/timer/sim/HplAtm128Counter0C.nc:
In fu
nction `timer0_overflow_handle':
C:/cygwin/opt/tinyos-2.x/tos/chips/atm128/timer/sim/HplAtm128Counter0C.nc:31
1: w
arning: declaration of `time' shadows global declaration
/usr/include/time.h:49: warning: location of shadowed declaration
In file included from
C:/cygwin/opt/tinyos-2.x/tos/chips/atm128/timer/sim/HplAtm
128Timer0AsyncC.nc:58,
from
C:/cygwin/opt/tinyos-2.x/tos/platforms/mica/AlarmCounterMi
lliP.nc:30,
from
C:/cygwin/opt/tinyos-2.x/tos/platforms/mica/sim/HilTimerMi
lliC.nc:41,
from C:/cygwin/opt/tinyos-2.x/tos/system/TimerMilliP.nc:41,
from C:/cygwin/opt/tinyos-2.x/tos/system/TimerMilliC.nc:40,
from BlinkAppC.nc:46:
In component `HplAtm128CompareC':
C:/cygwin/opt/tinyos-2.x/tos/chips/atm128/timer/sim/HplAtm128CompareC.nc: In
fun
ction `timer0_compare_handle':
C:/cygwin/opt/tinyos-2.x/tos/chips/atm128/timer/sim/HplAtm128CompareC.nc:195
: wa
rning: 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)
.
.
.
.
And afterward everything fails! :-)
Thanks in advance,
Luis Enrique Palafox-Maestre
More information about the Tinyos-help
mailing list