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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,3d76796391769899 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!c7g2000vbc.googlegroups.com!not-for-mail From: zeta_no Newsgroups: comp.lang.ada Subject: Re: GCC conflict on Ubuntu for mixed Ada/C++ project Date: Tue, 18 May 2010 07:12:39 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <41d3829e-286d-4894-9140-31343bfa75ac@o12g2000vba.googlegroups.com> NNTP-Posting-Host: 174.138.203.117 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1274191959 28716 127.0.0.1 (18 May 2010 14:12:39 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 18 May 2010 14:12:39 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: c7g2000vbc.googlegroups.com; posting-host=174.138.203.117; posting-account=_PzQ6woAAACMmOTJ1acimpQRdkpIwcWU User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.38 Safari/533.4,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:11732 Date: 2010-05-18T07:12:39-07:00 List-Id: On May 18, 8:56=A0am, Ludovic Brenta wrote: > I think that all your problems are because of this ugly setup of > yours. While I think it must be possible to use GPS with several > different versions of GNAT, I'm not going to investigate the details > of why you fail; rather, out of curiosity, I'd like to know why you > think you must mix the GNAT GPL Edition with the Ubuntu packages, i.e. > what problem are you trying to solve that neither GNAT GPL Edition nor > Ubuntu can solve alone? No, I don't think I must mix the GNAT GPL Edition and the Ubuntu packages, I did it because it has been the only successful combination capable of building the excepts.gpr project, an Ada_CPP project. When you install GNAT, GPS and GPRbuild from Ubuntu, it looks to me that when you load the except.gpr project, GPS by default, tries to build with gnatmake, not GPRbuild. The GNAT/GPS version from Adacore does build this project out of the box with GPRbuild. But now, GPS, when it calls GCC, seems to use the system wide default GCC, in my case, the 4.4 version installed by Ubuntu. My problem is therefore twofold. First, I cannot strip my Ubuntu box from GCC 4.4 because synaptic wants to uninstall many important things such as proprietary video drivers. Second, I would like to use the GCC retrieved from Adacore, but I just did not figured out how to tell GPS to use that precise version. You have to realize that I am completely new to GPS and Ada in general and therefore might fail to configure basic stuff. To build and run a Ada_CPP project is of great importance to me because as a participant to an engineering competition, I try to convince my teammates that the use of Ada for the real time programming issues would greatly help our cause. On the team we have hardcore CPP fans and we will be using libraries such as OpenCV (C and CPP version). Yesterday, I had to make a presentation to the team showing the possibility of interfacing both language as a bare minimum to carry on with the idea of using Ada on our project. So here are all my motivations for making this project build with or without an ugly setup. To go further, I'll accept nothing else than a clean install :) Thanks for your time and concern, Olivier