binutils team...

I am compiling on a Sun T5220 with Solaris 10 and SunStudio12.
Version:
cc: Sun C 5.12 SunOS_sparc 2011/11/16

dwarf.c is blowing up.


cc -DHAVE_CONFIG_H -I. -I/appl/local-201501ss/include 
-I/opt/solarisstudio12.3/include  -I. -I. -I../bfd -I./../bfd -I./../include 
-DLOCALEDIR="\"/appl/local-201501ss/share/locale\"" 
-Dbin_dummy_emulation=bin_vanilla_emulation -I/appl/local-201501ss/include 
-I/opt/solarisstudio12.3/include   -I/appl/local-201501ss/include 
-I/opt/solarisstudio12.3/include  -c dwarf.c
"dwarf.c", line 1618: zero or negative subscript
"dwarf.c", line 2193: zero or negative subscript
"dwarf.c", line 2275: zero or negative subscript
"dwarf.c", line 2645: zero or negative subscript
"dwarf.c", line 3586: zero or negative subscript
"dwarf.c", line 3803: zero or negative subscript
"dwarf.c", line 4673: zero or negative subscript
"dwarf.c", line 5459: zero or negative subscript
"dwarf.c", line 5571: zero or negative subscript
"dwarf.c", line 6205: zero or negative subscript
cc: acomp failed for dwarf.c
make[4]: *** [dwarf.o] Error 2




I have these tools compiled and installed without issue:
gnu/make-3.82
gnu/libsigsegv-2.10
gnu/m4-1.4.17
gnu/readline-6.3
gnupg/zlib-1.2.8
gnu/ncurses-5.9
sourceforge/pcre-8.36
gnu/libiconv-1.14
gnu/grep-2.19
sourceforge/expat-2.1.0
gnu/tar-1.28
gnu/texinfo-5.2
sourceforge/flex-2.5.39
gnu/bison-3.0.2
sourceforge/flex-2.5.39
gnu/gmp-6.0.0
mpfr.org/mpfr-3.1.2
gnu/mpc-1.0.2
gnu/pth-2.0.7
gnu/gzip-1.6
gnu/libunistring-0.9.4
tukaani/xz-5.2.0
gnu/sed-4.2.2
xmlsoft.org/libxml2-2.9.2
openssl/openssl-1.0.1j
gnu/coreutils-8.23
gnu/gettext-0.19.4
gnu/gawk-4.1.1
sourceforge/tcl8.6.3
sourceforge/itcl4.0.2
sourceforge/sqlite3.8.7.1
sourceforge/thread2.7.1
sourceforge/tdbc1.0.2
sourceforge/expect5.45

Installing these into /appl/local-201501ss

CC=cc
CFLAGS=' -I/appl/local-201501ss/include -I/opt/solarisstudio12.3/include '
CONFIG_SHELL=/bin/bash
CPPFLAGS=' -I/appl/local-201501ss/include -I/opt/solarisstudio12.3/include '
CXX=CC
CXXFLAGS=' -I/appl/local-201501ss/include -I/opt/solarisstudio12.3/include '
FCFLAGS=' -I/appl/local-201501ss/include -I/opt/solarisstudio12.3/include '
FFLAGS=' -I/appl/local-201501ss/include -I/opt/solarisstudio12.3/include '
LDFLAGS=' -R/appl/local-201501ss/lib -R/opt/solarisstudio12.3/lib   
-R/opt/solarisstudio12.3/lib -R/usr/lib -L/appl/local-201501ss/lib 
-L/opt/solarisstudio12.3/lib   -L/opt/solarisstudio12.3/lib'
LD_LIBRARY_PATH=/appl/local-201501ss/lib:/opt/solarisstudio12.3/lib:
MAKE=make
PATH=/appl/local-201501ss/bin:/appl/local-201501ss/sbin:/appl/gfpip/perl5/bin:/opt/solarisstudio12.3/bin:/usr/xpg6/bin:/usr/xpg4/bin:/usr/sbin:/usr/bin:/opt/solarisstudio12.3/bin:/usr/ccs/bin:/usr/ucb:/usr/localcw/bin:/usr/localcw/sbin:/usr/openwin/bin
PKG_CONFIG_PATH=/appl/local-201501ss/lib/pkgconfig
SHELL=/bin/bash


Output from configure:
Configuring 32-bits  gnu/binutils-2.25


+ /bin/bash /appl/gfpip/local_build/src/gnu/binutils-2.25/configure 
--prefix=/appl/local-201501ss --libdir=/appl/local-201501ss/lib 
--srcdir=/appl/gfpip/local_build/src/gnu/binutils-2.25
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
checking target system type... sparc-sun-solaris2.10
checking for a BSD-compatible install... /appl/local-201501ss/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /appl/local-201501ss/bin/sed
checking for gawk... gawk
checking for gcc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking whether we are using the GNU C++ compiler... no
checking whether CC accepts -g... yes
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp $$f1 $$f2 16 16
checking for objdir... .libs
checking for version 0.10 of ISL... no
checking for version 0.11 of ISL... no
checking for version 0.12 of ISL... no
checking for default BUILD_CONFIG...
checking for --enable-vtable-verify... no
checking for bison... bison -y
checking for bison... bison
checking for gm4... gm4
checking for flex... flex
checking for flex... flex
checking for makeinfo... makeinfo
checking for expect... expect
checking for runtest... no
checking for ar... ar
checking for as... as
checking for dlltool... no
checking for ld... ld
checking for lipo... no
checking for nm... nm
checking for ranlib... ranlib
checking for strip... strip
checking for windres... no
checking for windmc... no
checking for objcopy... no
checking for objdump... no
checking for readelf... no
checking for cc... cc
checking for c++... no
checking for g++... no
checking for cxx... no
checking for gxx... no
checking for gcc... no
checking for gcj... no
checking for gfortran... no
checking for gccgo... no
checking for ar... ar
checking for as... as
checking for dlltool... no
checking for ld... ld
checking for lipo... no
checking for nm... nm
checking for objdump... no
checking for ranlib... ranlib
checking for readelf... no
checking for strip... strip
checking for windres... no
checking for windmc... no
checking where to find the target ar... just compiled
checking where to find the target as... just compiled
checking where to find the target cc... host tool
checking where to find the target c++... host tool
checking where to find the target c++ for libstdc++... host tool
checking where to find the target dlltool... just compiled
checking where to find the target gcc... host tool
checking where to find the target gcj... host tool
checking where to find the target gfortran... host tool
checking where to find the target gccgo... host tool
checking where to find the target ld... just compiled
checking where to find the target lipo... host tool
checking where to find the target nm... just compiled
checking where to find the target objdump... just compiled
checking where to find the target ranlib... just compiled
checking where to find the target readelf... just compiled
checking where to find the target strip... just compiled
checking where to find the target windres... just compiled
checking where to find the target windmc... just compiled
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
config.status: creating Makefile

Here is where binutils is blowing up...

make[4]: Entering directory 
`/appl/archives/local_build/src/gnu/binutils-2.25/binutils'
source='size.c' object='size.o' libtool=no \
DEPDIR=.deps depmode=none /bin/bash ./../depcomp \
cc -DHAVE_CONFIG_H -I. -I/appl/local-201501ss/include 
-I/opt/solarisstudio12.3/include  -I. -I. -I../bfd -I./../bfd -I./../include 
-DLOCALEDIR="\"/appl/local-201501ss/share/locale\"" 
-Dbin_dummy_emulation=bin_vanilla_emulation -I/appl/local-201501ss/include 
-I/opt/solarisstudio12.3/include   -I/appl/local-201501ss/include 
-I/opt/solarisstudio12.3/include  -c size.c
source='bucomm.c' object='bucomm.o' libtool=no \
DEPDIR=.deps depmode=none /bin/bash ./../depcomp \
cc -DHAVE_CONFIG_H -I. -I/appl/local-201501ss/include 
-I/opt/solarisstudio12.3/include  -I. -I. -I../bfd -I./../bfd -I./../include 
-DLOCALEDIR="\"/appl/local-201501ss/share/locale\"" 
-Dbin_dummy_emulation=bin_vanilla_emulation -I/appl/local-201501ss/include 
-I/opt/solarisstudio12.3/include   -I/appl/local-201501ss/include 
-I/opt/solarisstudio12.3/include  -c bucomm.c

source='version.c' object='version.o' libtool=no \
DEPDIR=.deps depmode=none /bin/bash ./../depcomp \
cc -DHAVE_CONFIG_H -I. -I/appl/local-201501ss/include 
-I/opt/solarisstudio12.3/include  -I. -I. -I../bfd -I./../bfd -I./../include 
-DLOCALEDIR="\"/appl/local-201501ss/share/locale\"" 
-Dbin_dummy_emulation=bin_vanilla_emulation -I/appl/local-201501ss/include 
-I/opt/solarisstudio12.3/include   -I/appl/local-201501ss/include 
-I/opt/solarisstudio12.3/include  -c version.
c
source='filemode.c' object='filemode.o' libtool=no \
DEPDIR=.deps depmode=none /bin/bash ./../depcomp \
cc -DHAVE_CONFIG_H -I. -I/appl/local-201501ss/include 
-I/opt/solarisstudio12.3/include  -I. -I. -I../bfd -I./../bfd -I./../include 
-DLOCALEDIR="\"/appl/local-201501ss/share/locale\"" 
-Dbin_dummy_emulation=bin_vanilla_emulation -I/appl/local-201501ss/include 
-I/opt/solarisstudio12.3/include   -I/appl/local-201501ss/include 
-I/opt/solarisstudio12.3/include  -c filemode
.c
/bin/bash ./libtool --tag=CC   --mode=link cc  -I/appl/local-201501ss/include 
-I/opt/solarisstudio12.3/include   -R/appl/local-201501ss/lib 
-R/opt/solarisstudio12.3/lib   -R/opt/solarisstudio12.3/lib -R/usr/lib 
-L/appl/local-201501ss/lib -L/opt/solarisstudio12.3/lib   
-L/opt/solarisstudio12.3/lib -o size size.o bucomm.o version.o filemode.o 
../bfd/libbfd.la ../libiberty/libiberty.a /appl/local-201501ss/lib/libintl.so 
/appl/local-201501ss/lib/libiconv.so -lc -R/appl/local-201501ss/lib 
-R/opt/solarisstudio12.3/lib -R/usr/lib -lz
libtool: link: cc -I/appl/local-201501ss/include 
-I/opt/solarisstudio12.3/include -o size size.o bucomm.o version.o filemode.o 
/appl/local-201501ss/lib/libintl.so /appl/local-201501ss/lib/libiconv.so  
-L/appl/local-201501ss/lib -L/opt/solarisstudio12.3/lib ../bfd/.libs/libbfd.a 
../libiberty/libiberty.a -lc -lz -R/appl/local-201501ss/lib 
-R/opt/solarisstudio12.3/lib -R/usr/lib
source='objdump.c' object='objdump.o' libtool=no \
DEPDIR=.deps depmode=none /bin/bash ./../depcomp \
cc -DHAVE_CONFIG_H -I. -I/appl/local-201501ss/include 
-I/opt/solarisstudio12.3/include  -I. -I. -I../bfd -I./../bfd -I./../include 
-DLOCALEDIR="\"/appl/local-201501ss/share/locale\"" 
-Dbin_dummy_emulation=bin_vanilla_emulation -I/appl/local-201501ss/include 
-I/opt/solarisstudio12.3/include   -I/appl/local-201501ss/include 
-I/opt/solarisstudio12.3/include  -c -DOBJDUMP_PRIVATE_VECTORS="" ./objdump.c
"./objdump.c", line 1667: warning: integer overflow detected: op "<<"
"./objdump.c", line 3283: warning: argument #5 is incompatible with prototype:
        prototype: pointer to void : "budbg.h", line 31
        argument : pointer to function(pointer to struct bfd {pointer to const 
char filename, pointer to const struct bfd_target {..} xvec, pointer to void 
iostream, pointer to const struct bfd_iovec {..} iovec, pointer to struct bfd 
{..} lru_prev, pointer to struct bfd {..} lru_next, unsigned long long where, 
long mtime, unsigned int id, unsigned int format :3, unsigned int direction :2, 
unsigned int flags :17, unsigned int cacheable :1, unsigned int 
target_defaulted :1, unsigned int opened_once :1, unsigned int mtime_set :1, 
unsigned int no_export :1, unsigned int output_has_begun :1, unsigned int 
has_armap :1, unsigned int is_thin_archive :1, unsigned int selective_search 
:1, unsigned int is_linker_output :1, unsigned long long origin, unsigned long 
long proxy_origin, struct bfd_hash_table {..} section_htab, pointer to struct 
bfd_section {..} sections, pointer to struct bfd_section {..} section_last, 
unsigned int section_count, int archive_pass, unsigned long long start_address, 
pointer to pointer to struct bfd_symbol {..} outsymbols, unsigned int symcount, 
unsigned int dynsymcount, pointer to const struct bfd_arch_info {..} arch_info, 
pointer to void arelt_data, pointer to struct bfd {..} my_archive, pointer to 
struct bfd {..} archive_next, pointer to struct bfd {..} archive_head, pointer 
to struct bfd {..} nested_archives, union  {..} link, union  {..} tdata, 
pointer to void usrdata, pointer to void memory}, pointer to const char, int) 
returning pointer to char
source='dwarf.c' object='dwarf.o' libtool=no \
DEPDIR=.deps depmode=none /bin/bash ./../depcomp \
cc -DHAVE_CONFIG_H -I. -I/appl/local-201501ss/include 
-I/opt/solarisstudio12.3/include  -I. -I. -I../bfd -I./../bfd -I./../include 
-DLOCALEDIR="\"/appl/local-201501ss/share/locale\"" 
-Dbin_dummy_emulation=bin_vanilla_emulation -I/appl/local-201501ss/include 
-I/opt/solarisstudio12.3/include   -I/appl/local-201501ss/include 
-I/opt/solarisstudio12.3/include  -c dwarf.c
"dwarf.c", line 1618: zero or negative subscript
"dwarf.c", line 2193: zero or negative subscript
"dwarf.c", line 2275: zero or negative subscript
"dwarf.c", line 2645: zero or negative subscript
"dwarf.c", line 3586: zero or negative subscript
"dwarf.c", line 3803: zero or negative subscript
"dwarf.c", line 4673: zero or negative subscript
"dwarf.c", line 5459: zero or negative subscript
"dwarf.c", line 5571: zero or negative subscript
"dwarf.c", line 6205: zero or negative subscript
cc: acomp failed for dwarf.c
make[4]: *** [dwarf.o] Error 2
make[4]: Leaving directory 
`/appl/archives/local_build/src/gnu/binutils-2.25/binutils'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory 
`/appl/archives/local_build/src/gnu/binutils-2.25/binutils'
make[2]: *** [all] Error 2
make[2]: Leaving directory 
`/appl/archives/local_build/src/gnu/binutils-2.25/binutils'
make[1]: *** [all-binutils] Error 2
make[1]: Leaving directory `/appl/archives/local_build/src/gnu/binutils-2.25'
make: *** [all] Error 2


What needs to be done here?

Robert W. Jones (Bill)
AT&T
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to