partout ceases to build

Technical questions regarding the XTC tools and programming with XMOS.
User avatar
Paolomio
Experienced Member
Posts: 64
Joined: Tue Oct 05, 2010 7:33 pm

partout ceases to build

Post by Paolomio »

I have previously successfully used partout, but my project suddenly started reporting
Error: Undefined reference to '__builtin_partout'
It's a little mysterious as to why this one function cannot be found. Anyone seen something like this or have any ideas what's the matter? I can't seem to see whatever stupid thing I've done to deserve this...

Thanks,

Paul


User avatar
Folknology
XCore Legend
Posts: 1274
Joined: Thu Dec 10, 2009 10:20 pm

Post by Folknology »

Apart from the obvious inclusion of including xs1.h of course, are you calling partout(p,n,val) from C instead of XC?

regards
Al
User avatar
Paolomio
Experienced Member
Posts: 64
Joined: Tue Oct 05, 2010 7:33 pm

Post by Paolomio »

It's none of the obvious things...it compiles but won't link, so xs1.h is indeed included, and it is an xc module. It only fails during link...
User avatar
Paolomio
Experienced Member
Posts: 64
Joined: Tue Oct 05, 2010 7:33 pm

Post by Paolomio »

FWIW, this looks to be a compiler bug. A function containing a partout() statement compiles and links fine, as long as the statement is not also inside a thread of a multi-threaded par block. In that case, it compiles fine, but fails to link with the error noted earlier.

I've filed this as a bug with xmos. They haven't confirmed that it is indeed a bug, but it has the very distint odor, and is a repeatable error (at least by me).

Paul
User avatar
Paolomio
Experienced Member
Posts: 64
Joined: Tue Oct 05, 2010 7:33 pm

Post by Paolomio »

Oh, yeah, FWIW I'm using 11.2.2, but saw this on 11.2 as well.