public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* gdb 7.3.1 and gdb 7.2 on AIX 6.1
@ 2011-10-24  2:16 Perry Smith
  2011-10-24 15:43 ` Tom Tromey
  0 siblings, 1 reply; 4+ messages in thread
From: Perry Smith @ 2011-10-24  2:16 UTC (permalink / raw)
  To: gdb

I'm trying to compile gdb 7.3.1 on AIX 6.1 using gcc 4.5.2.

The end of the make dies with:

> /gsa/ausgsa/projects/r/ruby/bin/bash ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I/usr/work/src/gdb-7.2/bfd -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE -DAIX_CORE  -DAIX_WEAK_SUPPORT -I. -I/usr/work/src/gdb-7.2/bfd -I/usr/work/src/gdb-7.2/bfd/../include  -DHAVE_rs6000coff_vec -DHAVE_aix5coff64_vec  -DBINDIR='"/gsa/ausgsa/projects/r/ruby/bin"'  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT bfd.lo -MD -MP -MF .deps/bfd.Tpo -c -o bfd.lo /usr/work/src/gdb-7.2/bfd/bfd.c
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/usr/work/src/gdb-7.2/bfd -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE -DAIX_CORE -DAIX_WEAK_SUPPORT -I. -I/usr/work/src/gdb-7.2/bfd -I/usr/work/src/gdb-7.2/bfd/../include -DHAVE_rs6000coff_vec -DHAVE_aix5coff64_vec -DBINDIR=\"/gsa/ausgsa/projects/r/ruby/bin\" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT bfd.lo -MD -MP -MF .deps/bfd.Tpo -c /usr/work/src/gdb-7.2/bfd/bfd.c -o bfd.o
> cc1: warnings being treated as errors
> /usr/work/src/gdb-7.2/bfd/bfd.c: In function '_bfd_default_error_handler':
> /usr/work/src/gdb-7.2/bfd/bfd.c:710:3: error: value computed is not used
> make[4]: *** [bfd.lo] Error 1

The same error happens with 7.3.1 and 7.2 (the above snippet is from 7.2).

Searching the web did not hit anything connected to gdb.  The curious thing is that I compiled gdb 7.2 using a previous gcc of 4.2.4.

I notice the message "warnings being treated as errors" which might explain why, looking at the code, I don't see the problem.

Any suggestions of what is wrong?

Thank you,
pedz

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gdb 7.3.1 and gdb 7.2 on AIX 6.1
  2011-10-24  2:16 gdb 7.3.1 and gdb 7.2 on AIX 6.1 Perry Smith
@ 2011-10-24 15:43 ` Tom Tromey
  2011-10-24 16:07   ` Perry Smith
  0 siblings, 1 reply; 4+ messages in thread
From: Tom Tromey @ 2011-10-24 15:43 UTC (permalink / raw)
  To: Perry Smith; +Cc: gdb

>>>>> "Perry" == Perry Smith <pedzsan@gmail.com> writes:

>> /usr/work/src/gdb-7.2/bfd/bfd.c: In function '_bfd_default_error_handler':
>> /usr/work/src/gdb-7.2/bfd/bfd.c:710:3: error: value computed is not used

Perry> The same error happens with 7.3.1 and 7.2 (the above snippet is
Perry> from 7.2).

Perry> Searching the web did not hit anything connected to gdb.  The curious
Perry> thing is that I compiled gdb 7.2 using a previous gcc of 4.2.4.

Warnings change between versions of gcc.

Perry> I notice the message "warnings being treated as errors" which might
Perry> explain why, looking at the code, I don't see the problem.

Perry> Any suggestions of what is wrong?

Probably nothing is wrong, just gcc being too eager.
If you just want to build it, don't use -Werror.

Tom

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gdb 7.3.1 and gdb 7.2 on AIX 6.1
  2011-10-24 15:43 ` Tom Tromey
@ 2011-10-24 16:07   ` Perry Smith
  2011-10-24 20:03     ` Joel Brobecker
  0 siblings, 1 reply; 4+ messages in thread
From: Perry Smith @ 2011-10-24 16:07 UTC (permalink / raw)
  To: Tom Tromey; +Cc: gdb


On Oct 24, 2011, at 9:11 AM, Tom Tromey wrote:

>>>>>> "Perry" == Perry Smith <pedzsan@gmail.com> writes:
> 
>>> /usr/work/src/gdb-7.2/bfd/bfd.c: In function '_bfd_default_error_handler':
>>> /usr/work/src/gdb-7.2/bfd/bfd.c:710:3: error: value computed is not used
> 
> Perry> The same error happens with 7.3.1 and 7.2 (the above snippet is
> Perry> from 7.2).
> 
> Perry> Searching the web did not hit anything connected to gdb.  The curious
> Perry> thing is that I compiled gdb 7.2 using a previous gcc of 4.2.4.
> 
> Warnings change between versions of gcc.
> 
> Perry> I notice the message "warnings being treated as errors" which might
> Perry> explain why, looking at the code, I don't see the problem.
> 
> Perry> Any suggestions of what is wrong?
> 
> Probably nothing is wrong, just gcc being too eager.
> If you just want to build it, don't use -Werror.

Thank you.

For those watching on T.V. at home:

configure --enable-werror=no

but now I have another problem.  When I try "make install", I get 
the "You need makeinfo" message.

I've fiddled around with it a bit but I'm going to give up and just install
makeinfo and its friends.  I'm doing an "out of tree" build.  Maybe thats
part of the issue here.

pedz

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gdb 7.3.1 and gdb 7.2 on AIX 6.1
  2011-10-24 16:07   ` Perry Smith
@ 2011-10-24 20:03     ` Joel Brobecker
  0 siblings, 0 replies; 4+ messages in thread
From: Joel Brobecker @ 2011-10-24 20:03 UTC (permalink / raw)
  To: Perry Smith; +Cc: Tom Tromey, gdb

> but now I have another problem.  When I try "make install", I get 
> the "You need makeinfo" message.

This one makes me shake my head every single time - I always wonder
why they can't just print a warning and just continue, like most
projects do. Try:

    % make MAKEINFO=true

-- 
Joel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-10-24 16:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-24  2:16 gdb 7.3.1 and gdb 7.2 on AIX 6.1 Perry Smith
2011-10-24 15:43 ` Tom Tromey
2011-10-24 16:07   ` Perry Smith
2011-10-24 20:03     ` Joel Brobecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).