Needed help to resolve Binutils Build problem
promila.jangra
promila.jangra@cdot.in
Fri May 20 06:58:00 GMT 2016
Hello Sir/Mam
I am trying to install binutils-2.24 on Debian 8.4 to build gcc cross-compiler for
powerpc-linux.
But, some error occurred in file ../../binutils-2.24/gas/subsegs.c. After spending alot
of time I am not able to discover the reason of the problem.
Please help me out to resolve the issue.
I have attached the error print at the end of the mail for better understanding.
Note : GCC 4.9.2 which is already install on machine.
Commands that I am executing to Install binutil
==============================================
$ mkdir build-binutils
$ cd build-binutils
$ ../binutils-2.24/configure --prefix=/opt/cross --target=aarch64-linux --disable-multilib
$ make -j4
$ make install
$ cd ..
===================================================================================
Error Logs :
===================================================================================
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating goal targets....
File 'all-am' does not exist.
File 'as-new' does not exist.
Prerequisite 'stamp-h1' is newer than target 'config.h'.
Must remake target 'config.h'.
make[4]: Entering directory '/home/cdot/promila/gcc_crossbuild/build-binutils/gas'
Successfully remade target file 'config.h'.
File 'subsegs.o' does not exist.
Must remake target 'subsegs.o'.
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.24/gas -I. -I../../binutils-2.24/gas
-I../bfd -I../../binutils-2.24/gas/config -I../../binutils-2.24/gas/../include
-I../../binutils-2.24/gas/.. -I../../binutils-2.24/gas/../bfd
-DLOCALEDIR="\"/opt/cross/share/locale\"" -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wshadow -Werror -g -O2 -MT subsegs.o -MD -MP -MF .deps/subsegs.Tpo
-c -o subsegs.o ../../binutils-2.24/gas/subsegs.c
In file included from ../../binutils-2.24/gas/as.h:95:0,
from ../../binutils-2.24/gas/subsegs.c:25:
../../binutils-2.24/gas/subsegs.c: In function âsubseg_changeâ:
../bfd/bfd.h:304:75: error: right-hand operand of comma expression has no effect
[-Werror=unused-value]
#define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata = (val)),TRUE)
^
../../binutils-2.24/gas/subsegs.c:70:7: note: in expansion of macro
âbfd_set_section_userdataâ
bfd_set_section_userdata (stdoutput, seg, seginfo);
^
../../binutils-2.24/gas/subsegs.c: In function âsubseg_getâ:
../bfd/bfd.h:304:75: error: right-hand operand of comma expression has no effect
[-Werror=unused-value]
#define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata = (val)),TRUE)
^
../../binutils-2.24/gas/subsegs.c:172:7: note: in expansion of macro
âbfd_set_section_userdataâ
bfd_set_section_userdata (stdoutput, secptr, seginfo);
^
cc1: all warnings being treated as errors
Makefile:891: recipe for target 'subsegs.o' failed
make[4]: *** [subsegs.o] Error 1
make[4]: Leaving directory '/home/cdot/promila/gcc_crossbuild/build-binutils/gas'
Makefile:2165: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/cdot/promila/gcc_crossbuild/build-binutils/gas'
Makefile:682: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/cdot/promila/gcc_crossbuild/build-binutils/gas'
Makefile:4710: recipe for target 'all-gas' failed
make[1]: *** [all-gas] Error 2
make[1]: Leaving directory '/home/cdot/promila/gcc_crossbuild/build-binutils'
Makefile:830: recipe for target 'all' failed
make: *** [all] Error 2
Thanks & Regards
Promila
MAX & PI Tools
Extn. 8403
More information about the Gcc-help
mailing list