$ echo "DEFAULT_VERSIONS += gcc=7" >>${__MAKE_CONF:-/etc/make.conf} $ make [...] wspr2.f90:68:23: call random_seed(PUT=iclock) 1 Error: Size of 'put' argument of 'random_seed' intrinsic at (1) too small (12/33) build log: http://sprunge.us/ATfR
The issue may have no relation to lang/gcc7. Current packaging status is unknown: http://beefy5.nyi.freebsd.org/data/latest-per-pkg/wspr/4.00.r4198_9/103i386-default.log http://beefy6.nyi.freebsd.org/data/latest-per-pkg/wspr/4.00.r4198_9/103amd64-default.log http://beefy10.nyi.freebsd.org/data/latest-per-pkg/wspr/4.00.r4198_9/110i386-default.log http://beefy9.nyi.freebsd.org/data/latest-per-pkg/wspr/4.00.r4198_9/110amd64-default.log
wspr2.f90 builds fine with gfortran5 and gfortran6 but not gfortran7.
A commit references this bug: Author: db Date: Wed Sep 27 23:29:43 UTC 2017 New revision: 450794 URL: https://svnweb.freebsd.org/changeset/ports/450794 Log: Fix build under gfortran7 Bug 222560: comms/wspr: fails to build with lang/gcc7 or later https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222560 PR: ports/222560 Reported by: Jan Beich <jbeich@FreeBSD.org> Changes: head/comms/wspr/distinfo head/comms/wspr/files/patch-Makefile.in head/comms/wspr/files/patch-configure.ac head/comms/wspr/files/patch-wspr.py head/comms/wspr/files/patch-wspr2.f90
https://gcc.gnu.org/onlinedocs/gfortran/RANDOM_005fSEED.html I'll fix this upstream ASAP.
program test_random_seed implicit none integer :: n call random_seed(size = n) write (*, *) n end program test_random_seed gfortran7 -o pgtest pgtest.f90 export LD_PRELOAD=/usr/local/lib/gcc7/libgcc_s.so ./pgtest 33 gfortran46 -o pgtest pgtest.f90 export LD_PRELOAD=/usr/local/lib/gcc46/libgcc_s.so ./pgtest 12 Now we know ;)
MARKED AS SPAM