FS#9543 - Building blas package fails

Attached to Project: Arch Linux
Opened by André Fettouhi (A.Fettouhi) - Tuesday, 12 February 2008, 12:17 GMT
Last edited by Greg (dolby) - Monday, 21 July 2008, 15:48 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Damir Perisa (damir.perisa)
Architecture i686
Severity Medium
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

I'm trying to rebuild blas because I installed a modified version of gcc3 (with g77 enabled) and I need blas to be linked to the old g77 and not gfortran but building the package fails even if I just try to build it without any changes, i.e. linked to gfortran I get the error

==> Making package: blas 19980702-3 (tir feb 12 13:09:35 CET 2008)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
-> Found blas.tgz in build dir
-> Found Makefile in build dir
-> Found license.txt in build dir
==> Validating source files with md5sums...
blas.tgz ... Passed
Makefile ... Passed
license.txt ... Passed
==> Extracting Sources...
-> bsdtar -x -f blas.tgz
==> Entering fakeroot environment...
==> Starting build()...
make: *** Ingen regel til at skabe mål 'caxpy.o' som behøves af 'static'. Stop.
install: kan ikke udføre stat() 'libblas.a': Ingen sådan fil eller filkatalog
install: kan ikke udføre stat() 'libblas.so.3.0.3': Ingen sådan fil eller filkatalog
==> Tidying install...
-> Removing info/doc files...
-> Compressing man pages...
-> Stripping debugging symbols from binaries and libraries...
==> Creating package...
-> Generating .PKGINFO file...
-> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: blas (tir feb 12 13:09:40 CET 2008)
==> Cleaning up...

the package gets build but libblas.a libblas-so3.0.3 are missing.


Additional info:
* package version(s)
blas 19980702-3
* config and/or log files etc.


Steps to reproduce:

Build the blas package with makepkg (change gcc-fortran to gcc in make-depends first).
This task depends upon

Closed by  Greg (dolby)
Monday, 21 July 2008, 15:48 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Not an Archlinux bug
Comment by André Fettouhi (A.Fettouhi) - Wednesday, 13 February 2008, 11:54 GMT
Made a dirty fix to the PKGBUILD and build it against my custom gcc3 (g77 included) and I've tried to build it against gcc (gfortran) and it builds also.

# $Id: PKGBUILD,v 1.1 2006/12/11 22:09:55 damir Exp $
# Maintainer: damir <damir@archlinux.org>
# Community Maintainer: Eric Belanger <belanger@astro.umontreal.ca>
# Contributor: William Rea <sillywilly@gmail.com>

pkgname=blas
pkgver=19980702
pkgrel=3
pkgdesc="Basic Linear Algebra Subprograms"
arch=('i686')
url="http://www.netlib.org/blas"
license="custom"
depends=('glibc')
makedepends=('gcc')
source=(http://www.netlib.org/blas/blas.tgz Makefile license.txt)
md5sums=('7e6af7022440d8688d16be86d55fb358' '497f389126aa0440754de491fec5ebae'\
'38b6acb8ed5691d25863319d30a8b365')

build() {
cd $startdir/src/BLAS
FC="gfortran" FFLAGS="${CFLAGS}" make
cp $startdir/src/BLAS/*.o $startdir/src
cd $startdir/src
FC="gfortran" FFLAGS="${CFLAGS}" make static shared
install -D -m644 libblas.a $startdir/pkg/usr/lib/libblas.a
install -D -m755 libblas.so.3.0.3 $startdir/pkg/usr/lib/libblas.so.3.0.3
ln -s libblas.so.3.0.3 $startdir/pkg/usr/lib/libblas.so
ln -s libblas.so.3.0.3 $startdir/pkg/usr/lib/libblas.so.3
install -D -m644 $startdir/src/license.txt $startdir/pkg/usr/share/licenses/custom/$pkgname/license.txt
}

Loading...