bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/19751] Gold failed to build with GCC 6


From: markus at trippelsdorf dot de
Subject: [Bug gold/19751] Gold failed to build with GCC 6
Date: Fri, 04 Mar 2016 16:15:25 +0000

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

Markus Trippelsdorf <markus at trippelsdorf dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |markus at trippelsdorf dot de

--- Comment #4 from Markus Trippelsdorf <markus at trippelsdorf dot de> ---
(In reply to H.J. Lu from comment #3)
> (In reply to Cary Coutant from comment #2)
> > Created attachment 9062 [details]
> > Add ATTRIBUTE_UNUSED where needed.
> > 
> > HJ, please try this patch and see if it silences the warnings. I'd prefer to
> > leave these functions defined.
> 
> Doesn't work:
> 
> /export/build/gnu/gcc-x32/release/usr/gcc-6.0.0-x32/bin/g++ -W -Wall   
> -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=ld-new
> -I/export/gnu/import/git/sources/binutils-gdb/gold/../zlib -g -O2 
> -static-libstdc++ -static-libgcc  -o ld-new main.o i386.o x86_64.o sparc.o
> powerpc.o arm.o arm-reloc-property.o tilegx.o mips.o aarch64.o
> aarch64-reloc-property.o s390.o libgold.a ../libiberty/libiberty.a  
> -lpthread -ldl -L./../zlib -lz -ldl 
> sparc.o: In function `(anonymous namespace)::Target_sparc<64,
> true>::do_finalize_sections(gold::Layout*, gold::Input_objects const*,
> gold::Symbol_table*)':
> /export/gnu/import/git/sources/binutils-gdb/gold/sparc.cc:3249: undefined
> reference to `gold::Sized_symbol<64>::init_undefined(char const*, char
> const*, unsigned long, elfcpp::STT, elfcpp::STB, elfcpp::STV, unsigned char)'
> /export/gnu/import/git/sources/binutils-gdb/gold/sparc.cc:3253: undefined
> reference to `gold::Sized_symbol<64>::init_constant(char const*, char
> const*, unsigned long, unsigned long, elfcpp::STT, elfcpp::STB, elfcpp::STV,
> unsigned char, bool)'
> sparc.o: In function `(anonymous namespace)::Target_sparc<32,
> true>::do_finalize_sections(gold::Layout*, gold::Input_objects const*,
> gold::Symbol_table*)':
> /export/gnu/import/git/sources/binutils-gdb/gold/sparc.cc:3249: undefined
> reference to `gold::Sized_symbol<32>::init_undefined(char const*, char
> const*, unsigned int, elfcpp::STT, elfcpp::STB, elfcpp::STV, unsigned char)'
> /export/gnu/import/git/sources/binutils-gdb/gold/sparc.cc:3253: undefined
> reference to `gold::Sized_symbol<32>::init_constant(char const*, char
> const*, unsigned int, unsigned int, elfcpp::STT, elfcpp::STB, elfcpp::STV,
> unsigned char, bool)'
> collect2: error: ld returned 1 exit status
> Makefile:745: recipe for target 'ld-new' failed
> make: *** [ld-new] Error 1

This is a different issue, see PR19763.

-- 
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]