Have you tried gcc 4.5.1? It could be a new bug in 4.5.0, which if you are lucky
will be corrected in 4.5.1.
Note that wheres 4.5.0 had extra features compared to the 4.4 series, 4.5.1 is
just a bug-fix release on 4.5.0, so it should have fewer bugs.
Dave
Is it a fresh build or an upgrade of sage?
-Willem Jan
I don't have 4.5.1 installed yet either.
I installed 4.5.0 a few days back, only to find 4.5.1 was released a few hours
after I installing 4.5.0!
Dave
And trac #9600 (as has been discovered).
>So this seems to be a proof that this is rather gcc-4.5-related,
>rather than FreedBSD-specific?!
I had recorded this as FreeBSD-specific because it presumably worked
on Linux. As I noted, it is possible it is an issue with the way
atlas is built in Sage.
I suspect it's not directly gcc 4.5 related but rather gcc 4.5 shows
the problem by producing code that needs libgcc helper functions.
--
Peter Jeremy
I would not recommend this fix as it will be needed wherever liblapack
is used (and will not work if there are any cases where liblapack is
dlopen()d. I believe the better fix is to add a dependency on libgcc_s
to liblapack.so as per my fix in #9600.
--
Peter Jeremy
I'm trying to reproduce this, but on skynet's taurus I don't even get a
liblapack.so, but only liblapack.a. (The build isn't done yet, but the lapack
package is done.)
Am I missing something? I checked, but none of my recent sage builds on
multiple machines seem to have liblapack.so.
-Willem Jan
Ah, now I notice it's generated by atlas. (Sorry, I stupidly missed that rather
obvious bit of #9600). Atlas seems to use ld directly to link liblapack.a into
liblapack.so. If you use gcc as frontend for the linker, it should
automatically link in the required missing functions like __powidf2. It
shouldn't be necessary to add gcc_s manually.
-Willem Jan
> On Aug 2, 10:11?pm, Willem Jan Palenstijn <w...@usecode.org> wrote:
> > On Tue, Aug 03, 2010 at 05:23:17AM +1000, Peter Jeremy wrote:
> > > On 2010-Aug-02 06:58:10 -0700, Dima Pasechnik <dimp...@gmail.com> wrote:
> > > >install the cvxopt-1.1.2.spkg from the link I posted on #6456,
> > > >run spkg-check, first without the 1-line change below, then with)
> >
> > > >diff -r 117baef5ef34 patches/setup.py
> > > >--- a/patches/setup.py ?Sun Aug 01 11:48:42 2010 -0700
> > > >+++ b/patches/setup.py ?Mon Aug 02 09:53:17 2010 -0400
> > > >@@ -13,7 +13,7 @@
> > > > ? ? libraries =
> > > >['m','lapack','gsl','gslcblas','blas','cblas','atlas']
> > > > else:
> > > > # ? ?libraries = ['m','lapack','blas','cblas','atlas','gfortran']
> > > >- ? ?libraries = ['m','lapack','gsl','gslcblas','blas','cblas','gfortran','atlas']
> > > >+ ? ?libraries = ['m','lapack','gsl','gslcblas','blas','cblas','gfortran','atlas','gcc_s']
> >
> > > I would not recommend this fix as it will be needed wherever liblapack
> > > is used (and will not work if there are any cases where liblapack is
> > > dlopen()d. ?I believe the better fix is to add a dependency on libgcc_s
> > > to liblapack.so as per my fix in #9600.
> >
> > I'm trying to reproduce this, but on skynet's taurus I don't even get a
> > liblapack.so, but only liblapack.a. (The build isn't done yet, but the lapack
> > package is done.)
> >
> > Am I missing something? I checked, but none of my recent sage builds on
> > multiple machines seem to have liblapack.so.
> >
> > -Willem Jan
>
> --
> 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
Replying to self: I did a quick test, and also added the results to #9600:
[wjp@eno sage-4.5.2.rc0]$ ./sage -python
Python 2.6.4 (r264:75706, Aug 1 2010, 12:24:29)
[GCC 4.5.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import cvxopt.base
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: /home/wjp/eno/sage-4.5.2.rc0/local/lib/liblapack.so: undefined symbol: __powidf2
>>>
[wjp@eno sage-4.5.2.rc0]$ cd local/lib
[wjp@eno lib]$ gcc -shared -o liblapack.so -Wl,-soname,liblapack.so -Wl,--whole-archive liblapack.a -Wl,--no-whole-archive
[wjp@eno lib]$ cd ../..
[wjp@eno sage-4.5.2.rc0]$ ./sage -python Python 2.6.4 (r264:75706, Aug 1 2010, 12:24:29)
[GCC 4.5.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import cvxopt.base
>>>
This is on eno with a sage install copied from
/home/palmiere/eno/sage-4.5.2.rc0 . In my own build of sage-4.5.1 on taurus, I
still don't have a liblapack.so, but the above import works fine there.
I haven't looked into what makes liblapack.so appear/disappear yet. Does anyone
familiar with atlas/lapack know this offhand?
-Willem Jan
On 08/02/2010 05:20 PM, Willem Jan Palenstijn wrote:
> I haven't looked into what makes liblapack.so appear/disappear yet. Does anyone
> familiar with atlas/lapack know this offhand?
I'm not very familiar with these packages, but if liblapack.so
disappears or does not appear because ATLAS can't find libgfortran, the
steps in
http://trac.sagemath.org/sage_trac/ticket/9356#comment:7
might make it (re)appear. Should we do
$ cd SAGE_LOCAL/lib
$ ln -s libgfortran.so.2 libgfortran.so
or a generalization, in the Fortran package?