Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 217279 - Installer of gtkada-2.10.0 can't find the primary gnat compiler and so it dies
Summary: Installer of gtkada-2.10.0 can't find the primary gnat compiler and so it dies
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: ada team [OBSOLETE]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-11 11:59 UTC by fabio de francesco
Modified: 2008-04-12 07:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fabio de francesco 2008-04-11 11:59:45 UTC
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
Comment 1 George Shapovalov (RETIRED) gentoo-dev 2008-04-12 07:34:30 UTC
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
Comment 2 George Shapovalov (RETIRED) gentoo-dev 2008-04-12 07:49:34 UTC
All done (also updated postinst message in gnatbuild.eclass). Closing.