Earlier today I was arguing that we need to support Xcode 4.x, etc.,
in the context of the PARI bugs.
I'm sitting here with a grad student with a solid Mac running OS X
10.6.8, and trying to get XCode 3.x on it is HELL.
None of our Apple ID's work for the Developer network, etc. We can't
find a download. Anyway, it is frustrating.
The App store only supports 4.x.
I'm just curious if anybody has looked into the possibility of us
distributing our own build of GCC, which is good enough to build Sage
and use Cython.
Incidentally, the only reason he needs XCode is because our "sage -b"
build system is really stupid. If you do
"sage -b"
and don't have a compiler, it will die, even if you aren't doing
anything with Cython. He just wants to write some .py files.
http://trac.sagemath.org/sage_trac/ticket/12365
-- William
--
William Stein
Professor of Mathematics
University of Washington
http://wstein.org
--
To post to this group, send an email to sage-...@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
We're not including it with Sage. We would make it available since
XCode is such a pain in the ass (and is not free). That Cython
and even "sage -b" don't work without having to pay Apple additional
money, gets in the way of our goals for Sage.
> 2) you are going to have to start throwing more and more things into spkgs
> as other things break (binutils comes to mind)
That's why we are here.
> 3) you *still* have to have a C compiler already on the system to compile
> the stupid thing anyway :)
That's only on the system that we build the package on. No users will
need that C compiler.
Given that the main issue we are trying to address is installing the
right compiler, I don't
see this as a problem.
Also, it will be nice since we can include gfortran in our gcc spkg,
and completely remove the
binary fortran spkg from Sage.
> 4) people will constantly ask why you didn't choose clang + llvm
No choice has been made. So far I have a choice of zero working
options. When I have >= 2, I can
make a choice.
> 5) why don't you choose clang + llvm?
:-)
I'd like to try an OS X 10.7 machine if anybody can give me access to
such a machine.
Yes! No screwing with joining the Apple developer network, paying
$5, installing > 1GB, etc., just to get GCC.
Also, we could have a dmg available that would install GCC (including
gfortran) somewhere, and could be used to build Sage on OS X.
william
>
> ?
>
>
> - kcrisman
I'm sitting next to bsd.math, typing on my OS X 10.7 laptop. I can
try this out for you ?
Where did you do your gcc-4.4.6 build on bsd.math? I can't find one in
your home directory, /scratch, or /tmp.
William
+1
David
On bsd, I compiled gfortran-4.4.6 from source, compiled the Sage LAPACK
with it and it seemed to work.
Joe random student (actually named Jim) obviously doesn't have his
install DVD anymore. He bought his laptop 2 years ago and is sitting
in my office. Plus that XCode will be out of date, right -- full of
bugs.
> As a second possibility, one can sign up for a free account to the
> Apple Development network (ADC) --- note that this has nothing to do
> with the Apple App Store or your Apple ID. There, XCode up to XCode
> 3.2.6 should be downloadable (I didn't check recently, but why would
> Apple change that). I got myself e.g.
> "xcode25_8m2558_developerdvd.dmg" and "xcode322_2148_developerdvd.dmg"
> from there (the latest should be some "xcode326....dmg").
Should be != is.
This particular student (Jim again) couldn't get his apple id to work.
Apple said it was "compromised" and he was fighting with their system
to re-enable it. I guess he could get a new apple id though.
> If you don't need the standard Unix development tools coming with
> XCode (such as "make", "autoconf", etc.), but "only" need some gcc,
But that's exactly what we need, right? I assume by "don't" you mean "do"?
That's what I propose. And this would replace our current fortran
spkg (i.e., that would
no longer be needed).
> Restricting ourselves to 64bit OS 10.6 or higher (i.e. currently
> OS X 10.6 and 10.7), and targetting primarily Sage "binary
> installs" (i.e. not claiming to be fully able to build a Sage source
> distribution),
It must definitely be able to build Sage from source.
> creating such a "dev tools dmg" binary installation is
> pretty straightforward. I don't know enough of Homebrew, but I boldly
> claim to be able to do so myself for the first two, i.e. MacPorts and
> Gentoo Prefix (famous last words (tm) :-) ).
>
> Is there a need for something like that? Any votes?? More thoughts???
>
> (Incidentally, this also touches the topic of that other recent post
> http://groups.google.com/group/sage-devel/browse_thread/thread/11a8eedde829cf0d#
> about "Please someone upgrade sagenb so it has R graphics support"---
> see the R tool page about "cairo", under "Optional tools and
> libraries".)
I just did that for sagenb.org.
>
>
> Cheers,
> Georg
>
> --
> To post to this group, send an email to sage-...@googlegroups.com
> To unsubscribe from this group, send an email to sage-devel+...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/sage-devel
> URL: http://www.sagemath.org
--
Hi,Earlier today I was arguing that we need to support Xcode 4.x, etc.,
in the context of the PARI bugs.I'm sitting here with a grad student with a solid Mac running OS X
10.6.8, and trying to get XCode 3.x on it is HELL.
None of our Apple ID's work for the Developer network, etc. We can't
find a download. Anyway, it is frustrating.
It's still annoying that even this has to be done to just work on
Sage. I hope we can make it so "sage -b" works for Python code
without needing a compiler.
-- William
+big_number
Even outside the context of Sage, when teaching purely 'scipy stack'
to students (many of whom have macs in US academia) it's really
frustrating to hit that stupid Xcode hurdle just so I can show them
how Cython works (or weave a little while back).
Just last wekend I was answering questions precisely on this for our
python bootcamp at Berkeley (http://register.pythonbootcamp.info), we
ended up disabling all weave/cython stuff because we were going to
drown in installation hassles (we had ~150 people).
If you guys can put out a gcc/gfortran installer for the Mac that's a
simple download, click, install, you'll benefit lots of people even
beyond Sage.
Back to the peanut gallery...
f
https://github.com/kennethreitz/osx-gcc-installer is one possible place
to look for gcc, at least.
Jason
> https://github.com/kennethreitz/osx-gcc-installer is one possible place to
> look for gcc, at least.
Nice, thanks! I didn't know about that, it's excellent and does help a lot.
Cheers,
f
> c)
> Support building Sage with Clang (BTW, that's a general theme, which
> is not restricted to OS X at all!) --- but both gfortran and g95 seem
> to rely on the FSF gcc backends. Does any one know the status of
> building some fortran compiler with/relying on nothing but Clang
> (should be possible, since usually Fortran code is translated to C
> code first, and only then compiled)?
+1 if feasible
However, according to Wikipedia (which is know to be always correct
:p) "For other languages, including Java, Fortran, and Ada, LLVM
remains dependent on GCC." [1]
>
>
> Note that this still says next to nothing about point 3) above
> (getting independent of XCode). If one wants to build Sage from source
> on OS X, one needs not only "make" and such (which a vanilla OS X 10.7
> install does not provide), but also certain library headers (which
> e.g. on Debian would be in those "dev"-packages), and the like. I'm
> not sure whether there is any solution for that available yet. (Both
> MacPorts and Gentoo Prefix seem to require XCode at least for
> bootstrapping themselves.)
However, we would only distribute a binary (most likely based upon
MacPorts or Gentoo Prefix) installer, so the bootstrapping process
should not be required from a users perspective (the only thing that
I'm not so sure about is libc).
> Especially when interfacing with Cocoa/graphics is concerned (Python
> itself does this, matplotlib, R, i.e. several non-trivial components
> of Sage), the respective headers are needed, and it may very well be
> that only XCode provides these in a "neatly downloadable" way (those
> "SDKs").
> One could patch all these parts out of Sage (they are "OS X only"
> parts, after all, so Sage runs certainly without). I did that once to
> get Sage building in 64bit on OS X 10.4 (for which those Cocoa parts
> are supported only in 32bit), so it is definitely possible --- but
> it's not some "minor" effort to get this ready for "prime-time"
> mainline Sage releases, as you certainy want "plot" to show something
> (maybe we would need Qt, or another alternative to Cocoa/Aqua
> graphics)!
>
> I'd modestly suggest staying with the requirement of XCode for
> building Sage from source on OS X (merely using Sage, and doing Sage
> library development, is something different, though).
-1 if feasible
Building sage from source is part of sage development, adding XCode as
a requirement will add a cost barrier (although minimal) to sage
development on OSX.
>
>
> Cheers,
> Georg
>
> --
> To post to this group, send an email to sage-...@googlegroups.com
> To unsubscribe from this group, send an email to sage-devel+...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/sage-devel
> URL: http://www.sagemath.org
IMO I think that we should try to make Sage compatible with clang if
possible (including XCode's version), but I don't think that we should
make XCode a requirement (again if possible) for OSX. Ideally, I would
like to distribute (separately from sage) compatible toolchains on
systems where it is difficult for a user to install one freely (i.e.
OSX and Solaris).
[1] http://en.wikipedia.org/wiki/Clang
--
Andrew