public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: LRN <lrn1986@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Is our use of Cygwin to build & run OpenOCD a good one?
Date: Tue, 21 May 2019 17:55:00 -0000	[thread overview]
Message-ID: <1d4f0e40-737c-0a69-c995-e7b635b7bec6@gmail.com> (raw)
In-Reply-To: <57b68911-8425-dd1a-95ee-ddb55b935f39@mindchasers.com>


[-- Attachment #1.1: Type: text/plain, Size: 2963 bytes --]

On 20.05.2019 21:49, Bob Cochran wrote:
> On 5/20/19 10:27 AM, Jose Isaias Cabrera wrote:
>> Erik Soderquist, on Monday, May 20, 2019 10:16 AM, wrote...
>>> On Sun, May 19, 2019 at 3:44 PM Bob Cochran wrote:
>>> <snip>
>>>> "Cygwin? this is probably still functional, but now can be considered a
>>>> (pre)historic solution."
>>> The words of the ignorant, in my opinion.  Cygwin has done an
>>> excellent job of maintaining currency and usefulness.
>> Indeed.  I have been using cygwin since 1996-7.  Can't remember the exact year, but it has been God-sent, and it has been in every Windows machine I have had control.  Just my 0.02. Thanks.
> 
> 
> Thank you to everyone who has replied to my question whether this was a 
> good use case for Cygwin!  It was great to read all of the replies and 
> see that I'm in sync with this project & its users / developers.
> 

I've read the actual thread on OpenOCD ML, and i've looked at the links posted
there. I probably should have subscribed to OpenOCD ML, but i'm too lazy to do
so and will write here instead.

Basically, the thread had three participants:

*kristof mulier: wanted to get OpenOCD binaries for Windows, tried MSYS2, but
didn't get satisfactory results; posted a link to a guide for building OpenOCD
with MSYS2, written by some 3rd party
*you: posted a link to a guild for building OpenOCD with Cygwin
*Liviu Ionescu: pointed out that you should be using mingw-w64, said that
Cygwin is prehistoric

Liviu Ionescu seems to be a Microsoft fanboy, since he advocated for the use of
WSL (i already said earlier what i think of WSL). However, he wasn't wrong when
he said that you should use MinGW. If a piece of software can be built with
MinGW, then you generally should do so, unless there are specific reasons to
avoid that (compatibility, subtle porting bugs, etc). It seems to be the case
for OpenOCD.

kristof mulier seems to have weak developer-fu, and got a bit confused. The
MSYS2 guide that he used pointed to a MSYS2 package git repo, and kristof
assumed that the repo in question contained OpenOCD source code (which is
supposedly why he was getting an old version of OpenOCD compiled all the time).
That is not the case[0]. MSYS2 package repo contains small buildscripts for the
appropriate packages. The reason he was getting an old version is that the
version (git revision, in case of OpenOCD-git) is hardcoded into PKGBUILD file
(which he didn't edit, uncritically following the guide; the author of the
guide didn't concern himself with getting OpenOCD from lastest git master HEAD,
and thus didn't mention that detail).

Therefore i still sand on my advice: either cross-compile from Cygwin, or try
MSYS2 (the irony here is that your Cygwin guide describes *almost exactly* how
one can build OpenOCD from MSYS2).

[0]: at least, i assume so; i don't really use MSYS2 repos or its package
manager, therefore i could be mistaken


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2019-05-21 17:55 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-19 19:44 Bob Cochran
2019-05-19 20:53 ` LRN
2019-05-19 21:21 ` Brian Inglis
2019-05-20 14:16 ` Erik Soderquist
2019-05-20 14:27   ` Jose Isaias Cabrera
2019-05-20 18:49     ` Bob Cochran
2019-05-21 17:55       ` LRN [this message]
2019-05-21 18:21         ` Jose Isaias Cabrera
2019-05-22  6:05         ` Bob Cochran
2019-05-22 21:35           ` Andrey Repin
2019-05-23  1:47             ` Brian Inglis
2019-05-23  1:52             ` Brian Inglis
2019-05-23  1:55             ` Brian Inglis
2019-05-20 17:54 ` Achim Gratz

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=1d4f0e40-737c-0a69-c995-e7b635b7bec6@gmail.com \
    --to=lrn1986@gmail.com \
    --cc=cygwin@cygwin.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 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).