Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Apr 2022 21:49:27 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 263539] science/elmerferm: Fails to build with GCC 11: Error: Index variable 'i' redefined at (1) in procedure 'inputvector' called from within DO loop at (2)
Message-ID:  <bug-263539-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263539

            Bug ID: 263539
           Summary: science/elmerferm: Fails to build with GCC 11: Error:
                    Index variable 'i' redefined at (1) in procedure
                    'inputvector' called from within DO loop at (2)
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
               URL: http://package18.nyi.freebsd.org/data/122amd64-default
                    -foo/2021-09-18_18h41m21s/logs/errors/elmerfem-8.4.202
                    00708_2.log
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: salvadore@freebsd.org
            Blocks: 258378

Updating GCC_DEFAULT from GCC 10 to GCC 11 is blocked by the fact that buil=
ding
this port with GCC 11 gives the following error (full log in URL):

!!! build failure encountered !!!
                                                         10482,1       Fon

 1288 |                 'Avector 2', Model % Materials(k) % Values, Pn, Ele=
ment
% NodeIndexes )
      |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
              2
......
 1452 |         DO i=3D1,MIN(3,SIZE(Hwrk,1))
      |                                  1
Error: Index variable 'i' redefined at (1) in procedure 'inputvector' called
from within DO loop at (2)
*** [fem/src/modules/CMakeFiles/DCRComplexSolve.dir/DCRComplexSolve.F90.o]
Error code 1

Also, please check that USE_GCC is still needed and that the default clang
compier can't be used instead.


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258378
[Bug 258378] [exp-run] Update GCC_DEFAULT from 10 to 11
--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-263539-7788>