[Bug gold/6682] New: gold compilation failure on both i686 and x86+64
binutils checked from CVS right now fails to build on 32-bit as well as 64-bit systems gcc (GCC) 4.3.0 20080428 (Red Hat 4.3.0-8) gcc-4.2.3 (GCC) 4.2.3 ./configure --enable-gold powerpc.cc:631: error: overflow in implicit constant conversion powerpc.cc: In static member function ‘static void::Powerpc_relocate_functions::addr16_ha(unsigned char*, typename elfcpp::Elf_types::Elf_Addr, typename elfcpp::Elf_types::Elf_Addr) [with int size = 32, bool big_endian = true]’: powerpc.cc:1709: instantiated from ‘bool::Target_powerpc::Relocate::relocate(const gold::Relocate_info*, ::Target_powerpc*, size_t, const elfcpp::Rela&, unsigned int, const gold::Sized_symbol*, const gold::Symbol_value*, unsigned char*, typename elfcpp::Elf_types::Elf_Addr, gold::section_size_type) [with int size = 32, bool big_endian = true]’ target-reloc.h:271: instantiated from ‘void gold::relocate_section(const gold::Relocate_info*, Target_type*, const unsigned char*, size_t, gold::Output_section*, bool, unsigned char*, typename elfcpp::Elf_types::Elf_Addr, gold::section_size_type) [with int size = 32, bool big_endian = true, Target_type = ::Target_powerpc<32, true>, int sh_type = 4, Relocate = ::Target_powerpc<32, true>::Relocate]’ powerpc.cc:1819: instantiated from ‘void::Target_powerpc::relocate_section(const gold::Relocate_info*, unsigned int, const unsigned char*, size_t, gold::Output_section*, bool, unsigned char*, typename elfcpp::Elf_types::Elf_Addr, gold::section_size_type) [with int size = 32, bool big_endian = true]’ powerpc.cc:1982: instantiated from here powerpc.cc:608: error: overflow in implicit constant conversion make[4]: *** [powerpc.o] Error 1 -- Summary: gold compilation failure on both i686 and x86+64 Product: binutils Version: 2.19 (HEAD) Status: NEW Severity: normal Priority: P2 Component: gold AssignedTo: ian at airs dot com ReportedBy: peter dot kovar at gmail dot com CC: bug-binutils at gnu dot org GCC build triplet: x86_64-unknown-linux-gnu GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: x86_64-unknown-linux-gnu http://sourceware.org/bugzilla/show_bug.cgi?id=6682 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gold/10105] New: gold compilation fail ure on F11 x86±64 b/c of conflicting basename( ) declaration
binutils checked out from CVS right now ../../configure --enable-gold make[4]: Entering directory `/usr/src/GNU/binutils/Linux/x86-64/gold' if g++ -DHAVE_CONFIG_H -I. -I../../../gold -I. -I../../../gold -I../../../gold/../include -I../../../gold/../elfcpp -DLOCALEDIR="\"/usr/local/share/locale\"" -DBINDIR="\"/usr/local/bin\"" -DTOOLBINDIR="\"/usr/local/x86_64-unknown-linux-gnu/bin\""-W -Wall -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=archive.o -g -O2 -MT archive.o -MD -MP -MF ".deps/archive.Tpo" -c -o archive.o ../../../gold/archive.cc; \ then mv -f ".deps/archive.Tpo" ".deps/archive.Po"; else rm -f ".deps/archive.Tpo"; exit 1; fi In file included from ../../../gold/archive.cc:30: ../../../gold/../include/libiberty.h:105: error: new declaration char* basename(const char*) /usr/include/string.h:601: error: ambiguates old declaration const char* basename(const char*) make[4]: *** [archive.o] Error 1 gcc-4.4.0-0.34.x86_64 gcc-c++-4.4.0-0.34.x86_64 rpm -qf /usr/include/string.h glibc-headers-2.9.90-19.x86_64 # ifndef basename /* Return the file name within directory of FILENAME. We don't declare the function if the `basename' macro is available (defined in ) which makes the XPG version of this function available. */ # ifdef __CORRECT_ISO_CPP_STRING_H_PROTO extern "C++" char *basename (char *__filename) __THROW __asm ("basename") __nonnull ((1)); extern "C++" __const char *basename (__const char *__filename) __THROW __asm ("basename") __nonnull ((1)); # else extern char *basename (__const char *__filename) __THROW __nonnull ((1)); # endif # endif #endif -- Summary: gold compilation failure on F11 x86±64 b/c of conflicting basename() declaration Product: binutils Version: 2.20 (HEAD) Status: NEW Severity: normal Priority: P2 Component: gold AssignedTo: ian at airs dot com ReportedBy: peter dot kovar at gmail dot com CC: bug-binutils at gnu dot org http://sourceware.org/bugzilla/show_bug.cgi?id=10105 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gold/10105] gold compilation failure on F11 x86-64 b/c of conflicting basename() declaration
--- Additional Comments From peter dot kovar at gmail dot com 2009-04-24 23:16 --- Changed bug description because this Bugzilla version is UTF-8 impaired. -- What|Removed |Added Summary|gold compilation failure on |gold compilation failure on |F11 x86±64 b/c of |F11 x86-64 b/c of |conflicting basename() |conflicting basename() |declaration |declaration http://sourceware.org/bugzilla/show_bug.cgi?id=10105 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gold/10105] gold compilation failure on F11 x86-64 b/c of conflicting basename() declaration
--- Additional Comments From peter dot kovar at gmail dot com 2009-04-25 10:03 --- #define HAVE_DECL_BASENAME 1 in the gold/config.h was sufficient to fix it. -- http://sourceware.org/bugzilla/show_bug.cgi?id=10105 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/10287] New: Test tls_shared_gnu2_test failed
make check PASS: tls_shared_gnu2_gd_to_ie_test v4: expected 4, found -387974407 Test t4 failed (int) v12.hi: expected 115, found -387974407 Test t12 failed v2: expected 20, found 0 Test t_last failed v2: expected 20, found 0 Test t_last failed v2: expected 0, found 711070900 Test t2 failed v4: expected 4, found 1904110544 Test t4 failed /bin/sh: line 4: 3645 Segmentation fault ${dir}$tst FAIL: tls_shared_gnu2_test PASS: tls_static_test -- Summary: Test tls_shared_gnu2_test failed Product: binutils Version: 2.20 (HEAD) Status: NEW Severity: normal Priority: P2 Component: binutils AssignedTo: unassigned at sources dot redhat dot com ReportedBy: peter dot kovar at gmail dot com CC: bug-binutils at gnu dot org http://sourceware.org/bugzilla/show_bug.cgi?id=10287 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gold/10105] gold compilation failure on F11 x86-64 b/c of conflicting basename() declaration
--- Additional Comments From peter dot kovar at gmail dot com 2009-06-22 22:09 --- make[4]: Entering directory `/usr/src/GNU/binutils/Linux/x86-64/gold' if g++ -DHAVE_CONFIG_H -I. -I../../../gold -I. -I../../../gold -I../../../gold/../include -I../../../gold/../elfcpp -DLOCALEDIR="\"/usr/local/share/locale\"" -DBINDIR="\"/usr/local/bin\"" -DTOOLBINDIR="\"/usr/local/x86_64-unknown-linux-gnu/bin\""-W -Wall -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=archive.o -g -O2 -MT archive.o -MD -MP -MF ".deps/archive.Tpo" -c -o archive.o ../../../gold/archive.cc; \ then mv -f ".deps/archive.Tpo" ".deps/archive.Po"; else rm -f ".deps/archive.Tpo"; exit 1; fi In file included from ../../../gold/archive.cc:30: ../../../gold/../include/libiberty.h:105: error: new declaration ‘char* basename(const char*)’ /usr/include/string.h:601: error: ambiguates old declaration ‘const char* basename(const char*)’ make[4]: *** [archive.o] Error 1 -- http://sourceware.org/bugzilla/show_bug.cgi?id=10105 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gold/10105] gold compilation failure on F11 x86-64 b/c of conflicting basename() declaration
--- Additional Comments From peter dot kovar at gmail dot com 2009-06-23 06:18 --- Yes. It was completely new checkout from CVS and new build afterwards. Otherwise I wouldn't report anything. peter.ko...@quad /usr/src/GNU/binutils/Linux/x86-64 € grep -i basename gold/config.cache ac_cv_have_decl_basename=${ac_cv_have_decl_basename=no} -- http://sourceware.org/bugzilla/show_bug.cgi?id=10105 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gold/10105] gold compilation failure on F11 x86-64 b/c of conflicting basename() declaration
--- Additional Comments From peter dot kovar at gmail dot com 2009-06-23 08:58 --- configure:6868: checking whether basename is declared configure:6892: g++ -c -g -O2 conftest.cc >&5 conftest.cc: In function 'int main()': conftest.cc:87: error: overloaded function with no contextual type information configure:6898: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "gold" | #define PACKAGE_TARNAME "gold" | #define PACKAGE_VERSION "0.1" | #define PACKAGE_STRING "gold 0.1" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "gold" | #define VERSION "0.1" | #define TARGET_SYSTEM_ROOT "" | #define TARGET_SYSTEM_ROOT_RELOCATABLE 0 | #define HAVE_TARGET_32_LITTLE 1 | #define HAVE_TARGET_32_BIG 1 | #define HAVE_TARGET_64_LITTLE 1 | #define HAVE_TARGET_64_BIG 1 | #define GOLD_DEFAULT_MACHINE EM_X86_64 | #define GOLD_DEFAULT_SIZE 64 | #define GOLD_DEFAULT_BIG_ENDIAN false | #define GOLD_DEFAULT_OSABI ELFOSABI_NONE | #ifdef __cplusplus | extern "C" void exit (int) throw (); | #endif | #define _GNU_SOURCE 1 | #define ENABLE_NLS 1 | #define HAVE_OMP_SUPPORT 1 | #define HAVE_PREAD 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_MREMAP 1 | #define HAVE_FFSLL 1 | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_TR1_UNORDERED_SET 1 | #define HAVE_TR1_UNORDERED_MAP 1 | #define HAVE_EXT_HASH_MAP 1 | #define HAVE_EXT_HASH_SET 1 | #define HAVE_BYTESWAP_H 1 | #define HAVE_MALLINFO 1 | #define HAVE_POSIX_FALLOCATE 1 | /* end confdefs.h. */ | #include | #if HAVE_SYS_TYPES_H | # include | #endif | #if HAVE_SYS_STAT_H | # include | #endif | #if STDC_HEADERS | # include | # include | #else | # if HAVE_STDLIB_H | # include | # endif | #endif | #if HAVE_STRING_H | # if !STDC_HEADERS && HAVE_MEMORY_H | # include | # endif | # include | #endif | #if HAVE_STRINGS_H | # include | #endif | #if HAVE_INTTYPES_H | # include | #else | # if HAVE_STDINT_H | # include | # endif | #endif | #if HAVE_UNISTD_H | # include | #endif | int | main () | { | #ifndef basename | char *p = (char *) basename; | #endif | | ; | return 0; | } € gcc --version gcc (GCC) 4.4.0 20090514 (Red Hat 4.4.0-5) Copyright (C) 2009 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -- http://sourceware.org/bugzilla/show_bug.cgi?id=10105 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gold/10105] gold compilation failure on F11 x86-64 b/c of conflicting basename() declaration
--- Additional Comments From peter dot kovar at gmail dot com 2009-06-23 17:57 --- Fixed. Thank you for your efforts. -- http://sourceware.org/bugzilla/show_bug.cgi?id=10105 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils