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.52.186.72 with SMTP id fi8mr4711301vdc.3.1413067359714; Sat, 11 Oct 2014 15:42:39 -0700 (PDT) X-Received: by 10.140.102.110 with SMTP id v101mr863qge.6.1413067359624; Sat, 11 Oct 2014 15:42:39 -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!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!s7no2070538qap.0!news-out.google.com!i10ni83qaf.0!nntp.google.com!s7no2070530qap.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 11 Oct 2014 15:42:39 -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: <02796daf-0ab5-4722-a4ef-42155568e3c5@googlegroups.com> Subject: Re: ANN: GCC 4.9.0 (2014) for Max OS X Mavericks From: marioeroy@gmail.com Injection-Date: Sat, 11 Oct 2014 22:42:39 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Received-Bytes: 2614 X-Received-Body-CRC: 1578494546 Xref: news.eternal-september.org comp.lang.ada:22354 Date: 2014-10-11T15:42:39-07:00 List-Id: On Sunday, June 1, 2014 5:06:04 AM UTC-4, Simon Wright wrote: > > ... > > GNAT GPL 2014 (for Mac) supports C, C++, Ada, and Objective C. My > > release additionally supports Fortran and Objective C++. In all cases, > > the compiler itself is built without change. I had to rebuild the > > command 'gnat', because the original build with the compiler failed with > > SIGSEGV; something to do with exceptions, I need to report this but I'm > > a bit too vague on the details. > 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.