public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Andi Hellmund <mail@andihellmund.com>
To: Greicy.Costa-Marques@imag.fr
Cc: gcc-help@gcc.gnu.org
Subject: Re: How to include a front end to gcc ?
Date: Fri, 05 Mar 2010 22:43:00 -0000	[thread overview]
Message-ID: <4B91890C.5000409@andihellmund.com> (raw)
In-Reply-To: <20100305163456.975572cwmhofv734@webmail.imag.fr>

Hey Greicy,

great that you made some progress.

> for name in hello1.exe; \
>         do \
>            if [ -f $name ] ; then \
>             name2="`echo \`basename $name\` | sed -e 's,y,y,' `"; \
>             rm -f /usr/local/bin/$name2.exe; \
>             echo /bin/install -c $name.exe /usr/local/bin/$name2.exe; \
>             /bin/install -c $name.exe /usr/local/bin/$name2.exe; \
>             chmod a+x /usr/local/bin/$name2.exe; \
>           fi ; \
>         done
> /bin/install -c hello1.exe.exe /usr/local/bin/hello1.exe.exe
> /bin/install: cannot stat `hello1.exe.exe': No such file or directory
> chmod: cannot access `/usr/local/bin/hello1.exe.exe': No such file or
> directory
There is apparently an error in the Make-lang.in file in the front-end
directory gcc/hello-world.

The compiler is named 'hello1.exe' but the installer tries to install
the file 'hello1.exe.exe' which doesn't exist. Though, the easiest fix
would be to change the first line into

    for name in hello1
    [...]

Then you should be able to install gcc in the --prefix=<...> defined
directory.

> Is necessary to do $make install, ok?
Yes, it is generally necessary to install gcc for at least three reasons:

(1) you won't find the gcc compiler driver in the build directory,
because it is called xgcc and will be renamed into gcc during installation
(2) if you call xgcc from the build directory, it won't find the real
compiler (cc1)
(3) if you call xgcc from the build directory, it won't possibly find
libraries like libgcc

In your case where you only built a compiler (without driver), you don't
necessarily need to install your compiler - it should work without - but
you need to try :)

Andi

  reply	other threads:[~2010-03-05 22:43 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-10 11:00 Greicy.Costa-Marques
2009-11-10 14:56 ` Ian Lance Taylor
2009-11-10 15:56   ` Greicy.Costa-Marques
2009-11-10 15:58     ` Ian Lance Taylor
2009-11-10 19:23       ` Andi Hellmund
2009-11-18 13:34         ` Greicy.Costa-Marques
2009-11-18 14:06           ` John Graham
2009-11-18 14:24             ` John (Eljay) Love-Jensen
2009-11-18 14:56               ` Greicy.Costa-Marques
2009-11-18 15:53                 ` John (Eljay) Love-Jensen
2009-12-03 17:44               ` Greicy.Costa-Marques
2009-12-07 15:53                 ` Greicy.Costa-Marques
2009-12-07 15:54                   ` John (Eljay) Love-Jensen
2009-12-10 20:55                     ` Greicy.Costa-Marques
2009-12-11  0:23                       ` Andi Hellmund
2009-12-11  9:51                         ` Greicy.Costa-Marques
2009-12-12  2:15                           ` Andi Hellmund
2009-12-14 20:11                             ` Greicy.Costa-Marques
2009-12-16 16:50                             ` Greicy.Costa-Marques
2009-12-16 22:40                               ` Cedric Roux
     [not found]                               ` <alpine.DEB.2.00.0912232132210.23563@randazzo>
     [not found]                                 ` <20100118171613.37323adazx3nmf65@webmail.imag.fr>
     [not found]                                   ` <19bb413aeea8173be0119dc84a99254c-EhVcXl1CTQJeRwgeDAw3AF9BdAJSS1xcXV9EBF41WEVGVFENQV5+BEtdXzBeQ0MGX1taRV1T-webmailer2@server02.webmailer.hosteurope.de>
     [not found]                                     ` <20100121110544.618273k2lhw1t054@webmail.imag.fr>
     [not found]                                       ` <alpine.DEB.2.00.1001231718010.2115@randazzo>
     [not found]                                         ` <20100129160405.10512mrjmwx0n10l@webmail.imag.fr>
     [not found]                                           ` <4B65ABE6.8070109@andihellmund.com>
     [not found]                                             ` <20100204184027.126147yistgbwjnv@webmail.imag.fr>
     [not found]                                               ` <4B6B4CC5.50406@andihellmund.com>
2010-03-05 15:36                                                 ` Greicy.Costa-Marques
2010-03-05 22:43                                                   ` Andi Hellmund [this message]
2010-03-08 17:30                                                     ` Greicy.Costa-Marques
2010-03-12 16:41                                                       ` Greicy.Costa-Marques

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B91890C.5000409@andihellmund.com \
    --to=mail@andihellmund.com \
    --cc=Greicy.Costa-Marques@imag.fr \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).