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) name: 17.1_no_multilib_systemd-j4-20220909-180005 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-9.3.1 [2] x86_64-pc-linux-gnu-10.3.1 [3] x86_64-pc-linux-gnu-12.2.0 * clang/llvm (if any): /usr/lib/llvm/15 15.0.0 Python 3.10.7 Available Ruby profiles: [1] ruby27 (with Rubygems) [2] ruby31 (with Rubygems) * The Glorious Glasgow Haskell Compilation System, version 9.0.2 php cli (if any): GNU Make 4.3 HEAD of ::gentoo commit 2a1d7ac3723f1060987ef62c6953cb390ecda053 Author: Repository mirror & CI <repomirrorci@gentoo.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] emerge-info.txt
Created attachment 804901 [details] emerge-history.txt.bz2
Created attachment 804904 [details] environment
Created attachment 804907 [details] etc.portage.tar.bz2
Created attachment 804910 [details] gcc-build-logs.tar.bz2
Created attachment 804913 [details] logs.tar.bz2
Created attachment 804916 [details] sys-devel:gcc-12.2.0:20220912-201832.log
Created attachment 804919 [details] temp.tar.bz2
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 [1] x86_64-pc-linux-gnu-10 * [2] x86_64-pc-linux-gnu-12 make.conf contains: ADA_TARGET="gnat_2021" ADA=x86_64-pc-linux-gnu-gcc-10 ADAFLAGS=${CFLAGS}
Created attachment 860311 [details] gcc-12 config.log
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 compilation abandoned 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.