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