tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Porting Numpy
On Tue, 12 Aug 2008, Berndt Josef Wulf wrote:
> not really, although g95 is installed on the system and due to
> patch-aa it seems that it used this compiler.
OK, so the package needs some more work to use the fortran compiler
that pkgsrc gives it rather than its idea of the best from what it
can find.
> After deinstallation
> of g95, wip/py-numpy installs but still produces the same error as
> with my home grown solution, which was reported in PR36092.
The package is assuming the attached fixes to the lapack and blas
packages, that I haven't got around to committing yet.
> Adding libF77 and libI77 symbol MAIN__. I know octave works which
> also uses the lapack library but can't see what makes the
> difference in case of py_numpy.
Presumably octave is linking in such a way that it pulls in the
fortran runtime libraries itself whereas numpy doesn't, certainly
thats what happens in the case of other users of lapack and blas
(such as R).
cheers
mark
--- /vol/pkgsrc/math/lapack/patches/patch-aa 2008-01-07 10:29:13.000000000
+1300
+++ patches/patch-aa 2008-07-05 15:50:56.000000000 +1200
@@ -8,7 +8,7 @@
../$(LAPACKLIB): $(ALLOBJ)
- $(ARCH) $(ARCHFLAGS) $@ $(ALLOBJ)
- $(RANLIB) $@
-+ ${LIBTOOL} --mode=link --tag=CC ${FC} -o ../$(LAPACKLIB) \
++ ${LIBTOOL} --mode=link --tag=F77 ${FC} -o ../$(LAPACKLIB) \
+ $(ALLOBJ:.o=.lo) -rpath ${PREFIX}/lib -version-info 3:0
single: $(SLASRC) $(ALLAUX) $(SCLAUX)
Index: files/Makefile.blas
===================================================================
RCS file: /src/cvs/netbsd/pkgsrc/math/blas/files/Makefile.blas,v
retrieving revision 1.1
diff -u -r1.1 Makefile.blas
--- files/Makefile.blas 7 Mar 2008 07:14:24 -0000 1.1
+++ files/Makefile.blas 6 Jun 2008 03:49:18 -0000
@@ -28,7 +28,7 @@
${LIBTOOL} --mode=compile --tag=CC ${COMPILE.f} ${.IMPSRC}
libblas.la: $(OBJS)
- ${LIBTOOL} --mode=link ${CC} -o ${.TARGET} ${OBJS:.o=.lo} \
+ ${LIBTOOL} --mode=link --tag=F77 ${FC} -o ${.TARGET} ${OBJS:.o=.lo}
\
-rpath $(libdir) \
-version-info ${SHLIB_MAJOR}:${SHLIB_MINOR}
Home |
Main Index |
Thread Index |
Old Index