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

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

 



Finally I installed the python fe ;) 
I disable the werror and I did not get any errors when compiling the python fe 
;)

but I did not realy understand why should I install c first and after python , 
--enable-languages=c,python did not work !! but --enable-langauge=c , make make 
install + adding python fe to the directroy and reconfigure with 
--enable-languages=python, make make install works !!

Asma


----- Message d'origine ----
De : charfi asma <charfiasma@xxxxxxxx>
À : Philip Herron <redbrain@xxxxxxxxxxx>
Cc : gcc-help@xxxxxxxxxxx
Envoyé le : Lun 13 septembre 2010, 17h 44min 54s
Objet : Re : Re : [GCC front end] trying to install python fe but fail in make

Hello,

after installed c front end (no errors generated)  following those steps:
$ git clone git://crules.org/git/gcc-dev.git
$ cd gcc-dev/
$ cd ../
$ mkdir gcc-bootstrap-build
$ cd gcc-bootstrap-build
$ ../gcc-dev/configure --enable-languages=c
$ make
$ make install

I tried to install python fe. this time I get a new errors:

../../gcc-dev/gcc/python/py-lang.c:105:41: erreur: unused parameter 
‘decoded_options_count’ [-Werror=unused-parameter]
../../gcc-dev/gcc/python/py-lang.c:106:33: erreur: unused parameter 
‘decoded_options’ [-Werror=unused-parameter]
../../gcc-dev/gcc/python/py-lang.c: In function ‘gpy_langhook_handle_option’:
../../gcc-dev/gcc/python/py-lang.c:116:55: erreur: unused parameter ‘arg’ 
[-Werror=unused-parameter]
../../gcc-dev/gcc/python/py-lang.c:116:64: erreur: unused parameter ‘value’ 
[-Werror=unused-parameter]
../../gcc-dev/gcc/python/py-lang.c:116:75: erreur: unused parameter ‘kind’ 
[-Werror=unused-parameter]
../../gcc-dev/gcc/python/py-lang.c:117:41: erreur: unused parameter ‘handlers’ 
[-Werror=unused-parameter]
cc1: all warnings being treated as errors

make[3]: *** [py-lang.o] Erreur 1
make[3]: quittant le répertoire « /export/home/charfi/Bureau/build_1309/gcc »
make[2]: *** [all-stage2-gcc] Erreur 2
make[2]: quittant le répertoire « /export/home/charfi/Bureau/build_1309 »
make[1]: *** [stage2-bubble] Erreur 2
make[1]: quittant le répertoire « /export/home/charfi/Bureau/build_1309 »
make: *** [all] Erreur 2

any idea ?

thanks 

Asma

________________________________
De : Philip Herron <redbrain@xxxxxxxxxxx>
À : charfi asma <charfiasma@xxxxxxxx>
Cc : gcc-help@xxxxxxxxxxx
Envoyé le : Mer 8 septembre 2010, 20h 48min 36s
Objet : Re: Re : [GCC front end] trying to install python fe but fail in make

On 8 September 2010 15:51, Philip Herron <redbrain@xxxxxxxxxxx> wrote:
> On 8 September 2010 15:11, charfi asma <charfiasma@xxxxxxxx> wrote:
>> Hello,
>>
>> back to the galley ;)
>>
>> I tried to install python front end from the gcc-dev following the steps
>> explained in http://gcc.gnu.org/wiki/PythonFrontEnd
>> $ git clone git://crules.org/git/gcc-dev.git
>> $ cd gcc-dev/
>> $ git checkout --track -b python origin/python
>> $ cd ../
>> $ mkdir gcc-python-build
>> $ cd gcc-python-build/
>> $ ../gcc-dev/configure --enable-languages=c,c++,python --disable-bootstrap
>> $ make
>>
>> but I get this error while calling make
>>
>>  flex --outfile=lex.py.c ../../gcc-dev/gcc/python/lexer.l
>> gcc -std=gnu99 -I../../gcc-dev/gcc/python -g -O2 -fomit-frame-pointer 
-gtoggle
>> -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes
>> -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long
>> -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition 
>>-Wc++-compat
>> -fno-common -DHAVE_CONFIG_H -I. -I. -I../../gcc-dev/gcc -I../../gcc-dev/gcc/.
>> -I../../gcc-dev/gcc/../include -I../../gcc-dev/gcc/../libcpp/include
>> -I/export/home/charfi/gcc_python_build/./gmp 
-I/export/home/charfi/gcc-dev/gmp
>> -I/export/home/charfi/gcc_python_build/./mpfr 
>>-I/export/home/charfi/gcc-dev/mpfr
>> -I/export/home/charfi/gcc-dev/mpc/src  -I../../gcc-dev/gcc/../libdecnumber
>> -I../../gcc-dev/gcc/../libdecnumber/bid -I../libdecnumber    \
>>     -c -o lexer.o lex.py.c
>> cc1: erreur: niveau de sortie de mise au point non reconnu "toggle"
>> make[2]: *** [lexer.o] Erreur 1
>> make[2]: quittant le répertoire « /export/home/charfi/gcc_python_build/gcc »
>> make[1]: *** [all-gcc] Erreur 2
>> make[1]: quittant le répertoire « /export/home/charfi/gcc_python_build »
>> make: *** [all] Erreur 2
>>
>

On my side this is what i get when compiling the lexer:

flex --outfile=lex.py.c ../../gcc-dev/gcc/python/lexer.l
gcc -std=gnu99 -I../../gcc-dev/gcc/python -g -O2 -fomit-frame-pointer
-gtoggle -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-Wold-style-definition -Wc++-compat -fno-common -DHAVE_CONFIG_H -I.
-I. -I../../gcc-dev/gcc -I../../gcc-dev/gcc/.
-I../../gcc-dev/gcc/../include -I../../gcc-dev/gcc/../libcpp/include
-I../../gcc-dev/gcc/../libdecnumber
-I../../gcc-dev/gcc/../libdecnumber/bid -I../libdecnumber
-I/usr/include/libelf \
     -c -o lexer.o lex.py.c
lex.py.c:1817:16: warning: ‘input’ defined but not used [-Wunused-function]

And i just fixed the syntax error in the pypy.c I'll aim to keep this
branch more stable now, but i cant seem to re-create your error. What
platform are you running on <gcc -v>?

Another thing to try is this:

$ git clone git://crules.org/git/gcc-dev.git
$ cd gcc-dev/
$ cd ../
$ mkdir gcc-bootstrap-build
$ cd gcc-bootstrap-build
$ ../gcc-dev/configure --enable-languages=c
$ make
$ make install

If that runs fine then try and compile the python FE, I've found have
a bootstraped GCC version helped alot in working with the gcc sources
when using --disable-bootstrap.

--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