public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Adding FORTRAN back to gcc tree
@ 2012-01-04 12:32 vikramsp
  2012-01-04 14:48 ` Ian Lance Taylor
  0 siblings, 1 reply; 5+ messages in thread
From: vikramsp @ 2012-01-04 12:32 UTC (permalink / raw)
  To: gcc-help


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.

What shoud I do?
Please help me
-- 
View this message in context: http://old.nabble.com/Adding-FORTRAN-back-to-gcc-tree-tp33078724p33078724.html
Sent from the gcc - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Adding FORTRAN back to gcc tree
  2012-01-04 12:32 Adding FORTRAN back to gcc tree vikramsp
@ 2012-01-04 14:48 ` Ian Lance Taylor
  2012-01-04 15:40   ` Kai Ruottu
  2012-01-18 14:12   ` vikramsp
  0 siblings, 2 replies; 5+ messages in thread
From: Ian Lance Taylor @ 2012-01-04 14:48 UTC (permalink / raw)
  To: vikramsp; +Cc: gcc-help

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.

Ian

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Adding FORTRAN back to gcc tree
  2012-01-04 14:48 ` Ian Lance Taylor
@ 2012-01-04 15:40   ` Kai Ruottu
  2012-01-19 14:07     ` vikramsp
  2012-01-18 14:12   ` vikramsp
  1 sibling, 1 reply; 5+ messages in thread
From: Kai Ruottu @ 2012-01-04 15:40 UTC (permalink / raw)
  To: gcc-help

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?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Adding FORTRAN back to gcc tree
  2012-01-04 14:48 ` Ian Lance Taylor
  2012-01-04 15:40   ` Kai Ruottu
@ 2012-01-18 14:12   ` vikramsp
  1 sibling, 0 replies; 5+ messages in thread
From: vikramsp @ 2012-01-18 14:12 UTC (permalink / raw)
  To: gcc-help


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Adding FORTRAN back to gcc tree
  2012-01-04 15:40   ` Kai Ruottu
@ 2012-01-19 14:07     ` vikramsp
  0 siblings, 0 replies; 5+ messages in thread
From: vikramsp @ 2012-01-19 14:07 UTC (permalink / raw)
  To: gcc-help


Thanks Kai.
I did the same and generating gfortran compiler driver but libgfortran.a and
libgfortran.so
are not generating. Is there any way to ask the gcc tree to build
gcc-4.1.2/libgfortran directory
as well.

 Vikram

Kai Ruottu-3 wrote:
> 
> 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?
> 
> 

-- 
View this message in context: http://old.nabble.com/Adding-FORTRAN-back-to-gcc-tree-tp33078724p33160475.html
Sent from the gcc - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-01-18 11:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-04 12:32 Adding FORTRAN back to gcc tree vikramsp
2012-01-04 14:48 ` Ian Lance Taylor
2012-01-04 15:40   ` Kai Ruottu
2012-01-19 14:07     ` vikramsp
2012-01-18 14:12   ` vikramsp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).