From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 30F263858D32; Fri, 31 Mar 2023 14:17:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 30F263858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1680272250; bh=buQqhoXpblUOYIauDLNKU+4UVEL4lC4+tUGrTLfMybk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=IMISlWRljpAFLkuK+w7iNfZUFzZHDXUMa6ij0qvqP1q9a3N3s4gMxckIJ91HLqkqa iCpWw7y3AOxBdqHSeocknrynBMoqshWEhulrWb5sA+rmBc4ANurfj1X2HRvxH5s1kT z0qzuSCmknYROZHFtEYbVOfaSYNIS95XSIEWQCAQ= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug build/30295] Undefined reference for gcore_elf_make_tdesc_note in linux-tdep with slibtool Date: Fri, 31 Mar 2023 14:17:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: build X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at sourceware dot org 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30295 --- Comment #2 from Tom Tromey --- The problem here is that gcore-elf depends on ELF-specific code in BFD. If that code is not compiled in, then gcore-elf.o would end up causing a link failure (I think). gdb/configure.ac has: # Add ELF support to GDB, but only if BFD includes ELF support. GDB_AC_CHECK_BFD([for ELF support in BFD], gdb_cv_var_elf, [bfd_get_elf_phdr_upper_bound (NULL)], elf-bfd.h) if test "$gdb_cv_var_elf" =3D yes; then CONFIG_OBS=3D"$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o \ gcore-elf.o elf-none-tdep.o" So I think the question is why is that failing. You could start by looking at the gdb config.log, but it may just lead to the BFD config.log. Also I suspect that fbsd-tdep.c and linux-tdep.c might need some tweaks to check HAVE_ELF. I see this in some other tdep files. --=20 You are receiving this mail because: You are on the CC list for the bug.=