Adding FORTRAN back to gcc tree

Kai Ruottu kai.ruottu@wippies.com
Wed Jan 4 15:40:00 GMT 2012


4.1.2012 16:48, Ian Lance Taylor kirjoitti:
> vikramsp<vikram2rhyme@gmail.com>  writes:
>
>> I have a gcc 4.1.2 source tree which do not have
>> gcc/fortran folder i.e. fortran support is not there.
>> Meant for C/C++ only with ARM arch.
>>
>> NOW I want to add fortran back. I just copied the fortran
>> folder from standard gcc 4.1.2 package and compiled for FORTRAN.
>> but errors are comming e.g.<undefined reference to c_lex>  etc.
>
> Presumably your gcc 4.1.2 source tree has some local changes.  You will
> have to adapt the Fortran frontend to those changes.
>
> If you tell us the exact error messages we might be able to say
> something more useful.  I don't see any references to c_lex in the gcc
> 4.1 Fortran frontend, so I suspect that something else is going on.

I remember it once told by someone that building only Fortran
(--enable-languages=fortran) doesn't work, one must build also
the C compiler (--enable-languages=c,fortran). Maybe this is
the case here?



More information about the Gcc-help mailing list