Hi George, I had selected gnat-gcc-4.2 as the default compiler with "eselect gnat set i686-pc-linux-gnu-gnat-gcc-4.2". Then I ran "emerge --unmerge =dev-lang/gnat-gcc-4.1", preserving only 4.2 and 4.3 releases. Then the usual "env-update && source /etc/profile". Soon after that I want to "emerge gtk-ada" that crashes saying "The i686-pc-linux-gnu-gnat-gcc-4.1 Ada compiler profile is specified as primary, but is not installed. Please rectify the situation before emerging Ada library!" As usually I remain here to provide you with more infos if you need them. Regards, fabio de francesco
You need to modify /etc/ada/primary_compilers. This file lists "primary compilers" and is normally automatically installed when you emerge your first gnat (see my announcement on -dev few month ago, plus it should be described in one of the bugs. Yes, this is bug #151343). In short, primary compilers 1. are supposed to always be installed 2. libs are compiled for all of them 3. but only for them unlike as it was before, when libs were compiled for all installed gnats, causing problems exactly in the situation you describe - when unmerging one of the versions. You simply need to list the gnat profiles (as printed by eselect gnat list), one per line, that you want to designate as primary. Please also take a look at Ada project page: http://www.gentoo.org/proj/en/prog_lang/ada/index.xml I started describing inner workings of all related eclasses/eselect modules, but did not finish yet unfortunately. I also need to produce some usage text, user oriented.. As fr this issue, I'll change the text of that failure note to be a bit more informative I guess and will close this bug then. George
All done (also updated postinst message in gnatbuild.eclass). Closing.