[Tinyos-help] Cannot compile TOSSIM 2.0!!

ANDREW VAN DER BYL 200699350 at cput.ac.za
Wed Jun 14 02:25:22 PDT 2006


Hi there,

Try: make micaz sim-cygwin

Regards,
Andrew

>>> "Luis E. Palafox-Maestre" <palafox at cicese.mx> 06/13/06 10:43 PM >>>
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


_______________________________________________
Tinyos-help mailing list
Tinyos-help at Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

--------------------------------------------------------------------
Disclaimer 
This e-mail transmission contains confidential information,
which is the property of the sender.
The information in this e-mail or attachments thereto is 
intended for the attention and use only of the addressee. 
Should you have received this e-mail in error, please delete 
and destroy it and any attachments thereto immediately. 
Under no circumstances will the Cape Peninsula University of 
Technology or the sender of this e-mail be liable to any party for
any direct, indirect, special or other consequential damages for any
use of this e-mail.
For the detailed e-mail disclaimer please refer to 
http://www.cput.ac.za/email.php or call +27 (0)21 460 3911



More information about the Tinyos-help mailing list