This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Build errors


Sorry, I mistyped. Try -fno-builtin (no 's' on the end).

--Mark

>>>>> Agarwal, Lomesh writes:

> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]