Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 May 2003 05:22:22 +0100 (BST)
From:      "=?iso-8859-1?q?Pedro=20F.=20Giffuni?=" <giffunip@yahoo.com>
To:        freebsd-ports@FreeBSD.org
Subject:   Serious bug in math/superlu port (with fix)
Message-ID:  <20030508042222.13124.qmail@web13406.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
--0-1844259360-1052367742=:12804
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Content-Id: 
Content-Disposition: inline

Hello;

I had to reread the documentation to find out what was
wrong with math/superlu!
superlu is not building correctly because of a
configuration problem: it doesn't know that BLAS is the
FORTRAN version and expects to use the included (but very
limited) C version.

The attached patch fixes the problem. I tried to PR it but
my system/gateway still has problem with that so I hope
someone just goes ahead and commit it.

cheers,

    Pedro.
PS. it would be nice to teach BLAS to use CFLAGS too :(.

__________________________________________________
Yahoo! Plus
For a better Internet experience
http://www.yahoo.co.uk/btoffer
--0-1844259360-1052367742=:12804
Content-Type: text/plain; name=patch-superlu
Content-Description: patch-superlu
Content-Disposition: inline; filename=patch-superlu

diff -ruN superlu.orig/Makefile superlu/Makefile
--- superlu.orig/Makefile	Wed May  7 17:03:44 2003
+++ superlu/Makefile	Wed May  7 22:40:52 2003
@@ -17,10 +17,8 @@
 BUILD_DEPENDS=	${LOCALBASE}/lib/libblas.a:${PORTSDIR}/math/blas
 
 WRKSRC=		${WRKDIR}/SuperLU
+# Note: The Matlab interface (matlabmex) will not be built.
 ALL_TARGET=	superlulib
-#
-#	NOTE:	The Matlab interface was not built.
-#
 
 do-install:
 	${INSTALL_DATA} ${WRKSRC}/libsuperlu.* ${PREFIX}/lib
diff -ruN superlu.orig/files/patch-aa superlu/files/patch-aa
--- superlu.orig/files/patch-aa	Wed May  7 17:03:44 2003
+++ superlu/files/patch-aa	Wed May  7 22:37:00 2003
@@ -1,6 +1,6 @@
---- make.inc.orig	Tue Feb 15 13:29:45 2000
-+++ make.inc	Sun Oct 15 18:11:48 2000
-@@ -16,14 +16,14 @@
+--- make.inc.orig	Tue Sep  3 16:02:16 2002
++++ make.inc	Wed May  7 22:35:16 2003
+@@ -16,14 +16,15 @@
  #
  #  The machine (platform) identifier to append to the library names
  #
@@ -14,11 +14,12 @@
 -SUPERLULIB   = superlu$(PLAT).a
 -BLASLIB      = ../blas$(PLAT).a
 +SUPERLULIB   = libsuperlu$(PLAT).a
++BLASDEF	     = -DUSE_VENDOR_BLAS
 +BLASLIB      = ${LOCALBASE}/lib/libblas$(PLAT).a
  
  #
  #  The archiver and the flag(s) to use when building archive (library)
-@@ -33,12 +33,12 @@
+@@ -33,12 +34,12 @@
  ARCHFLAGS    = cr
  RANLIB       = ranlib
  
@@ -37,7 +38,7 @@
  LOADOPTS     = #-xO3
  
  #
-@@ -48,4 +48,4 @@
+@@ -48,4 +49,4 @@
  #
  # The directory in which Matlab is installed
  #

--0-1844259360-1052367742=:12804--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030508042222.13124.qmail>