[ECOS] Build errors

Mark Salter msalter@redhat.com
Fri Nov 22 17:19:00 GMT 2002

>>>>> Agarwal, Lomesh writes:

> I downloaded latest version of cygwin from Redhat's website and latest
> version of Xscale GNUPro tool chain from Intel's website. Now I am
> trying to build RedBoot for IQ80310 platform. I got "undefined reference
> to puts" error during linking. Somehow problem seems to be linked with
> printf because when I removed printfs then I didn't see this problem
> anymore. Does anyone else had similar problem? If yes then is there a
> solution to this problem?

Well, you got the latest version of everything except RedBoot. ;-)

GCC will optimize printf("some simple string") into a puts(). RedBoot
was changed quite some time back to get along with GCCs that make
these kinds of optimizations. You could also workaround it by passing
-fno-builtins on the compile line.


Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

More information about the Ecos-discuss mailing list