This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: FW: ECOS Compile Error
- From: Brian Murphy <brm at tt dot dk>
- To: ecos-discuss at sources dot redhat dot com
- Date: Tue, 27 Aug 2002 11:29:22 +0200
- Subject: [ECOS] Re: FW: ECOS Compile Error
- References: <E8F83D6D2A6AD3118E0300902786A205023714FF@NTEX>
David Marqvar (DAM) wrote:
-----Original Message-----
From: John Paul King [mailto:john.king@transdatainc.com]
Sent: 26. august 2002 20:55
To: dam@tt.dk
Subject: ECOS Compile Error
David,
I am getting the same error. Let me know if you have resolution on this
issue.
John King
Hello
Has anyone had this error?
"
/home/dam/eCos2/packages/language/c/libc/stdio/current/src/input/fgetc.c
xx:1
29: `
int getc(CYG_ADDRESS (*)[9999])' defined both normally and as an
alias
/home/dam/eCos2/packages/language/c/libc/stdio/current/src/input/fgetc.c
xx:1
29: weak
declaration of `int getc(CYG_ADDRESS (*)[9999])' must precede
definition
make[1]: *** [src/input/fgetc.o.d] Error 1
"
* gcc 3.1, binutils 2.12.1
Regards,
David Marqvar
You need to patch and reecompile gcc with the attached fix.
/Brian
*** gcc/cp/decl.c.old Wed May 1 22:26:14 2002
--- gcc/cp/decl.c Wed May 1 22:27:53 2002
***************
*** 3505,3511 ****
except for any that we copy here from the old type. */
DECL_ATTRIBUTES (newdecl)
= (*targetm.merge_decl_attributes) (olddecl, newdecl);
- decl_attributes (&newdecl, DECL_ATTRIBUTES (newdecl), 0);
if (TREE_CODE (newdecl) == TEMPLATE_DECL)
{
--- 3505,3510 ----
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss