Can't build binutils on OpenSuSE or Ubuntu

Moran, Chris chris.moran at emergent.com.au
Sun Aug 11 14:26:15 UTC 2013


I am following the build instructions at:
http://www.rtems.org/onlinedocs/releases/rtemsdocs-4.10.2/share/rtems/html/s
tarted/started00034.html

I found that the patches listed in this document didn’t exist on the ftp
server, so I am using binutils-2.20.1 and
binutils-2.20.1-rtems4.10-20130320.diff

The patch applied without error

The command give to configure was "../binutils-2.20.1/configure
--target=i386-rtems --prefix=/opt/rtems" which ran without error

When I run make, the compile halts with the following error:

make[4]: Entering directory `/opt/rtems/tools/b-binutils/bfd'
/bin/sh ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I../../binutils-2.20.1/bfd -I. -I../../binutils-2.20.1/bfd
-I../../binutils-2.20.1/bfd/../include   -DBINDIR='"/opt/rtems/bin"'  -W
-Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -MT verilog.lo
-MD -MP -MF .deps/verilog.Tpo -c -o verilog.lo
../../binutils-2.20.1/bfd/verilog.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.20.1/bfd -I.
-I../../binutils-2.20.1/bfd -I../../binutils-2.20.1/bfd/../include
-DBINDIR=\"/opt/rtems/bin\" -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -Werror -g -O2 -MT verilog.lo -MD -MP -MF
.deps/verilog.Tpo -c ../../binutils-2.20.1/bfd/verilog.c -o verilog.o
../../binutils-2.20.1/bfd/verilog.c: In function âverilog_write_sectionâ:
../../binutils-2.20.1/bfd/verilog.c:225:15: error: variable âaddressâ set
but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[4]: *** [verilog.lo] Error 1
make[4]: Leaving directory `/opt/rtems/tools/b-binutils/bfd'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/opt/rtems/tools/b-binutils/bfd'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/opt/rtems/tools/b-binutils/bfd'
make[1]: *** [all-bfd] Error 2
make[1]: Leaving directory `/opt/rtems/tools/b-binutils'
make: *** [all] Error 2

I get the same error on a clean install of either OpenSUSE 12.3 or Ubuntu
13.04.  Any suggestions what I may be doing wrong?





More information about the users mailing list