public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "orbea at riseup dot net" <sourceware-bugzilla@sourceware.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 15:42:06 +0000	[thread overview]
Message-ID: <bug-30295-4717-A7yI6gLZae@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-30295-4717@http.sourceware.org/bugzilla/>

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

--- Comment #3 from orbea <orbea at riseup dot net> ---
Created attachment 14794
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14794&action=edit
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=link x86_64-gentoo-linux-musl-gcc -o
conftest -I./../include -I../bfd -I./../bfd -O2 -pipe
-Werror=implicit-function-declaration -Werror=implicit-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-musl/bin/ld:
cannot find
/var/tmp/portage/sys-devel/gdb-9999/work/gdb-9999/bfd/.libs/libbfd.so: No such
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 work.

Presumably this is from gdb/acinclude.m4 which sets:

CC="./libtool --quiet --mode=link $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?

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

  parent reply	other threads:[~2023-03-31 15:42 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-31  6:04 [Bug compile/30295] New: " orbea at riseup dot net
2023-03-31  6:06 ` [Bug compile/30295] " orbea at riseup dot net
2023-03-31 14:05 ` [Bug build/30295] " tromey at sourceware dot org
2023-03-31 14:17 ` tromey at sourceware dot org
2023-03-31 15:42 ` orbea at riseup dot net [this message]
2023-03-31 17:15 ` orbea at riseup dot net
2023-04-21 18:16 ` orbea at riseup dot net
2023-08-28 13:53 ` tromey at sourceware dot org
2024-02-16 17:20 ` tromey at sourceware dot org
2024-02-16 17:29 ` orbea at riseup dot net
2024-02-20 18:14 ` tromey at sourceware dot org
2024-02-21  0:54 ` orbea at riseup dot net
2024-04-07 18:33 ` orbea at riseup dot net

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-30295-4717-A7yI6gLZae@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).