From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4AD193858D28; Fri, 31 Mar 2023 15:42:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4AD193858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1680277327; bh=XJsivsX09G1lgwNMkAeqw9VGyN5GRNREHjLDlfSw97U=; h=From:To:Subject:Date:In-Reply-To:References:From; b=HqQLoKNLdiSMqr4EEMknDdiWY2PsEIU0gjLYMtUwQCaqvLjXZPhjBdf/Gw2zNbbMX 9y4nbMbQ3LiQSL+FLWvjb7Hz8X04LXUhfbQeq2QBKWic5DewDJxQydpVj1PNsT3vO/ l/kBUlwy45l4U9WLj6a2X6jdRFeO1zRlfyAOSTLg= From: "orbea at riseup dot net" 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 15:42:06 +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: orbea at riseup dot net 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: attachments.created 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 #3 from orbea --- Created attachment 14794 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D14794&action=3Ded= it gdb/config.log Okay I see the real problem in gdb/config.log. configure:28213: checking for ELF support in BFD configure:28233: ./libtool --quiet --mode=3Dlink x86_64-gentoo-linux-musl-g= cc -o conftest -I./../include -I../bfd -I./../bfd -O2 -pipe -Werror=3Dimplicit-function-declaration -Werror=3Dimplicit-int -L../bfd -L../libiberty -Wl,-O1 -Wl,--as-needed conftest.c -lbfd -liberty -ltinfow -lncursesw -lm >&5 /usr/lib/gcc/x86_64-gentoo-linux-musl/12/../../../../x86_64-gentoo-linux-mu= sl/bin/ld: cannot find /var/tmp/portage/sys-devel/gdb-9999/work/gdb-9999/bfd/.libs/libbfd.so: No s= uch file or directory collect2: error: ld returned 1 exit status It is using './libtool' when it should be using 'rlibtool' which is the intended slibtool symlink. Mixing libtool implementations is not going to w= ork. Presumably this is from gdb/acinclude.m4 which sets: CC=3D"./libtool --quiet --mode=3Dlink $CC" This problem seems to be repeated in libctf/configure.ac and libctf/testsuite/lib/ctf-lib.exp. Is it required to use libtool as part of = the configure process here? Otherwise perhaps it can be set to the $LIBTOOL variable? --=20 You are receiving this mail because: You are on the CC list for the bug.=