This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem compiling 2.17 with GCC 4.1.1


>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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]