This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: Build errors
- From: "Agarwal, Lomesh" <lomesh dot agarwal at intel dot com>
- To: "Mark Salter" <msalter at redhat dot com>
- Cc: <ecos-discuss at sources dot redhat dot com>
- Date: Tue, 26 Nov 2002 11:17:45 -0800
- Subject: RE: [ECOS] Build errors
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