Binutils Build error when the target is arm-linux

2010-02-23 Thread thinke365

/configure --target=arm-linux, ok
make, shows error

gcc -DHAVE_CONFIG_H -I.  -I. -I. -I../bfd -I./config -I./../include -I./..
-I./../bfd -DLOCALEDIR="\"/tools/cross/share/locale\""  -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -MT tc-arm.o -MD -MP
-MF .deps/tc-arm.Tpo -c -o tc-arm.o `test -f 'config/tc-arm.c' || echo
'./'`config/tc-arm.c
cc1: warnings being treated as errors
config/tc-arm.c: In function ‘make_mapping_symbol’:
config/tc-arm.c:2489: Warnning:if statement is empty
make[4]: *** [tc-arm.o] Error 1
make[4]: Leaving directory `/root/build/binutils-2.20_cross/gas'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/root/build/binutils-2.20_cross/gas'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/build/binutils-2.20_cross/gas'
make[1]: *** [all-gas] Error 2
make[1]: Leaving directory `/root/build/binutils-2.20_cross'
make: *** [all] Error 2

you can add parenthesis to gas/config/tc-arm.c at line 2488.
This can solve the problem

My build environment is CentOS 5.3.
gcc 4.1.2, kernel version is 2.6.18
-- 
View this message in context: 
http://old.nabble.com/Binutils-Build-error-when-the-target-is-arm-linux-tp27701545p27701545.html
Sent from the Gnu - Binutils - Bugs mailing list archive at Nabble.com.



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


Re: Binutils Build error when the target is arm-linux

2010-02-23 Thread thinke365

my binutils version is 2.20.
this error is produced, since the absent of parenthesis makes a warnning,
while the compile regards warnnings as errors,
this problem can be solved in two ways:
1. add parenthesis to line 2489
2. use --disable-werror option when configure

option 1 is recommanded, since it can enforce an stronger software.

Nick Clifton wrote:
> 
> Hi thinke365,
> 
>> config/tc-arm.c:2489: Warnning:if statement is empty
> 
> Which version of the sources are you using ?
> 
> I cannot reproduce this problem with the current mainline sources...
> 
> Cheers
>Nick
> 
> 
> 
> ___
> bug-binutils mailing list
> bug-binutils@gnu.org
> http://lists.gnu.org/mailman/listinfo/bug-binutils
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Binutils-Build-error-when-the-target-is-arm-linux-tp27701545p27714080.html
Sent from the Gnu - Binutils - Bugs mailing list archive at Nabble.com.



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