octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gcc 3.4 and Octave/lapack problems


From: Quentin Spencer
Subject: Re: gcc 3.4 and Octave/lapack problems
Date: Fri, 12 Nov 2004 09:28:39 -0600
User-agent: Mozilla Thunderbird 0.8 (X11/20041020)

I also installed Fedora Core 3 and saw the same problems. I looked this morning on the Red Hat ftp server and noticed the development branch had an updated version of lapack:
http://download.fedora.redhat.com/pub/fedora/linux/core/development/SRPMS/lapack-3.0-26.src.rpm
I downloaded the SRPM and rebuilt it, and the linear algebra functions like eig appear to be working correctly now (I'm using the same octave 2.1.61 I compiled yesterday with no changes). I have attached the SPEC file. It appears to only change the -O flags. This updated release was in response to a separate bug that was reported in lapack:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=138447

I haven't done very thorough testing (I haven't tested Dmitri's Fortran code, for example), but I don't see any problems so far.

Quentin

Summary: The LAPACK libraries for numerical linear algebra.
Name: lapack
Version: 3.0
Release: 26
License: Freely distributable
Group: Development/Libraries
URL: http://www.netlib.org/lapack/
# If you want the source, look for the files with the .gz prefix
Source0: http://www.netlib.org/lapack/lapack.tar.bz2
Source1: http://www.netlib.org/lapack/manpages.tar.bz2
Source2: Makefile.blas
Source3: Makefile.lapack
Source4: http://www.netlib.org/lapack/lapackqref.ps
Source5: http://www.netlib.org/blas/blasqr.ps
Patch0: lapack-20010525.patch
Obsoletes: lapack-man
BuildRequires: gcc-g77, libf2c
BuildRoot: %{_tmppath}/lapack-%{version}-root

%description
LAPACK (Linear Algebra PACKage) is a standard library for numerical
linear algebra. LAPACK provides routines for solving systems of
simultaneous linear equations, least-squares solutions of linear
systems of equations, eigenvalue problems, and singular value
problems. Associated matrix factorizations (LU, Cholesky, QR, SVD,
Schur, and generalized Schur) and related computations (i.e.,
reordering of Schur factorizations and estimating condition numbers)
are also included. LAPACK can handle dense and banded matrices, but
not general sparse matrices. Similar functionality is provided for
real and complex matrices in both single and double precision. LAPACK
is coded in Fortran77 and built with gcc.

%package -n blas
Summary: The BLAS (Basic Linear Algebra Subprograms) library.
Group: Development/Libraries
Obsoletes: lapack-blas blas-man

%description -n blas
BLAS (Basic Linear Algebra Subprograms) is a standard library which
provides a number of basic algorithms for numerical algebra. Man
pages for blas are available in the blas-man package.

%prep
%setup -q -n LAPACK
%setup -q -D -T -a 1 -n LAPACK
%patch0 -p1
cp -f $RPM_SOURCE_DIR/Makefile.blas BLAS/SRC/Makefile
cp -f $RPM_SOURCE_DIR/Makefile.lapack SRC/Makefile

#Empty
rm -f man/manl/zbcon.l

%build
cd BLAS/SRC
FFLAGS="$RPM_OPT_FLAGS" make static
cp libblas.a ../..
make clean
FFLAGS="$RPM_OPT_FLAGS -fPIC" make shared
cp libblas.so.3.0.3 ../..
cd ../..
ln -s libblas.so.3.0.3 libblas.so

cd SRC
# Some files don't like -O2, but -Os is fine
RPM_OPT_SIZE_FLAGS=$(echo $RPM_OPT_FLAGS | sed 's|-O2|-Os|')
FFLAGS="$RPM_OPT_SIZE_FLAGS" make dlamch.o slamch.o
FFLAGS="$RPM_OPT_FLAGS" make static

cp liblapack.a ..
make clean
FFLAGS="$RPM_OPT_SIZE_FLAGS -fPIC" make dlamch.o slamch.o
FFLAGS="$RPM_OPT_FLAGS -fPIC" make shared
cp liblapack.so.3.0.3 ..
cd ..
cp %{SOURCE4} lapackqref.ps
cp %{SOURCE5} blasqr.ps

%install
rm -fr ${RPM_BUILD_ROOT}
mkdir -p ${RPM_BUILD_ROOT}%{_libdir}
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/manl

for f in liblapack.so.3.0.3 libblas.so.3.0.3 libblas.a liblapack.a; do
  cp -f $f ${RPM_BUILD_ROOT}%{_libdir}/$f
done

find blas/man/manl -type f -printf "%{_mandir}/manl/%f*\n" > blasmans

# These are also in the BLAS package
rm -f man/manl/lsame.l*
rm -f man/manl/xerbla.l*
find man/manl -type f -printf "%{_mandir}/manl/%f*\n" > lapackmans

cp -f blas/man/manl/* ${RPM_BUILD_ROOT}%{_mandir}/manl
cp -f man/manl/* ${RPM_BUILD_ROOT}%{_mandir}/manl

cd ${RPM_BUILD_ROOT}%{_libdir}
ln -sf liblapack.so.3.0.3 liblapack.so
ln -sf liblapack.so.3.0.3 liblapack.so.3
ln -sf liblapack.so.3.0.3 liblapack.so.3.0
ln -sf libblas.so.3.0.3 libblas.so
ln -sf libblas.so.3.0.3 libblas.so.3
ln -sf libblas.so.3.0.3 libblas.so.3.0

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%post -n blas -p /sbin/ldconfig

%postun -n blas -p /sbin/ldconfig

%clean
rm -fr ${RPM_BUILD_ROOT}

%files -f lapackmans
%defattr(-,root,root)
%doc README lapackqref.ps
%{_libdir}/liblapack.*

%files -n blas -f blasmans
%defattr(-,root,root)
%doc blasqr.ps
%{_libdir}/libblas.*

%changelog
* Thu Nov 11 2004 Ivana Varekova <address@hidden>
- fix build problem bug #138447

* Tue Jun 15 2004 Elliot Lee <address@hidden>
- rebuilt

* Tue Mar 02 2004 Elliot Lee <address@hidden>
- rebuilt

* Fri Feb 13 2004 Elliot Lee <address@hidden>
- rebuilt

* Wed Dec 31 2003 Jeff Johnson <address@hidden> 3.0-23
- link -lg2c explicitly into liblapack and libblas (#109079).

* Wed Aug 20 2003 Jeremy Katz <address@hidden> 3.0-22
- nuke -man subpackages (#97506)

* Wed Jun 04 2003 Elliot Lee <address@hidden>
- rebuilt

* Wed Jan 22 2003 Tim Powers <address@hidden>
- rebuilt

* Sun Nov 10 2002 Jeff Johnson <address@hidden> 3.0-19
- rebuild with x86_64.

* Thu Jul 18 2002 Trond Eivind Glomsrød <address@hidden> 3.0-18
- Remove an empty man page (#63569)

* Fri Jun 21 2002 Tim Powers <address@hidden>
- automated rebuild

* Thu May 23 2002 Tim Powers <address@hidden>
- automated rebuild

* Wed May  1 2002 Trond Eivind Glomsrød <address@hidden> 3.0-15
- Rebuild

* Thu Feb 21 2002 Trond Eivind Glomsrød <address@hidden> 3.0-14
- Rebuild

* Wed Jan 09 2002 Tim Powers <address@hidden>
- automated rebuild

* Mon Aug 13 2001 Trond Eivind Glomsrød <address@hidden> 3.0-12
- The man-pages for xerbla and lsame were in blas-man and lapack-man (#51605)

* Fri Jun  8 2001 Trond Eivind Glomsrød <address@hidden>
- Reenable optimization for IA64

* Fri May 25 2001 Trond Eivind Glomsrød <address@hidden>
- Add all patches from the LAPACK site as of 2001-05-25
- Use this workaround for IA64 instead
- Remove SPARC workaround
- Don't exclude IA64

* Thu Dec 07 2000 Trond Eivind Glomsrød <address@hidden>
- rebuild for main distribution

* Mon Nov 20 2000 Trond Eivind Glomsrød <address@hidden>
- add the LAPACK Quick Reference Guide to the docs
- add the BLAS Quick Reference Guide to the docs

* Tue Aug 01 2000 Trond Eivind Glomsrød <address@hidden>
- fix lack of ldconfig in postuninstall script

* Mon Jul 24 2000 Prospector <address@hidden>
- rebuilt

* Mon Jul 10 2000 Trond Eivind Glomsrød <address@hidden>
- updated with the latest updates (new tarfile..) from netlib 

* Thu Jun 15 2000 Trond Eivind Glomsrød <address@hidden>
- use %%{_mandir}
- added some flags to work around SPARC compiler bug

* Wed Jan 19 2000 Tim Powers <address@hidden>
- bzipped sources to conserve space

* Tue Jan  4 2000 Jeff Johnson <address@hidden>
- build for PowerTools 6.2.

* Sat Dec 25 1999 Joachim Frieben <address@hidden>
- updated to version v3.0 + update as of Tue Nov 30 1999

* Sat Oct 23 1999 Joachim Frieben <address@hidden>
- updated Red Hat makefiles to v3.0

* Mon Aug 2 1999 Tim Powers <address@hidden>
- updated to v3.0
- built for 6.1

* Mon Apr 12 1999 Michael Maher <address@hidden>
- built package for 6.0

* Sat Oct 24 1998 Jeff Johnson <address@hidden>
- new description/summary text.

* Fri Jul 17 1998 Jeff Johnson <address@hidden>
- repackage for powertools.

* Sun Feb 15 1998 Trond Eivind Glomsrød <address@hidden>
 [lapack-2.0-9]
 - No code updates, just built with a customized rpm -
   this should make dependencies right.

* Sat Feb 07 1998 Trond Eivind Glomsrød <address@hidden>
 [lapack-2.0-8]
 - Total rewrite of the spec file
 - Added my own makefiles - libs should build better,
   static libs should work (and be faster than they
        would be if they had worked earlier ;)
 - No patch necessary anymore.
 - Renamed lapack-blas and lapack-blas-man to
   blas and blas-man. "Obsoletes:" tag added.
   (oh - and as always: Dedicated to the girl I
   love, Eline Skirnisdottir)

* Sat Dec 06 1997 Trond Eivind Glomsrød <address@hidden>
 [lapack-2.0-7]
  - added a dependency to glibc, so people don't try with libc5

* Thu Nov 20 1997 Trond Eivind Glomsrød <address@hidden>
  [lapack-2.0-6]
  - removed etime.c
  - compiled with egcs, and for glibc 2.0

* Sun Oct 12 1997 Trond Eivind Glomsrød <address@hidden>
  [lapack-2.0-5]
  - added a changelog
  - cleaned up building of shared libs
  - now uses a BuildRoot
  - cleaned up the specfile

reply via email to

[Prev in Thread] Current Thread [Next in Thread]