From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 066833858CDB; Sun, 14 Aug 2022 07:50:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 066833858CDB From: "thomas.petazzoni at bootlin dot com" 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: compile X-Bugzilla-Version: 12.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: thomas.petazzoni at bootlin dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Aug 2022 07:50:28 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29484 --- Comment #2 from Thomas Petazzoni = --- Here is how to reproduce: $ git clone -b toolchains.bootlin.com-2022.08 https://github.com/bootlin/buildroot-toolchains.git $ cat > .config BR2_xtensa=3Dy BR2_XTENSA_CUSTOM=3Dy BR2_XTENSA_OVERLAY_FILE=3D"https://github.com/jcmvbkbc/xtensa-toolchain-bui= ld/raw/95291b7c39e6f790d0b2f062c945a630290f2c81/overlays/xtensa_dc233c.tar.= gz" BR2_KERNEL_HEADERS_5_4=3Dy BR2_TOOLCHAIN_BUILDROOT_LOCALE=3Dy BR2_PTHREAD_DEBUG=3Dy BR2_BINUTILS_VERSION_2_39_X=3Dy BR2_BINUTILS_GPROFNG=3Dy BR2_GCC_VERSION_12_X=3Dy BR2_TOOLCHAIN_BUILDROOT_CXX=3Dy BR2_TOOLCHAIN_BUILDROOT_FORTRAN=3Dy BR2_GCC_ENABLE_OPENMP=3Dy BR2_PACKAGE_HOST_GDB=3Dy BR2_PACKAGE_HOST_GDB_TUI=3Dy BR2_PACKAGE_HOST_GDB_PYTHON3=3Dy BR2_GDB_VERSION_12=3Dy BR2_INIT_NONE=3Dy BR2_SYSTEM_BIN_SH_NONE=3Dy # BR2_PACKAGE_BUSYBOX is not set BR2_PACKAGE_GDB=3Dy # 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_t= dep' /usr/bin/ld: xtensa-tdep.c:(.text+0x2c6c): undefined reference to `xtensa_t= dep' /usr/bin/ld: xtensa-tdep.c:(.text+0x2c85): undefined reference to `xtensa_t= dep' /usr/bin/ld: xtensa-tdep.c:(.text+0x2c9a): undefined reference to `xtensa_t= dep' /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/.sta= mp_built] Error 2 make: *** [Makefile:84: _all] Error 2 --=20 You are receiving this mail because: You are on the CC list for the bug.=