[Tinyos-help] Building RPM-Packages for TinyOS toolchain

Simon Kellner kellner at ira.uka.de
Mon May 11 07:51:33 PDT 2009


* B.A.f.H. [2009-05-11 15:29 +0200]:
> 
> now I have build a new toolchain. The people especially Ruud Vlaming
> from the avr-gcc mailing list supported me. The toolchain consists
> of avr-binutils-2.19, avr-gcc-4.3.3 and avr-libc-1.6.4 with patches,
> for details look at the install_toolchain script from FemtoOS.
[...]
> But compiling for example the Blink app for the iris or the micaz
> plattform break with internal compiler error. See the attachement.
> Also compiling the app.c file break with the same internal compiler error.
[...]
> Does anybody knows the problem? Is there a solution for the problem?

I think I do.  One of the problems here appears to be that nescc adds
__attribute__(interrupt) to _both_ function declaration and definition.
The documentation of recent gcc versions states that function attributes
are only allowed at function declaration.  The other problem is that
gcc does not handle this in a more graceful manner.

You can work around this by applying the attached patch to your nescc.


bye
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nesc_new_gcc.patch
Type: text/x-patch
Size: 463 bytes
Desc: not available
Url : https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20090511/80022566/attachment.bin 


More information about the Tinyos-help mailing list