Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Glenn Burkhardt <gbburkhardt@gmail.com>, gdb@sourceware.org
Subject: Re: MinGW build target
Date: Mon, 29 Aug 2016 07:47:00 -0000	[thread overview]
Message-ID: <20160829074739.GA4547@adacore.com> (raw)
In-Reply-To: <83vaykbvgv.fsf@gnu.org>

> > What's the correct build target for MinGW-w64?  I tried using
> > 
> >       --build=x86_64-w64-mingw64
> > 
> > with gdb-7.11.1 and x86_64-6.1.0-release-posix-seh-rt_v5-rev0, and
> > it's trying to compile ser-unix.c.  That doesn't seem right, and, of
> > course, MinGW doesn't include <sys/socket.h>.
> 
> Why do you need an explicit argument?  Doesn't config.guess guess
> correctly?  If not, maybe your uname needs and update/upgrade?

To answer the question of "why" - on Windows, the config.guess output is
not always what you want, as it depends on how you execute that script.
In our case, we build using a cygwin environment, so config.guess
returns a cygwin triplet. So, when you actually want to build a MinGW
debugger, you have to pass the MinGW triplet explicitly.

-- 
Joel


  parent reply	other threads:[~2016-08-29  7:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-28 17:54 Glenn Burkhardt
2016-08-28 18:27 ` Eli Zaretskii
2016-08-28 18:40   ` Eli Zaretskii
2016-08-29 10:48     ` Glenn Burkhardt
2016-08-29  7:47   ` Joel Brobecker [this message]
2016-08-29 10:51     ` Glenn Burkhardt

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=20160829074739.GA4547@adacore.com \
    --to=brobecker@adacore.com \
    --cc=eliz@gnu.org \
    --cc=gbburkhardt@gmail.com \
    --cc=gdb@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