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

            Bug ID: 33817
           Summary: [2.46 Regression] GCC 11 and GCC 12 fail to build with
                    binutils trunk on x86_64-linux-gnu and
                    aarch64-linux-gnu
           Product: binutils
           Version: 2.46 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: doko at debian dot org
  Target Milestone: ---

seen with binutils trunk 20260119 on both x86_64-linux-gnu and
aarch64-linux-gnu. Note that GCC 13 and newer successfully build.  The last
successful build was with trunk 20251209.

on both architecture, gcov fails to link.

seen on the Ubuntu development release (26.04).

on amd64:
x86_64-linux-gnu-g++-12 -std=c++11    -g -fno-stack-protector -DIN_GCC    
-fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings   -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc 
gcov.o json.o \
        hash-table.o ggc-none.o libcommon.a ../libcpp/libcpp.a  
../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a
../libdecnumber/libdecnumber.a  -lz -o gcov
/usr/bin/x86_64-linux-gnu-ld.bfd: gcov.o: relocation R_X86_64_32 against
`.rodata' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/x86_64-linux-gnu-ld.bfd: failed to set dynamic section sizes: bad
value
collect2: error: ld returned 1 exit status
make[5]: *** [Makefile:3099: gcov] Error 1
make[5]: *** Waiting for unfinished jobs....
rm gcc.pod cpp.pod
make[5]: Leaving directory '/<<PKGBUILDDIR>>/build/gcc'
make[4]: *** [Makefile:5019: all-stage1-gcc] Error 2
make[4]: Leaving directory '/<<PKGBUILDDIR>>/build'
make[3]: *** [Makefile:31740: stage1-bubble] Error 2

on arm64:
aarch64-linux-gnu-g++-12 -std=c++11    -g -fno-stack-protector -DIN_GCC    
-fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings   -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc 
gcov.o json.o \
        hash-table.o ggc-none.o libcommon.a ../libcpp/libcpp.a  
../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a
../libdecnumber/libdecnumber.a  -lz -o gcov
/usr/bin/aarch64-linux-gnu-ld.bfd: gcov.o: relocation
R_AARCH64_ADR_PREL_PG_HI21 against symbol `stderr@@GLIBC_2.17' which may bind
externally can not be used when making a shared object; recompile with -fPIC
/usr/bin/aarch64-linux-gnu-ld.bfd: gcov.o(.text+0xb0c): unresolvable
R_AARCH64_ADR_PREL_PG_HI21 relocation against symbol `stderr@@GLIBC_2.17'
/usr/bin/aarch64-linux-gnu-ld.bfd: final link failed: bad value
collect2: error: ld returned 1 exit status
make[5]: *** [Makefile:3099: gcov] Error 1
make[5]: *** Waiting for unfinished jobs....
rm gcc.pod cpp.pod
make[5]: Leaving directory '/<<PKGBUILDDIR>>/build/gcc'
make[4]: *** [Makefile:5019: all-stage1-gcc] Error 2
make[4]: Leaving directory '/<<PKGBUILDDIR>>/build'
make[3]: *** [Makefile:31370: stage1-bubble] Error 2


full build logs at
https://launchpad.net/ubuntu/+source/gcc-11/11.5.0-8ubuntu1
https://launchpad.net/ubuntu/+source/gcc-12/12.5.0-7ubuntu1

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

Reply via email to