Thank you for replies. I got into something. Now fortran is compiling; gfortran driver is generated but gfortran.a and gfortran.so are not. 1. Is this trick is justified or some other thing should have been done? 2. How to generate gfortran.a and gfortran.so? both gcc-4.1.2/gcc/fortran and gcc-4.1.2/libgfortran are added by me to the main tree. Do i have to change somewhere in Makefile. Or in some config file. 3. How gcc/config.gcc file is used? Where in Makefile it is described to build for a particular processor architecture? Vikram Ian Lance Taylor-3 wrote: > > vikramsp <vikram2rhyme@xxxxxxxxx> 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. > > Ian > > -- View this message in context: http://old.nabble.com/Adding-FORTRAN-back-to-gcc-tree-tp33078724p33160418.html Sent from the gcc - Help mailing list archive at Nabble.com.