[ECOS] Build errors

Agarwal, Lomesh lomesh.agarwal@intel.com
Tue Nov 26 11:17:00 GMT 2002


I tried passing -fno-builtins in compile line but still I get the same
errors.
Any other suggestions except latest version of RedBoot??

Thanks,
Lomesh

-----Original Message-----
From: Mark Salter [mailto:msalter@redhat.com] 
Sent: Friday, November 22, 2002 5:20 PM
To: Agarwal, Lomesh
Cc: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] Build errors


>>>>> 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.

--Mark

--
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