Bug 222560

Summary: comms/wspr: fails to build with lang/gcc7 or later
Product: Ports & Packages Reporter: Jan Beich <jbeich>
Component: Individual Port(s)Assignee: hamradio (Nobody) <hamradio>
Status: Closed FIXED    
Severity: Affects Only Me CC: db, gerald, hamradio, tablooaraz
Priority: --- Keywords: needs-patch
Version: LatestFlags: jbeich: maintainer-feedback? (hamradio)
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 222542    

Description Jan Beich freebsd_committer 2017-09-24 16:24:10 UTC
$ 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
Comment 2 Jan Beich freebsd_committer 2017-09-24 17:23:35 UTC
wspr2.f90 builds fine with gfortran5 and gfortran6 but not gfortran7.
Comment 3 commit-hook freebsd_committer 2017-09-27 23:29:59 UTC
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
Comment 4 Diane Bruce freebsd_committer 2017-09-27 23:33:27 UTC
https://gcc.gnu.org/onlinedocs/gfortran/RANDOM_005fSEED.html

I'll fix this upstream ASAP.
Comment 5 Diane Bruce freebsd_committer 2017-09-27 23:45:13 UTC
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 ;)
Comment 6 vali gholami 2017-11-26 20:48:46 UTC
MARKED AS SPAM