Hi,
I have a problem in TinyOS 2.0 under Linux environment, when I try to
compiling TOSSIM on the application TestLPL with the following command
env CFLAGS="-I%T/chips/cc2420_lpl -DLOW_POWER_LISTENING" make micaz sim
I have errors. The strange thing is that I do not have problems with other
applications.
Can someone help me?? Here are the errors that I have.
Thanks for any help
Miguel Pereira
[EMAIL PROTECTED] TestLPL]# env CFLAGS="-I%T/chips/cc2420_lpl
-DLOW_POWER_LISTENING" make micaz sim mkdir -p build/micaz
placing object files in build/micaz
writing XML schema to app.xml
compiling TestLplAppC 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
-I%T/chips/cc2420_lpl -DLOW_POWER_LISTENING -Wno-nesc-data-race
TestLplAppC.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/cc2420_lpl/CC2420ActiveMessageC.nc:36,
from TestLplAppC.nc:49:
/opt/tinyos-2.x/tos/chips/cc2420_lpl/CC2420.h:59: syntax error before
`nx_bool'
/opt/tinyos-2.x/tos/chips/cc2420_lpl/CC2420.h:59: warning: no semicolon at
end of struct or union
/opt/tinyos-2.x/tos/chips/cc2420_lpl/CC2420.h:60: syntax error before `ack'
/opt/tinyos-2.x/tos/chips/cc2420_lpl/CC2420.h:63: syntax error before `}'
/opt/tinyos-2.x/tos/chips/cc2420_lpl/CC2420.h:63: warning: type defaults to
`int' in declaration of `cc2420_metadata_t'
/opt/tinyos-2.x/tos/chips/cc2420_lpl/CC2420.h:63: warning: data definition
has no type or storage class
In file included from /opt/tinyos-2.x
/tos/chips/cc2420_lpl/CC2420CsmaC.nc:55,
from /opt/tinyos-2.x
/tos/chips/cc2420_lpl/CC2420ActiveMessageC.nc:55,
from TestLplAppC.nc:49:
In component `CC2420CsmaP':
/opt/tinyos-2.x/tos/chips/cc2420_lpl/CC2420CsmaP.nc:79: syntax error before
`*'
In file included from /opt/tinyos-2.x
/tos/platforms/mica/Alarm32khz32C.nc:24:
/opt/tinyos-2.x/tos/platforms/mica/MicaTimer.h:121:2: #error "Unknown clock
rate. MHZ must be defined to one of 1, 2, 4, or 8."
In file included from /opt/tinyos-2.x
/tos/chips/cc2420_lpl/AlarmMultiplexC.nc:52,
from /opt/tinyos-2.x
/tos/chips/cc2420_lpl/CC2420ControlC.nc:62,
from /opt/tinyos-2.x
/tos/chips/cc2420_lpl/CC2420CsmaC.nc:62,
from /opt/tinyos-2.x
/tos/chips/cc2420_lpl/CC2420ActiveMessageC.nc:55,
from TestLplAppC.nc:49:
In component `HplCC2420AlarmC':
/opt/tinyos-2.x/tos/platforms/micaz/chips/cc2420/HplCC2420AlarmC.nc:72:
failed to preprocess /opt/tinyos-2.x/tos/platforms/mica/Alarm32khz32C.nc
/opt/tinyos-2.x/tos/platforms/micaz/chips/cc2420/HplCC2420AlarmC.nc:72:
component `Alarm32khz32C' is not generic
/opt/tinyos-2.x/tos/platforms/micaz/chips/cc2420/HplCC2420AlarmC.nc:75: no
match
In file included from /opt/tinyos-2.x
/tos/platforms/micaz/chips/cc2420/HplCC2420InterruptsC.nc:39,
from /opt/tinyos-2.x
/tos/chips/cc2420_lpl/CC2420ControlC.nc:70,
from /opt/tinyos-2.x
/tos/chips/cc2420_lpl/CC2420CsmaC.nc:62,
from /opt/tinyos-2.x
/tos/chips/cc2420_lpl/CC2420ActiveMessageC.nc:55,
from TestLplAppC.nc:49:
In interface `GpioCapture':
/opt/tinyos-2.x/tos/interfaces/GpioCapture.nc:50: warning: declaration of
`time' shadows global declaration
/opt/tinyos-2.x/tos/chips/cc2420_lpl/CC2420.h:61: warning: location of
shadowed declaration
In file included from /opt/tinyos-2.x
/tos/platforms/micaz/chips/cc2420/HplCC2420InterruptsC.nc:47,
from /opt/tinyos-2.x
/tos/chips/cc2420_lpl/CC2420ControlC.nc:70,
from /opt/tinyos-2.x
/tos/chips/cc2420_lpl/CC2420CsmaC.nc:62,
from /opt/tinyos-2.x
/tos/chips/cc2420_lpl/CC2420ActiveMessageC.nc:55,
from TestLplAppC.nc:49:
In component `Atm128GpioCaptureC':
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128GpioCaptureC.nc:64: warning:
declaration of `time' shadows global declaration
/opt/tinyos-2.x/tos/chips/cc2420_lpl/CC2420.h:61: warning: location of
shadowed declaration
In file included from /opt/tinyos-2.x
/tos/chips/atm128/timer/HplAtm128Timer1C.nc:44,
from /opt/tinyos-2.x
/tos/platforms/micaz/chips/cc2420/HplCC2420InterruptsC.nc:48,
from /opt/tinyos-2.x
/tos/chips/cc2420_lpl/CC2420ControlC.nc:70,
from /opt/tinyos-2.x
/tos/chips/cc2420_lpl/CC2420CsmaC.nc:62,
from /opt/tinyos-2.x
/tos/chips/cc2420_lpl/CC2420ActiveMessageC.nc:55,
from TestLplAppC.nc:49:
In component `HplAtm128Timer1P':
/opt/tinyos-2.x/tos/chips/atm128/timer/HplAtm128Timer1P.nc:206: warning:
declaration of `time' shadows global declaration
/opt/tinyos-2.x/tos/chips/cc2420_lpl/CC2420.h:61: warning: location of
shadowed declaration
In file included from /opt/tinyos-2.x
/tos/platforms/micaz/chips/cc2420/HplCC2420InterruptsC.nc:53,
from /opt/tinyos-2.x
/tos/chips/cc2420_lpl/CC2420ControlC.nc:70,
from /opt/tinyos-2.x
/tos/chips/cc2420_lpl/CC2420CsmaC.nc:62,
from /opt/tinyos-2.x
/tos/chips/cc2420_lpl/CC2420ActiveMessageC.nc:55,
from TestLplAppC.nc:49:
In component `HplAtm128InterruptPinP':
/opt/tinyos-2.x/tos/chips/atm128/pins/HplAtm128InterruptC.nc:53: component
arguments must be constants
In component `HplAtm128InterruptPinP':
/opt/tinyos-2.x/tos/chips/atm128/pins/HplAtm128InterruptC.nc:54: component
arguments must be constants
In component `HplAtm128InterruptPinP':
/opt/tinyos-2.x/tos/chips/atm128/pins/HplAtm128InterruptC.nc:55: component
arguments must be constants
In component `HplAtm128InterruptPinP':
/opt/tinyos-2.x/tos/chips/atm128/pins/HplAtm128InterruptC.nc:56: component
arguments must be constants
In component `HplAtm128InterruptPinP':
/opt/tinyos-2.x/tos/chips/atm128/pins/HplAtm128InterruptC.nc:57: component
arguments must be constants
In component `HplAtm128InterruptPinP':
(...)
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help