FreeBSD Bugzilla – Attachment 82438 Details for
Bug 117923
USE_FORTRAN=yes: shared libraries for blas, lapack, and atlas do not contain any dependencies on other libs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
blas.txt
blas.txt (text/plain), 9.20 KB, created by
bf
on 2008-07-04 14:34:25 UTC
(
hide
)
Description:
blas.txt
Filename:
MIME Type:
Creator:
bf
Created:
2008-07-04 14:34:25 UTC
Size:
9.20 KB
patch
obsolete
>diff -ruN blas.orig/Makefile blas/Makefile >--- blas.orig/Makefile 2008-02-21 00:11:43.000000000 -0500 >+++ blas/Makefile 2008-07-03 07:40:32.305931580 -0400 >@@ -7,13 +7,18 @@ > > PORTNAME= blas > PORTVERSION= 1.0 >-PORTREVISION= 2 >+PORTREVISION= 3 > CATEGORIES= math >-MASTER_SITES= http://www.netlib.org/blas/ \ >- ftp://ftp.mirrorservice.org/sites/netlib.bell-labs.com/netlib/blas/ \ >- ftp://netlib.bell-labs.com/netlib/blas/ >-DISTNAME= ${PORTNAME} >-EXTRACT_SUFX= .tgz >+MASTER_SITES= ftp://ftp.netlib.org/blas/ \ >+ http://www.netlib.org/blas/ \ >+ http://netlib.sandia.gov/blas/ \ >+ http://www.mirrorservice.org/sites/netlib.bell-labs.com/netlib/blas/ \ >+ http://www.netlib.no/netlib/blas/ >+DISTFILES= ${PORTNAME}.tgz sblat1 dblat1 cblat1 zblat1 \ >+ sblat2 sblat2d dblat2 dblat2d cblat2 cblat2d zblat2 zblat2d \ >+ sblat3 sblat3d dblat3 dblat3d cblat3 cblat3d zblat3 zblat3d >+DIST_SUBDIR= ${PORTNAME} >+EXTRACT_ONLY= ${PORTNAME}.tgz > > MAINTAINER= maho@FreeBSD.org > COMMENT= Basic Linear Algebra, level 1, 2, and 3 >@@ -21,11 +26,42 @@ > USE_LDCONFIG= yes > USE_FORTRAN= yes > WRKSRC= ${WRKDIR}/BLAS >+SHLIB_MAJOR= 2 > >-PLIST_FILES= lib/libblas.a lib/libblas.so lib/libblas.so.2 >+PLIST_FILES= lib/libblas.a lib/libblas_p.a lib/libblas.so \ >+ lib/libblas.so.${SHLIB_MAJOR} >+ >+.include <bsd.port.pre.mk> >+ >+.if ${ARCH} == "sparc64" || ${ARCH} == "amd64" >+PICFLAG= -fPIC >+.else >+PICFLAG= -fpic >+.endif >+ >+AR?= ar >+NM?= nm >+RANLIB?= ranlib >+ >+.if ${CC} == "icc" >+POFLAG= -p >+.else >+POFLAG= -pg >+.endif >+ >+MAKE_ENV+= PICFLAG="${PICFLAG}" POFLAG="${POFLAG}" AR="${AR}" NM="${NM}" \ >+ RANLIB="${RANLIB}" SHLIB_MAJOR="${SHLIB_MAJOR}" ECHO_CMD="${ECHO_CMD}" \ >+ LDFLAGS="${LDFLAGS}" RM="${RM}" MV="${MV}" MKDIR="${MKDIR}" LN="${LN}" > > do-configure: >- @${INSTALL_DATA} ${FILESDIR}/makefile.lib ${WRKSRC}/Makefile >- @${REINPLACE_CMD} -e 's+@FFLAGS@+${FFLAGS}+g' ${WRKSRC}/Makefile >+ @${CP} ${FILESDIR}/makefile.lib ${WRKSRC}/Makefile >+ @cd ${DISTDIR}/${DIST_SUBDIR} && ${CP} ${DISTFILES:N*.tgz} ${WRKSRC} >+ >+regression-test: >+ @( cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} test ; ) >+ @${ECHO_CMD} "" >+ @${ECHO_CMD} " Examine the *.out and *.SUMM files in ${WRKSRC}/sharedtests and " >+ @${ECHO_CMD} " ${WRKSRC}/statictests for test outcomes " >+ @${ECHO_CMD} "" > >-.include <bsd.port.mk> >+.include <bsd.port.post.mk> >diff -ruN blas.orig/distinfo blas/distinfo >--- blas.orig/distinfo 2008-02-21 00:11:43.000000000 -0500 >+++ blas/distinfo 2008-07-03 07:40:32.305931580 -0400 >@@ -1,3 +1,63 @@ >-MD5 (blas.tgz) = 7e6af7022440d8688d16be86d55fb358 >-SHA256 (blas.tgz) = bc2f25898141c3ed9513abe3b3f15e00f0d2e8881c7f26b74950cdee45fb541d >-SIZE (blas.tgz) = 98957 >+MD5 (blas/blas.tgz) = 7e6af7022440d8688d16be86d55fb358 >+SHA256 (blas/blas.tgz) = bc2f25898141c3ed9513abe3b3f15e00f0d2e8881c7f26b74950cdee45fb541d >+SIZE (blas/blas.tgz) = 98957 >+MD5 (blas/sblat1) = 14c8578c6bef465d4092b38b9dcad351 >+SHA256 (blas/sblat1) = f5bcbc542f1de381cebe4adbb1d16507cbecdf4b0cebe51dc343ae9c2c6d7dbe >+SIZE (blas/sblat1) = 31203 >+MD5 (blas/dblat1) = 20d35821fa6e4fa5e1a72a6f377504ee >+SHA256 (blas/dblat1) = bced74cc3c3fc399e92f7606a80a3e579e2f7a3ae33dec19273b1c962804396d >+SIZE (blas/dblat1) = 31203 >+MD5 (blas/cblat1) = cac7aba98e33e64e87d08a639c5ec462 >+SHA256 (blas/cblat1) = 92978040d4d0300414d46552a506a5c5d3d174bbda2b2302e1462d54e89e446f >+SIZE (blas/cblat1) = 31188 >+MD5 (blas/zblat1) = 2de5acfebdffb67e3051128703205dfa >+SHA256 (blas/zblat1) = df9e3f864bcca8681f7752e96525f5163327ae7eb4262dd6efd5bf18a9373f02 >+SIZE (blas/zblat1) = 31188 >+MD5 (blas/sblat2) = f373eadeed0f1411c9312ca2a0ad4b12 >+SHA256 (blas/sblat2) = 77381852d9681314ebfe814f647938c7ef53b17ffa5e9d64d1423c987e412fd2 >+SIZE (blas/sblat2) = 111315 >+MD5 (blas/sblat2d) = 44c3d207ba01976dbb6e97cf068d7ac3 >+SHA256 (blas/sblat2d) = 0a4eaa18ded58529306fbda6caba8b363702576c8355f8068b0a941ecea4b93d >+SIZE (blas/sblat2d) = 1466 >+MD5 (blas/dblat2) = 50358b20506ff32e40a259857b36ff7c >+SHA256 (blas/dblat2) = 3a0653c952bf151901722db76de59ef6699f9b751e05d8f1c1d9026448c79d49 >+SIZE (blas/dblat2) = 111388 >+MD5 (blas/dblat2d) = 8d17b803ded05d8f306b54959bf61abd >+SHA256 (blas/dblat2d) = 7b2689a74db3a46e0d2ddf209188420b8099644093e8481b76ff2bada764d29b >+SIZE (blas/dblat2d) = 1466 >+MD5 (blas/cblat2) = 86dfcec29632eb8fd89c0d404a42ea5d >+SHA256 (blas/cblat2) = f4900c334efb96fb7030ac5d9240c8a48cc7d44655825a58acfcc4f69dd030ab >+SIZE (blas/cblat2) = 115732 >+MD5 (blas/cblat2d) = ea5074ba38527483943de87f7fa89f90 >+SHA256 (blas/cblat2d) = 52dde13a56556d771e1c02799b584356ebbe6bd07f042ee50d910d5b532b0278 >+SIZE (blas/cblat2d) = 1546 >+MD5 (blas/zblat2) = fd08715785f80d29565db16f508bc113 >+SHA256 (blas/zblat2) = bf5677f5614501ce729f7ad61f1d342dab604b455a0d2495070ebbe28f3eb172 >+SIZE (blas/zblat2) = 116080 >+MD5 (blas/zblat2d) = 3e40d3166714973566e076f7cf4865aa >+SHA256 (blas/zblat2d) = bbaa4d57b37fc895f92fb4c448063d9b7a1990e232d3dbf7fa96ace7f289b8af >+SIZE (blas/zblat2d) = 1546 >+MD5 (blas/sblat3) = 074e4eea05be5f6ddf2e061f4dd1064b >+SHA256 (blas/sblat3) = 9a2f6c45f9caa6ddb219d8e058d18fadc7743859a23f5e0d22bbada2e7585aa1 >+SIZE (blas/sblat3) = 102977 >+MD5 (blas/sblat3d) = 7453aeea348b100538f6e7107a4fdfbb >+SHA256 (blas/sblat3d) = cb1f2a3615d3a2ac3a7e886154f594284c251087417d3c2d2dd247a87c416fde >+SIZE (blas/sblat3d) = 882 >+MD5 (blas/dblat3) = 67109216e71370bd74e5a0573ceadbda >+SHA256 (blas/dblat3) = 1df6fb4f1971d604f1ce33559a9a8753494f7becc9ed3846bbedff5fab8987ed >+SIZE (blas/dblat3) = 103029 >+MD5 (blas/dblat3d) = 71ca8160f36a74d8cee313038a5e6dd4 >+SHA256 (blas/dblat3d) = c4c95934a7bb7a715c913c35e53c75a0559eb275f0bd4ffa582555344a092a78 >+SIZE (blas/dblat3d) = 882 >+MD5 (blas/cblat3) = a7f2ff2684cee68fa2dc36573cec1fae >+SHA256 (blas/cblat3) = d91446c1d05d70f9dc929755b383a03740a3f9d194a51f67d0e48901ed22f259 >+SIZE (blas/cblat3) = 130271 >+MD5 (blas/cblat3d) = 071bc85efe3b78583202f7e2a0c109ac >+SHA256 (blas/cblat3d) = 73dd9efdcbe12fadda8eca57754b548c37da31393e68608ede6fac657d75fd05 >+SIZE (blas/cblat3d) = 1046 >+MD5 (blas/zblat3) = 0fd36e72f1226d7a09ff4f43b13a7b77 >+SHA256 (blas/zblat3) = accc44079788b6e4a887a25c49cfea4c01141af5a228f30bbb1ec62ba2245660 >+SIZE (blas/zblat3) = 130561 >+MD5 (blas/zblat3d) = aa83e4fd400cf72d5445ce4553a40735 >+SHA256 (blas/zblat3d) = e3372bad1f0fb2e15a36df3a3523cc5cda1a3459cb0bccba6da77f95525d5d83 >+SIZE (blas/zblat3d) = 1046 >diff -ruN blas.orig/files/makefile.lib blas/files/makefile.lib >--- blas.orig/files/makefile.lib 2008-02-21 00:11:43.000000000 -0500 >+++ blas/files/makefile.lib 2008-07-03 07:40:32.305931580 -0400 >@@ -1,18 +1,5 @@ >-# @(#)Makefile 5.7 (Berkeley) 6/27/91 >-FFLAGS= @FFLAGS@ >+.SUFFIXES: .o .po .So .f > >-LIBDIR= ${PREFIX}/lib >-.if (${OSVERSION} > 600007) >-NO_PROFILE= no >-.else >-NOPROFILE= no >-.endif >- >-SHLIB_MAJOR= 2 >- >-# BLAS sources >-LIB=blas >-#NOPROFILE=1 > SRCS = caxpy.f ccopy.f cdotc.f cdotu.f cgbmv.f cgemm.f cgemv.f \ > cgerc.f cgeru.f chbmv.f chemm.f chemv.f cher.f cher2.f \ > cher2k.f cherk.f chpmv.f chpr.f chpr2.f crotg.f cscal.f \ >@@ -36,6 +23,76 @@ > zsyr2k.f zsyrk.f ztbmv.f ztbsv.f ztpmv.f ztpsv.f ztrmm.f \ > ztrmv.f ztrsm.f ztrsv.f > >-CLEANFILES+= *.c >+TESTSRCS = sblat1 dblat1 cblat1 zblat1 sblat2 dblat2 cblat2 zblat2 \ >+ sblat3 dblat3 cblat3 zblat3 > >-.include <bsd.lib.mk> >+OBJS= ${SRCS:.f=.o} >+POBJS= ${SRCS:.f=.po} >+SOBJS= ${SRCS:.f=.So} >+ >+.f.o: >+ @${RM} -f ${.TARGET} >+ ${FC} ${FFLAGS} -o ${.TARGET} -c ${.IMPSRC} >+ >+.f.po: >+ @${RM} -f ${.TARGET} >+ ${FC} ${POFLAG} ${FFLAGS} -o ${.TARGET} -c ${.IMPSRC} >+ >+.f.So: >+ @${RM} -f ${.TARGET} >+ ${FC} ${PICFLAG} -DPIC ${FFLAGS} -o ${.TARGET} -c ${.IMPSRC} >+ >+libblas.a: ${OBJS} >+ @${RM} -f ${.TARGET} >+ @${ECHO_CMD} "building static library" >+ @${AR} cq ${.TARGET} `NM='${NM}' lorder ${OBJS} | tsort -q` >+ ${RANLIB} ${.TARGET} >+ >+libblas_p.a: ${POBJS} >+ @${RM} -f ${.TARGET} >+ @${ECHO_CMD} "building profiled static library" >+ @${AR} cq ${.TARGET} `NM='${NM}' lorder ${POBJS} | tsort -q` >+ ${RANLIB} ${.TARGET} >+ >+libblas.so.${SHLIB_MAJOR}: ${SOBJS} >+ @${RM} -f ${.TARGET} >+ @${ECHO_CMD} "building shared library" >+ ${FC} ${PICFLAG} -DPIC ${FFLAGS} ${LDFLAGS} -shared -Wl,-x \ >+ -o ${.TARGET} -Wl,-soname,libblas.so.${SHLIB_MAJOR} \ >+ `lorder ${SOBJS} | tsort -q` >+ >+all: libblas.a libblas_p.a libblas.so.${SHLIB_MAJOR} >+ >+install: all >+ ${BSD_INSTALL_SCRIPT} libblas.a ${PREFIX}/lib >+ ${BSD_INSTALL_SCRIPT} libblas_p.a ${PREFIX}/lib >+ ${BSD_INSTALL_PROGRAM} libblas.so.${SHLIB_MAJOR} ${PREFIX}/lib >+ ${LN} -fs ${PREFIX}/lib/libblas.so.${SHLIB_MAJOR} ${PREFIX}/lib/libblas.so >+ >+test: all >+ @${ECHO_CMD} "testing static library" >+ ${MKDIR} statictests >+.for _S in ${TESTSRCS} >+ @${MV} ${_S} ${_S}.f >+ @${RM} -f ${_S}.o ./statictests/${_S}statictest >+ ${FC} ${FFLAGS} -o ${_S}.o -c ${_S}.f >+ ${FC} ${FFLAGS} ${LDFLAGS} ${_S}.o libblas.a -o ./statictests/${_S}statictest >+.endfor >+.for _l in s d c z >+ cd statictests && ./${_l}blat1statictest > ${_l}blat1.out && \ >+ ./${_l}blat2statictest < ../${_l}blat2d && \ >+ ./${_l}blat3statictest < ../${_l}blat3d >+.endfor >+ @${ECHO_CMD} "testing shared library" >+ ${MKDIR} sharedtests >+.for _S in ${TESTSRCS} >+ @${RM} -f ${_S}.So ./sharedtests/${_S}sharedtest >+ ${FC} ${PICFLAG} -DPIC ${FFLAGS} -o ${_S}.So -c ${_S}.f >+ ${FC} ${PICFLAG} -DPIC ${FFLAGS} ${LDFLAGS} ${_S}.So \ >+ libblas.so.${SHLIB_MAJOR} -o ./sharedtests/${_S}sharedtest >+.endfor >+.for _l in s d c z >+ cd sharedtests && ./${_l}blat1sharedtest > ${_l}blat1.out && \ >+ ./${_l}blat2sharedtest < ../${_l}blat2d && \ >+ ./${_l}blat3sharedtest < ../${_l}blat3d >+.endfor
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 117923
: 82438 |
82439
|
82440
|
82441
|
82442
|
82443