At least two people have had success compiling nesc from source. You
can find the source at www.tinyos.net/dist-1.1.0/tinyos/source (same
directory you listed below but /source rather than /linux.).

-kw

On 10/27/05, Marc Krämer <[EMAIL PROTECTED]> wrote:
> Hi,
> first there is an error in the ncc-script. The variable $TOSDIR points to
> an unknown directory instead of /opt/tinyos-1.x/tos .
>
> But after correcting that the make script of the Blink application is
> still not working. The assembler generates this output:
> /tmp/ccWjJ5Hb.s: Assembler messages:
> /tmp/ccWjJ5Hb.s:10: Error: unknown opcode `disablecou'
> /tmp/ccWjJ5Hb.s:12: Error: unrecognized symbol type ""
> /tmp/ccWjJ5Hb.s:12: Error: unknown opcode `disablecou'
> /tmp/ccWjJ5Hb.s:13: Error: expected comma after name `HPLPowerManagementM'
> in .size directive
> ....
>
> This is the current version of the software located at:
> http://webs.cs.berkeley.edu/tos/dist-1.1.0/tinyos/linux
> and
> http://webs.cs.berkeley.edu/tos/dist-1.1.0/tools/linux
>
> I've checked the Makefile with -d option and got the ncc-call:
> ncc -o build/mica2/main.exe -Os -finline-limit=100000 -Wall -Wshadow
> -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=mica2
> -fnesc-cfile=build/mica2/app.c -board=micasb -DIDENT_PROGRAM_NAME=Blink
> -DIDENT_PROGRAM_NAME_BYTES=66,108,105,110,107,0 -DIDENT_USER_ID=becker
> -DIDENT_USER_ID_BYTES=98,101,99,107,101,114,0 -DIDENT_HOSTNAME=RNPC30
> -DIDENT_HOSTNAME_BYTES=82,78,80,67,51,48,0 Blink.nc -lm
>
> with the option -v you can see, that verify the assembler call which seems
> right for me:
> /usr/local/lib/gcc-lib/avr/3.3-tinyos/../../../../avr/bin/as
> -mmcu=atmega128 -o /tmp/ccX8pU3W.o /tmp/cccoMchz.s
>
> I've checked the file build/mica2/main.exe, cause the file /tmp/cccoMchz.s
> doesn't exist anymore. This file contains assembler source. In lines 10 -
> 13 the following text ist found:
>
> .global HPLPowerManagementM$disableCount
>          .data
>          .type   HPLPowerManagementM$disableCount, @object
>          .size   HPLPowerManagementM$disableCount, 1
>
>
> Compared by the error message, it seems that the avr-gcc has problems with
> the character $. How can I fix this problem?
>
> thx
> Marc
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>

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

Reply via email to