Also if I recall correctly nesC 1.3 and TOSSIM are known to not play well 
together at the moment.  So probably this is not the time to upgrade that 
tool.

John


On Sun, 13 Apr 2008, Kevin Klues wrote:

> If you are using nesC to compile a TinyOS applicaiton.  Updating to
> 1.3.0 will also require you to update your 'ncc' installation (yes its
> different) by installing the latest tinyos toolset from the tinyos
> cvs.  Check out the latest tinyos-2.x tree, go to
> tinyos-2.x/tools/sdk/java and type:
>
> ./Bootstrap
> ./configure --prefix=/direcory/you/want/to/installin/in
> make
> make install
>
> then make sure your path is correct so that the ncc that gets used is
> the one you just installed and not the old one.
>
> Kevin
>
> On Sun, Apr 13, 2008 at 10:14 AM, Oliver Frietsch <[EMAIL PROTECTED]> wrote:
>> Hello all,
>>
>>  for a master thesis, I need to work on the nesCC source. My thought was
>>  to work on the latest source, so I checked out nesCC from CVS and
>>  compiled it. nesCC itself compiles without problems, but is unable to
>>  compile my nesC projects afterwards...
>>
>>  This is my approach. Please tell me if I'm doing it totally wrong.
>>  - Install a Xubuntos system from the live CD
>>  - Checkout the nescc compiler and compile it, as described for the CVS
>>  version
>>  - Install the CVS version to a directory below your home directory
>>  - Edit /usr/bin/ncc and change the nescc path to point to the CVS version
>>  - Run make micaz sim for a TinyOS project
>>
>>  Doing so results in multiple comile errors (see example attachments, I
>>  included both the output and the project sources). Very few projects
>>  compile, but only as long as the "sim" target is not given. I tried to
>>  upgrade the TinyOS sources, too (CVS checkout and again changed the path
>>  in /usr/bin/ncc), but that produces even more errors. What can I do?
>>
>>  Thanks,
>>  Oliver
>>
>>  P.S.: I can upgrade to nesCC 1.2.9 using the above approach (the live cd
>>  has 1.2.8), but 1.3.0 does not work.
>>
>> [EMAIL PROTECTED]:~/Workspace/nesC/FirstSteps/Simple$ make micaz sim
>>  mkdir -p build/micaz
>>   placing object files in build/micaz
>>   writing XML schema to app.xml
>>   compiling SimpleAppC 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=\"SimpleAppC\" -DIDENT_USER_ID=\"of\"
>> -DIDENT_HOSTNAME=\"xubuntos\" -DIDENT_USER_HASH=0x81468ac0L
>> -DIDENT_UNIX_TIME=0x48023a4bL -DIDENT_UID_HASH=0xbfef00e3L
>> -Wno-nesc-data-race SimpleAppC.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/lib/tossim/tos.h:70:
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_event_queue.h:60: syntax error before
>> `event'
>>  In file included from /opt/tinyos-2.x/tos/lib/tossim/tos.h:87:
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_event_queue.c:42: syntax error before
>> `event'
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_event_queue.c: In function
>> `sim_queue_insert':
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_event_queue.c:43: syntax error before
>> `event'
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_event_queue.c:44: syntax error before
>> `event'
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_event_queue.c: At top level:
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_event_queue.c:66: syntax error before
>> `event'
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_event_queue.c:66: conflicting types for
>> `sim_queue_cleanup_none'
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_event_queue.h:65: previous declaration
>> of `sim_queue_cleanup_none'
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_event_queue.c: In function
>> `sim_queue_cleanup_none':
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_event_queue.c:67: syntax error before
>> `event'
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_event_queue.c: At top level:
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_event_queue.c:71: syntax error before
>> `event'
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_event_queue.c:71: conflicting types for
>> `sim_queue_cleanup_event'
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_event_queue.h:66: previous declaration
>> of `sim_queue_cleanup_event'
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_event_queue.c: In function
>> `sim_queue_cleanup_event':
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_event_queue.c:72: syntax error before
>> `event'
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_event_queue.c:73: syntax error before
>> `event'
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_event_queue.c: At top level:
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_event_queue.c:76: syntax error before
>> `event'
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_event_queue.c:76: conflicting types for
>> `sim_queue_cleanup_data'
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_event_queue.h:67: previous declaration
>> of `sim_queue_cleanup_data'
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_event_queue.c: In function
>> `sim_queue_cleanup_data':
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_event_queue.c:77: syntax error before
>> `event'
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_event_queue.c:78: syntax error before
>> `event'
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_event_queue.c: At top level:
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_event_queue.c:82: syntax error before
>> `event'
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_event_queue.c:82: conflicting types for
>> `sim_queue_cleanup_total'
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_event_queue.h:68: previous declaration
>> of `sim_queue_cleanup_total'
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_event_queue.c: In function
>> `sim_queue_cleanup_total':
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_event_queue.c:83: syntax error before
>> `event'
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_event_queue.c:84: syntax error before
>> `event'
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_event_queue.c:86: syntax error before
>> `event'
>>  In file included from /opt/tinyos-2.x/tos/lib/tossim/tos.h:88:
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_tossim.c:96:10: warning: integer
>> constant is too large for its type
>>  In file included from /opt/tinyos-2.x/tos/lib/tossim/tos.h:88:
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_tossim.c: In function
>> `sim_ticks_per_sec':
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_tossim.c:96: warning: integer constant
>> out of range
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_tossim.c: In function
>> `sim_run_next_event':
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_tossim.c:110: syntax error before
>> `event'
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_tossim.c:111: syntax error before
>> `event'
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_tossim.c:112: syntax error before
>> `event'
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_tossim.c:116: syntax error before
>> `event'
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_tossim.c:117: syntax error before
>> `event'
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_tossim.c:121: syntax error before
>> `event'
>>  /opt/tinyos-2.x/tos/lib/tossim/sim_tossim.c:126: syntax error before
>> `event'
>>  In file included from /opt/tinyos-2.x/tos/lib/tossim/TinySchedulerC.nc:39:
>>  In component `SimSchedulerBasicP':
>>  /opt/tinyos-2.x/tos/lib/tossim/SimSchedulerBasicP.nc: In function
>> `sim_scheduler_event_init':
>>  /opt/tinyos-2.x/tos/lib/tossim/SimSchedulerBasicP.nc:100: warning:
>> assignment from incompatible pointer type
>>  In file included from /opt/tinyos-2.x/tos/lib/tossim/MainC.nc:49,
>>                  from SimpleAppC.nc:6:
>>  In component `SimMoteP':
>>  /opt/tinyos-2.x/tos/lib/tossim/SimMoteP.nc: In function
>> `sim_mote_enqueue_boot_event':
>>  /opt/tinyos-2.x/tos/lib/tossim/SimMoteP.nc:179: warning: assignment from
>> incompatible pointer type
>>  In file included from /opt/tinyos-2.x/tos/lib/tossim/MainC.nc:64,
>>                  from SimpleAppC.nc:6:
>>  In component `TossimActiveMessageP':
>>  /opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageP.nc: In function
>> `allocate_deliver_event':
>>  /opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageP.nc:243: warning:
>> assignment from incompatible pointer type
>>  In file included from
>> /opt/tinyos-2.x/tos/chips/atm128/timer/sim/HplAtm128Timer0AsyncC.nc:53,
>>                  from
>> /opt/tinyos-2.x/tos/chips/atm128/timer/Atm128AlarmAsyncC.nc:33,
>>                  from
>> /opt/tinyos-2.x/tos/platforms/mica/AlarmCounterMilliP.nc:33,
>>                  from
>> /opt/tinyos-2.x/tos/platforms/mica/sim/HilTimerMilliC.nc:41,
>>                  from /opt/tinyos-2.x/tos/system/TimerMilliP.nc:41,
>>                  from /opt/tinyos-2.x/tos/system/TimerMilliC.nc:40,
>>                  from SimpleAppC.nc:7:
>>  In component `HplAtm128Timer0AsyncP':
>>  /opt/tinyos-2.x/tos/chips/atm128/timer/sim/HplAtm128Timer0AsyncP.nc: In
>> function `allocate_compare':
>>  /opt/tinyos-2.x/tos/chips/atm128/timer/sim/HplAtm128Timer0AsyncP.nc:219:
>> warning: assignment from incompatible pointer type
>>  /opt/tinyos-2.x/tos/chips/atm128/timer/sim/HplAtm128Timer0AsyncP.nc: In
>> function `allocate_overflow':
>>  /opt/tinyos-2.x/tos/chips/atm128/timer/sim/HplAtm128Timer0AsyncP.nc:496:
>> warning: assignment from incompatible pointer type
>>  /opt/tinyos-2.x/tos/chips/atm128/timer/sim/HplAtm128Timer0AsyncP.nc: In
>> function `cancel_overflow':
>>  /opt/tinyos-2.x/tos/chips/atm128/timer/sim/HplAtm128Timer0AsyncP.nc:541:
>> warning: assignment from incompatible pointer type
>>  /opt/tinyos-2.x/tos/chips/atm128/timer/sim/HplAtm128Timer0AsyncP.nc: In
>> function `cancel_compare':
>>  /opt/tinyos-2.x/tos/chips/atm128/timer/sim/HplAtm128Timer0AsyncP.nc:573:
>> warning: assignment from incompatible pointer type
>>  make: *** [sim-exe] Error 1
>>
>>
>>
>> _______________________________________________
>>  Tinyos-help mailing list
>>  Tinyos-help@millennium.berkeley.edu
>>  https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>
>
>
> --
> ~Kevin
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to