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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a24:ca01:: with SMTP id k1-v6mr4816491itg.40.1530222166727; Thu, 28 Jun 2018 14:42:46 -0700 (PDT) X-Received: by 2002:a9d:630a:: with SMTP id q10-v6mr109711otk.5.1530222166558; Thu, 28 Jun 2018 14:42:46 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!feeder3.usenet.farm!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!d7-v6no3097149itj.0!news-out.google.com!p13-v6ni3971itf.0!nntp.google.com!d7-v6no3097143itj.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 28 Jun 2018 14:42:46 -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:42:46 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:53413 Date: 2018-06-28T14:42:46-07:00 List-Id: On Thursday, June 28, 2018 at 8:12:17 AM UTC-4, Jeffrey R. Carter wrote: > On 06/28/2018 01:01 PM, 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: > > It looks to me as if you can change g-sercom.adb and recompile it without > recompiling GNAT. > > -- > Jeff Carter > "How'd you like to hide the egg and gurgitate > a few saucers of mocha java?" > Never Give a Sucker an Even Break > 101 That was one of the first things I tried after verifying the fix. It seems to want to pull the object code from somewhere else. My guess is the libgnat.a file. I even tried compiling with -a to force it to recompile the runtime libraries, but it only generated a bunch of .o files and no libgnat.a file (in my project's local object file directory). That said, keeping the .o file in my local directory seemed to work to override the RTS version. I was just hoping to make the change more permanent.