public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Problem compiling 2.17 with GCC 4.1.1
@ 2006-08-28  1:43 George R. Kasica
  2006-08-28 13:07 ` Brian Dessent
  0 siblings, 1 reply; 3+ messages in thread
From: George R. Kasica @ 2006-08-28  1:43 UTC (permalink / raw)
  To: binutils

Hopefully someone can help here, I'm seeing the following error when
trying to make bunutils 2.17 using GCC 4.1.1 here:

/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I.
-I.././opcodes -I. -D_GNU_SOURCE -I. -I.././opcodes -I../bfd
-I.././opcodes/../include -I.././opcodes/../bfd -I.././opcodes/../intl
-I../intl   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror
-g -O2 -c -o i386-dis.lo i386-dis.c
gcc -DHAVE_CONFIG_H -I. -I.././opcodes -I. -D_GNU_SOURCE -I.
-I.././opcodes -I../bfd -I.././opcodes/../include
-I.././opcodes/../bfd -I.././opcodes/../intl -I../intl -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c i386-dis.c
-o i386-dis.o
cc1: warnings being treated as errors
i386-dis.c: In function 'print_operand_value':
i386-dis.c:3228: warning: value computed is not used
i386-dis.c: In function 'VMX_Fixup':
i386-dis.c:4761: warning: value computed is not used
i386-dis.c:4764: warning: value computed is not used
make[4]: *** [i386-dis.lo] Error 1
make[4]: Leaving directory `/mnt/scsi-1/Linux/binutils-2.17/opcodes'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/mnt/scsi-1/Linux/binutils-2.17/opcodes'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/mnt/scsi-1/Linux/binutils-2.17/opcodes'
make[1]: *** [all-opcodes] Error 2
make[1]: Leaving directory `/mnt/scsi-1/Linux/binutils-2.17'
make: *** [all] Error 2


Hopefully that is enough info to be useful. Ifyou need more please ask
and I'll try to supply it. I'm not a programmer so please be specific
on what you require here.

Thnk you very much,

===[George R. Kasica]===        +1 262 677 0766
President                       +1 206 374 6482 FAX 
Netwrx Consulting Inc.          Jackson, WI USA 
http://www.netwrx1.com
georgek@netwrx1.com
ICQ #12862186

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

* Re: Problem compiling 2.17 with GCC 4.1.1
  2006-08-28  1:43 Problem compiling 2.17 with GCC 4.1.1 George R. Kasica
@ 2006-08-28 13:07 ` Brian Dessent
  2006-08-28 14:56   ` George R. Kasica
  0 siblings, 1 reply; 3+ messages in thread
From: Brian Dessent @ 2006-08-28 13:07 UTC (permalink / raw)
  To: georgek; +Cc: binutils

"George R. Kasica" wrote:

> gcc -DHAVE_CONFIG_H -I. -I.././opcodes -I. -D_GNU_SOURCE -I.
> -I.././opcodes -I../bfd -I.././opcodes/../include
> -I.././opcodes/../bfd -I.././opcodes/../intl -I../intl -W -Wall
> -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c i386-dis.c
> -o i386-dis.o
> cc1: warnings being treated as errors
> i386-dis.c: In function 'print_operand_value':
> i386-dis.c:3228: warning: value computed is not used
> i386-dis.c: In function 'VMX_Fixup':
> i386-dis.c:4761: warning: value computed is not used
> i386-dis.c:4764: warning: value computed is not used

Those are just harmless (?) warnings but because -Werror was supplied to
gcc they are turned into errors.  You should run configure with
--disable-werror and everything should be fine.

Ideally, the point of having -Werror turned on by default is to keep the
build clean, i.e. make sure that any warnings are addressed instead of
ignored, but it seems like you must have stumbled upon a combination of
platform and compiler that slipped through the cracks of testing.

Brian

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

* Re: Problem compiling 2.17 with GCC 4.1.1
  2006-08-28 13:07 ` Brian Dessent
@ 2006-08-28 14:56   ` George R. Kasica
  0 siblings, 0 replies; 3+ messages in thread
From: George R. Kasica @ 2006-08-28 14:56 UTC (permalink / raw)
  To: binutils; +Cc: Brian Dessent

>On Sun, 27 Aug 2006 19:04:49 -0700, you wrote:

>"George R. Kasica" wrote:
>
>> gcc -DHAVE_CONFIG_H -I. -I.././opcodes -I. -D_GNU_SOURCE -I.
>> -I.././opcodes -I../bfd -I.././opcodes/../include
>> -I.././opcodes/../bfd -I.././opcodes/../intl -I../intl -W -Wall
>> -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c i386-dis.c
>> -o i386-dis.o
>> cc1: warnings being treated as errors
>> i386-dis.c: In function 'print_operand_value':
>> i386-dis.c:3228: warning: value computed is not used
>> i386-dis.c: In function 'VMX_Fixup':
>> i386-dis.c:4761: warning: value computed is not used
>> i386-dis.c:4764: warning: value computed is not used
>
>Those are just harmless (?) warnings but because -Werror was supplied to
>gcc they are turned into errors.  You should run configure with
>--disable-werror and everything should be fine.
>
>Ideally, the point of having -Werror turned on by default is to keep the
>build clean, i.e. make sure that any warnings are addressed instead of
>ignored, but it seems like you must have stumbled upon a combination of
>platform and compiler that slipped through the cracks of testing.
>
>Brian

Thanks Brian, that did it and all seems well.

George
===[George R. Kasica]===        +1 262 677 0766
President                       +1 206 374 6482 FAX 
Netwrx Consulting Inc.          Jackson, WI USA 
http://www.netwrx1.com
georgek@netwrx1.com
ICQ #12862186

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

end of thread, other threads:[~2006-08-28  3:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-28  1:43 Problem compiling 2.17 with GCC 4.1.1 George R. Kasica
2006-08-28 13:07 ` Brian Dessent
2006-08-28 14:56   ` George R. Kasica

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).