I like gcc updates, because they can add C++ features and help my
powerpc machine with newer C++ code.  I won't soon try lang/gcc/8 on
powerpc, because my PowerBook G4 is busy with building other ports.

I built your lang/gcc/8 on amd64, then tried to use its gfortran with
some fortran ports.  I'm using the old 8.tgz from Mon 31 Dec, so I
don't have the mips64 changes in the new 8.tgz from Wed 2 Jan.

I was able to build math/blas, then build math/lapack, but now I can't
test math/lapack:

opa$ make test
===>  Regression tests for lapack-3.7.1p0                                      
cd /usr/ports/pobj/lapack-3.7.1/lapack-3.7.1/TESTING/MATGEN && gmake  
LIBTOOL="/usr/bin/libtool"  LIBlapack_LTVERSION='-version-info 6:0:0' 
liblapack_ltversion=6.0 
SHARED_LIBS_LOG=/usr/ports/pobj/lapack-3.7.1/lapack-3.7.1/SRC/shared_libs.log 
PLAT= OPTS= FORTRAN=gfortran  LOADER=gfortran  LAPACKLIB=SRC/liblapack.a  
BLASLIB="/usr/local/lib/libblas.a /usr/local/lib/libgfortran.a"                 
   
gfortran  -c -o slatms.o slatms.f
gmake: gfortran: Command not found
gmake: *** [Makefile:97: slatms.o] Error 127
*** Error 2 in . (Makefile:82 'do-test')
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2815 
'/usr/ports/pobj/lapack-3.7.1/.test_done')
*** Error 1 in /usr/ports/math/lapack 
(/usr/ports/infrastructure/mk/bsd.port.mk:2454 'test')

lang/gcc/4.9 installs a symbolic link from bin/gfortran to
bin/egfortran, but lang/gcc/6 and lang/gcc/8 don't install this link.
The wrapper at /usr/ports/pobj/lapack-3.7.1/bin/gfortran allows blas
and lapack to run gfortran during `make build`, but lapack can't run
gfortran during `make test`.

I wonder if other ports also run compilers during `make test`, and
whether they use the wrappers in /usr/ports/pobj/*/bin.

I used this diff to set gcc 8 as the fortran compiler.

Index: infrastructure/mk/fortran.port.mk
===================================================================
RCS file: /cvs/ports/infrastructure/mk/fortran.port.mk,v
retrieving revision 1.14
diff -u -p -r1.14 fortran.port.mk
--- infrastructure/mk/fortran.port.mk   2 Sep 2016 13:02:24 -0000       1.14
+++ infrastructure/mk/fortran.port.mk   3 Jan 2019 03:52:57 -0000
@@ -14,9 +14,9 @@ MODFORTRAN_WANTLIB += g2c
 MODULES += gcc4
 MODGCC4_ARCHS ?= *
 MODGCC4_LANGS += fortran
-MODFORTRAN_BUILD_DEPENDS += lang/gcc/4.9,-f95>=4.9.4p0,<4.10
+MODFORTRAN_BUILD_DEPENDS += lang/gcc/8,-f95>=8,<9
 MODFORTRAN_LIB_DEPENDS += ${MODGCC4_CPPLIBDEP}
-MODFORTRAN_WANTLIB += gfortran>=3
+MODFORTRAN_WANTLIB += gfortran>=8
 .  if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
 MODFORTRAN_WANTLIB += quadmath
 .  endif
Index: infrastructure/mk/gcc4.port.mk
===================================================================
RCS file: /cvs/ports/infrastructure/mk/gcc4.port.mk,v
retrieving revision 1.12
diff -u -p -r1.12 gcc4.port.mk
--- infrastructure/mk/gcc4.port.mk      8 Mar 2016 16:46:05 -0000       1.12
+++ infrastructure/mk/gcc4.port.mk      3 Jan 2019 03:52:57 -0000
@@ -1,2 +1,2 @@
-MODGCC4_VERSION?=4.9
+MODGCC4_VERSION?=8
 .include "${PORTSDIR}/lang/gcc/${MODGCC4_VERSION}/gcc4.port.mk"

-- 
George Koehler <[email protected]>

Reply via email to