I just noticed that I cannot even compile a normal pc application i.e. without nucleus. Is it because I forgot to add any path or somthing. I just want to inform that I tried to install Nucleus before this and followed all the steps successfully mentioned in its manual. I installed it on cygwin, however, I couldnot installed it on Debian as there was some other problem with it. Please give a look.

Regards,
Sumit

On 9/6/06, Sumit Gupta <[EMAIL PROTECTED]> wrote:
Adding to the problem, it seems that there is a problem with ....tinyos-1.x/tos/platform/pc/hpl.c file. Please look into it.

Also, I hve seen a suggestion posted at http://mail.millennium.berkeley.edu/pipermail/tinyos-commits/2005-June/006162.html

Making change in it because of simulation problem mentioned on it. Should we do it? Please send me the correct hpl.c file as I am incapable of fixing this error.

Regards,
Sumit


On 9/6/06, Sumit Gupta < [EMAIL PROTECTED]> wrote:
Hi,

I installed nucleus on cygwin and I am having some problem while compiling an application /tinyos-1.x/apps/CntToLeds. I followed instructions given in Nucleus Manual but I am Getting following errors only when I am trying to compile it with PC platform. (make pc nucleus) but it compiled fine when I tried to compile it with platform mica2 (make mica2 nucleus).

Please help me in sorting this problem.

$ make pc nucleus
mkdir -p build/pc

** Removing old generated files prior to compilation

rm -f build/pc/AttrGenC.nc build/pc/EventGenC.nc
rm -f build/pc/nucleusSchema.xml

** Generating nesC interface dump for CntToLeds on pc

ncc -fsyntax-only -fnesc-dump=interfaces -fnesc-dump=tags -g -O0 -pthread -I%T/l
ib/Counters -I -fnesc-nido-tosnodes=1000  -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d
 -Wnesc-all -target=pc -fnesc-cfile=build/pc/app.c -board=micasb -I/opt/tinyos-1
.x/tos/../beta/Drip -I/opt/tinyos-1.x/tos/../beta/Drain -I/opt/tinyos-1.x/tos/..
/contrib/nucleus/tos/lib/Nucleus -I%T/../beta/Drip -I%T/../beta/Drain -I%T/../co
ntrib/nucleus/tos/lib/Nucleus -I%T/../contrib/nucleus/tos/lib/NucleusExamples -D
IDENT_PROGRAM_NAME="CntToLeds" -DIDENT_PROGRAM_NAME_BYTES="67,110,116,84,111,76,
101,100,115,0" -DIDENT_USER_ID="Sumit" -DIDENT_USER_ID_BYTES="83,117,109,105,116
,0" -DIDENT_HOSTNAME="superComp" -DIDENT_HOSTNAME_BYTES="115,117,112,101,114,67,
111,109,112,0" -DIDENT_USER_HASH=0x85ed13fbL -DIDENT_UNIX_TIME=0x44fe76b3L CntTo
Leds.nc -lm  > build/pc/nesc.xml
In file included from /opt/tinyos-1.x/tos/platform/pc/hardware.h:43,
                 from /opt/tinyos-1.x/tos/system/tos.h:144:
/opt/tinyos-1.x/tos/platform/pc/nido.h:63: `TOSH_NUM_NODES' undeclared here (not
 in a function)
/opt/tinyos-1.x/tos/platform/pc/nido.h:63: enumerator value for `TOSNODES' not i
nteger constant
In file included from /opt/tinyos-1.x/tos/platform/pc/hardware.h:110,
                 from /opt/tinyos-1.x/tos/system/tos.h:144:
/opt/tinyos-1.x/tos/platform/pc/hpl.c: In function `TOSH_clock_set_interval':
/opt/tinyos-1.x/tos/platform/pc/hpl.c:65: warning: implicit declaration of funct
ion `event_clocktick_invalidate'
/opt/tinyos-1.x/tos/platform/pc/hpl.c:80: warning: implicit declaration of funct
ion `event_clocktick_create'
/opt/tinyos-1.x/tos/platform/pc/hpl.c: In function `TOSH_clock_set_rate':
/opt/tinyos-1.x/tos/platform/pc/hpl.c:94: warning: implicit declaration of funct
ion `event_clocktick_invalidate'
/opt/tinyos-1.x/tos/platform/pc/hpl.c:105: warning: implicit declaration of func
tion `event_clocktick_create'
/opt/tinyos-1.x/tos/platform/pc/hpl.c: In function `TOSH_clock_int_disable':
/opt/tinyos-1.x/tos/platform/pc/hpl.c:138: `clock_tick_data_t' undeclared (first
 use in this function)
/opt/tinyos-1.x/tos/platform/pc/hpl.c:138: (Each undeclared identifier is report
ed only once
/opt/tinyos-1.x/tos/platform/pc/hpl.c:138: for each function it appears in.)
/opt/tinyos-1.x/tos/platform/pc/hpl.c:138: `data' undeclared (first use in this
function)
/opt/tinyos-1.x/tos/platform/pc/hpl.c:138: syntax error before `)'
/opt/tinyos-1.x/tos/platform/pc/hpl.c: In function `TOSH_clock_int_enable':
/opt/tinyos-1.x/tos/platform/pc/hpl.c:145: `clock_tick_data_t' undeclared (first
 use in this function)
/opt/tinyos-1.x/tos/platform/pc/hpl.c:145: `data' undeclared (first use in this
function)
/opt/tinyos-1.x/tos/platform/pc/hpl.c:145: syntax error before `)'
/opt/tinyos-1.x/tos/platform/pc/hpl.c: In function `event_clocktick_handle':
/opt/tinyos-1.x/tos/platform/pc/hpl.c:160: `clock_tick_data_t' undeclared (first
 use in this function)
/opt/tinyos-1.x/tos/platform/pc/hpl.c:160: `data' undeclared (first use in this
function)
/opt/tinyos-1.x/tos/platform/pc/hpl.c:160: syntax error before `)'
/opt/tinyos-1.x/tos/platform/pc/hpl.c: In function `event_clocktick_create':
/opt/tinyos-1.x/tos/platform/pc/hpl.c:194: `clock_tick_data_t' undeclared (first
 use in this function)
/opt/tinyos-1.x/tos/platform/pc/hpl.c:194: `data' undeclared (first use in this
function)
/opt/tinyos-1.x/tos/platform/pc/hpl.c: In function `event_clocktick_invalidate':

/opt/tinyos-1.x/tos/platform/pc/hpl.c:212: `clock_tick_data_t' undeclared (first
 use in this function)
/opt/tinyos-1.x/tos/platform/pc/hpl.c:212: `data' undeclared (first use in this
function)
/opt/tinyos-1.x/tos/platform/pc/hpl.c: In function `TOSH_adc_sample_port':
/opt/tinyos-1.x/tos/platform/pc/hpl.c:248: warning: implicit declaration of func
tion `event_adc_create'
/opt/tinyos-1.x/tos/platform/pc/hpl.c:253: warning: implicit declaration of func
tion `event_adc_update'
/opt/tinyos-1.x/tos/platform/pc/hpl.c: In function `TOSH_adc_sample_again':
/opt/tinyos-1.x/tos/platform/pc/hpl.c:263: `adc_tick_data_t' undeclared (first u
se in this function)
/opt/tinyos-1.x/tos/platform/pc/hpl.c:263: `data' undeclared (first use in this
function)
/opt/tinyos-1.x/tos/platform/pc/hpl.c: In function `TOSH_adc_sample_stop':
/opt/tinyos-1.x/tos/platform/pc/hpl.c:274: `adc_tick_data_t' undeclared (first u
se in this function)
/opt/tinyos-1.x/tos/platform/pc/hpl.c:274: syntax error before `)'
/opt/tinyos-1.x/tos/platform/pc/hpl.c: In function `SIG_ADC_signal':
/opt/tinyos-1.x/tos/platform/pc/hpl.c:284: `adc_tick_data_t' undeclared (first u
se in this function)
/opt/tinyos-1.x/tos/platform/pc/hpl.c:284: syntax error before `)'
/opt/tinyos-1.x/tos/platform/pc/hpl.c: In function `event_adc_handle':
/opt/tinyos-1.x/tos/platform/pc/hpl.c:296: `adc_tick_data_t' undeclared (first u
se in this function)
/opt/tinyos-1.x/tos/platform/pc/hpl.c:296: syntax error before `)'
/opt/tinyos-1.x/tos/platform/pc/hpl.c: In function `event_adc_update':
/opt/tinyos-1.x/tos/platform/pc/hpl.c:313: `adc_tick_data_t' undeclared (first u
se in this function)
/opt/tinyos-1.x/tos/platform/pc/hpl.c:313: `data' undeclared (first use in this
function)
/opt/tinyos-1.x/tos/platform/pc/hpl.c: In function `event_adc_create':
/opt/tinyos-1.x/tos/platform/pc/hpl.c:321: `adc_tick_data_t' undeclared (first u
se in this function)
/opt/tinyos-1.x/tos/platform/pc/hpl.c:321: `data' undeclared (first use in this
function)
/opt/tinyos-1.x/tos/platform/pc/hpl.c:321: syntax error before `)'
/opt/tinyos-1.x/tos/platform/pc/hpl.c: In function `TOSH_rfm_set_bit_rate':
/opt/tinyos-1.x/tos/platform/pc/hpl.c:367: warning: implicit declaration of func
tion `event_radiotick_invalidate'
/opt/tinyos-1.x/tos/platform/pc/hpl.c:377: warning: implicit declaration of func
tion `event_radiotick_create'
/opt/tinyos-1.x/tos/platform/pc/hpl.c: In function `event_radiotick_handle':
/opt/tinyos-1.x/tos/platform/pc/hpl.c:419: `radio_tick_data_t' undeclared (first
 use in this function)
/opt/tinyos-1.x/tos/platform/pc/hpl.c:419: `data' undeclared (first use in this
function)
/opt/tinyos-1.x/tos/platform/pc/hpl.c:419: syntax error before `)'
/opt/tinyos-1.x/tos/platform/pc/hpl.c: In function `event_radiotick_create':
/opt/tinyos-1.x/tos/platform/pc/hpl.c:444: `radio_tick_data_t' undeclared (first
 use in this function)
/opt/tinyos-1.x/tos/platform/pc/hpl.c:444: `data' undeclared (first use in this
function)
/opt/tinyos-1.x/tos/platform/pc/hpl.c:444: syntax error before `)'
/opt/tinyos-1.x/tos/platform/pc/hpl.c: In function `event_radiotick_invalidate':

/opt/tinyos-1.x/tos/platform/pc/hpl.c:460: `clock_tick_data_t' undeclared (first
 use in this function)
/opt/tinyos-1.x/tos/platform/pc/hpl.c:460: `data' undeclared (first use in this
function)
make: *** [nucleus_wiring] Error 1

I couldnot understand what went wrong for PC platform. Please help.

Regards,
Sumit


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

Reply via email to