All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Korsgaard <peter@korsgaard.com>
To: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Subject: Re: [Buildroot] [PATCH] package/gdb: build and link libbfd and libopcodes as static libraries
Date: Wed, 10 Jan 2024 16:25:38 +0100	[thread overview]
Message-ID: <87le8xcirx.fsf@48ers.dk> (raw)
In-Reply-To: <20231225225420.2531967-1-thomas.petazzoni@bootlin.com> (Thomas Petazzoni via buildroot's message of "Mon, 25 Dec 2023 23:54:19 +0100")

>>>>> "Thomas" == Thomas Petazzoni via buildroot <buildroot@buildroot.org> writes:

 > Since GDB 13.x and upstream commit
 > b686ecb5b10be9a33ab8f1bfdcff22eef920d1a5 ("gdb: link executables with
 > libtool"), gdb will be linked against the shared variants of libbfd
 > and libopcodes if they exist. However, this causes host gdb and target
 > gdb to not work, because our gdb package does not install libbfd and
 > libopcodes (to not clash with the ones potentially installed by
 > binutils).

 > In order to get around this, this commit proposes to get back to the
 > situation we had before GDB 13.x: libbfd and libopcodes are only
 > compiled as static libraries, so that they are linked directly inside
 > the gdb binary, avoiding the problem entirely.

 > This resolves:

 >  # gdb --version
 >  gdb: error while loading shared libraries: libopcodes-2.39.50.so: cannot open shared object file: No such file or directory

 > for target gdb, and:

 >  $ ./host/bin/arm-linux-gdb --version
 >  ./host/bin/arm-linux-gdb: error while loading shared libraries:
 > libopcodes-2.39.50.so: cannot open shared object file: No such file or
 > directory

 > for host gdb.

 > Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>

Committed to 2023.11.x, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

      parent reply	other threads:[~2024-01-10 15:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-25 22:54 [Buildroot] [PATCH] package/gdb: build and link libbfd and libopcodes as static libraries Thomas Petazzoni via buildroot
2023-12-27 21:13 ` Yann E. MORIN
2024-01-10 15:25 ` Peter Korsgaard [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=87le8xcirx.fsf@48ers.dk \
    --to=peter@korsgaard.com \
    --cc=buildroot@buildroot.org \
    --cc=thomas.petazzoni@bootlin.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.