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:a0c:b398:: with SMTP id t24-v6mr4936710qve.42.1530183678939; Thu, 28 Jun 2018 04:01:18 -0700 (PDT) X-Received: by 2002:a0c:9d91:: with SMTP id s17-v6mr564818qvd.3.1530183678833; Thu, 28 Jun 2018 04:01:18 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.uzoreto.com!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!h2-v6no1292972qtp.0!news-out.google.com!a20-v6ni475qtj.1!nntp.google.com!h2-v6no1292970qtp.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 28 Jun 2018 04:01:18 -0700 (PDT) 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 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <64c649e6-fe13-4a1b-8584-cd9e727151a2@googlegroups.com> Subject: Rebuilding GNAT for mingw (32bit) From: Jere Injection-Date: Thu, 28 Jun 2018 11:01:18 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:53399 Date: 2018-06-28T04:01:18-07:00 List-Id: 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 However, the GNAT installation for mingw did not have that makefile and libgnat.a wasn't in the locations specified by the gnatls -v command. I did find libgnat.a, but what I don't know is how to recompile it. Just using gnatmake outright generates a ton of .o and .ali files instead. I'm not even sure which switches the runtime is normally compiled with for that platform. Anyone have experience compiling it for mingw? For reference, the GNAT version for mingw is currently 6.3.0. Any help would be appreciated.