public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "thomas.petazzoni at bootlin dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug compile/29484] gdb 12.1 fails to build on xtensa: undefined reference to `xtensa_tdep'
Date: Sun, 14 Aug 2022 07:50:27 +0000	[thread overview]
Message-ID: <bug-29484-4717-PgIGQg1XN8@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-29484-4717@http.sourceware.org/bugzilla/>

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.

      parent reply	other threads:[~2022-08-14  7:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-13 20:13 [Bug compile/29484] New: " thomas.petazzoni at bootlin dot com
2022-08-13 20:15 ` [Bug compile/29484] " thomas.petazzoni at bootlin dot com
2022-08-14  1:55 ` simark at simark dot ca
2022-08-14  7:50 ` thomas.petazzoni at bootlin dot com [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-29484-4717-PgIGQg1XN8@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).