This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: mainline problems?
- From: "H. J. Lu" <hjl at lucon dot org>
- To: Andrew MacLeod <amacleod at redhat dot com>
- Cc: gcc mailing list <gcc at gcc dot gnu dot org>, hongjiu dot lu at intel dot com
- Date: Tue, 16 May 2006 10:20:21 -0700
- Subject: Re: mainline problems?
- References: <1147794615.3022.2.camel@pain> <1147798154.3022.6.camel@pain>
On Tue, May 16, 2006 at 12:49:13PM -0400, Andrew MacLeod wrote:
> On Tue, 2006-05-16 at 11:50 -0400, Andrew MacLeod wrote:
> > I *just* checked out mainline, and it is failing to build like so:
> >
> > (x86 with checking enabled)
> >
> > libbackend.a(print-rtl.o): In function `print_decl_name':
> > /src/gcc/2006-05-16/gcc/gcc/print-rtl.c:73: multiple definition of `flag_dump_unnumbered'
> > libbackend.a(options.o):(.bss+0x1ac): first defined here
I have
[hjl@gnu-68 prev-gcc]$ readelf -s print-rtl.o| grep flag_dump_unnumbered
24: 0000000000000000 4 OBJECT GLOBAL DEFAULT 5 flag_dump_unnumbered
[hjl@gnu-68 prev-gcc]$ readelf -s options.o| grep flag_dump_unnumbered
181: 0000000000000004 4 OBJECT GLOBAL DEFAULT COM flag_dump_unnumbered
Does this work on your platform?
[hjl@gnu-16 tmp]$ cat x.c
int x = 1;
[hjl@gnu-16 tmp]$ gcc -c x.c
[hjl@gnu-16 tmp]$ cat y.c
int x;
[hjl@gnu-16 tmp]$ gcc -c y.c
[hjl@gnu-16 tmp]$ ld -r x.o y.o
[hjl@gnu-16 tmp]$ ld -r y.o x.o
H.J.