1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/math/lapack/Makefile
Tobias Kortkamp 1a452488f4 math/lapack, math/xlapack: Unbreak build with GCC 10
sorcsd2by1.f:389:40:

  366 |      $                   0, U1, LDU1, U2, LDU2, V1T, LDV1T, 0, 1, 0, 0,
      |                                      2
......
  389 |      $                   0, V1T, LDV1T, 0, 1, U1, LDU1, U2, LDU2, 0, 0,
      |                                        1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/REAL(4)).
sorcsd2by1.f:412:35:

  366 |      $                   0, U1, LDU1, U2, LDU2, V1T, LDV1T, 0, 1, 0, 0,
      |                            2
......
  412 |      $                   THETA, 0, 0, 1, V1T, LDV1T, U2, LDU2, U1, LDU1,
      |                                   1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/REAL(4)).
sorcsd2by1.f:436:55:

  366 |      $                   0, U1, LDU1, U2, LDU2, V1T, LDV1T, 0, 1, 0, 0,
      |                                                2
......
  436 |      $                   THETA, 0, U2, LDU2, U1, LDU1, 0, 1, V1T, LDV1T,
      |                                                       1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/REAL(4)).
sorcsd2by1.f:473:23:

  347 |             CALL SORBDB1( M, P, Q, X11, LDX11, X21, LDX21, THETA, 0, 0,
      |                                                                  2
......
  473 |      $                 WORK(IPHI), WORK(ITAUP1), WORK(ITAUP2),
      |                       1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/INTEGER(4)).
sorcsd2by1.f:480:44:

  351 |                CALL SORGQR( P, P, Q, U1, LDU1, 0, WORK(1), -1,
      |                                               2
......
  480 |             CALL SORGQR( P, P, Q, U1, LDU1, WORK(ITAUP1), WORK(IORGQR),
      |                                            1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/INTEGER(4)).
sorcsd2by1.f:485:48:

  351 |                CALL SORGQR( P, P, Q, U1, LDU1, 0, WORK(1), -1,
      |                                               2
......
  485 |             CALL SORGQR( M-P, M-P, Q, U2, LDU2, WORK(ITAUP2),
      |                                                1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/INTEGER(4)).
sorcsd2by1.f:496:57:

  362 |      $                   0, WORK(1), -1, CHILDINFO )
      |                         2
......
  496 |             CALL SORGLQ( Q-1, Q-1, Q-1, V1T(2,2), LDV1T, WORK(ITAUQ1),
      |                                                         1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/INTEGER(4)).
sorcsd2by1.f:503:22:

  366 |      $                   0, U1, LDU1, U2, LDU2, V1T, LDV1T, 0, 1, 0, 0,
      |                         2
......
  503 |      $                WORK(IPHI), U1, LDU1, U2, LDU2, V1T, LDV1T, 0, 1,
      |                      1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/INTEGER(4)).
sorcsd2by1.f:528:23:

  370 |             CALL SORBDB2( M, P, Q, X11, LDX11, X21, LDX21, THETA, 0, 0,
      |                                                                  2
......
  528 |      $                 WORK(IPHI), WORK(ITAUP1), WORK(ITAUP2),
      |                       1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/INTEGER(4)).
sorcsd2by1.f:540:55:

  351 |                CALL SORGQR( P, P, Q, U1, LDU1, 0, WORK(1), -1,
      |                                               2
......
  540 |             CALL SORGQR( P-1, P-1, P-1, U1(2,2), LDU1, WORK(ITAUP1),
      |                                                       1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/INTEGER(4)).
sorcsd2by1.f:545:48:

  351 |                CALL SORGQR( P, P, Q, U1, LDU1, 0, WORK(1), -1,
      |                                               2
......
  545 |             CALL SORGQR( M-P, M-P, Q, U2, LDU2, WORK(ITAUP2),
      |                                                1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/INTEGER(4)).
sorcsd2by1.f:550:46:

  362 |      $                   0, WORK(1), -1, CHILDINFO )
      |                         2
......
  550 |             CALL SORGLQ( Q, Q, R, V1T, LDV1T, WORK(ITAUQ1),
      |                                              1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/INTEGER(4)).
sorcsd2by1.f:557:22:

  366 |      $                   0, U1, LDU1, U2, LDU2, V1T, LDV1T, 0, 1, 0, 0,
      |                         2
......
  557 |      $                WORK(IPHI), V1T, LDV1T, 0, 1, U1, LDU1, U2, LDU2,
      |                      1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/INTEGER(4)).
sorcsd2by1.f:582:23:

  393 |             CALL SORBDB3( M, P, Q, X11, LDX11, X21, LDX21, THETA, 0, 0,
      |                                                                  2
......
  582 |      $                 WORK(IPHI), WORK(ITAUP1), WORK(ITAUP2),
      |                       1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/INTEGER(4)).
sorcsd2by1.f:589:44:

  351 |                CALL SORGQR( P, P, Q, U1, LDU1, 0, WORK(1), -1,
      |                                               2
......
  589 |             CALL SORGQR( P, P, Q, U1, LDU1, WORK(ITAUP1), WORK(IORGQR),
      |                                            1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/INTEGER(4)).
sorcsd2by1.f:601:25:

  351 |                CALL SORGQR( P, P, Q, U1, LDU1, 0, WORK(1), -1,
      |                                               2
......
  601 |      $                   WORK(ITAUP2), WORK(IORGQR), LORGQR, CHILDINFO )
      |                         1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/INTEGER(4)).
sorcsd2by1.f:605:46:

  362 |      $                   0, WORK(1), -1, CHILDINFO )
      |                         2
......
  605 |             CALL SORGLQ( Q, Q, R, V1T, LDV1T, WORK(ITAUQ1),
      |                                              1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/INTEGER(4)).
sorcsd2by1.f:612:29:

  366 |      $                   0, U1, LDU1, U2, LDU2, V1T, LDV1T, 0, 1, 0, 0,
      |                         2
......
  612 |      $                THETA, WORK(IPHI), 0, 1, V1T, LDV1T, U2, LDU2, U1,
      |                             1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/INTEGER(4)).
sorcsd2by1.f:642:23:

  417 |             CALL SORBDB4( M, P, Q, X11, LDX11, X21, LDX21, THETA, 0, 0,
      |                                                                  2
......
  642 |      $                 WORK(IPHI), WORK(ITAUP1), WORK(ITAUP2),
      |                       1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/INTEGER(4)).
sorcsd2by1.f:655:46:

  351 |                CALL SORGQR( P, P, Q, U1, LDU1, 0, WORK(1), -1,
      |                                               2
......
  655 |             CALL SORGQR( P, P, M-Q, U1, LDU1, WORK(ITAUP1),
      |                                              1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/INTEGER(4)).
sorcsd2by1.f:665:50:

  351 |                CALL SORGQR( P, P, Q, U1, LDU1, 0, WORK(1), -1,
      |                                               2
......
  665 |             CALL SORGQR( M-P, M-P, M-Q, U2, LDU2, WORK(ITAUP2),
      |                                                  1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/INTEGER(4)).
sorcsd2by1.f:674:46:

  362 |      $                   0, WORK(1), -1, CHILDINFO )
      |                         2
......
  674 |             CALL SORGLQ( Q, Q, Q, V1T, LDV1T, WORK(ITAUQ1),
      |                                              1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/INTEGER(4)).
sorcsd2by1.f:681:29:

  366 |      $                   0, U1, LDU1, U2, LDU2, V1T, LDV1T, 0, 1, 0, 0,
      |                         2
......
  681 |      $                THETA, WORK(IPHI), U2, LDU2, U1, LDU1, 0, 1, V1T,
      |                             1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/INTEGER(4)).

http://package18.nyi.freebsd.org/data/121amd64-default-PR244494/2020-06-10_18h04m44s/logs/errors/lapack-3.5.0_8.log
http://package18.nyi.freebsd.org/data/121amd64-default-PR244494/2020-06-10_18h04m44s/logs/errors/xlapack-3.5.0_6.log

PR:		246700
2020-07-04 12:33:32 +00:00

226 lines
6.0 KiB
Makefile

# Created by: jmz
# $FreeBSD$
PORTNAME?= lapack
PORTVERSION= 3.5.0
PORTREVISION?= 8 # Never remove this line, keep PORTREVISION?=0 in case.
CATEGORIES= math
MASTER_SITES= NL/lapack/
DISTFILES= lapack-${PORTVERSION}.tgz
.if make(makesum) || !(defined(BLAS_SLAVEPORT) || defined(XLAPACK_SLAVEPORT))
DISTFILES+= manpages-${PORTVERSION}.tgz
.endif
DIST_SUBDIR= lapack
MAINTAINER?= fortran@FreeBSD.org
COMMENT?= Library of Fortran 77 subroutines for linear algebra
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= fortran
OPTIONS_DEFINE= PROFILE SHARED STATIC
OPTIONS_DEFAULT= SHARED STATIC
PROFILE_DESC= Build profiling libraries
SHARED_DESC= Build shared libraries and PIC archives
STATIC_DESC= Build (non-PIC) archives
MAKE_ENV= BLASLIB="${BLASLIB}"
FFLAGS+= -std=legacy
PLIST_SUB= SVERSION="${SVERSION}"
WRKSRC= ${WRKDIR}/lapack-${PORTVERSION}
WRKSRC_PROFILE= ${WRKSRC}_PROFILE
WRKSRC_SHARED= ${WRKSRC}_SHARED
WRKSRC_STATIC= ${WRKSRC}
.include <bsd.port.options.mk>
.if defined(BLAS_SLAVEPORT)
ALL_TARGET= blaslib
BLASLIB= ../../libblas.a
LIBS= blas
PLIST_SUB+= BLAS="" LAPACK="@comment " XLAPACK="@comment " LAPACKE="@comment "
SVERSION= 2
TEST_TARGET= blas_testing
.elif defined(LAPACKE_SLAVEPORT)
ALL_TARGET= lapackelib
LAPACKELIB= liblapacke.a
LAPACKETMGLIB= liblapacke_tmg.a
MAKE_ENV+= LAPACKELIB="${LAPACKELIB}" LAPACKETMGLIB="${LAPACKETMGLIB}"
LIB_DEPENDS+= libblas.so:math/blas \
liblapack.so:math/lapack
LIBS= lapacke lapacke_tmg
INCLS= lapacke lapacke_utils lapacke_mangling
PLIST_SUB+= BLAS="@comment " LAPACK="@comment " XLAPACK="@comment " LAPACKE=""
SVERSION= 1
.else
ALL_TARGET= lib
BLASLIB?= -L${LOCALBASE}/lib -lblas
LIB_DEPENDS+= libblas.so:math/blas
LIBS= lapack tmglib
SVERSION= 4
TEST_TARGET= lapack_testing
.if defined(MAINTAINER_MODE) || defined(PACKAGE_BUILDING)
S= ${PYTHON_CMD}
USES+= python:build
.else
S= \#
.endif
.if defined(XLAPACK_SLAVEPORT)
LIB_DEPENDS+= libxblas.so:math/xblas
MAKE_ENV+= USEXBLAS=yes XBLASLIB="${XBLASLIB}"
P= x
PLIST_SUB+= BLAS="@comment " LAPACK="@comment " XLAPACK="" LAPACKE="@comment "
XBLASLIB?= -L${LOCALBASE}/lib -lxblas
.else
PLIST_FILES+= ${MAN3L:S|^|man/man3/|:S|$|.gz|}
PLIST_SUB+= BLAS="@comment " LAPACK="" XLAPACK="@comment " LAPACKE="@comment "
.if defined(MAINTAINER_MODE)
BUILD_DEPENDS += doxygen:devel/doxygen
MAN_TARGET= build-manpages
.endif
.endif
.endif
.if ${ARCH} == "sparc64"
PICFLAG?= -fPIC
.else
PICFLAG?= -fpic
.endif
FFLAGS_PROFILE?= -pg
FFLAGS_SHARED ?= ${PICFLAG}
.if ${PORT_OPTIONS:MPROFILE}
LDFLAGS+= -static
.endif
.if ${PORT_OPTIONS:MPROFILE} && !exists(/usr/lib/libc_p.a)
IGNORE= you have chosen WITH_PROFILE, but have not installed the\
base system profiling libraries
.endif
.if ${PORT_OPTIONS:MSHARED}
USE_LDCONFIG= yes
.endif
.for o in PROFILE SHARED STATIC
.if ${PORT_OPTIONS:M${o}}
PLIST_SUB+= ${o}=""
.else
PLIST_SUB+= ${o}="@comment "
.endif
.endfor
post-patch:
@${SED} -Ee '\
s@^(FORTRAN|LOADER)([[:blank:]]*=)(.*)@\1\2 $${FC}@; \
s@^(OPTS[[:blank:]]*=)(.*)@\1 $${FFLAGS} $${EXTRAFLAGS}@; \
s@^NOOPT[[:blank:]]*=.*@& $${EXTRAFLAGS}@; \
s@^(LOADOPTS[[:blank:]]*=)(.*)@\1 $${LDFLAGS} $${EXTRAFLAGS}@; \
s@^(CC[[:blank:]]*=)(.*)@@; \
s@^(CFLAGS[[:blank:]]*)(=)(.*)@\1 += $${EXTRAFLAGS}@; \
\@(BLAS|LAPACKE|RAN)LIB[[:blank:]]*=@d;' \
${WRKSRC}/make.inc.example > ${WRKSRC}/make.inc
@${REINPLACE_CMD} -e 's@\./lapack_testing\.py@${S} &@' \
${WRKSRC}/Makefile
.for o in PROFILE SHARED
.if ${PORT_OPTIONS:M${o}}
@${CP} -a ${WRKSRC} ${WRKSRC_${o}}
.endif
.endfor
do-build: ${MAN_TARGET} build-profile build-shared build-static
.for o in PROFILE SHARED STATIC
build-${o:tl}: patch
.if ${PORT_OPTIONS:M${o}}
${PRINTF} "\n\nBuilding ${o:tl} libraries:\n\n\n"
cd ${WRKSRC_${o}}; ${SETENV} ${MAKE_ENV} EXTRAFLAGS="${FFLAGS_${o}}" \
${MAKE} ${_MAKE_JOBS} ${MAKE_ARGS} ARCH="${AR}" ${ALL_TARGET}
.endif
.endfor
.if defined (MAINTAINER_MODE)
build-manpages: patch
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${_MAKE_JOBS} \
${MAKE_ARGS} man
.endif
post-build:
.if ${PORT_OPTIONS:MSHARED}
.for L in ${LIBS}
cd ${WRKSRC_SHARED} ; ${FC} ${FFLAGS} ${FFLAGS_SHARED} ${LDFLAGS} -shared \
-o lib${P}${L}.so.${SVERSION} -Wl,-x -Wl,-soname,lib${P}${L}.so.${SVERSION} \
-Wl,--whole-archive lib${L}.a -Wl,--no-whole-archive
.endfor
.endif
.if ${PORT_OPTIONS:MSHARED}
TESTS ?= test-shared
.elif ${PORT_OPTIONS:MSTATIC}
TESTS ?= test-static
.elif ${PORT_OPTIONS:MPROFILE}
TESTS ?= test-profile
.endif
.if !defined(LAPACKE_SLAVEPORT)
check regression-test test: ${TESTS}
.for o in PROFILE SHARED STATIC
test-${o:tl}: build-${o:tl}
.if ${PORT_OPTIONS:M${o}}
@${PRINTF} "\n\nTesting ${o:tl} libraries:\n\n\n"
@cd ${WRKSRC_${o}}; ${SETENV} ${MAKE_ENV} EXTRAFLAGS="${FFLAGS_${o}}" \
${MAKE} ${_MAKE_JOBS} ${MAKE_ARGS} ARCH="${AR}" ${TEST_TARGET}
.if defined(BLAS_SLAVEPORT)
@${CAT} ${WRKSRC_${o}}/BLAS/*.out
.endif
.endif
.endfor
.endif
do-install:
.for L in ${LIBS}
.if ${PORT_OPTIONS:MSTATIC}
@${INSTALL_DATA} ${WRKSRC}/lib${L}.a ${STAGEDIR}${PREFIX}/lib/lib${P}${L}.a
.endif
.if ${PORT_OPTIONS:MSHARED}
@${INSTALL_DATA} ${WRKSRC_SHARED}/lib${L}.a ${STAGEDIR}${PREFIX}/lib/lib${P}${L}_pic.a
@${INSTALL_DATA} ${WRKSRC_SHARED}/lib${P}${L}.so.${SVERSION} ${STAGEDIR}${PREFIX}/lib
@${LN} -sf lib${P}${L}.so.${SVERSION} ${STAGEDIR}${PREFIX}/lib/lib${P}${L}.so
.endif
.if ${PORT_OPTIONS:MPROFILE}
@${INSTALL_DATA} ${WRKSRC_PROFILE}/lib${L}.a ${STAGEDIR}${PREFIX}/lib/lib${P}${L}_p.a
.endif
.endfor
.if defined(LAPACKE_SLAVEPORT)
.for I in ${INCLS}
@${INSTALL_DATA} ${WRKSRC}/lapacke/include/${I}.h ${STAGEDIR}${PREFIX}/include
.endfor
.endif
.include <bsd.port.pre.mk>
.if !(defined(BLAS_SLAVEPORT) || defined(XLAPACK_SLAVEPORT) || defined(LAPACKE_SLAVEPORT))
.include "${FILESDIR}/manpages"
post-install:
@cd ${WRKDIR}/man ; ${ECHO_CMD} ${MAN3L:S|^|man3/|} \
| ${XARGS} -J @ ${INSTALL_MAN} @ ${STAGEDIR}${MAN3PREFIX}/man/man3
.if defined(MAINTAINER_MODE)
package-manpages: build-manpages
@${RM} ${WRKDIR}/lapack-manpages-${PORTVERSION}.tar.gz ; \
cd ${WRKSRC}/DOCS/man; \
${TAR} -czvf ${WRKDIR}/lapack-manpages-${PORTVERSION}.tar.gz \
${MAN3L:S|^|man3/|}
.endif
.endif
.include <bsd.port.post.mk>