Hi everyone again

I have now figured out what the problem was. Apparently TOSSIM does not work
well with nx_bool in TinyOS 2 so I replaced that with nx_uint8_t and that
did the trick.  But now everything compiles so all is good :)

With regards,
Elvar Olafsson

On Wed, Apr 23, 2008 at 10:49 AM, Elvar Ólafsson <[EMAIL PROTECTED]> wrote:

> Hi everyone.
>
> I have a small issue with make micaz at  the moment. When I compile my
> code using make micaz I get the following output:
>
>
> mkdir -p build/micaz
>     compiling AmcaAppC to a micaz binary
> ncc -o build/micaz/main.exe -Os -finline-limit=100000 -Wall -Wshadow
> -Wnesc-all -target=micaz -fnesc-cfile=build/micaz/app.c -board=micasb
> -DIDENT_PROGRAM_NAME=\"AmcaAppC\" -DIDENT_USER_ID=\"elvar\"
> -DIDENT_HOSTNAME=\"elvar-laptop\" -DIDENT_USER_HASH=0xae04bb44L
> -DIDENT_UNIX_TIME=0x480ef5d6L -DIDENT_UID_HASH=0xfe1353f4L
> -fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())'
> -fnesc-dump='referenced(interfacedefs, components)'
> -fnesc-dumpfile=build/micaz/wiring-check.xml AmcaAppC.nc -lm
> In file included from AmcaAppC.nc:1:
> amca.h:9: warning: decimal constant is so large that it is unsigned
> AmcaC.nc: In function `AmcaC$Receive$receive':
> AmcaC.nc:110: warning: no return statement in function returning non-void
> AmcaC.nc: In function `AmcaC$selectMyClusterHead':
> AmcaC.nc:232: warning: 'Plist' might be used uninitialized in this
> function
>     compiled AmcaAppC to build/micaz/main.exe
>            13978 bytes in ROM
>              411 bytes in RAM
> avr-objcopy --output-target=srec build/micaz/main.exe
> build/micaz/main.srec
> avr-objcopy --output-target=ihex build/micaz/main.exe
> build/micaz/main.ihex
>     writing TOS image
>
> So this compiles fine, however when I run make micaz sim, I get the
> following output (I will only show a small part of the output since it is
> slightly longer then the previous one):
>
> mkdir -p build/micaz
>   placing object files in build/micaz
>   writing XML schema to app.xml
>   compiling AmcaAppC 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
> -DIDENT_PROGRAM_NAME=\"AmcaAppC\" -DIDENT_USER_ID=\"elvar\"
> -DIDENT_HOSTNAME=\"elvar-laptop\" -DIDENT_USER_HASH=0xae04bb44L
> -DIDENT_UNIX_TIME=0x480ef652L -DIDENT_UID_HASH=0x1e46591bL
> -Wno-nesc-data-race AmcaAppC.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 AmcaAppC.nc:1:
> amca.h:22: syntax error before `nx_bool'
> amca.h:22: warning: no semicolon at end of struct or union
> amca.h:23: warning: type defaults to `int' in declaration of
> `AmcaControlMsg'
> amca.h:23: warning: data definition has no type or storage class
> In file included from AmcaAppC.nc:10:
> In component `AmcaC':
> AmcaC.nc:21: warning: declaration of `AmcaControlMsg' shadows global
> declaration
> amca.h:23: warning: location of shadowed declaration
> AmcaC.nc:21: syntax error before `*'
> AmcaC.nc:22: warning: declaration of `AmcaControlMsg' shadows global
> declaration
> amca.h:23: warning: location of shadowed declaration
> AmcaC.nc:22: syntax error before `*'
> AmcaC.nc:42: syntax error before `*'
> AmcaC.nc: In function `Receive.receive':
> AmcaC.nc:106: `btrpkt' undeclared (first use in this function)
> AmcaC.nc:106: (Each undeclared identifier is reported only once
> AmcaC.nc:106: for each function it appears in.)
> AmcaC.nc:106: syntax error before `)'
>
>
> As you can see then the code does not compile now. So my question is, why
> is there such a big difference between the two? I am running TinyOs 2 on
> linux. I can run the Blink application using both make micaz and make micaz
> sim and there everything runs fine.
>
> Hope you can help me out with this.
>
> With regards,
> Elvar Olafsson
>
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to