public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "ilg at livius dot net" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug build/27657] GDB fails to link on MSYS2 and mingw64 looking for BCryptGenRandom
Date: Thu, 26 Aug 2021 10:38:44 +0000	[thread overview]
Message-ID: <bug-27657-4717-l1gMxq2IpM@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-27657-4717@http.sourceware.org/bugzilla/>

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

Liviu Ionescu <ilg at livius dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ilg at livius dot net

--- Comment #8 from Liviu Ionescu <ilg at livius dot net> ---
I also encountered this bug while compiling GDB 10.2 on Linux, with GCC 11.2 &
mingw-w64 9.0.

In my build I noticed that `-lbcrypt` was not present at all on the linker
invocation line.

Adding `-lbcrypt` to LIBS did not help, since the library must be located later
in the list of libraries.

My initial workaround was to patch configure, but later I found a less
intrusive hack, by adding it as DEBUGINFOD_LIBS, which is placed at the end of
the list:

export DEBUGINFOD_LIBS="-lbcrypt"


I think that configure needs to be fixed to do this automatically, probably if
it detects the presence of `bcrypt.h`.

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

  parent reply	other threads:[~2021-08-26 10:38 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-28  6:06 [Bug build/27657] New: " chrisj at rtems dot org
2021-03-29  4:29 ` [Bug build/27657] " chrisj at rtems dot org
2021-03-29 15:53 ` tromey at sourceware dot org
2021-03-29 20:10 ` cbiesinger at google dot com
2021-03-29 20:41 ` chrisj at rtems dot org
2021-03-29 20:46 ` chrisj at rtems dot org
2021-03-29 23:29 ` cbiesinger at google dot com
2021-03-30 15:58 ` ssbssa at sourceware dot org
2021-08-26 10:38 ` ilg at livius dot net [this message]
2021-09-03 15:04 ` ovilewade9 at gmail dot com
2022-02-27 23:31 ` tromey at sourceware dot org

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-27657-4717-l1gMxq2IpM@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).