This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: synthetic target build problem with 2.0
On Tuesday 29 April 2003 16:54, Gary D. Thomas wrote:
> On Tue, 2003-04-29 at 17:55, rich wrote:
> > I'm trying to build a synthetic target for Linux, and get the following
> > error:
> >
> > /home/wicks/ecos2.0/ecos_install/ecos-2.0b1/packages/language/c/libc/stdi
> >o/v2_0b1/src/input/fgetc.cxx:129: `
> > int getc(CYG_ADDRESS (*)[9999])' defined both normally and as an alias
> > make[1]: *** [src/input/fgetc.o.d] Error 1
> > make[1]: Leaving directory
> > `/tmp/default_ecos/syn_build/language/c/libc/stdio/v2_0b1'
> > make: *** [build] Error 2
> >
> >
> > This the the latest current release - not from CVS, using wget to
> > download. Has anybody else run into this problem or is it unique to me?
>
> This is a known problem - you need a different version of
> GCC. Use either 2.95.x version or 3.2.1+
Yeah, I just realized how to fix it.
Changing the "Global command prefix" from (BLANK) to i386-elf in the
configtool makes it work fine. This causes the compiler to use the gcc used
for the i386-pc target, which works fine for the synthetic linux target.
I apologize for writing the list. Seems everytime I do, I figure it out 5
minutes late.
Furthermore, this should have been obvious since GCC 3.0 has changed so
radically since 2.95. The __gnu_cxx namespace, for example...
-Rich
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss