VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: Trying to compile gcc's Fortran 77 [SOLVED]  (Read 3147 times)

telepibe

  • Member
  • *
  • Posts: 19
Trying to compile gcc's Fortran 77 [SOLVED]
« on: August 07, 2008, 11:15:01 pm »

Hello everyone. I'm trying to compile fortran 77 in my Pentium 133 with 64Mb Ram but can't succeed. I get an error while bootstraping.

I was wondering if anyone succesfully managed to compile f77 and perhaps give me some tips.

Anyway I'll try a few more things and if i can't do it i'll post again with the errors.

I have VL 5.9 Light installed with the optional dev package.

Thanks in advance.

Juan

PS: i must tell you that i am really new to Linux and even newbier to Vector Linux. I managed to get VL running yesterday after two weeks of trying to get it installed, because my bios can't boot cd's. Before, i was experimenting (i hope i didn't invent a new word  :P) with DamnSmall and g77 compile without problem.
By the way when configuring g77 i use:

Code: [Select]
/home/juan/g77/configure --prefix=/usr/local/gcc/3.4.6/ --enable-languages-f77
Hope that's ok.
« Last Edit: August 09, 2008, 12:25:37 pm by telepibe »
Logged
Runnning VL 5.9 Light on Desktop P133 Mhz, 64 Mb Ram, 4 Gb harddisk.

wcs

  • Packager
  • Vectorian
  • ****
  • Posts: 1144
Re: Trying to compile gcc's Fortran 77
« Reply #1 on: August 08, 2008, 04:38:36 am »


Would this one do? It's gfortran, not 77, I don't know if it makes a difference for you:
http://packages.slackware.it/package.php?q=12.0/gcc-gfortran-4.1.2-i486-1

I'll submit this to the repositories. According to uelsk8s, it shouldn't even be rebuilt, as I think gcc in Vector also comes from Slackware.
(of course, you can still compile a fortran compiler for yourself if you want, and it will probably work... But I cannot help you with those options).
Logged

telepibe

  • Member
  • *
  • Posts: 19
Re: Trying to compile gcc's Fortran 77
« Reply #2 on: August 08, 2008, 07:25:20 am »

Hello wcs. Thank you for your response.

Would this one do? It's gfortran, not 77, I don't know if it makes a difference for you:
http://packages.slackware.it/package.php?q=12.0/gcc-gfortran-4.1.2-i486-1
It makes a difference because I really need Fortran 77 and gfortran I think it's 95. I could learn 95 though...

(of course, you can still compile a fortran compiler for yourself if you want, and it will probably work... But I cannot help you with those options).
As I said before I'll give it a few more shots and if I can't compile it myself, well, don't know...

Thanks again.
Logged
Runnning VL 5.9 Light on Desktop P133 Mhz, 64 Mb Ram, 4 Gb harddisk.

rbistolfi

  • Packager
  • Vectorian
  • ****
  • Posts: 2305
Re: Trying to compile gcc's Fortran 77
« Reply #3 on: August 08, 2008, 07:38:58 am »

I would try --prefix=/usr since the includes are located there
Logged
"There is a concept which corrupts and upsets all others. I refer not to Evil, whose limited realm is that of ethics; I refer to the infinite."
Jorge Luis Borges, Avatars of the Tortoise.

--
Jumalauta!!

wcs

  • Packager
  • Vectorian
  • ****
  • Posts: 1144
Re: Trying to compile gcc's Fortran 77
« Reply #4 on: August 08, 2008, 08:07:36 am »

From googling around, it seems gfortran compiles 77 and 90 code as well (well, a lot of it at least).
On the other hand, g77 is no longer supported.

If you really want to compile g77, make sure you have the gcc source, as the webpage says:
Quote
To build g77, you must have a source distribution of gcc. You cannot build g77 just using binaries of gcc.

And I *suppose* that the source of gcc and the version of g77 should be the same.
Logged

telepibe

  • Member
  • *
  • Posts: 19
Re: Trying to compile gcc's Fortran 77
« Reply #5 on: August 08, 2008, 08:15:57 am »

I would try --prefix=/usr since the includes are located there
OK, I'll try that. Gracias.

If you really want to compile g77, make sure you have the gcc source, as the webpage says:
Quote
To build g77, you must have a source distribution of gcc. You cannot build g77 just using binaries of gcc.
And I *suppose* that the source of gcc and the version of g77 should be the same.
I'll look into that, but I think I have everything right. Thanks one more time!
Logged
Runnning VL 5.9 Light on Desktop P133 Mhz, 64 Mb Ram, 4 Gb harddisk.

telepibe

  • Member
  • *
  • Posts: 19
Update
« Reply #6 on: August 08, 2008, 04:16:37 pm »

It has been compiling for 7 hours now, no errors. I did what rbistolfi suggested and I untared (¿?) the sources again just in case they'd been corrupted someway (with the first tries probably). Anyway, what troubles me is the time is taking to finish considering I only compiling one language. I think it didn't took this much the first time I successfully compiled.
Well, that's all for now. I guess there won't be any errors but I'll wait till it finishes and then put the [solved] in the title.

Thanks
Logged
Runnning VL 5.9 Light on Desktop P133 Mhz, 64 Mb Ram, 4 Gb harddisk.

telepibe

  • Member
  • *
  • Posts: 19
Update 2
« Reply #7 on: August 08, 2008, 09:02:01 pm »

Everything went ok. The only problem I do not know how to solve is the fact that gcc no longer the newest version. I don't know how to explain well.

Code: [Select]
juan:$ gcc -v    (it's in /usr/local/bin)
something, something... version 3.4.6
which actually is the version of the fortran compiler

but

Code: [Select]
juan:$ /usr/bin/gcc -v
something, something... version 4.1.x
This is the one from the dev package, and is the one I've been using so far.

How can I do to get 4.1.x version when i call gcc ???

Nevermind, I solved it with symlinks.

SOLVED
« Last Edit: August 09, 2008, 07:24:24 pm by telepibe »
Logged
Runnning VL 5.9 Light on Desktop P133 Mhz, 64 Mb Ram, 4 Gb harddisk.