Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* MinGW build target
@ 2016-08-28 17:54 Glenn Burkhardt
  2016-08-28 18:27 ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Glenn Burkhardt @ 2016-08-28 17:54 UTC (permalink / raw)
  To: gdb

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>.



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: MinGW build target
  2016-08-28 17:54 MinGW build target Glenn Burkhardt
@ 2016-08-28 18:27 ` Eli Zaretskii
  2016-08-28 18:40   ` Eli Zaretskii
  2016-08-29  7:47   ` Joel Brobecker
  0 siblings, 2 replies; 6+ messages in thread
From: Eli Zaretskii @ 2016-08-28 18:27 UTC (permalink / raw)
  To: Glenn Burkhardt; +Cc: gdb

> From: Glenn Burkhardt <gbburkhardt@gmail.com>
> Date: Sun, 28 Aug 2016 13:54:32 -0400
> 
> 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?


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: MinGW build target
  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
  1 sibling, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2016-08-28 18:40 UTC (permalink / raw)
  To: gbburkhardt; +Cc: gdb

> Date: Sun, 28 Aug 2016 21:26:56 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> CC: gdb@sourceware.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?

In any case, it sounds like x86_64-w64-mingw32 is what you want.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: MinGW build target
  2016-08-28 18:27 ` Eli Zaretskii
  2016-08-28 18:40   ` Eli Zaretskii
@ 2016-08-29  7:47   ` Joel Brobecker
  2016-08-29 10:51     ` Glenn Burkhardt
  1 sibling, 1 reply; 6+ messages in thread
From: Joel Brobecker @ 2016-08-29  7:47 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Glenn Burkhardt, gdb

> > 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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: MinGW build target
  2016-08-28 18:40   ` Eli Zaretskii
@ 2016-08-29 10:48     ` Glenn Burkhardt
  0 siblings, 0 replies; 6+ messages in thread
From: Glenn Burkhardt @ 2016-08-29 10:48 UTC (permalink / raw)
  To: gdb

Thanks - that works better.  I suppose that the '32' on 'mingw32' is an 
artifact that predates the MinGW-w64 fork of the MinGW code base.


On 8/28/2016 2:39 PM, Eli Zaretskii wrote:
>> Date: Sun, 28 Aug 2016 21:26:56 +0300
>> From: Eli Zaretskii <eliz@gnu.org>
>> CC: gdb@sourceware.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?
> In any case, it sounds like x86_64-w64-mingw32 is what you want.


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: MinGW build target
  2016-08-29  7:47   ` Joel Brobecker
@ 2016-08-29 10:51     ` Glenn Burkhardt
  0 siblings, 0 replies; 6+ messages in thread
From: Glenn Burkhardt @ 2016-08-29 10:51 UTC (permalink / raw)
  To: gdb

On 8/29/2016 3:47 AM, Joel Brobecker wrote:

>>> 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.
>
Correct.  The MinGW-w64 code doesn't include 'uname'.  I'm using Msys2 
as a shell, along with its support programs, which include 'uname'.  On 
Msys2,

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-08-29 10:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-28 17:54 MinGW build target 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
2016-08-29 10:51     ` Glenn Burkhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox