https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121490
Bug ID: 121490
Summary: Ada: powerpc64le: build fails with
--enable-targets=all when building ppc32be target
Product: gcc
Version: 12.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: ada
Assignee: unassigned at gcc dot gnu.org
Reporter: dave at killthe dot net
CC: dkm at gcc dot gnu.org
Target Milestone: ---
Created attachment 62092
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62092&action=edit
Scripts for reproducing error
On GCC 12.5+, when building with all multilibs enabled for powerpc64le target
(powerpc64le, powerpc64, powerpcle, powerpc), the build fails when building Ada
libs for ppc32be (powerpc) with the following errors:
"i-cexten.ads:277:28: error: modulus exceeds limit (2 ** 64)
[...]
i-cexten.ads:466:29: error: modulus exceeds limit (2 ** 64)
i-cexten.ads:658:22: error: integer type definition bounds out of range
[...]
i-cexten.ads:847:23: error: integer type definition bounds out of range"
Attached is a complete build system for reproducing the error, which is a
stripped down version of my OS build system with all unneeded parts removed,
that attempts to build a cross compiler. Download needed source archives into
gccreport/stage1 and read the gccreport/scripts/install/build-cross script for
info how to run it.