I hope bumping this is okay. If it can be forwarded to anyone who's worked on the Ada frontend I'd really appreciate it. On Mon, Aug 5, 2024, 10:04 AM Ahmad Bamba <ahmad.eb.bamba@xxxxxxxxx> wrote: > Hello gcc-help, > > I am trying to build a C, C++, and Ada cross compiler off of the > release/gcc-14 branch, following this page's instructions: > https://gcc.gnu.org/install/ > It seems to compile the C and C++ parts fine, but fails when building the > first Ada source files. The last output before the error is: > > gcc -c -g -O2 -gnatpg -W -Wall -fno-PIE -nostdinc -I- -I. > -Iada/generated -Iada -I/home/ablinux/gcc/gcc/ada -Iada/libgnat > -I/home/ablinux/gcc/gcc/ada/libgnat -Iada/gcc-interface > -I/home/ablinux/gcc/gcc/ada/gcc-interface > /home/ablinux/gcc/gcc/ada/spark_xrefs.adb -o ada/spark_xrefs.o > s-stoele.ads:87:13: unrecognized intrinsic subprogram > make[2]: *** [/home/ablinux/gcc/gcc/ada/gcc-interface/Make-lang.in:166: > ada/spark_xrefs.o] Error 1 > make[2]: Leaving directory '/home/ablinux/objdir/gcc' > make[1]: *** [Makefile:4704: all-gcc] Error 2 > make[1]: Leaving directory '/home/ablinux/objdir' > make: *** [Makefile:1064: all] Error 2 > > It seems like, somehow, during configuration, the list of implemented > intrinsic subprograms don't match? I unfortunately haven't seen this error > anywhere else and I'm not sure what I could do to get the available > intrinsic subprograms to generate properly if that is indeed the issue. And > unfortunately, it doesn't say which intrinsic subprogram is the issue. > My configuration command was: > > bash ~/gcc/configure --target=arm-eabi --prefix=/opt/gcc-arm-toolchain > --enable-languages=ada,c,c++ --enable-libada > > While arm gnat cross compilers are available to download, arm may not be > the only platform I cross-compile for. I have other reasons to want to > build from source as well. > My objdir (~/objdir) and sourcedir (~/gcc) are separate, unnested > directories as recommended. > My system details are: > > ablinux@DESKTOP-77L9STO:~/objdir$ cat /etc/*-release > DISTRIB_ID=Ubuntu > DISTRIB_RELEASE=22.04 > DISTRIB_CODENAME=jammy > DISTRIB_DESCRIPTION="Ubuntu 22.04.3 LTS" > PRETTY_NAME="Ubuntu 22.04.3 LTS" > NAME="Ubuntu" > VERSION_ID="22.04" > VERSION="22.04.3 LTS (Jammy Jellyfish)" > VERSION_CODENAME=jammy > ID=ubuntu > ID_LIKE=debian > HOME_URL="https://www.ubuntu.com/" > SUPPORT_URL="https://help.ubuntu.com/" > BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" > PRIVACY_POLICY_URL=" > https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" > UBUNTU_CODENAME=jammy > > ablinux@DESKTOP-77L9STO:~/objdir$ cat /proc/version > Linux version 5.15.133.1-microsoft-standard-WSL2 (root@1c602f52c2e4) > (gcc (GCC) 11.2.0, GNU ld (GNU Binutils) 2.37) #1 SMP Thu Oct 5 21:02:42 > UTC 2023 > > ablinux@DESKTOP-77L9STO:~/objdir$ gcc --version > gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 > Copyright (C) 2021 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is > NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR > PURPOSE. > > ablinux@DESKTOP-77L9STO:~/objdir$ gnat --version > GNAT 11.4.0 > Copyright (C) 1996-2021, Free Software Foundation, Inc. > This is free software; see the source for copying conditions. > There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A > PARTICULAR PURPOSE. > > ablinux@DESKTOP-77L9STO:~/objdir$ gnatls -v > GNATLS 11.4.0 > Copyright (C) 1997-2021, Free Software Foundation, Inc. > > Source Search Path: > <Current_Directory> > /usr/lib/gcc/x86_64-linux-gnu/11/adainclude > > > Object Search Path: > <Current_Directory> > /usr/lib/gcc/x86_64-linux-gnu/11/adalib > > > Project Search Path: > <Current_Directory> > /usr/x86_64-linux-gnu/lib/gnat > /usr/x86_64-linux-gnu/share/gpr > /usr/share/gpr > /usr/lib/gnat > > I installed my host gcc-11 and gnat-11 via the Ubuntu package manager. > Although I am trying to build gcc-14, I've had this happen swapping over > to the gcc-13 and gcc-12 branches. When I invoke a parallel build, I notice > other Ada source files failing to compile as well. > > Thank you. >