On Sep 10, 10:38 pm, kcrisman <kcris...@gmail.com> wrote: > On Sep 10, 9:34 am, Dima Pasechnik <dimp...@gmail.com> wrote: > > > > > > > On Sep 10, 8:53 pm, kcrisman <kcris...@gmail.com> wrote: > > > > On Sep 10, 2:36 am, Dima Pasechnik <dimp...@gmail.com> wrote: > > > > > After some trial and error, I came > > > > acrosshttp://r.research.att.com/tools/#gcc42 > > > > I mentioned this link in one of my (many) posts on this thread - sorry > > > if I didn't highlight it more. > > > > > that describes a process of building gfortran using Xcode gcc-4.2 > > > > (available since Xcode release > > > > 3.1.1, at least --- current is Xcode 3.1.4 released Sept 2009). > > > > This will work on both PPC and Intel Macs running at MacOSX version > > > > 10.5 or higher. > > > > 10.5 isn't a problem, as you pointed out; we apparently already use > > > gfortran there. > > > no, why? I don't think so. I have a 32-bit PPC system running 10.5, > > and there is no gfortran for it in the > > fortran spkg. If I don't provide any gfortran, I get g95 installed as > > sage_fortran. > > I'm sorry, I thought you said in an earlier post that your 10.5 setup > had gfortran - but you had provided it, that wasn't clear to me. > > > So for the experiment using gfortran > > fromhttp://r.research.att.com/tools/#gcc42, > > I changed the fortran spkg to do check for and install the system > > gfortran as sage_fortral, as it is done > > on Linux. (The results will be known in several hours, it's a slow > > machine...) > > But what if there is no system gfortran?
I mean the fortran from http://r.research.att.com/tools/#gcc42 (it gets installed system-wide, in /usr/) So yes, it will be there. > > > > > Instead of this, it looks easier to require gfortran from the above be > > > > installed (they provide binaries), just > > > > as gfortran is required on Linux. > > > > As I point out in an earlier post, it isn't clear whether one can get > > > "just" the fortran compiler out of the Tiger binaries, because they > > > provide a custom gcc 4.2 - but Tiger in general only ships with > > > 4.0.1. > > > as far as I know, Xcode 3.1.2 runs on 10.4 > > Oh? That is not what I find on the internet, oops, my bad. Indeed. But http://r.research.att.com/tools/#gcc42 provides http://r.research.att.com/tools/gcc-4.2-5566-darwin8-all.tar.gz which will do the installation of "10.4u", whatever this means, Apple's SDK with gcc42 and gfortran42. So yes, it's the missing gcc42 for MacOSX 10.4, u(nstable?) IMHO for that few 10.4 systems that are left around, it's good enough - it's certainly no worse than using some rather old (4.0) version of gcc... > but I would be very > happy if that were the case. But ADC says "This release provides > additional GCC and LLVM compiler options, general bug fixes, and must > be installed on Leopard, Mac OS X 10.5.0 and higher." And in the > documentation it says "Xcode 3.1.2 is compatible with Intel and > PowerPC Macs running Mac OS X 10.5 Leopard." You can develop for > Tiger with it (even for Panther!) but can't actually run it > (apparently) on Tiger. Also, one apparently can't even try, as only > Leopard supports having multiple Xcode installations. > > :( > > > and ships gcc 4.2 as well as gcc 4.0. > > Just on the off chance you've tried this successfully... Is it > relatively trivial to get it to use gcc 4.2 only? I would be > comfortable with requiring *developers* to have a later Xcode It's trivial (on 10.5, but same should certainly apply to 10.4u). E.g one can change the links in /usr/bin manually (i.e. gcc there is a link to gcc4.0, so you change it to gcc4.2, and the same for cc and g+ +). > > > They dropped a shell routine gcc_switch (or something like this) > > that allowed one to switch between gcc's. But this is still trivial to > > overcome, > > by creating appropriate links (this can be done by the spkg-install in > > $SAGEROOT/local/bin) > > > So we can require that Xcode is upgraded to the right version. > > > As I said above, we do not need to mess around with gcc 4.0 any more. > > Unless somebody wants to, of course. then create a Sage fork :-) Dima > > - kcrisman -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org