Hi all,
        
        when I compile the Printf application for the micaz platform everything 
works 
fine.

When I try the same for the Intelmote2 platform I get the following error 
message:
------------------------------------------------------------------------------------
administra...@liuyang /opt/tinyos-2.x/apps/tutorials/Printf
$ make intelmote2 debug
/opt/tinyos-2.x-contrib/intelmote2/support/make/intelmote2.extra:41: warning: ov
erriding commands for target `bytes'
/opt/tinyos-2.x/support/make/pxa27x/pxa27x.rules:102: warning: ignoring old comm
ands for target `bytes'
mkdir -p build/intelmote2
echo  -mcpu=iwmmxt -mfpu=softfpa -defsym BOOTLOADER=1  /opt/tinyos-2.x-contrib/i
ntelmote2/tos/platforms/intelmote2/toscrt0.s /opt/tinyos-2.x-contrib/intelmote2/
tos/chips/pxa27x/pxa27x_util.s /opt/tinyos-2.x-contrib/intelmote2/tos/chips/pxa2
7x/mmu_table.s -o build/intelmote2/asms.o
-mcpu=iwmmxt -mfpu=softfpa -defsym BOOTLOADER=1 /opt/tinyos-2.x-contrib/intelmot
e2/tos/platforms/intelmote2/toscrt0.s /opt/tinyos-2.x-contrib/intelmote2/tos/chi
ps/pxa27x/pxa27x_util.s /opt/tinyos-2.x-contrib/intelmote2/tos/chips/pxa27x/mmu_
table.s -o build/intelmote2/asms.o
    compiling TestPrintfAppC to a intelmote2 binary
ncc -o build/intelmote2/main.exe -g -fnesc-no-inline -I/opt/tinyos-2.x-contrib/i
ntelmote2/tos/platforms/intelmote2/chips/da9030 -I/opt/tinyos-2.x-contrib/intelm
ote2/tos/platforms/intelmote2 -I/opt/tinyos-2.x-contrib/intelmote2/tos/chips/pxa
27x -I/opt/tinyos-2.x-contrib/intelmote2/tos/sensorboards/im2cb -I/opt/tinyos-2.
x-contrib/intelmote2/tos/sensorboards/xbow_cb -I/opt/tinyos-2.x-contrib/intelmot
e2/tos/platforms/intelmote2/chips/da9030 -I/opt/tinyos-2.x-contrib/intelmote2/to
s/platforms/intelmote2 -I/opt/tinyos-2.x-contrib/intelmote2/tos/chips/pxa27x -I/
opt/tinyos-2.x-contrib/intelmote2/tos/chips/ov7649 -I/opt/tinyos-2.x-contrib/int
elmote2/tos/chips/ov7670 -I/opt/tinyos-2.x/tos/lib/printf -Wall -Wshadow -Wnesc-
all -target=intelmote2 -fnesc-cfile=build/intelmote2/app.c -board= -DDEFINED_TOS
_AM_GROUP=0x22 -DBOOTLOADER -T/opt/tinyos-2.x-contrib/intelmote2/tos/platforms/i
ntelmote2/tos.x -DSYSTEM_CORE_FREQUENCY=13 -DSYSTEM_BUS_FREQUENCY=13  TestPrintf
AppC.nc -lm  /opt/tinyos-2.x-contrib/intelmote2/tos/platforms/intelmote2/toscrt0
.s /opt/tinyos-2.x-contrib/intelmote2/tos/chips/pxa27x/pxa27x_util.s /opt/tinyos
-2.x-contrib/intelmote2/tos/chips/pxa27x/mmu_table.s
In file included from /opt/tinyos-2.x/tos/lib/printf/PrintfC.nc:56,
                 from /opt/tinyos-2.x/tos/lib/printf/MainC.nc:51,
                 from TestPrintfAppC.nc:41:
In component `PrintfP':
/opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:171: syntax error before `if'
/opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:173: warning: return-type defaults to
`int'
/opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:173: conflicting types for `sendNext'
/opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:132: previous declaration of `sendNext
'
/opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:173: warning: data definition has no t
ype or storage class
/opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:175: syntax error before `atomic'
In file included from TestPrintfAppC.nc:41:
In component `TestPrintfC':
TestPrintfC.nc: In function `Boot.booted':
TestPrintfC.nc:50: implicit declaration of function `printf'
make: *** [exe0] Error 1
-----------------------------------------------------------------------------------

How can I solve the problem?

Best regards,                           
--------------
LIU Yang
2009-08-18

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to