This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Re : Re : Re : Re : Re : Re : Re : Re : Re : Re : [GCC front end] trying to install sample_fe but fail in make
- From: Philip Herron <redbrain at gcc dot gnu dot org>
- To: charfi asma <charfiasma at yahoo dot fr>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Thu, 19 Aug 2010 18:39:16 +0100
- Subject: Re: Re : Re : Re : Re : Re : Re : Re : Re : Re : Re : [GCC front end] trying to install sample_fe but fail in make
- References: <961323.52443.qm@web28502.mail.ukl.yahoo.com> <7c01c91296c0beecfe4d6761073628bb-EhVcXl1CTQJeRwgeDAw3AF9BdAJSS1xcXV9EBF41WEVGVFENQV5+BEtdXjBeQ0IHWVxaSF9d-webmailer2@server04.webmailer.hosteurope.de> <285937.98277.qm@web28506.mail.ukl.yahoo.com> <e72b799b44c5b94d0bdf752b554f2851-EhVcXl1CTQJeRwgeDAw3AF9BdAJSS1xcXV9EBF41WEVdS10OQVl+H1dUWzBeQ0IHVlteRl9S-webmailer2@server08.webmailer.hosteurope.de> <284878.42130.qm@web28506.mail.ukl.yahoo.com> <AANLkTimBwfoGdgaz19gkeFoKhbnloKYT0VpVMmjVUgtA@mail.gmail.com> <730386.47129.qm@web28514.mail.ukl.yahoo.com> <4C0E91ED.6050600@andihellmund.com> <895794.48229.qm@web28503.mail.ukl.yahoo.com> <4C228DAC.4000704@andihellmund.com> <AANLkTikGkLl2lTuNwJKjCRVvims6Sezri-9rrc9WU3GD@mail.gmail.com> <947445.22128.qm@web28503.mail.ukl.yahoo.com> <4C23C78C.2040903@andihellmund.com> <339992.16381.qm@web28510.mail.ukl.yahoo.com> <AANLkTikJQR4X9pfTzL5MxDsCLywC-jr0ZcDDZRx5VRhh@mail.gmail.com> <965431.74024.qm@web28505.mail.ukl.yahoo.com> <AANLkTilmSFSgJ24_H_TMjrGxIrvitID367psI4AoS7NE@mail.gmail.com> <812334.11661.qm@web28514.mail.ukl.yahoo.com> <AANLkTi=Fek0h7180uS_Qq64gniG+QgbWfdnmP_9SbH-s@mail.gmail.com> <979708.56457.qm@web28505.mail.ukl.yahoo.com> <AANLkTim3+3rSt6sw9VyLB0Pb8aREVVyvcR_9aRxoXuyE@mail.gmail.com> <433024.59527.qm@web28514.mail.ukl.yahoo.com>
On 19 August 2010 14:03, charfi asma <charfiasma@yahoo.fr> wrote:
> I tried to add gcalc as a front end to gcc 4.4.4 to understand the purpose of
> this fe.
> but when I call make I get those errors
>
> /export/home/charfi/Bureau/gcc-4.4.4/gcc/gcalc/calc1.c:141:104: erreur: la macro
> « build_decl » a reçu 4 arguments, mais elle n'en prend que 3
> /export/home/charfi/Bureau/gcc-4.4.4/gcc/gcalc/calc1.c: In function
> ‘calc_parse_file’:
> /export/home/charfi/Bureau/gcc-4.4.4/gcc/gcalc/calc1.c:141: erreur: ‘build_decl’
> undeclared (first use in this function)
> /export/home/charfi/Bureau/gcc-4.4.4/gcc/gcalc/calc1.c:141: erreur: (Each
> undeclared identifier is reported only once
> /export/home/charfi/Bureau/gcc-4.4.4/gcc/gcalc/calc1.c:141: erreur: for each
> function it appears in.)
> /export/home/charfi/Bureau/gcc-4.4.4/gcc/gcalc/calc1.c:148:96: erreur: la macro
> « build_decl » a reçu 4 arguments, mais elle n'en prend que 3
> /export/home/charfi/Bureau/gcc-4.4.4/gcc/gcalc/calc1.c:140: attention : unused
> variable ‘main_fn_type’
> /export/home/charfi/Bureau/gcc-4.4.4/gcc/gcalc/calc1.c: In function
> ‘calc_post_options’:
> /export/home/charfi/Bureau/gcc-4.4.4/gcc/gcalc/calc1.c:274: erreur:
> ‘flag_excess_precision_cmdline’ undeclared (first use in this function)
> /export/home/charfi/Bureau/gcc-4.4.4/gcc/gcalc/calc1.c:274: erreur:
> ‘EXCESS_PRECISION_FAST’ undeclared (first use in this function)
> /export/home/charfi/Bureau/gcc-4.4.4/gcc/gcalc/calc1.c: Hors de toute fonction :
> /export/home/charfi/Bureau/gcc-4.4.4/gcc/gcalc/calc1.c:294: erreur: conflicting
> type qualifiers for ‘lang_hooks’
> /export/home/charfi/Bureau/gcc-4.4.4/gcc/langhooks.h:422: note: previous
> declaration of ‘lang_hooks’ was here
> /export/home/charfi/Bureau/gcc-4.4.4/gcc/gcalc/calc1.c:297:28: erreur:
> gt-gcalc-calc1.h : Aucun fichier ou dossier de ce type
> make[3]: *** [gcalc/calc1.o] Erreur 1
> make[3]: quittant le répertoire « /export/home/charfi/Bureau/gcc_make2/gcc »
> make[2]: *** [all-stage2-gcc] Erreur 2
> make[2]: quittant le répertoire « /export/home/charfi/Bureau/gcc_make2 »
> make[1]: *** [stage2-bubble] Erreur 2
> make[1]: quittant le répertoire « /export/home/charfi/Bureau/gcc_make2 »
> make: *** [all] Erreur 2
>
This looks like langhook's function significant errors. Don't expect
langhooks as is to be stable, since i started my front-end I've
noticed 1 or 2 changes in the last 3 months or so. Its highly doubtful
you could get the gcalc front-end andi build to work on GCC 4.4.4,
without looking into langhooks.{h,def} to get the langhook function
signatures right.
As we have said earlier in this thread, try to work with current gcc
sources (svn/git) its much simpler for us to help you, or if your
heart is set on using a tarball use a snapshot gcc-core tarball or
something.
--Phil