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 10.224.25.211 with SMTP id a19mr4700088qac.0.1413067715495; Sat, 11 Oct 2014 15:48:35 -0700 (PDT) X-Received: by 10.140.85.20 with SMTP id m20mr215704qgd.3.1413067715482; Sat, 11 Oct 2014 15:48:35 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!dc16no2189756qab.1!news-out.google.com!i10ni82qaf.0!nntp.google.com!dc16no2189755qab.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 11 Oct 2014 15:48:35 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=108.28.71.249; posting-account=R4LoWQoAAADGk_NM4sTrVeMk6DXQFwxe NNTP-Posting-Host: 108.28.71.249 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <476be4a5-0d42-4b19-bc4d-9985ddb8e2c2@googlegroups.com> Subject: Re: ANN: GCC 4.9.0 for Mac OS X Mavericks From: marioeroy@gmail.com Injection-Date: Sat, 11 Oct 2014 22:48:35 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:22355 Date: 2014-10-11T15:48:35-07:00 List-Id: On Wednesday, April 30, 2014 5:12:08 AM UTC-4, Simon Wright wrote: > > ... > > The command 'gnat', as originally build, failed with SIGSEGV. It was > > rebuilt on its own, using the project file gnatcmd.gpr, and no longer > > failed; the working version is provided. > I could not get the work around using gprbuild to work on Mavericks 10.9.5. The gnat -v (specifying an invalid argument) still crashes. After many attempts have finally tracked this down. One needs to pass --with-host-libstdcxx=-lstdc++ when configuring GCC. Gnat will no longer SIGSEGV after make install. I used gnat-gpl-2014-x86_64-apple-darwin12.5.0 to build a recent 4.9 revision from the 4.9 branch. svn export -r 216107 svn://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch gcc-4.9-20141010 Remember to pass along --with-host-libstdcxx=-lstdc++ when configuring GCC. That's it. Regards, Mario Notes: Some sites out there suggest running with LDFLAGS=-lgcc_eh make ... That will work and the build process will seem to have succeeded. However, the gnat -v (testing an invalid argument) will still crash. Instead, --with-host-libstdcxx=-lstdc++ is needed when configuring GCC. -lgcc_eh is not necessary when building GCC.