Dave,
The libraries are OK to include--- I was under impression is that you
propose to include basically the whole toolchain...
Sorry for a misunderstanding.

Dima

On Feb 22, 6:41 pm, "Dr. David Kirkby" <david.kir...@onetel.net>
wrote:
> Dima Pasechnik wrote:
>
> > On Feb 22, 4:15 am, "Dr. David Kirkby" <david.kir...@onetel.net>
> > wrote:
> > [...]
> >> I think once again, it shows that gcc's C, C++ and Fortran libraries 
> >> should all
> >> be included with Sage. Otherwise, the build relies on the end user having a
> >> similar setup. This is not specific to Solaris, but one can probably get 
> >> away
> >> with not doing this more on Linux, as generally Linux will come with some
> >> semi-recent compiler. But if someone does not have the compiler installed, 
> >> or
> >> has an old version, it is quite possible the binaries will break on Linux 
> >> too.
>
> > IMHO, this seems to go too far... If someone does not have a decent
> > modern toolchain
> > installed on his exotic (or not) hardware, that really should not mean
> > that Sage must be
> > even more bloated by including standard tools that are trivial to
> > install.
>
> But not everyone has those tools, and they are not always as trivial to 
> install
> as you believe. I suspect in many cases you need to be root to install them.
>
> We already include the fortran library I believe. William has said before he 
> was
> going to include the C++ library.
>
> Obviously the size of the libraries would depend on the individual system, but
> on my Solaris system, if I compress with gzip, I get
>
> -rwxr-xr-x   1 drkirkby staff       1.5M Feb 22 10:10 libstdc++.so.6.0.10.gz
> -rwxr-xr-x   1 drkirkby staff       717K Feb 22 10:10 libgfortran.so.3.0.0.gz
> -rw-r--r--   1 drkirkby staff        80K Feb 22 10:10 libgcc_s.so.1.gz
>
> so it adds in total around 2.2 MB to a binary distribution. Given the gzip'ed
> binary distribution on Solaris is 500 MB (and that is not untypical of any
> distribution), it is adding less than 0.5% of bloat.
>
> Two people recently discovered their Sage binaries broke just because they
> upgraded gcc from 4.4.2 to 4.4.3 on one linux platform (Archlinux if I recall
> correct).
>
> To me at least, adding the libraries, which is less than 0.5% of bloat, is a
> small price to pay to ensure that someone's binaries will run.
>
> It should be noted, that the library someone is already most likely to have 
> (the
> C library) is only 80 KB compressed, so that is very small indeed compared to
> the Fortran and C++ libraries. It's the absence of the C++ and Fortran 
> libraries
> that seems to cause the most problems for people, but if we include them, it
> makes sense to include the much smaller C library too. That way, all library
> versions are the same.
>
> Dave

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

Reply via email to