https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96362
Bug ID: 96362 Summary: bootstrapping gcc 9.3.0 on sparc-sun-solaris2.11 fails compiling libgcc2.c (.group in output) Product: gcc Version: 9.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: nicholas.h.briggs at gmail dot com Target Milestone: --- Created attachment 48947 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48947&action=edit Intermediate output from gcc-9.3.0 compiling libgcc2 during bootstrap Attempting to bootstrap gcc 9.3.0 (and same problem with gcc 10.2.0) on sparc-sun-solaris2.11 system fails at the point of compiling libgcc2.c for _ffssi2 as the compiler generates a .group directive which is not understood by the binutils-2.35 as. Configured with: '../gcc/configure' '--prefix=/opt/gcc-9.3' '--disable-werror' '--disable-checking' 'CC=gcc' 'CXX=g++' '--disable-multilib' '--build=sparc-sun-solaris2.11' 'buil d_alias=sparc-sun-solaris2.11' '--enable-languages=c,c++,lto' Where it attempts to execute: /export/home/briggs/gcc-9.3-objdir/./gcc/xgcc -B/export/home/briggs/gcc-9.3-objdir/./gcc/ -B/opt/gcc-9.3/sparc-sun-solaris2.11/bin/ -B/opt/gcc-9.3/sparc-sun-solaris2.11/lib/ -isystem /opt/gcc-9.3/sparc-sun-solaris2.11/include -isystem /opt/gcc-9.3/sparc-sun-solaris2.11/sys-include -fno-checking -g -O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -fPIC -I. -I. -I../.././gcc -I../../../gcc/libgcc -I../../../gcc/libgcc/. -I../../../gcc/libgcc/../gcc -I../../../gcc/libgcc/../include -DHAVE_CC_TLS -o _ffssi2.o -MT _ffssi2.o -MD -MP -MF _ffssi2.dep -DL_ffssi2 -c ../../../gcc/libgcc/libgcc2.c -fvisibility=hidden -DHIDE_EXPORTS it fails with _ffssi2.s: Assembler messages: _ffssi2.s:1536: Error: unknown pseudo-op: `.group' The complete _ffssi2.i and _ffssi2.s are attached. The problematic section in the _ffssi2.s is: .LLASF11: .asciz "__seekable" .ident "GCC: (GNU) 9.3.0" .section ".text.__sparc_get_pc_thunk.l7%__sparc_get_pc_thunk.l7",#alloc,#execinstr,#progbits .group __sparc_get_pc_thunk.l7,".text.__sparc_get_pc_thunk.l7%__sparc_get_pc_thunk.l7",#comdat .align 4 .weak __sparc_get_pc_thunk.l7 .hidden __sparc_get_pc_thunk.l7 .type __sparc_get_pc_thunk.l7, #function .proc 020 __sparc_get_pc_thunk.l7: .cfi_startproc jmp %o7+8 add %o7, %l7, %l7 .cfi_endproc