Bug 88191 - [9 Regression] ada bootstrap failure on alpha-linux-gnu ("SIGSYS" not declared in "Linux")
Summary: [9 Regression] ada bootstrap failure on alpha-linux-gnu ("SIGSYS" not declare...
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: ada (show other bugs)
Version: 9.0
: P3 normal
Target Milestone: 9.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-25 15:50 UTC by Matthias Klose
Modified: 2018-11-26 13:35 UTC (History)
2 users (show)

See Also:
Host:
Target: alpha-linux-gnu
Build:
Known to work: 8.2.1
Known to fail: 9.0
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Klose 2018-11-25 15:50:45 UTC
seen with trunk 20181124, building a cross compiler targeting alpha-linux-gnu:

s-osinte.ads:120:41: "SIGSYS" not declared in "Linux"
make[9]: *** [../gcc-interface/Makefile:299: a-dispat.o] Error 1
make[9]: Leaving directory '/<<PKGBUILDDIR>>/gcc/build/gcc/ada/rts'
make[8]: *** [gcc-interface/Makefile:669: gnatlib] Error 2
Comment 1 Matthias Klose 2018-11-26 13:23:38 UTC
that fixes the build, taken from the sparc64 file.

--- gcc/ada/libgnarl/s-linux__alpha.ads	(revision 266457)
+++ gcc/ada/libgnarl/s-linux__alpha.ads	(working copy)
@@ -87,6 +87,7 @@
    SIGKILL    : constant := 9; --  kill (cannot be caught or ignored)
    SIGBUS     : constant := 10; --  bus error
    SIGSEGV    : constant := 11; --  segmentation violation
+   SIGSYS     : constant := 12; --  bad system call
    SIGPIPE    : constant := 13; --  write on a pipe with no one to read it
    SIGALRM    : constant := 14; --  alarm clock
    SIGTERM    : constant := 15; --  software termination signal from kill


The build continues, but then fails with:

/home/packages/cross/9/p/gcc-cross-ports/gcc/build/./gcc/xgcc -B/home/packages/cross/9/p/gcc-cross-ports/gcc/build/./gcc/ -
B/usr/alpha-linux-gnu/bin/ -B/usr/alpha-linux-gnu/lib/ -isystem /usr/alpha-linux-gnu/include -isystem /usr/alpha-linux-gnu/
sys-include -isystem /home/packages/cross/9/p/gcc-cross-ports/gcc/build/sys-include    -c -g -O2   -W -Wall -gnatpg -nostdi
nc  -gnatn  s-secsta.adb -o s-secsta.o

raised STORAGE_ERROR : stack overflow or erroneous memory access
make[8]: *** [../gcc-interface/Makefile:299: s-secsta.o] Error 1
Comment 2 Arnaud Charlet 2018-11-26 13:27:20 UTC
The patch for s-linux__alpha.ads is preapproved.
The Storage_Error is unrelated to this PR, so I'd suggest opening another one after the patch is committed.
Comment 3 Matthias Klose 2018-11-26 13:33:24 UTC
Author: doko
Date: Mon Nov 26 13:30:50 2018
New Revision: 266459

URL: https://gcc.gnu.org/viewcvs?rev=266459&root=gcc&view=rev
Log:
2018-11-26  Matthias Klose <doko@ubuntu.com>

        PR ada/88191
        * libgnarl/s-linux__alpha.ads: Define SIGSYS.

Modified:
    trunk/gcc/ada/ChangeLog
    trunk/gcc/ada/libgnarl/s-linux__alpha.ads
Comment 4 Matthias Klose 2018-11-26 13:35:53 UTC
fixed.