Hi A "not so clever, not really a solution, but works" is to use gcc from the macports projects. I had some issues installing gcc using macports under mountain lion but the issues are well documented.
Andrew On 13 Aug 2012, at 11:56 PM, Luca Heltai <[email protected]> wrote: > Dear all, > > today I committed a change to aclocal.m4 and configure that supposedly solved > a bug in OS X Mountain Lion. However, the bug is still there, and there are > chances it will remain there for those whishing to upgrade to Mountain Lion > > In short, these are my findings (which overlaps with those coming from Scott > Miller, who fixed this bug some time ago, for OS X <=10.7.x): > > 1. In OS X Mountain Lion, they don't support any longer compatibility with OS > X <= 10.6, unless one installs manually the relevant SDKs. > 2. GCC 4.2.1 has a some difficulties in performing dynamic_casts when using > shared libraries (as reported in http://gcc.gnu.org/faq.html#dso). These > problems can be fixed by including the flag -mmacosx-version-min=10.4 (and > also 10.5) in those systems in which the SDKs for 10.4 or 10.5 are installed. > 3. OS X Mountain Lion won't compile almost anything with these flags on. > 4. OS X is going towards the use of Clang instead of GCC (in which this bug > is not there, but boost does not compile...). > 5. Removing the flag above makes compilation of the deal.II library possible, > but then dynamic cast across a shared library boundary won't work > 6. Any other combination of -mmacosx-version-min=10.[678] does not solve the > dynamic cast bug. > > I'm now trying to figure out if there is a way out. For the moment the > -mmacosx-version-min=10.4 is added whenever the OS is not 10.8, otherwise the > user has to live with the dynamic cast bug. > > If anybody has a better idea, let me know... > > Thanks, > > Luca. > > -- > Luca Heltai <[email protected]> > http://people.sissa.it/~heltai/ > Scuola Internazionale Superiore di Studi Avanzati > Phone: +39 040 3787 449, Office: 732 > -- > There are no answers, only cross references > > _______________________________________________ > dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii _______________________________________________ dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii
