[Bug target/108515] New: Fails to link fixincl with unresolvable R_ARM_MOVW_ABS_NC reloca tion against symbol `stderr@@GLIBC_2.4'

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jan 24 10:38:59 GMT 2023


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108515

            Bug ID: 108515
           Summary: Fails to link fixincl with unresolvable
                    R_ARM_MOVW_ABS_NC reloca tion against symbol
                    `stderr@@GLIBC_2.4'
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---

The build for armv7hl-gnueabi recently fails with

[  136s] gcc -c -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -funwind-tables
-fasyn
chronous-unwind-tables -fstack-clash-protection -Werror=return-type -g
-U_FORTIF
Y_SOURCE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold
-style-definition -Wmissing-format-attribute -Wno-overlength-strings -pedantic
-
Wno-long-long   -DHAVE_CONFIG_H -I. -I../../../fixincludes -I../include
-I../../
../fixincludes/../include ../../../fixincludes/fixincl.c
...
[  139s] gcc -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -funwind-tables
-fasynchr
onous-unwind-tables -fstack-clash-protection -Werror=return-type -g
-U_FORTIFY_S
OURCE  -o fixincl fixincl.o fixtests.o fixfixes.o server.o procopen.o fixlib.o
f
ixopts.o ../libiberty/libiberty.a
[  139s]
/usr/lib/gcc/armv7hl-suse-linux-gnueabi/12/../../../../armv7hl-suse-lin
ux-gnueabi/bin/ld: fixincl.o(.text+0x1ac): unresolvable R_ARM_MOVW_ABS_NC
reloca
tion against symbol `stderr@@GLIBC_2.4'
[  139s] collect2: error: ld returned 1 exit status

when configured as

[   63s] + ../configure --prefix=/usr --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib
--enable-languages=c,c++,objc,fortran,obj-c++,go,d,jit --enable-host-shared
--enable-checking=release --disable-werror
--with-gxx-include-dir=/usr/include/c++/13
--with-libstdcxx-zoneinfo=/usr/share/zoneinfo --enable-ssp --disable-libssp
--disable-libvtv --enable-cet=auto --disable-libcc1 --enable-plugin
--with-bugurl=https://bugs.opensuse.org/ '--with-pkgversion=SUSE Linux'
--with-slibdir=/lib --with-system-zlib --enable-libstdcxx-allocator=new
--disable-libstdcxx-pch --enable-libphobos
--enable-version-specific-runtime-libs --with-gcc-major-version-only
--enable-linker-build-id --enable-linux-futex --enable-gnu-indirect-function
--program-suffix=-13 --without-system-libunwind --with-cpu=generic-armv7-a
--with-float=hard --with-abi=aapcs-linux --with-fpu=vfpv3-d16
--disable-sjlj-exceptions --build=armv7hl-suse-linux-gnueabi
--host=armv7hl-suse-linux-gnueabi

and built with

[   74s] + make -Oline 'STAGE1_CFLAGS=-g -O2' 'BOOT_CFLAGS=-O2
-U_FORTIFY_SOURCE
 -D_FORTIFY_SOURCE=3 -funwind-tables -fasynchronous-unwind-tables
-fstack-clash-
protection -Werror=return-type -g -U_FORTIFY_SOURCE' -j6

where 'gcc' is GCC 12.2.1 as of r12-9008-ge4b5fec75aa8d0


More information about the Gcc-bugs mailing list