bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: binutils 2.25 dwarf.c error during compile on Solaris 10 with SunStu


From: JONES, BILL
Subject: RE: binutils 2.25 dwarf.c error during compile on Solaris 10 with SunStudio12.
Date: Thu, 5 Feb 2015 02:02:49 +0000

Defining CFLAGS="-xc99 $CFLAGS" for all binutils causes other issues for other 
parts of binutils package.

#if __STDC_VERSION__ >= 199901L || (defined(__GNUC__) && __GNUC__ >= 2)
/* We can't use any bfd types here since readelf may define BFD64 and
   objdump may not.  */
#define HOST_WIDEST_INT long long
#else
#define HOST_WIDEST_INT long
#endif
typedef unsigned HOST_WIDEST_INT elf_vma;

This code block is specifically looking for C99 or GNU C which to determine how 
to make a uint64_t happen for HOST_WIDEST_INT

This is causing a conflict.

Bill

-----Original Message-----
From: JONES, BILL 
Sent: Wednesday, February 04, 2015 8:44 PM
To: 'Alan Modra'
Cc: address@hidden
Subject: RE: binutils 2.25 dwarf.c error during compile on Solaris 10 with 
SunStudio12.

Alan,

Thanks for the clue.

In SunStudio12, to use C99, you have to have "-xc99" in the CFLAGS.  I am 
wondering if binutils has this restriction for C99, why configure is not 
catching this.

Bill

-----Original Message-----
From: Alan Modra [mailto:address@hidden 
Sent: Wednesday, February 04, 2015 5:22 PM
To: JONES, BILL
Cc: address@hidden
Subject: Re: binutils 2.25 dwarf.c error during compile on Solaris 10 with 
SunStudio12.

On Wed, Feb 04, 2015 at 06:59:23PM +0000, JONES, BILL wrote:
> 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

dwarf_vma on your system is only a 32-bit type.  Investigate why this
is so.

-- 
Alan Modra
Australia Development Lab, IBM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]