From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Received: by 2002:a6b:2712:: with SMTP id n18-v6mr4838907ion.90.1530221969196; Thu, 28 Jun 2018 14:39:29 -0700 (PDT) X-Received: by 2002:a9d:4f13:: with SMTP id d19-v6mr526774otl.0.1530221968998; Thu, 28 Jun 2018 14:39:28 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!85.12.16.68.MISMATCH!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.am4!peer.am4.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!u78-v6no3063029itb.0!news-out.google.com!p13-v6ni3971itf.0!nntp.google.com!d7-v6no3094908itj.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 28 Jun 2018 14:39:28 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=96.247.198.106; posting-account=QF6XPQoAAABce2NyPxxDAaKdAkN6RgAf NNTP-Posting-Host: 96.247.198.106 References: <64c649e6-fe13-4a1b-8584-cd9e727151a2@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Rebuilding GNAT for mingw (32bit) From: Jere Injection-Date: Thu, 28 Jun 2018 21:39:29 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Bytes: 2623 X-Received-Body-CRC: 4234231963 Xref: reader02.eternal-september.org comp.lang.ada:53412 Date: 2018-06-28T14:39:28-07:00 List-Id: On Thursday, June 28, 2018 at 7:13:14 AM UTC-4, Brian Drummond wrote: > On Thu, 28 Jun 2018 04:01:18 -0700, Jere wrote: > > > So I recently ran into an issue using the FSF GNAT on 32bit mingw. > > It ended up having a bug in GNAT.Serial_Communications, which was fixed > > in later versions of GNAT found in 64 bit mingw. Unfortunately I can't > > upgrade to the 64bit version and get a later version of GNAT. > > The bug fix was only a few lines, so I figured I could make the change > > to g-sercom.adb in the adainclude directory and hopefully recompile > > GNAT. When I looked up instructions for this I found: > > > > https://gcc.gnu.org/onlinedocs/gnat_ugn/Rebuilding-the-GNAT-Run-Time- > Library.html > > Any help would be appreciated. > > In the event you can't find the correct answer, you can probably move > forward by replacing g-sercom.ad[sb] with your own package derived from > it, in your project and under your control. > > I'm sure someone will jump in with comments if there are license > implications to this approach. > > -- Brian I did that initially to verify that the bug fix would work. I was hoping for a more global solution though so I didn't have to supply that file for every project that I had that used the serial port. I renamed it to just Serial_Communications, made the bug fix, and tested it out.