[Tinyos-help] Warning during telosb compilation: warning: internal error: unsupported relocation error
Octav Chipara
ochipara at gmail.com
Wed Oct 29 18:56:00 PDT 2008
Hi,
I'm getting the following strange warning when trying to copy an nx_struct:
/var/folders/Vp/VpFq-iFtFDyRWCLJ4Cfquk+++TI/-Tmp-//ccMen2pF.o: In
function `SchedulerBasicP$TaskBasic$runTask':
app.c:(.text+0xec2): warning: internal error: unsupported relocation error
The struct and and code causing the error is below:
typedef nx_struct status {
nx_uint8_t error;
nx_uint8_t state;
} status_t;
task foo {
status_t *p = (status_t *) call StatusSend.getPayload(&spacket ,
sizeof(status_t));
memcpy(p, &status, sizeof(status_t)); //removing this line makes the
warning go away
...
}
I'm using nescc 1.3.0. Any ideas what may be going on?
Thanks!
-- Octav
More information about the Tinyos-help
mailing list