[MacPorts] #64596: gcc11 produced internal error (was: gcc-11 produced internal error)

MacPorts noreply at macports.org
Thu Feb 3 10:17:56 UTC 2022


#64596: gcc11 produced internal error
-----------------------+--------------------
  Reporter:  jlries61  |      Owner:  (none)
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.7.1
Resolution:            |   Keywords:
      Port:  gcc11     |
-----------------------+--------------------
Changes (by ryandesign):

 * port:  gcc-11 => gcc11


Old description:

> When compiling a certain file, gcc-11 produces:
>
> ../../../libssSPM/libssSPM/include/ssSPM/salford/safe_exports.h:450:1:
> internal compiler error: Illegal instruction: 4
>   450 | static const double Percentile[N_PERCENTILE_STATS]
> = {      0.01,         0.02,         0.025,        0.03,          0.04,
> 0.05,         0.10,         0.20,         0.25,            0.30,
> 0.40,         0.50,                0.60,         0.70,         0.75,
> 0.80,         0.90,         0.95,         0.96,         0.97,
> 0.975,         0.98,         0.99    };
>
> N_PERCENTILE_STATS is a macro defined as 23
>
> Changing the location or formatting of the statement fails to eliminate
> the internal error.
> Commenting out the above data structure does cause the error to go away,
> though, of course, the source file fails to compile due to its absence.
>
> The following compile-time flags are specified:
>
> -O -m64 -fopenmp -Wcomment -Wformat -Wuninitialized -Warray-bounds -Wno-
> deprecated-declarations -Wno-write-strings -Wno-sizeof-array-argument
> -fopenmp -std=gnu++14
>
> The OS version is 15.6.0

New description:

 When compiling a certain file, gcc-11 produces:

 {{{
 ../../../libssSPM/libssSPM/include/ssSPM/salford/safe_exports.h:450:1:
 internal compiler error: Illegal instruction: 4
   450 | static const double Percentile[N_PERCENTILE_STATS]               =
 {      0.01,         0.02,         0.025,        0.03,          0.04,
 0.05,         0.10,         0.20,         0.25,            0.30,
 0.40,         0.50,                0.60,         0.70,         0.75,
 0.80,         0.90,         0.95,         0.96,         0.97,
 0.975,         0.98,         0.99    };

 N_PERCENTILE_STATS is a macro defined as 23
 }}}

 Changing the location or formatting of the statement fails to eliminate
 the internal error.
 Commenting out the above data structure does cause the error to go away,
 though, of course, the source file fails to compile due to its absence.

 The following compile-time flags are specified:

 {{{
 -O -m64 -fopenmp -Wcomment -Wformat -Wuninitialized -Warray-bounds -Wno-
 deprecated-declarations -Wno-write-strings -Wno-sizeof-array-argument
 -fopenmp -std=gnu++14
 }}}

 The OS version is 15.6.0

--

Comment:

 Sounds like something you should report to the developers of gcc. You may
 want to first check whether it has already been fixed in the latest
 version of gcc (available in the gcc-devel port).

-- 
Ticket URL: <https://trac.macports.org/ticket/64596#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list