bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/19577] New: Gold failed to build with GCC 5.3


From: hjl.tools at gmail dot com
Subject: [Bug gold/19577] New: Gold failed to build with GCC 5.3
Date: Sat, 06 Feb 2016 17:38:45 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=19577

            Bug ID: 19577
           Summary: Gold failed to build with GCC 5.3
           Product: binutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gold
          Assignee: ccoutant at gmail dot com
          Reporter: hjl.tools at gmail dot com
                CC: ian at airs dot com
  Target Milestone: ---
              Host: x86-64

g++ -DHAVE_CONFIG_H -I. -I/export/gnu/import/git/sources/binutils-gdb/gold 
-I/export/gnu/import/git/sources/binutils-gdb/gold
-I/export/gnu/import/git/sources/binutils-gdb/gold/../include
-I/export/gnu/import/git/sources/binutils-gdb/gold/../elfcpp
-DLOCALEDIR="\"/usr/local/share/locale\"" -DBINDIR="\"/usr/local/bin\""
-DTOOLBINDIR="\"/usr/local/x86_64-pc-linux-gnu/bin\""
-DTOOLLIBDIR="\"/usr/local/x86_64-pc-linux-gnu/lib\""   -W -Wall    -Werror
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=x86_64.o  -g -O2 -MT
x86_64.o -MD -MP -MF .deps/x86_64.Tpo -c -o x86_64.o
/export/gnu/import/git/sources/binutils-gdb/gold/x86_64.cc
In file included from
/export/gnu/import/git/sources/binutils-gdb/gold/x86_64.cc:30:0:
/export/gnu/import/git/sources/binutils-gdb/gold/reloc.h: In instantiation of
‘static bool gold::Bits<valsize>::has_unsigned_overflow32(uint32_t) [with int
bits = 8; uint32_t = unsigned int]’:
/export/gnu/import/git/sources/binutils-gdb/gold/reloc.h:370:50:   required
from ‘static gold::Relocate_functions<size, big_endian>::Reloc_status
gold::Relocate_functions<size,
big_endian>::check_overflow(gold::Relocate_functions<size,
big_endian>::Address, gold::Relocate_functions<size,
big_endian>::Overflow_check) [with int valsize = 8; int size = 32; bool
big_endian = false; gold::Relocate_functions<size, big_endian>::Address =
unsigned int]’
/export/gnu/import/git/sources/binutils-gdb/gold/reloc.h:437:35:   required
from ‘static gold::Relocate_functions<size, big_endian>::Reloc_status
gold::Relocate_functions<size, big_endian>::rel(unsigned char*, const
gold::Sized_relobj_file<size, big_endian>*, const gold::Symbol_value<size>*,
gold::Relocate_functions<size, big_endian>::Overflow_check) [with int valsize =
8; int size = 32; bool big_endian = false]’
/export/gnu/import/git/sources/binutils-gdb/gold/reloc.h:583:26:   required
from ‘static void gold::Relocate_functions<size, big_endian>::rel8(unsigned
char*, const gold::Sized_relobj_file<size, big_endian>*, const
gold::Symbol_value<size>*) [with int size = 32; bool big_endian = false]’
/export/gnu/import/git/sources/binutils-gdb/gold/target-reloc.h:905:50:  
required from ‘void gold::relocate_relocs(const gold::Relocate_info<size,
big_endian>*, const unsigned char*, size_t, gold::Output_section*, typename
elfcpp::Elf_types<size>::Elf_Off, unsigned char*, typename
elfcpp::Elf_types<size>::Elf_Addr, gold::section_size_type, unsigned char*,
gold::section_size_type) [with int size = 32; bool big_endian = false;
Classify_reloc = gold::Default_classify_reloc<4, 32, false>; size_t = long
unsigned int; typename elfcpp::Elf_types<size>::Elf_Off = unsigned int;
typename elfcpp::Elf_types<size>::Elf_Addr = unsigned int;
gold::section_size_type = long unsigned int]’
/export/gnu/import/git/sources/binutils-gdb/gold/x86_64.cc:4416:53:   required
from ‘void {anonymous}::Target_x86_64<size>::relocate_relocs(const
gold::Relocate_info<size, false>*, unsigned int, const unsigned char*, size_t,
gold::Output_section*, typename elfcpp::Elf_types<size>::Elf_Off, unsigned
char*, typename elfcpp::Elf_types<size>::Elf_Addr, gold::section_size_type,
unsigned char*, gold::section_size_type) [with int size = 32; size_t = long
unsigned int; typename elfcpp::Elf_types<size>::Elf_Off = unsigned int;
typename elfcpp::Elf_types<size>::Elf_Addr = unsigned int;
gold::section_size_type = long unsigned int]’
/export/gnu/import/git/sources/binutils-gdb/gold/target-select.h:39:7:  
required from here
/export/gnu/import/git/sources/binutils-gdb/gold/reloc.h:1019:16: error:
comparison between signed and unsigned integer expressions
[-Werror=sign-compare]
     return val > max;
                ^
/export/gnu/import/git/sources/binutils-gdb/gold/reloc.h: In instantiation of
‘static bool gold::Bits<valsize>::has_unsigned_overflow(uint64_t) [with int
bits = 8; uint64_t = long unsigned int]’:
/export/gnu/import/git/sources/binutils-gdb/gold/reloc.h:374:48:   required
from ‘static gold::Relocate_functions<size, big_endian>::Reloc_status
gold::Relocate_functions<size,
big_endian>::check_overflow(gold::Relocate_functions<size,
big_endian>::Address, gold::Relocate_functions<size,
big_endian>::Overflow_check) [with int valsize = 8; int size = 32; bool
big_endian = false; gold::Relocate_functions<size, big_endian>::Address =
unsigned int]’
/export/gnu/import/git/sources/binutils-gdb/gold/reloc.h:437:35:   required
from ‘static gold::Relocate_functions<size, big_endian>::Reloc_status
gold::Relocate_functions<size, big_endian>::rel(unsigned char*, const
gold::Sized_relobj_file<size, big_endian>*, const gold::Symbol_value<size>*,
gold::Relocate_functions<size, big_endian>::Overflow_check) [with int valsize =
8; int size = 32; bool big_endian = false]’
/export/gnu/import/git/sources/binutils-gdb/gold/reloc.h:583:26:   required
from ‘static void gold::Relocate_functions<size, big_endian>::rel8(unsigned
char*, const gold::Sized_relobj_file<size, big_endian>*, const
gold::Symbol_value<size>*) [with int size = 32; bool big_endian = false]’
/export/gnu/import/git/sources/binutils-gdb/gold/target-reloc.h:905:50:  
required from ‘void gold::relocate_relocs(const gold::Relocate_info<size,
big_endian>*, const unsigned char*, size_t, gold::Output_section*, typename
elfcpp::Elf_types<size>::Elf_Off, unsigned char*, typename
elfcpp::Elf_types<size>::Elf_Addr, gold::section_size_type, unsigned char*,
gold::section_size_type) [with int size = 32; bool big_endian = false;
Classify_reloc = gold::Default_classify_reloc<4, 32, false>; size_t = long
unsigned int; typename elfcpp::Elf_types<size>::Elf_Off = unsigned int;
typename elfcpp::Elf_types<size>::Elf_Addr = unsigned int;
gold::section_size_type = long unsigned int]’
/export/gnu/import/git/sources/binutils-gdb/gold/x86_64.cc:4416:53:   required
from ‘void {anonymous}::Target_x86_64<size>::relocate_relocs(const
gold::Relocate_info<size, false>*, unsigned int, const unsigned char*, size_t,
gold::Output_section*, typename elfcpp::Elf_types<size>::Elf_Off, unsigned
char*, typename elfcpp::Elf_types<size>::Elf_Addr, gold::section_size_type,
unsigned char*, gold::section_size_type) [with int size = 32; size_t = long
unsigned int; typename elfcpp::Elf_types<size>::Elf_Off = unsigned int;
typename elfcpp::Elf_types<size>::Elf_Addr = unsigned int;
gold::section_size_type = long unsigned int]’
/export/gnu/import/git/sources/binutils-gdb/gold/target-select.h:39:7:  
required from here
/export/gnu/import/git/sources/binutils-gdb/gold/reloc.h:1085:16: error:
comparison between signed and unsigned integer expressions
[-Werror=sign-compare]
     return val > max;
                ^
/export/gnu/import/git/sources/binutils-gdb/gold/reloc.h: In instantiation of
‘static bool gold::Bits<valsize>::has_unsigned_overflow32(uint32_t) [with int
bits = 16; uint32_t = unsigned int]’:
/export/gnu/import/git/sources/binutils-gdb/gold/reloc.h:370:50:   required
from ‘static gold::Relocate_functions<size, big_endian>::Reloc_status
gold::Relocate_functions<size,
big_endian>::check_overflow(gold::Relocate_functions<size,
big_endian>::Address, gold::Relocate_functions<size,
big_endian>::Overflow_check) [with int valsize = 16; int size = 32; bool
big_endian = false; gold::Relocate_functions<size, big_endian>::Address =
unsigned int]’
/export/gnu/import/git/sources/binutils-gdb/gold/reloc.h:437:35:   required
from ‘static gold::Relocate_functions<size, big_endian>::Reloc_status
gold::Relocate_functions<size, big_endian>::rel(unsigned char*, const
gold::Sized_relobj_file<size, big_endian>*, const gold::Symbol_value<size>*,
gold::Relocate_functions<size, big_endian>::Overflow_check) [with int valsize =
16; int size = 32; bool big_endian = false]’
/export/gnu/import/git/sources/binutils-gdb/gold/reloc.h:688:27:   required
from ‘static void gold::Relocate_functions<size, big_endian>::rel16(unsigned
char*, const gold::Sized_relobj_file<size, big_endian>*, const
gold::Symbol_value<size>*) [with int size = 32; bool big_endian = false]’
/export/gnu/import/git/sources/binutils-gdb/gold/target-reloc.h:910:51:  
required from ‘void gold::relocate_relocs(const gold::Relocate_info<size,
big_endian>*, const unsigned char*, size_t, gold::Output_section*, typename
elfcpp::Elf_types<size>::Elf_Off, unsigned char*, typename
elfcpp::Elf_types<size>::Elf_Addr, gold::section_size_type, unsigned char*,
gold::section_size_type) [with int size = 32; bool big_endian = false;
Classify_reloc = gold::Default_classify_reloc<4, 32, false>; size_t = long
unsigned int; typename elfcpp::Elf_types<size>::Elf_Off = unsigned int;
typename elfcpp::Elf_types<size>::Elf_Addr = unsigned int;
gold::section_size_type = long unsigned int]’
/export/gnu/import/git/sources/binutils-gdb/gold/x86_64.cc:4416:53:   required
from ‘void {anonymous}::Target_x86_64<size>::relocate_relocs(const
gold::Relocate_info<size, false>*, unsigned int, const unsigned char*, size_t,
gold::Output_section*, typename elfcpp::Elf_types<size>::Elf_Off, unsigned
char*, typename elfcpp::Elf_types<size>::Elf_Addr, gold::section_size_type,
unsigned char*, gold::section_size_type) [with int size = 32; size_t = long
unsigned int; typename elfcpp::Elf_types<size>::Elf_Off = unsigned int;
typename elfcpp::Elf_types<size>::Elf_Addr = unsigned int;
gold::section_size_type = long unsigned int]’
/export/gnu/import/git/sources/binutils-gdb/gold/target-select.h:39:7:  
required from here
/export/gnu/import/git/sources/binutils-gdb/gold/reloc.h:1019:16: error:
comparison between signed and unsigned integer expressions
[-Werror=sign-compare]

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

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