[Bug compile/29484] gdb 12.1 fails to build on xtensa: undefined reference to `xtensa_tdep'

thomas.petazzoni at bootlin dot com sourceware-bugzilla@sourceware.org
Sun Aug 14 07:50:27 GMT 2022


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

--- Comment #2 from Thomas Petazzoni <thomas.petazzoni at bootlin dot com> ---
Here is how to reproduce:

$ git clone -b toolchains.bootlin.com-2022.08
https://github.com/bootlin/buildroot-toolchains.git
$ cat > .config
BR2_xtensa=y
BR2_XTENSA_CUSTOM=y
BR2_XTENSA_OVERLAY_FILE="https://github.com/jcmvbkbc/xtensa-toolchain-build/raw/95291b7c39e6f790d0b2f062c945a630290f2c81/overlays/xtensa_dc233c.tar.gz"
BR2_KERNEL_HEADERS_5_4=y
BR2_TOOLCHAIN_BUILDROOT_LOCALE=y
BR2_PTHREAD_DEBUG=y
BR2_BINUTILS_VERSION_2_39_X=y
BR2_BINUTILS_GPROFNG=y
BR2_GCC_VERSION_12_X=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_TOOLCHAIN_BUILDROOT_FORTRAN=y
BR2_GCC_ENABLE_OPENMP=y
BR2_PACKAGE_HOST_GDB=y
BR2_PACKAGE_HOST_GDB_TUI=y
BR2_PACKAGE_HOST_GDB_PYTHON3=y
BR2_GDB_VERSION_12=y
BR2_INIT_NONE=y
BR2_SYSTEM_BIN_SH_NONE=y
# BR2_PACKAGE_BUSYBOX is not set
BR2_PACKAGE_GDB=y
# BR2_TARGET_ROOTFS_TAR is not set
^D
$ make olddefconfig
$ make
[...]
  CXX    init.o
  CXXLD  gdb
/usr/bin/ld: xtensa-tdep.o: in function `xtensa_gdbarch_init(gdbarch_info,
gdbarch_list*)':
xtensa-tdep.c:(.text+0x2c46): undefined reference to `xtensa_tdep'
/usr/bin/ld: xtensa-tdep.c:(.text+0x2c65): undefined reference to `xtensa_tdep'
/usr/bin/ld: xtensa-tdep.c:(.text+0x2c6c): undefined reference to `xtensa_tdep'
/usr/bin/ld: xtensa-tdep.c:(.text+0x2c85): undefined reference to `xtensa_tdep'
/usr/bin/ld: xtensa-tdep.c:(.text+0x2c9a): undefined reference to `xtensa_tdep'
/usr/bin/ld: xtensa-tdep.o:xtensa-tdep.c:(.text+0x2ca9): more undefined
references to `xtensa_tdep' follow
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:1904: gdb] Error 1
make[3]: *** [Makefile:11455: all-gdb] Error 2
make[2]: *** [Makefile:1001: all] Error 2
make[1]: *** [package/pkg-generic.mk:293:
/home/thomas/buildroot/buildroot-toolchains/output/build/host-gdb-12.1/.stamp_built]
Error 2
make: *** [Makefile:84: _all] Error 2

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


More information about the Gdb-prs mailing list