[Bug 264366] net/mpich2: Build fails with GCC 11 on i386: error: size of array element is not a multiple of its alignment

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 31 May 2022 10:25:11 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264366

            Bug ID: 264366
           Summary: net/mpich2: Build fails with GCC 11 on i386: error:
                    size of array element is not a multiple of its
                    alignment
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
               URL: http://package23.nyi.freebsd.org/data/130i386-default-
                    foo/2022-05-26_19h07m39s/logs/errors/mpich2-1.5_15,5.l
                    og
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: thierry@FreeBSD.org
          Reporter: salvadore@freebsd.org
            Blocks: 258378
             Flags: maintainer-feedback?(thierry@FreeBSD.org)
          Assignee: thierry@FreeBSD.org

Updating GCC_DEFAULT from GCC 10 to GCC 11 is blocked by the fact that building
this port with GCC 11 on i386 fails.

The error messages are the following:

--- src/mpi/attr/attrutil.lo ---
In file included from src/mpi/attr/attrutil.c:16:
./src/include/mpiimpl.h:1458:1: error: size of array element is not a multiple
of its alignment
 1458 | extern MPID_Request MPID_Request_direct[];
      | ^~~~~~
./src/include/mpiimpl.h:1458:1: error: size of array element is not a multiple
of its alignment

and later we also have

--- src/mpi/attr/dup_fn.lo ---
In file included from src/mpi/attr/dup_fn.c:8:
./src/include/mpiimpl.h:1458:1: error: size of array element is not a multiple
of its alignment
 1458 | extern MPID_Request MPID_Request_direct[];
      | ^~~~~~
./src/include/mpiimpl.h:1458:1: error: size of array element is not a multiple
of its alignment
*** [src/mpi/attr/dup_fn.lo] Error code 1

Please also see the log in the URL field.


Referenced Bugs:

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