Bug 97504 - [11 Regression] Ada bootstrap error after r11-4029
Summary: [11 Regression] Ada bootstrap error after r11-4029
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: ada (show other bugs)
Version: 11.0
: P3 normal
Target Milestone: 11.0
Assignee: Alexandre Oliva
URL:
Keywords: build
: 98127 98134 98724 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-10-20 15:21 UTC by seurer
Modified: 2022-02-13 23:03 UTC (History)
10 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2020-10-22 00:00:00


Attachments
patch that should fix the remaining s390 problem (309 bytes, patch)
2020-10-23 06:21 UTC, Alexandre Oliva
Details | Diff
Build log (270.06 KB, application/zstd)
2020-10-27 14:51 UTC, Martin Liška
Details
fix for riscv targets (539 bytes, patch)
2020-10-28 03:23 UTC, Alexandre Oliva
Details | Diff
Build log for s390x (221.76 KB, application/zstd)
2020-10-29 09:37 UTC, Martin Liška
Details
Build log for ppc (270.06 KB, application/zstd)
2020-10-29 09:37 UTC, Martin Liška
Details
Tentative fix for the SuSE PowerPC compiler (493 bytes, patch)
2020-10-30 10:10 UTC, Eric Botcazou
Details | Diff
Slightly better tentative fix (500 bytes, patch)
2020-10-30 13:48 UTC, Eric Botcazou
Details | Diff
ppc_log with patch (270.14 KB, application/zstd)
2020-11-05 16:25 UTC, Martin Liška
Details
Tentative fix #2 (502 bytes, patch)
2020-11-05 16:57 UTC, Eric Botcazou
Details | Diff
Fix for hppa-hpux (323 bytes, patch)
2020-11-27 16:20 UTC, John David Anglin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description seurer 2020-10-20 15:21:04 UTC
g:1e70b1a358b6ce3b894f284d88fbb90518d45cc0, r11-4029 

/home/seurer/gcc/git/build/gcc-test/./gcc/xgcc -B/home/seurer/gcc/git/build/gcc-test/./gcc/ -B/home/seurer/gcc/git/install/gcc-test/powerpc64le-unknown-linux-gnu/bin/ -B/home/seurer/gcc/git/install/gcc-test/powerpc64le-unknown-linux-gnu/lib/ -isystem /home/seurer/gcc/git/install/gcc-test/powerpc64le-unknown-linux-gnu/include -isystem /home/seurer/gcc/git/install/gcc-test/powerpc64le-unknown-linux-gnu/sys-include    -c -g -O2  -fPIC  -W -Wall -gnatpg -nostdinc   a-nallfl.ads -o a-nallfl.o
a-nallfl.ads:48:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:48:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:48:13: warning: profile of "Sin" doesn't match the builtin it binds
a-nallfl.ads:51:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:51:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:51:13: warning: profile of "Cos" doesn't match the builtin it binds
a-nallfl.ads:54:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:54:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:54:13: warning: profile of "Tan" doesn't match the builtin it binds
a-nallfl.ads:57:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:57:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:57:13: warning: profile of "Exp" doesn't match the builtin it binds
a-nallfl.ads:60:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:60:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:60:13: warning: profile of "Sqrt" doesn't match the builtin it binds
a-nallfl.ads:63:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:63:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:63:13: warning: profile of "Log" doesn't match the builtin it binds
a-nallfl.ads:66:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:66:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:66:13: warning: profile of "Acos" doesn't match the builtin it binds
a-nallfl.ads:69:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:69:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:69:13: warning: profile of "Asin" doesn't match the builtin it binds
a-nallfl.ads:72:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:72:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:72:13: warning: profile of "Atan" doesn't match the builtin it binds
a-nallfl.ads:75:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:75:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:75:13: warning: profile of "Sinh" doesn't match the builtin it binds
a-nallfl.ads:78:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:78:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:78:13: warning: profile of "Cosh" doesn't match the builtin it binds
a-nallfl.ads:81:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:81:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:81:13: warning: profile of "Tanh" doesn't match the builtin it binds
a-nallfl.ads:84:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:84:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:84:13: warning: profile of "Pow" doesn't match the builtin it binds
../gcc-interface/Makefile:302: recipe for target 'a-nallfl.o' failed
make[7]: *** [a-nallfl.o] Error 1

commit 1e70b1a358b6ce3b894f284d88fbb90518d45cc0 (HEAD)
Author: Alexandre Oliva <oliva@adacore.com>
Date:   Sun Oct 18 17:19:53 2020 -0300
Comment 2 Stefan Schulze Frielinghaus 2020-10-21 08:48:27 UTC
For the sake of completeness, this also fails on S/390.
Comment 3 Eric Botcazou 2020-10-22 18:15:25 UTC
This occurs on Aarch64 and SPARC as well.
Comment 4 Alexandre Oliva 2020-10-23 06:14:21 UTC
Mine
Comment 5 Alexandre Oliva 2020-10-23 06:21:34 UTC
Created attachment 49427 [details]
patch that should fix the remaining s390 problem

So, the issue is already fixed on aarch64-*, powerpc*-*, and sparc*-sun-solaris*.

Stefan, could you possibly confirm that this patch fixes it on s390?

I've put in the fix for sparc*-linux-gnu as well, for good measure.
Comment 6 GCC Commits 2020-10-23 09:39:25 UTC
The master branch has been updated by Alexandre Oliva <aoliva@gcc.gnu.org>:

https://gcc.gnu.org/g:9e3b9ddb996f18d541a3e03611d46c3a6c0c0b5f

commit r11-4314-g9e3b9ddb996f18d541a3e03611d46c3a6c0c0b5f
Author: Alexandre Oliva <oliva@adacore.com>
Date:   Fri Oct 23 06:37:07 2020 -0300

    more wraplf for aux long long float: s390, sparc and powerpc
    
    The wraplf version of Ada.Numerics.Aux_Long_Long_Float is needed on
    s390* as well.  Also add it to sparc*-linux-gnu and powerpc-darwin,
    that were missed when adding it for sparc and ppc targets.
    
    
    for  gcc/ada/ChangeLog
    
            PR ada/97504
            * Makefile.rtl (LIBGNAT_TARGET_PAIRS): Select wraplf version
            of Aux_Long_Long_Float for s390 and remaining sparc and
            powerpc targets.
Comment 7 Alexandre Oliva 2020-10-23 09:43:03 UTC
Fixed
Comment 8 Stefan Schulze Frielinghaus 2020-10-23 09:50:40 UTC
(In reply to Alexandre Oliva from comment #5)
> Created attachment 49427 [details]
> patch that should fix the remaining s390 problem
> 
> So, the issue is already fixed on aarch64-*, powerpc*-*, and
> sparc*-sun-solaris*.
> 
> Stefan, could you possibly confirm that this patch fixes it on s390?

Build is successful on s390. Testsuite still running.
Comment 9 Andreas Schwab 2020-10-24 14:26:51 UTC
Still broken.

/daten/riscv64/gcc/gcc-20201024/Build/./gcc/xgcc -B/daten/riscv64/gcc/gcc-20201024/Build/./gcc/ -B/usr/riscv64-suse-linux/bin/ -B/usr/riscv64-suse-linux/lib/ -isystem /usr/riscv64-suse-linux/include -isystem /usr/riscv64-suse-linux/sys-include    -c -g -O2  -fPIC  -W -Wall -gnatpg -nostdinc   a-nallfl.ads -o a-nallfl.o
a-nallfl.ads:48:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:48:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:48:13: warning: profile of "Sin" doesn't match the builtin it binds
Comment 10 seurer 2020-10-24 14:56:16 UTC
I tried it on powerpc64 yesterday and it built on the systems where it had failed previously although there were some new Ada test case failures.  I'll give it another run to see if it is still OK or not.
Comment 11 Martin Liška 2020-10-27 10:21:22 UTC
It still fails for me with g:2118438f49f0c193abe3fa3def350a8129045746
CommitDate: Mon Oct 26 19:05:53 2020 +0100

s390x:


[11466s] +===========================GNAT BUG DETECTED==============================+
[11466s] | 11.0.0 20201026 (experimental) [revision 2118438f49f0c193abe3fa3def350a8129045746] (s390x-suse-linux) |
[11466s] | Storage_Error stack overflow or erroneous memory access                  |
[11466s] | Error detected at a-btgbso.adb:68:25                                     |
[11466s] | Please submit a bug report; see https://gcc.gnu.org/bugs/ .              |
[11466s] | Use a subject line meaningful to you and us to track the bug.            |
[11466s] | Include the entire contents of this bug box in the report.               |
[11466s] | Include the exact command that you entered.                              |
[11466s] | Also include sources listed below.                                       |
[11466s] +==========================================================================+

riscv64:

[ 8509s] /home/abuild/rpmbuild/BUILD/gcc-11.0.0+git180542/obj-riscv64-suse-linux/./gcc/xgcc -B/home/abuild/rpmbuild/BUILD/gcc-11.0.0+git180542/obj-riscv64-suse-linux/./gcc/ -B/usr/riscv64-suse-linux/bin/ -B/usr/riscv64-suse-linux/lib/ -isystem /usr/riscv64-suse-linux/include -isystem /usr/riscv64-suse-linux/sys-include    -c -g -O2  -fPIC  -W -Wall -gnatpg -nostdinc   a-nuaufl.ads -o a-nuaufl.o
[ 8509s] a-nallfl.ads:48:13: warning: intrinsic binding type mismatch on return value
[ 8509s] a-nallfl.ads:48:13: warning: intrinsic binding type mismatch on argument 1
[ 8509s] a-nallfl.ads:48:13: warning: profile of "Sin" doesn't match the builtin it binds
[ 8509s] a-nallfl.ads:51:13: warning: intrinsic binding type mismatch on return value
[ 8509s] a-nallfl.ads:51:13: warning: intrinsic binding type mismatch on argument 1
[ 8509s] a-nallfl.ads:51:13: warning: profile of "Cos" doesn't match the builtin it binds
[ 8509s] a-nallfl.ads:54:13: warning: intrinsic binding type mismatch on return value
[ 8509s] a-nallfl.ads:54:13: warning: intrinsic binding type mismatch on argument 1
[ 8509s] a-nallfl.ads:54:13: warning: profile of "Tan" doesn't match the builtin it binds
[ 8509s] a-nallfl.ads:57:13: warning: intrinsic binding type mismatch on return value
[ 8509s] a-nallfl.ads:57:13: warning: intrinsic binding type mismatch on argument 1
[ 8509s] a-nallfl.ads:57:13: warning: profile of "Exp" doesn't match the builtin it binds
[ 8509s] a-nallfl.ads:60:13: warning: intrinsic binding type mismatch on return value
[ 8509s] a-nallfl.ads:60:13: warning: intrinsic binding type mismatch on argument 1
[ 8509s] a-nallfl.ads:60:13: warning: profile of "Sqrt" doesn't match the builtin it binds
[ 8509s] a-nallfl.ads:63:13: warning: intrinsic binding type mismatch on return value
[ 8509s] a-nallfl.ads:63:13: warning: intrinsic binding type mismatch on argument 1
[ 8509s] a-nallfl.ads:63:13: warning: profile of "Log" doesn't match the builtin it binds
[ 8509s] a-nallfl.ads:66:13: warning: intrinsic binding type mismatch on return value
[ 8509s] a-nallfl.ads:66:13: warning: intrinsic binding type mismatch on argument 1
[ 8509s] a-nallfl.ads:66:13: warning: profile of "Acos" doesn't match the builtin it binds
[ 8509s] a-nallfl.ads:69:13: warning: intrinsic binding type mismatch on return value
[ 8509s] a-nallfl.ads:69:13: warning: intrinsic binding type mismatch on argument 1
[ 8509s] a-nallfl.ads:69:13: warning: profile of "Asin" doesn't match the builtin it binds
[ 8509s] a-nallfl.ads:72:13: warning: intrinsic binding type mismatch on return value
[ 8509s] a-nallfl.ads:72:13: warning: intrinsic binding type mismatch on argument 1
[ 8509s] a-nallfl.ads:72:13: warning: profile of "Atan" doesn't match the builtin it binds
[ 8509s] a-nallfl.ads:75:13: warning: intrinsic binding type mismatch on return value
[ 8509s] a-nallfl.ads:75:13: warning: intrinsic binding type mismatch on argument 1
[ 8509s] a-nallfl.ads:75:13: warning: profile of "Sinh" doesn't match the builtin it binds
[ 8509s] a-nallfl.ads:78:13: warning: intrinsic binding type mismatch on return value
[ 8509s] a-nallfl.ads:78:13: warning: intrinsic binding type mismatch on argument 1
[ 8509s] a-nallfl.ads:78:13: warning: profile of "Cosh" doesn't match the builtin it binds
[ 8509s] a-nallfl.ads:81:13: warning: intrinsic binding type mismatch on return value
[ 8509s] a-nallfl.ads:81:13: warning: intrinsic binding type mismatch on argument 1
[ 8509s] a-nallfl.ads:81:13: warning: profile of "Tanh" doesn't match the builtin it binds
[ 8509s] a-nallfl.ads:84:13: warning: intrinsic binding type mismatch on return value
[ 8509s] a-nallfl.ads:84:13: warning: intrinsic binding type mismatch on argument 1
[ 8509s] a-nallfl.ads:84:13: warning: profile of "Pow" doesn't match the builtin it binds
[ 8509s] make[7]: *** [../gcc-interface/Makefile:302: a-nallfl.o] Error 1

ppc:

[ 5103s] /bin/sh ./libtool  --tag=CC   --mode=compile /home/abuild/rpmbuild/BUILD/gcc-11.0.0+git180542/obj-powerpc64-suse-linux/./gcc/xgcc -B/home/abuild/rpmbuild/BUILD/gcc-11.0.0+git180542/obj-powerpc64-suse-linux/./gcc/ -B/usr/powerpc64-suse-linux/bin/ -B/usr/powerpc64-suse-linux/lib/ -isystem /usr/powerpc64-suse-linux/include -isystem /usr/powerpc64-suse-linux/sys-include    -DHAVE_CONFIG_H -I../../../../libatomic/config/powerpc -I../../../../libatomic/config/posix -I../../../../libatomic -I.    -Wall -Werror   -pthread -O2 -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -g -U_FORTIFY_SOURCE  -m64 -MT gcas.lo -MD -MP -MF .deps/gcas.Tpo -c -o gcas.lo ../../../../libatomic/gcas.c
[ 5103s] i-cexten.ads:278:28: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:281:28: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:284:28: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:287:28: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:290:28: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:293:28: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:296:28: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:299:28: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:302:28: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:305:28: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:308:28: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:311:28: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:314:28: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:317:28: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:320:28: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:323:28: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:326:28: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:329:28: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:332:28: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:335:28: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:338:28: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:341:28: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:344:28: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:347:28: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:350:28: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:353:28: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:356:28: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:359:28: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:362:28: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:365:28: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:368:28: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:371:28: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:374:28: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:377:28: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:380:28: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:383:29: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:386:29: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:389:29: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:392:29: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:395:29: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:398:29: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:401:29: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:404:29: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:407:29: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:410:29: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:413:29: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:416:29: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:419:29: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:422:29: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:425:29: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:428:29: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:431:29: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:434:29: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:437:29: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:440:29: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:443:29: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:446:29: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:449:29: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:452:29: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:455:29: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:458:29: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:461:29: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:464:29: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:467:29: modulus exceeds limit (2 ** 64)
[ 5103s] i-cexten.ads:659:22: integer type definition bounds out of range
[ 5103s] i-cexten.ads:662:22: integer type definition bounds out of range
[ 5103s] i-cexten.ads:665:22: integer type definition bounds out of range
[ 5103s] i-cexten.ads:668:22: integer type definition bounds out of range
[ 5103s] i-cexten.ads:671:22: integer type definition bounds out of range
[ 5103s] i-cexten.ads:674:22: integer type definition bounds out of range
[ 5103s] i-cexten.ads:677:22: integer type definition bounds out of range
[ 5103s] i-cexten.ads:680:22: integer type definition bounds out of range
[ 5103s] i-cexten.ads:683:22: integer type definition bounds out of range
[ 5103s] i-cexten.ads:686:22: integer type definition bounds out of range
[ 5103s] i-cexten.ads:689:22: integer type definition bounds out of range
[ 5103s] i-cexten.ads:692:22: integer type definition bounds out of range
[ 5103s] i-cexten.ads:695:22: integer type definition bounds out of range
[ 5103s] i-cexten.ads:698:22: integer type definition bounds out of range
[ 5103s] i-cexten.ads:701:22: integer type definition bounds out of range
[ 5103s] i-cexten.ads:704:22: integer type definition bounds out of range
[ 5103s] i-cexten.ads:707:22: integer type definition bounds out of range
[ 5103s] i-cexten.ads:710:22: integer type definition bounds out of range
[ 5103s] i-cexten.ads:713:22: integer type definition bounds out of range
[ 5103s] i-cexten.ads:716:22: integer type definition bounds out of range
[ 5103s] i-cexten.ads:719:22: integer type definition bounds out of range
[ 5103s] i-cexten.ads:722:22: integer type definition bounds out of range
[ 5103s] i-cexten.ads:725:22: integer type definition bounds out of range
[ 5103s] i-cexten.ads:728:22: integer type definition bounds out of range
[ 5103s] i-cexten.ads:731:22: integer type definition bounds out of range
[ 5103s] i-cexten.ads:734:22: integer type definition bounds out of range
[ 5103s] i-cexten.ads:737:22: integer type definition bounds out of range
[ 5103s] i-cexten.ads:740:22: integer type definition bounds out of range
[ 5103s] i-cexten.ads:743:22: integer type definition bounds out of range
[ 5103s] i-cexten.ads:746:22: integer type definition bounds out of range
[ 5103s] i-cexten.ads:749:22: integer type definition bounds out of range
[ 5103s] i-cexten.ads:752:22: integer type definition bounds out of range
[ 5103s] i-cexten.ads:755:22: integer type definition bounds out of range
[ 5103s] i-cexten.ads:758:22: integer type definition bounds out of range
[ 5103s] i-cexten.ads:761:22: integer type definition bounds out of range
[ 5103s] i-cexten.ads:764:23: integer type definition bounds out of range
[ 5103s] i-cexten.ads:767:23: integer type definition bounds out of range
[ 5103s] i-cexten.ads:770:23: integer type definition bounds out of range
[ 5103s] i-cexten.ads:773:23: integer type definition bounds out of range
[ 5103s] i-cexten.ads:776:23: integer type definition bounds out of range
[ 5103s] i-cexten.ads:779:23: integer type definition bounds out of range
[ 5103s] i-cexten.ads:782:23: integer type definition bounds out of range
[ 5103s] i-cexten.ads:785:23: integer type definition bounds out of range
[ 5103s] i-cexten.ads:788:23: integer type definition bounds out of range
[ 5103s] i-cexten.ads:791:23: integer type definition bounds out of range
[ 5103s] i-cexten.ads:794:23: integer type definition bounds out of range
[ 5103s] i-cexten.ads:797:23: integer type definition bounds out of range
[ 5103s] i-cexten.ads:800:23: integer type definition bounds out of range
[ 5103s] i-cexten.ads:803:23: integer type definition bounds out of range
[ 5103s] i-cexten.ads:806:23: integer type definition bounds out of range
[ 5103s] i-cexten.ads:809:23: integer type definition bounds out of range
[ 5103s] i-cexten.ads:812:23: integer type definition bounds out of range
[ 5103s] i-cexten.ads:815:23: integer type definition bounds out of range
[ 5103s] i-cexten.ads:818:23: integer type definition bounds out of range
[ 5103s] i-cexten.ads:821:23: integer type definition bounds out of range
[ 5103s] i-cexten.ads:824:23: integer type definition bounds out of range
[ 5103s] i-cexten.ads:827:23: integer type definition bounds out of range
[ 5103s] i-cexten.ads:830:23: integer type definition bounds out of range
[ 5103s] i-cexten.ads:833:23: integer type definition bounds out of range
[ 5103s] i-cexten.ads:836:23: integer type definition bounds out of range
[ 5103s] i-cexten.ads:839:23: integer type definition bounds out of range
[ 5103s] i-cexten.ads:842:23: integer type definition bounds out of range
[ 5103s] i-cexten.ads:845:23: integer type definition bounds out of range
[ 5103s] i-cexten.ads:848:23: integer type definition bounds out of range
[ 5103s] make[7]: *** [../gcc-interface/Makefile:299: g-calend.o] Error 1
[ 5103s] make[7]: *** Waiting for unfinished jobs....
Comment 12 Eric Botcazou 2020-10-27 10:33:58 UTC
> It still fails for me with g:2118438f49f0c193abe3fa3def350a8129045746
> Commit Date: Mon Oct 26 19:05:53 2020 +0100

The PowerPC64 issue is different, let me have a quick look at it.
Comment 13 Eric Botcazou 2020-10-27 12:31:51 UTC
This builds for me on powerpc64-linux, so I gather it's on powerpc64le-linux?
Comment 14 seurer 2020-10-27 12:35:25 UTC
Builds fine for me on powerpc64 LE and BE.
Comment 15 Martin Liška 2020-10-27 14:51:59 UTC
Created attachment 49451 [details]
Build log

It's actually a partial cross compiler (-m32), please take a look at the build log.
Comment 16 Eric Botcazou 2020-10-27 17:46:44 UTC
> It's actually a partial cross compiler (-m32), please take a look at the
> build log.

What's this beast exactly?  I'm afraid the build log is useless here, it would be better to post the configure line and the CC or CXX variables if any.
Comment 17 Alexandre Oliva 2020-10-28 03:23:34 UTC
Created attachment 49456 [details]
fix for riscv targets

> Still broken

Sorry, it's the first I hear of this problem on riscv.
The fix is target-specific.  Here's one for riscv*.
Comment 18 GCC Commits 2020-10-28 10:56:32 UTC
The master branch has been updated by Alexandre Oliva <aoliva@gcc.gnu.org>:

https://gcc.gnu.org/g:31643fa3e994749bd2da7b35846f1958f8823b8d

commit r11-4472-g31643fa3e994749bd2da7b35846f1958f8823b8d
Author: Alexandre Oliva <oliva@adacore.com>
Date:   Wed Oct 28 07:54:33 2020 -0300

    [PR97504] riscv needs wraplf for aux_long_long_float too
    
    riscv is another platform on which GNAT maps Long_Long_Float to double
    rather than long double, so we have to explicitly avoid the long
    double intrinsics.
    
    
    for  gcc/ada/ChangeLog
    
            PR ada/97504
            * Makefile.rtl (LIBGNAT_TARGET_PAIRS> <riscv*-*-*>: Use wraplf
            version of Aux_Long_Long_Float.
Comment 19 Martin Liška 2020-10-29 09:37:17 UTC
(In reply to Eric Botcazou from comment #16)
> > It's actually a partial cross compiler (-m32), please take a look at the
> > build log.
> 
> What's this beast exactly?  I'm afraid the build log is useless here, it
> would be better to post the configure line and the CC or CXX variables if
> any.

It's a build log from OpenSUSE OBS, so it contains all that you requested.
Comment 20 Martin Liška 2020-10-29 09:37:35 UTC
Created attachment 49465 [details]
Build log for s390x
Comment 21 Martin Liška 2020-10-29 09:37:49 UTC
Created attachment 49466 [details]
Build log for ppc
Comment 22 Martin Liška 2020-10-29 09:38:11 UTC
(In reply to Alexandre Oliva from comment #17)
> Created attachment 49456 [details]
> fix for riscv targets
> 
> > Still broken
> 
> Sorry, it's the first I hear of this problem on riscv.
> The fix is target-specific.  Here's one for riscv*.

I can confirm riscv* is fixed now. Thanks.
Comment 23 Eric Botcazou 2020-10-29 11:45:51 UTC
> It's a build log from OpenSUSE OBS, so it contains all that you requested.

AFAICS this log is for a native compiler:

[  131s] checking build system type... powerpc64-suse-linux-gnu
[  131s] checking host system type... powerpc64-suse-linux-gnu
[  131s] checking target system type... powerpc64-suse-linux-gnu

but I gather that --with-cpu=default32 somehow forces it to default to 32-bit, making it really powerpc-suse-linux-gnu under the hood?  Again this Debian-like abomination if you ask me, which probably fools the logic in Makefile.rtl.
Comment 24 Martin Liška 2020-10-29 18:26:06 UTC
(In reply to Eric Botcazou from comment #23)
> > It's a build log from OpenSUSE OBS, so it contains all that you requested.
> 
> AFAICS this log is for a native compiler:
> 
> [  131s] checking build system type... powerpc64-suse-linux-gnu
> [  131s] checking host system type... powerpc64-suse-linux-gnu
> [  131s] checking target system type... powerpc64-suse-linux-gnu
> 
> but I gather that --with-cpu=default32 somehow forces it to default to
> 32-bit, making it really powerpc-suse-linux-gnu under the hood?  Again this
> Debian-like abomination if you ask me, which probably fools the logic in
> Makefile.rtl.

@Richi, Michael: Can you please comment about what we precisely build?
Comment 25 Richard Biener 2020-10-30 08:42:38 UTC
(In reply to Eric Botcazou from comment #23)
> > It's a build log from OpenSUSE OBS, so it contains all that you requested.
> 
> AFAICS this log is for a native compiler:
> 
> [  131s] checking build system type... powerpc64-suse-linux-gnu
> [  131s] checking host system type... powerpc64-suse-linux-gnu
> [  131s] checking target system type... powerpc64-suse-linux-gnu
> 
> but I gather that --with-cpu=default32 somehow forces it to default to
> 32-bit, making it really powerpc-suse-linux-gnu under the hood?  Again this
> Debian-like abomination if you ask me, which probably fools the logic in
> Makefile.rtl.

Yes, we're building a 64bit compiler defaulting to -m32.  Our
"ppc" target was never a true 32bit system but a 64bit system with a
32bit "default" runtime and 64bit multilibs, so most binaries in the
system were 32bit binaries but select ones could be 64bit.

Note the GCC binaries themselves become 32bit binaries as well (the way
we use it the host compiler is the very same, powerpc64-linux compiler
defaulting to 32bit code generation).

For "ppc64" this infrastructure is also used to build 32bit runtimes
for packages that do not multilib themselves (so we cannot really abandone
it completely).
Comment 26 Eric Botcazou 2020-10-30 10:10:11 UTC
Created attachment 49471 [details]
Tentative fix for the SuSE PowerPC compiler

Martin, can you give it a try when you get a chance?
Comment 27 Eric Botcazou 2020-10-30 13:48:12 UTC
Created attachment 49472 [details]
Slightly better tentative fix
Comment 28 Martin Liška 2020-11-05 16:24:50 UTC
(In reply to Eric Botcazou from comment #27)
> Created attachment 49472 [details]
> Slightly better tentative fix

Unfortunately, it still fails.
Comment 29 Martin Liška 2020-11-05 16:25:13 UTC
Created attachment 49508 [details]
ppc_log with patch
Comment 30 Eric Botcazou 2020-11-05 16:57:57 UTC
Created attachment 49510 [details]
Tentative fix #2

With the missing ampersand.
Comment 31 Eric Botcazou 2020-11-05 16:58:40 UTC
> Unfortunately, it still fails.

OK, can you try the new one?
Comment 32 Martin Liška 2020-11-06 10:01:31 UTC
(In reply to Eric Botcazou from comment #31)
> > Unfortunately, it still fails.
> 
> OK, can you try the new one?

This one works, thanks for it.
Comment 33 John David Anglin 2020-11-19 14:57:35 UTC
Also affects hppa*-*-hpux11*.
Comment 34 John David Anglin 2020-11-20 14:01:43 UTC
Still fails on hppa2.0-hp-hpux11.11:

/test/gnu/gcc/objdir/./gcc/xgcc -B/test/gnu/gcc/objdir/./gcc/ -B/opt/gnu/gcc/gcc
-11/hppa2.0w-hp-hpux11.11/bin/ -B/opt/gnu/gcc/gcc-11/hppa2.0w-hp-hpux11.11/lib/
-isystem /opt/gnu/gcc/gcc-11/hppa2.0w-hp-hpux11.11/include -isystem /opt/gnu/gcc
/gcc-11/hppa2.0w-hp-hpux11.11/sys-include   -fchecking=1 -c -g -O2  -fPIC  -W -W
all -gnatpg -nostdinc   a-nallfl.ads -o a-nallfl.o
a-nallfl.ads:48:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:48:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:48:13: warning: profile of "Sin" doesn't match the builtin it binds
a-nallfl.ads:51:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:51:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:51:13: warning: profile of "Cos" doesn't match the builtin it binds
a-nallfl.ads:54:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:54:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:54:13: warning: profile of "Tan" doesn't match the builtin it binds
a-nallfl.ads:57:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:57:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:57:13: warning: profile of "Exp" doesn't match the builtin it binds
a-nallfl.ads:60:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:60:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:60:13: warning: profile of "Sqrt" doesn't match the builtin it binds
a-nallfl.ads:63:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:63:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:63:13: warning: profile of "Log" doesn't match the builtin it binds
a-nallfl.ads:66:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:66:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:66:13: warning: profile of "Acos" doesn't match the builtin it binds
a-nallfl.ads:69:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:69:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:69:13: warning: profile of "Asin" doesn't match the builtin it binds
a-nallfl.ads:72:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:72:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:72:13: warning: profile of "Atan" doesn't match the builtin it binds
a-nallfl.ads:75:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:75:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:75:13: warning: profile of "Sinh" doesn't match the builtin it binds
a-nallfl.ads:78:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:78:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:78:13: warning: profile of "Cosh" doesn't match the builtin it binds
a-nallfl.ads:81:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:81:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:81:13: warning: profile of "Tanh" doesn't match the builtin it binds
a-nallfl.ads:84:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:84:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:84:13: warning: profile of "Pow" doesn't match the builtin it binds
make[7]: *** [../gcc-interface/Makefile:302: a-nallfl.o] Error 1
Comment 35 Martin Liška 2020-11-27 12:53:26 UTC
(In reply to Martin Liška from comment #20)
> Created attachment 49465 [details]
> Build log for s390x

Hello.

The s390x build failure is still preset. Can you please take a look?
Comment 36 Eric Botcazou 2020-11-27 13:20:33 UTC
> The s390x build failure is still preset. Can you please take a look?

This one looks unrelated to r11-4029 or other Ada changes.  Do you know which revision has introduced it?
Comment 37 John David Anglin 2020-11-27 16:20:25 UTC
Created attachment 49638 [details]
Fix for hppa-hpux
Comment 38 GCC Commits 2020-11-29 15:58:54 UTC
The master branch has been updated by John David Anglin <danglin@gcc.gnu.org>:

https://gcc.gnu.org/g:4612c4d09d7d18a6c6345b57a9bb5e249b182fa4

commit r11-5519-g4612c4d09d7d18a6c6345b57a9bb5e249b182fa4
Author: John David Anglin <danglin@gcc.gnu.org>
Date:   Sun Nov 29 15:57:40 2020 +0000

    Fix PR ada/97504 on hppa*-*-hpux*.
    
    2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
    
    gcc/ada/
            PR ada/97504
            * Makefile.rtl (LIBGNAT_TARGET_PAIRS) <hppa*-*-hpux*>: Use wraplf
            version of Aux_Long_Long_Float.
Comment 39 Eric Botcazou 2020-12-03 18:53:29 UTC
*** Bug 98127 has been marked as a duplicate of this bug. ***
Comment 40 Eric Botcazou 2020-12-04 08:16:32 UTC
*** Bug 98134 has been marked as a duplicate of this bug. ***
Comment 41 GCC Commits 2020-12-07 08:41:55 UTC
The master branch has been updated by Matthias Klose <doko@gcc.gnu.org>:

https://gcc.gnu.org/g:ad9c120a019ba4222bb062017da2db9711652dc3

commit r11-5812-gad9c120a019ba4222bb062017da2db9711652dc3
Author: Matthias Klose <doko@ubuntu.com>
Date:   Mon Dec 7 09:40:53 2020 +0100

    Fix PR ada/97504 for mips*-linux
    
    2020-12-07  Matthias Klose  <doko@ubuntu.com>
    
            PR ada/97504
            * Makefile.rtl (LIBGNAT_TARGET_PAIRS) <mips*-*-linux*>: Use wraplf
            version of Aux_Long_Long_Float.
Comment 42 John Paul Adrian Glaubitz 2020-12-17 08:24:18 UTC
Ada bootstrap on m68k is broken as well.

Full buildlog in: https://buildd.debian.org/status/fetch.php?pkg=gcc-snapshot&arch=m68k&ver=1%3A20201214-1&stamp=1608126919&raw=0
Comment 43 Richard Biener 2021-01-14 09:28:36 UTC
What's the state here - which targets are still affected?
Comment 44 Martin Liška 2021-01-14 09:30:41 UTC
I can confirm that s390x target is fine now.
Comment 45 Matthias Klose 2021-01-14 09:45:30 UTC
I think this one can be closed. There's still PR98228 for s390x.
Comment 46 Martin Liška 2021-01-14 10:10:14 UTC
Closing then.
Comment 47 GCC Commits 2022-02-13 22:58:20 UTC
The master branch has been updated by Maciej W. Rozycki <macro@gcc.gnu.org>:

https://gcc.gnu.org/g:4493c5a2030d9191761d159067815b5f0325a9d2

commit r12-7220-g4493c5a2030d9191761d159067815b5f0325a9d2
Author: Maciej W. Rozycki <macro@orcam.me.uk>
Date:   Sun Feb 13 22:57:21 2022 +0000

    [Ada] PR ada/98724: Alpha/Linux/libada: Use wraplf for Aux_Long_Long_Float
    
    Use the Long Long Float wrapper in terms of Long Float for Alpha/Linux
    targets as well, fixing gnatlib compilation errors:
    
    a-nallfl.ads:48:13: warning: intrinsic binding type mismatch on result [enabledby default]
    a-nallfl.ads:48:13: warning: intrinsic binding type mismatch on parameter 1 [enabled by default]
    a-nallfl.ads:48:13: warning: profile of "Sin" doesn't match the builtin it binds [enabled by default]
    
    etc. with the `alpha-linux-gnu' target.
    
            gcc/ada/
            PR ada/98724
            PR ada/97504
            * Makefile.rtl (LIBGNAT_TARGET_PAIRS) <alpha*-*-linux*>: Use
            wraplf version of Aux_Long_Long_Float.
Comment 48 GCC Commits 2022-02-13 23:01:00 UTC
The releases/gcc-11 branch has been updated by Maciej W. Rozycki <macro@gcc.gnu.org>:

https://gcc.gnu.org/g:72b0526bd4582338228ab81088b73dbf1ca565ee

commit r11-9565-g72b0526bd4582338228ab81088b73dbf1ca565ee
Author: Maciej W. Rozycki <macro@orcam.me.uk>
Date:   Sun Feb 13 22:57:21 2022 +0000

    [Ada] PR ada/98724: Alpha/Linux/libada: Use wraplf for Aux_Long_Long_Float
    
    Use the Long Long Float wrapper in terms of Long Float for Alpha/Linux
    targets as well, fixing gnatlib compilation errors:
    
    a-nallfl.ads:48:13: warning: intrinsic binding type mismatch on result [enabledby default]
    a-nallfl.ads:48:13: warning: intrinsic binding type mismatch on parameter 1 [enabled by default]
    a-nallfl.ads:48:13: warning: profile of "Sin" doesn't match the builtin it binds [enabled by default]
    
    etc. with the `alpha-linux-gnu' target.
    
            gcc/ada/
            PR ada/98724
            PR ada/97504
            * Makefile.rtl (LIBGNAT_TARGET_PAIRS) <alpha*-*-linux*>: Use
            wraplf version of Aux_Long_Long_Float.
    
    (cherry picked from commit 4493c5a2030d9191761d159067815b5f0325a9d2)
Comment 49 Maciej W. Rozycki 2022-02-13 23:03:41 UTC
*** Bug 98724 has been marked as a duplicate of this bug. ***