comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: ANN: GCC 4.9.0 (2014) for Max OS X Mavericks
Date: Sun, 12 Oct 2014 10:05:42 +0100
Date: 2014-10-12T10:05:42+01:00	[thread overview]
Message-ID: <lyr3ydzmhl.fsf@pushface.org> (raw)
In-Reply-To: 02796daf-0ab5-4722-a4ef-42155568e3c5@googlegroups.com

marioeroy@gmail.com writes:

> 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.
>> 

See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61027

> 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.

Do you mean that the 'gnat' I provided doesn't work, or that you've
tried to rebuild gnatcmd as I did and *that* didn't work?

I'm still using gcc-4.9.0-x86_64-apple-darwin13-2014-1.tar.bz2 without
problems (except that other gnat* commands still show the problem when
used in ways which result in program exit via exception, such as
'gnatchop -h', or gnatmake when the library contains .ali files from a
very old compiler release).

I just rebuilt gnatcmd (Xcode 6.0.1 on Mac OS X 10.9.5, Darwin 13.4.0)
and ./gnatcmd -v works fine.

> One needs to pass --with-host-libstdcxx=-lstdc++ when configuring
> GCC. Gnat will no longer SIGSEGV after make install.

Thanks for the info. That must have been _some_ detective work!

I see from my compiler build log that my gnat* commands were built with
(a mammoth list of inputs, including)

   -B../../../x86_64-apple-darwin13/libstdc++-v3/src/.libs 
   -B../../../x86_64-apple-darwin13/libstdc++-v3/libsupc++/.libs 
   -L../../../x86_64-apple-darwin13/libstdc++-v3/src/.libs 
   -L../../../x86_64-apple-darwin13/libstdc++-v3/libsupc++/.libs 
   -static-libstdc++

which presumably means to use the newly-build libstc++ in GCC rather
than the system one? Interesting, because the rebuilt gnatcmd doesn't
appear to use libstdc++ at all (I eventually managed to get a build that
used libgnat.dylib, of course that itself might have bound libstdc++
statically - but then how would my fix work?)


  reply	other threads:[~2014-10-12  9:05 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-24 17:00 ANN: GCC 4.9.0 (2014) for Max OS X Mavericks Simon Wright
2014-05-31 19:35 ` Simon Wright
2014-05-31 22:29   ` Bill Findlay
2014-05-31 22:44     ` Pascal Obry
2014-05-31 23:31       ` Bill Findlay
2014-06-01  2:34         ` Dan'l Miller
2014-06-01  9:06     ` Simon Wright
2014-06-01 13:56       ` Bill Findlay
2014-10-11 22:42       ` marioeroy
2014-10-12  9:05         ` Simon Wright [this message]
2014-10-12 15:38           ` Mario Roy
2014-10-12 18:35             ` Simon Wright
2014-10-14 16:41               ` Simon Wright
2014-10-14 21:31                 ` Mario Roy
2014-10-14 22:21                 ` David Botton
2014-10-14 22:54                   ` Luke A. Guest
2014-10-14 23:27                     ` David Botton
2014-10-15  9:42                     ` Simon Wright
2014-10-15 13:05                       ` David Botton
2014-10-15 13:41                         ` Simon Wright
2014-10-15 14:28                           ` Björn Lundin
2014-10-15 13:43                         ` Björn Lundin
2014-10-15 14:02                           ` Simon Wright
2014-10-15 13:55                   ` ANN: " Simon Wright
2014-10-15 15:33                     ` David Botton
2014-10-17 15:29                       ` Simon Wright
2014-06-02 16:46   ` Stephen Leake
2014-06-02 18:02     ` Simon Wright
2014-06-04  0:15 ` Luke A. Guest
2014-06-06  7:48   ` Simon Wright
2014-06-06 14:37     ` Lucretia
2014-06-06 14:42       ` Simon Wright
2014-10-15  5:39 ` ANN: " Mario Roy
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox