comp.lang.ada
 help / color / mirror / Atom feed
From: resander <kresander@gmail.com>
Subject: Re: Error when running gcc from GPS
Date: Sat, 24 Apr 2010 09:53:42 -0700 (PDT)
Date: 2010-04-24T09:53:42-07:00	[thread overview]
Message-ID: <da0763b1-702f-4ece-a263-f691179b0e29@k41g2000yqf.googlegroups.com> (raw)
In-Reply-To: m21ve5xfsq.fsf@pushface.org

On Apr 24, 12:15 pm, Simon Wright <si...@pushface.org> wrote:
> resander <kresan...@gmail.com> 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:
>
> >   /usr/bin/gcc    -- linked to
> >   /usr/bin/gcc-4.3
>
> >   /usr/bin/gnatgcc    -- linked to
> >   /usr/bin/gcc-4.3
>
> >   /home/ken/AdaGPL/gnat-2008-i686-gnu-linux-libc2.3-bin/bin/gcc
>
> > I also searched on gprbuild and found it is available in
>
> >  /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 \
>  /home/ken/AdaGPL/gnat-2008-i686-gnu-linux-libc2.3-bin/bin/gprbuild \
>  /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=Debug
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=Debug
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.



  reply	other threads:[~2010-04-24 16:53 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-24 11:03 Error when running gcc from GPS resander
2010-04-24 11:15 ` Simon Wright
2010-04-24 16:53   ` resander [this message]
2010-04-24 17:46     ` Ludovic Brenta
2010-04-25 10:41       ` resander
2010-04-25 17:12         ` Ludovic Brenta
2010-04-25 12:42   ` Stephen Leake
2010-04-25 15:07     ` resander
2010-04-25 17:13       ` Ludovic Brenta
2010-04-25 15:22     ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox