Opened 2 years ago

Last modified 22 months ago

#64596 new defect

gcc11 produced internal error

Reported by: jlries61 (John L. Ries) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc: cjones051073 (Chris Jones), mascguy (Christopher Nielsen)
Port: gcc11

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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

Attachments (1)

mainc.ii.gz (281.7 KB) - added by jlries61 (John L. Ries) 2 years ago.
Preprocessed version of mainc.c

Download all attachments as: .zip

Change History (10)

comment:1 Changed 2 years ago by jlries61 (John L. Ries)

$ port info gcc11 
gcc11 @11.2.0_3 (lang)
Sub-ports:            libgcc11
Variants:             universal

Description:          The GNU compiler collection, including front ends for C,
                      C++, Objective-C, Objective-C++ and Fortran.
Homepage:             https://gcc.gnu.org/

Extract Dependencies: xz
Build Dependencies:   texinfo, clang-12
Library Dependencies: cctools, gmp, isl, ld64, libiconv, libmpc, mpfr, zlib
Runtime Dependencies: gcc_select, libgcc
Platforms:            darwin
License:              (GPL-3+ or Permissive)
Maintainers:          none
Last edited 2 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:2 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: gcc11 added; gcc-11 removed
Summary: gcc-11 produced internal errorgcc11 produced internal error

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).

comment:3 Changed 2 years ago by jlries61 (John L. Ries)

Development version does the same thing. So does gcc5. I think I'll try 4.9.

comment:4 Changed 2 years ago by jlries61 (John L. Ries)

4.9 does the same, even though no version of gcc did this the last time I tried to build this software under OSX three years ago. Some additional printout:

../../../libssSPM/libssSPM/include/ssSPM/salford/safe_exports.h:450:1: internal compiler error: Abort trap: 6 g++: internal compiler error: Abort trap: 6 (program cc1plus) make: * [mainc.o] Abort trap: 6

Changed 2 years ago by jlries61 (John L. Ries)

Attachment: mainc.ii.gz added

Preprocessed version of mainc.c

comment:5 Changed 2 years ago by jlries61 (John L. Ries)

Preprocessed source file attached (mainc.ii.gz).

comment:6 Changed 22 months ago by cjones051073 (Chris Jones)

Is this still an issue with the latest gcc11 ?

comment:7 Changed 22 months ago by cjones051073 (Chris Jones)

Cc: cjones051073 added

comment:8 Changed 22 months ago by jlries61 (John L. Ries)

We'll find out now that GCC 11 is built on the offending machine.

comment:9 Changed 22 months ago by mascguy (Christopher Nielsen)

Cc: mascguy added
Note: See TracTickets for help on using tickets.