too long lines were shrinked:
checking for the correct version of gmp.h... yes
checking for the correct version of mpfr.h... yes
checking for the correct version of mpc.h... yes
checking for the correct version of the gmp/mpfr/mpc libraries... yes
configure: error: GNAT is required to build ada
* ERROR: sys-devel/gcc-12.2.0::gentoo failed (configure phase):
* Failed to run command: /bin/sh /var/tmp/portage/sys-devel/gcc-12.2.0/work/gcc-12.2.0/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/12.2.0 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/include --datadir=/usr/share/
This is an unstable amd64 chroot image at a tinderbox (==build bot)
 x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
Available Ruby profiles:
 ruby27 (with Rubygems)
 ruby31 (with Rubygems) *
The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
GNU Make 4.3
HEAD of ::gentoo
Author: Repository mirror & CI <firstname.lastname@example.org>
Date: Mon Sep 12 18:57:42 2022 +0000
2022-09-12 18:57:42 UTC
emerge -qpvO sys-devel/gcc
[ebuild R ] sys-devel/gcc-12.2.0 USE="ada* (cxx) fortran go graphite jit nls nptl openmp pgo (pie) sanitize ssp vtv (-cet) (-custom-cflags) -d -debug -doc (-fixed-point) (-hardened) (-libssp) -lto (-multilib) -objc -objc++ -objc-gc (-pch) -systemtap -test (-valgrind) -vanilla -zstd"
Created attachment 804898 [details]
Created attachment 804901 [details]
Created attachment 804904 [details]
Created attachment 804907 [details]
Created attachment 804910 [details]
Created attachment 804913 [details]
Created attachment 804916 [details]
Created attachment 804919 [details]
The page for Gentoo ProjectAda (https://wiki.gentoo.org/wiki/Project:Ada) documents what needs to be done. You must set the "ADA_TARGET" variable in the make.conf. You will probably need to merge gnat-gpl, select that as the gcc compiler, then merge gcc with the ada USE flag, and finally you will probably want to change the gcc compiler (gcc-config or eselect gcc) to you new compiler.
*** Bug 871219 has been marked as a duplicate of this bug. ***
so probably the tinderbox should ignore the USE flag "ada" for now ?
(In reply to Jeremy Stent from comment #9)
> The page for Gentoo ProjectAda (https://wiki.gentoo.org/wiki/Project:Ada)
> documents what needs to be done. You must set the "ADA_TARGET" variable in
> the make.conf. You will probably need to merge gnat-gpl, select that as the
> gcc compiler, then merge gcc with the ada USE flag, and finally you will
> probably want to change the gcc compiler (gcc-config or eselect gcc) to you
> new compiler.
It doesn't work for me. sys-devel/gcc-12.2.1_p20230304 screams about the lack of GNAT. Attaching gcc's config.log that left me clueless.
gnat-gpl-2021-r4 is merged.
$ eselect gcc list
 x86_64-pc-linux-gnu-10 *
Created attachment 860311 [details]
To build up-to-date GNAT, I needed to build dev-lang/gnat-gpl and use that to build a sys-devel/gcc[ada] of the desired version, by selecting it via eselect gcc.
Does that procedure work for you?
(In reply to Sergey 'L29Ah' Alirzaev from comment #13)
> Created attachment 860311 [details]
> gcc-12 config.log
‰ gcc-10 -c conftest.adb
fatal error, run-time library not installed correctly
cannot locate file system.ads
gnat-gpl installation didn't contain the system.ads file indeed. After rebuilding gnat-gpl with itself, though, it appeared, and gcc seems to be building happily now.