From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: GPS doesn't see system libraries Date: Mon, 27 Jul 2015 07:40:49 +0100 Organization: A noiseless patient Spider Message-ID: References: <19d7b9c6-e976-4c9a-a690-e095be894b51@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="0b8a1d07de517ba95be21a60d7133ef5"; logging-data="16933"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19IlI5MqQs7OKBO2gx2hPbj53toNgDi7Vw=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:7oUHDYC35FcGmGxMd4VfYE9kczo= sha1:qdzthM86L97kYsgnwD1rjdkArSQ= Xref: news.eternal-september.org comp.lang.ada:27025 Date: 2015-07-27T07:40:49+01:00 List-Id: EGarrulo writes: > I have installed GPS 2015 and, when I open an existing project, I get > this error: > > unknown project file: "gnatcoll" > > This is because the project references GNATColl. My understanding is that I > should set some environment variables, and I have done so: > > export ADA_INCLUDE_PATH=/usr/share/ada/adainclude:$ADA_INCLUDE_PATH > export ADA_LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.9/adalib:$ADA_LIBRARY_PATH > > But the problem persists. What is wrong? Thank you. It looks as though you're using Debian Jessie? It could be that you've fallen foul of the difference between the Debian file system layout for Ada and the AdaCore (GNAT GPL and FSF) layout. The Debian one came first, I think ... see [1]. Debian keeps libraries (well, actually, GPRs; the GPR says where to find its source and object code) under /usr/share/ada/adainclude. AdaCore keeps GPRs typically under $prefix/lib/gnat and/or $prefix//lib/gnat; you can tell by running "gnatls -v", look at the last section of the output. They also include $prefix/share/gpr, $prefix/share/gpr. You shouldn't (can't) mix GNAT GPL libraries and Debian-provided libraries. The environment variables you're looking for are ADA_PROJECT_PATH or GPR_PROJECT_PATH (I don't recall why there are two). [1] https://people.debian.org/~lbrenta/debian-ada-policy.html