Re : Re : Re : Re : Re : Re : Re : Re : Re : Re : [GCC front end] trying to install sample_fe but fail in make

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

thank you for your help

Asma



----- Message d'origine ----
De : Philip Herron <redbrain@xxxxxxxxxxx>
À : charfi asma <charfiasma@xxxxxxxx>
Cc : gcc-help@xxxxxxxxxxx
Envoyé le : Mer 18 août 2010, 18h 23min 48s
Objet : Re: Re : Re : Re : Re : Re : Re : Re : Re : Re : [GCC front end] trying 
to install sample_fe but fail in make

On 18 August 2010 15:43, charfi asma <charfiasma@xxxxxxxx> wrote:
>
> your first link works as well, we have just to checkout from the gcc-dev
> directory.
>
> so both links are fine
>
> # git checkout -t -b documentation origin/documentation
> # git checkout --track -b gcalc origin/documentation
>
> Asma
>

Hope this helps you along the way, to building a front-end it looks
like a lot of pain in the beginning to setup bits and bobs, but gcc is
brilliant for build a new language on and the GENERIC tree api is
great although its quite daunting to get used to at the start.

Follow gcalc and maybe re-create it in your own way or build a new
basic language, then just go from there. Its not as painful as you may
think, once you get started you will be flying.

Let us know how you get on and remember we have the irc on
irc.oftc.net #gcc feel free to ask questions there too in a more
informal manor.

--Phil







[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux