[GCC front end] trying to install sample_fe but fail in make
charfi asma
charfiasma@yahoo.fr
Tue Jun 8 18:54:00 GMT 2010
Hello,
Thank you for your answer Philip.
I moved to mandriva 2009 and I try to install now gcc4.4.4 with the sample_fe frontend
I installed the GMP 4.3.2, MPFR 2.4.2 and MPC 0.8.2 all in /usr/local
when I call configre with ( --with-gmp=/usr/local --with-mpfr=/usr/local --with-mpc=/usr/local
--enable-languages=sample_fe ) I get this error although sample_fe/config-lang.in contains: language="sample_fe" !!!
and the last line of the generated error mention sample_fe in the list of supported langauges !!!
checking for correct version of gmp.h... yes
checking for correct version of mpfr.h... yes
checking for version 0.10 of PPL... no
checking for correct version of CLooG... no
: command not found/Bureau/gcc-4.4.4/gcc/sample_fe/config-lang.in: line 7:
: command not found/Bureau/gcc-4.4.4/gcc/sample_fe/config-lang.in: line 9:
: command not found/Bureau/gcc-4.4.4/gcc/sample_fe/config-lang.in: line 11:
: command not found/Bureau/gcc-4.4.4/gcc/sample_fe/config-lang.in: line 13:
: command not found/Bureau/gcc-4.4.4/gcc/sample_fe/config-lang.in: line 7:
: command not found/Bureau/gcc-4.4.4/gcc/sample_fe/config-lang.in: line 9:
: command not found/Bureau/gcc-4.4.4/gcc/sample_fe/config-lang.in: line 11:
: command not found/Bureau/gcc-4.4.4/gcc/sample_fe/config-lang.in: line 13:
configure: error:
The following requested languages could not be built: sample_fe
Supported languages are: c,c++,fortran,java,objc,obj-c++,sample_fe
Any Idea ?
Thanks
Asma
----- Message d'origine ----
De : Philip Herron <herron.philip@googlemail.com>
À : charfi asma <charfiasma@yahoo.fr>
Envoyé le : Lun 7 juin 2010, 22h 00min 31s
Objet : Re: Re : Re : [GCC front end] trying to install sample_fe but fail in make
> When I install GMP 4.1.3.2 I did not get a pb. (that's why I tried to install an old version of gcc that did not require GMP 4.2)
>
> I tried to configure with --with-gmp but I did not find where the gmp is installed
> whereis gmp gives /usr/include/gmp.h
> which gmp returns no gmp in (/usr/bin: /sbin: /usr/sbin: /usr/local/bin......)
>
> what do you suggest? I am not an expert in handling linux distribution and install directories :(
>
Hey
You may want to simply move the latest source version and install
libmpc (http://www.multiprecision.org/index.php?prog=mpc) aswell since
the interfaces changed alot since then i based my old front-end code
on a gcc 4.0 and i just ended up starting from scratch when working
with trunk.
But if you want to keep working with that version you can try:
configure --enable-languages=c,c++,....
--with-gmp-include=/usr/local/include --with-gmp-lib=/usr/local/lib
... do the same with --with-mpfr-{include,lib} if you have problems.
When you manually make install by default things generally go to
/usr/local/include for the headers then lib for the actual library you
link against unless you specify a prefix.
If you want some reference on front-end code you can look a little at
mine though mine focuses on working with trunk
http://code.redbrain.co.uk/cgit.cgi/gcc-dev/tree/gcc/python?h=python
Where pyspec.c is the compiler driver, then py-lang.c is the compiler
proper then other files go along with it. Hope this helps in at least
some way :) Its confusing but were working to make it simpler! Gcc
rocks ;)
--Phil
More information about the Gcc-help
mailing list