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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,1e320108e0f97d38 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!k41g2000yqf.googlegroups.com!not-for-mail From: resander Newsgroups: comp.lang.ada Subject: Re: Error when running gcc from GPS Date: Sat, 24 Apr 2010 09:53:42 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <1186698a-854c-44cd-9111-eeae825015dd@11g2000yqr.googlegroups.com> NNTP-Posting-Host: 82.5.106.54 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1272128023 11860 127.0.0.1 (24 Apr 2010 16:53:43 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 24 Apr 2010 16:53:43 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k41g2000yqf.googlegroups.com; posting-host=82.5.106.54; posting-account=5kIDUAkAAACEMLy16tM5OtzZtznE-9-5 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.0.19) Gecko/2010040118 Ubuntu/8.10 (intrepid) Firefox/3.0.19,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:11164 Date: 2010-04-24T09:53:42-07:00 List-Id: On Apr 24, 12:15=A0pm, Simon Wright wrote: > resander writes: > > 'Could not locate executable on path: gprbuild' > > > I have ticked the checkbox for language C in the > > Languages tab in 'Edit Project Properties on the > > Project menu. > > > I am guessing that 'executable' refers to gcc. > > No, it refers to gprbuild! > > > I did a search on gcc and found these: > > > =A0 /usr/bin/gcc =A0 =A0-- linked to > > =A0 /usr/bin/gcc-4.3 > > > =A0 /usr/bin/gnatgcc =A0 =A0-- linked to > > =A0 /usr/bin/gcc-4.3 > > > =A0 /home/ken/AdaGPL/gnat-2008-i686-gnu-linux-libc2.3-bin/bin/gcc > > > I also searched on gprbuild and found it is available in > > > =A0/home/ken/AdaGPL/gnat-2008-i686-gnu-linux-libc2.3-bin/bin > > > How do I make GPS compile C files? > > Make a link to it, > > $ sudo ln -s \ > =A0/home/ken/AdaGPL/gnat-2008-i686-gnu-linux-libc2.3-bin/bin/gprbuild \ > =A0/usr/bin > > (there may well be a more appropriate way, inclusing perhaps using GNAT > GPL 2009?) Many thanks Simon. Setting the link to gprbuild as you suggested made the C compile proceed a bit further, but it then stumbled on gprconfig. I made a link to that too in a similar way. This did not solve the problem, it immediately stopped with a message about /usr/share/gprconfig (don't remember the exact words). I then installed GNAT GPL 2009 and now both Ada and C compilations fail. I specified the install base directory as /usr/gnat as suggested in the install Readme file. Have the logs this time: gprbuild -ws -c -u -P/home/ken/Adaproj/default.gpr -XBUILD=3DDebug main.adb creating auto.cgpr Directory not found: /usr/share/gprconfig No valid configuration found Generation of configuration files failed gprbuild: could not create /home/ken/Adaproj/auto.cgpr [2010-04-24 17:22:40] process exited with status 4 (elapsed time: 00.11s) gprbuild -ws -c -u -P/home/ken/Adaproj/default.gpr -XBUILD=3DDebug guidb.c creating auto.cgpr Directory not found: /usr/share/gprconfig No valid configuration found Generation of configuration files failed gprbuild: could not create /home/ken/Adaproj/auto.cgpr [2010-04-24 17:20:14] process exited with status 4 (elapsed time: 00.11s) I don't know how to interpret and fix this.