6.7 build breaks on i686

2007-10-16 Thread Ilya N. Golubev
Version: 6.7

Compiler: gcc (GCC) 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)

System: i686-pc-linux-gnu

While compiling the following file, `-Werror' is passed to compiler.
Still

gdb-6.7/bfd/elf32-i386.c: In function `elf_i386_tls_transition':
gdb-6.7/bfd/elf32-i386.c:1174: warning: duplicate `const'
gdb-6.7/bfd/elf32-i386.c:1174: warning: duplicate `const'
make[4]: *** [elf32-i386.lo] Error 1

Preprocessed code contains the following.

`bfd.h':

typedef const struct reloc_howto_struct reloc_howto_type;

`elf32-i386.c':

  const reloc_howto_type *from, *to;

`reloc_howto_type' appears to be quite generic, the same in all
builds.  So this error warning should occur whenever compiling any
code like that.


___
bug-gdb mailing list
bug-gdb@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gdb


6.7 build breaks on i686

2008-03-03 Thread chris
Hi Everyone,

Ilya N. GolubevIlya N. Golubev wrote:

Version: 6.7
Compiler: gcc (GCC) 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)
System: i686-pc-linux-gnu
While compiling the following file, `-Werror' is passed to compiler.
Still
gdb-6.7/bfd/elf32-i386.c: In function `elf_i386_tls_transition':
gdb-6.7/bfd/elf32-i386.c:1174: warning: duplicate `const'
gdb-6.7/bfd/elf32-i386.c:1174: warning: duplicate `const'
make[4]: *** [elf32-i386.lo] Error 1

Preprocessed code contains the following.
`bfd.h':
typedef const struct reloc_howto_struct reloc_howto_type;
`elf32-i386.c':
const reloc_howto_type *from, *to;

`reloc_howto_type' appears to be quite generic, the same in all
builds. So this error warning should occur whenever compiling any
code like that.


I also cannot make gdb 6.7 on a Fedora 2.4.22-1.2174.nptl, because I
get the same error and have no idea how to get past it.

Can anyone help? Ilya, any input?

Cheers,
Chris
___
bug-gdb mailing list
bug-gdb@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gdb


Re: 6.7 build breaks on i686

2008-03-03 Thread Thiago Jung Bauermann
On Mon, 2008-03-03 at 04:32 -0800, [EMAIL PROTECTED] wrote:
> gdb-6.7/bfd/elf32-i386.c: In function `elf_i386_tls_transition':
> gdb-6.7/bfd/elf32-i386.c:1174: warning: duplicate `const'
> gdb-6.7/bfd/elf32-i386.c:1174: warning: duplicate `const'
> make[4]: *** [elf32-i386.lo] Error 1

Indeed, this was a problem. I see that in current CVS HEAD and in the
bfd version inside the GDB 6.8 branch this is fixed by not using a
redundant 'const' in the variable declaration.

> I also cannot make gdb 6.7 on a Fedora 2.4.22-1.2174.nptl, because I
> get the same error and have no idea how to get past it.
> 
> Can anyone help? Ilya, any input?

You could try running configure with --disable-werror.

I didn't have problems compiling 6.7 with GCC 4.1.x, so it seems that
newer GCC versions are more forgiving about this problem.
-- 
[]'s
Thiago Jung Bauermann
Software Engineer
IBM Linux Technology Center



___
bug-gdb mailing list
bug-gdb@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gdb