You are not logged in.

#1 2004-08-24 01:49:02

tyler
Member
From: Montreal
Registered: 2004-06-05
Posts: 35

g77 with gcc package

i would love to get my hands on a gcc package that was built with f77 enabled. i tried to build gcc and install it on my own, but it broke my compiler. anyone has this package built already?

Dave


Till human voices wake us, and we drown. -Eliot

Offline

#2 2004-08-24 16:48:00

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: g77 with gcc package

I think the fortran support in gcc for Arch Linux is still in developement
Someone did some PKGBUILD for the Intel Fortran and C++ compilers.  The Linux version are free for non-commercial use.  Go to the Intel web site to register. They will send you a licence and a link to the Installation files.  They are in the RPM format but check out http://bbs.archlinux.org/viewtopic.php?t=2217 to get the PKGBUILD.

I had to modified the PKGBUILD  since the name of the dowlaoded files  were different.
I will check if I still have the modified PKGBUILD and if so I will post them.

BTW, this is a Fortran 95 compiler but it can compile f77 and f90 code and is better for code optimisation, I think.

Snowman

Offline

#3 2004-08-24 22:08:05

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: g77 with gcc package

http://xentac.net/~jchu/gcc-f77-3.4.1-2.pkg.tar.gz

Please test it out.  If it works well, I'll make it available in extra along with gcc-java.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#4 2004-12-01 05:20:22

poetofnumbers
Member
From: Kansas, United States
Registered: 2004-10-30
Posts: 106
Website

Re: g77 with gcc package

While I won't pretend to know what it means to build support for fortran in gcc under Arch, but I do know that the "enable-languages" option for gcc can be set to a comma separated list of any of the following arguments:  ada, c, c++, f70, f95, java, objc, obj-c++.  This has the obvious effect when configuring gcc.  Not passing the ption when gcc is being configured is the same as passing the option set to the entire list of languages.

As far as I can tell there are a few directions in which the Arch community can go regarding additional language support in gcc --- leave gcc as it is and expand language support when necessity demands, have gcc support all the languages it can, build multiple gcc packages which might differ in the languages they support, or have add-on packages which provide support for additional languages.  At the least, there seems to be enough Fortran 77 code in use to warrant including its support in a, or perhaps the, gcc package.

What is frustrating for me is not knowing what is being done about this and not knowing how I can help.  I've tried building an f77 "add-on" package, but am too afraid to install it on my only computer.  I've tried building a gcc-heavy package, but cannot install it because if dependency conflicts.  I realize that I could just build gcc to my liking from the ABS.  However, I would like a solution which could be incorporated into the package repository.  If anyone knows how this could be done, I would love to hear their solution and try to implement it.

Also, if your package is still online Xentac, would you post an updated link to it.  I would like to at least look at the PKGBUILD, if not test the package itself.

Drew
------
This statement is not true.


Sweet, now I can play with myself.

Offline

#5 2004-12-01 05:42:50

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: g77 with gcc package

I have a gcc-g77 package in my repo for the latest gcc.  The PKGBUILD is also available if you want to see how I did it (check link in my signature).  BTW, I used it to build scilab so it should be OK.

Offline

#6 2004-12-02 02:39:58

poetofnumbers
Member
From: Kansas, United States
Registered: 2004-10-30
Posts: 106
Website

Re: g77 with gcc package

I copied your PKGBUILD, built the corresponding package, and got the following error:

checking for file conflicts... error:  the following file conflicts were found:
gcc-f77:  /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/include/dbm/ncompat.h: exists in filesystm

It appears that the ncompat.h file is the only file conflict I have.  Did you run into this error Snowman?  Because ncompat.h is provided by gcc.  Since diff doesn't detect a difference in the file between the two packages, I just rmed the file in the build function of gcc-f77.  After, rebuilding the package with ncompat.h removed, the package installed without any fuss.  You should submit this package to tur-users@archlinux.org.


Sweet, now I can play with myself.

Offline

#7 2004-12-02 17:11:23

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: g77 with gcc package

poetofnumbers wrote:

It appears that the ncompat.h file is the only file conflict I have.  Did you run into this error Snowman?

No, when I build the package, this file isn't produced.  I don't know why you get it in your case.

poetofnumbers wrote:

You should submit this package to tur-users@archlinux.org.

I already submitted a list of my packages, including this one, to the TUR list. In fact, in another thread, dp mentionned that he would add it to extra.

Offline

#8 2005-02-13 07:41:27

WaFuSan
Member
From: Nagoya
Registered: 2005-01-27
Posts: 39
Website

Re: g77 with gcc package

poetofnumbers wrote:

I copied your PKGBUILD, built the corresponding package, and got the following error:

checking for file conflicts... error:  the following file conflicts were found:
gcc-f77:  /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/include/dbm/ncompat.h: exists in filesystm

I got the same error...
I installed scilab from snowman repo 3 months ago, gcc-g77 was installed at the same time, and I got no error.
When I made the package from the PKGBUILD, this file conflict appeared...  :?

Offline

#9 2005-02-14 23:41:16

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: g77 with gcc package

WaFuSan wrote:
poetofnumbers wrote:

I copied your PKGBUILD, built the corresponding package, and got the following error:

checking for file conflicts... error:  the following file conflicts were found:
gcc-f77:  /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/include/dbm/ncompat.h: exists in filesystm

I got the same error...
I installed scilab from snowman repo 3 months ago, gcc-g77 was installed at the same time, and I got no error.
When I made the package from the PKGBUILD, this file conflict appeared...  :?

I have rebuilt the package but that file doesn't get copied in $startdir/pkg.  :?   However, I have modified the PKGBUILD so there should be no conflict.

Offline

#10 2005-02-15 16:20:32

jw
Member
Registered: 2005-01-08
Posts: 88

Re: g77 with gcc package

Thanks for your work Snowman. Am trying to compile the gcc-g77 pakage now. The link to the compiled pakage on your site is dead, btw.

TO ANY ARCH DEV READING THIS: Could you please, please, please

(1) include a gcc-g77 pakage in the distro
- or - 
(2) start enabling f77 in the main gcc pakage?

Fortran is an unavoidable language in the physics community and recompiling gcc is a pain.

Offline

#11 2005-02-15 16:26:00

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: g77 with gcc package

jw wrote:

The link to the compiled pakage on your site is dead, btw.

I just found out that most of my packages  got bad when I changed server. I will re-upload them.

Offline

#12 2006-07-06 09:29:32

Legout
Member
From: Wuerburg/germany
Registered: 2004-01-19
Posts: 292

Re: g77 with gcc package

Hi,

i can´t find gcc-g77 anymore. Are there any PKGBUILDS for it around?

I´ll try to build an app. Compiling fails, because it can´t found g77.

Linking gfortran to g77 gives an error, because gfortran isn´t compatible to g77.

So how can i build/install g77?

Offline

#13 2006-07-06 12:37:31

sebcactus
Member
From: Germany
Registered: 2005-01-27
Posts: 277

Re: g77 with gcc package

Have you tried gfortran -ff2c ?

Offline

#14 2006-07-06 18:30:37

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: g77 with gcc package

You can get it by cvs:
http://cvs.archlinux.org/cgi-bin/viewcv … cvs-markup
You'll also need gcc 3.3.4 (in Arch cvs also) which will certainly conflict with the current gcc. Search the AUR. There's PKGBUILD for older version of gcc that can be installed side by side with the current gcc. I'm not sure how well it will work, though.

Could you tell us what app you're trying to build and what are the error messages? Maybe it can be fixed to work with gfortran.

Offline

#15 2006-07-07 09:40:56

Legout
Member
From: Wuerburg/germany
Registered: 2004-01-19
Posts: 292

Re: g77 with gcc package

hi Snowman,

i´m trying to build rlabplus, which is a wrapper to the "gnu scientific library".
It seems to be a great scientific development environmet.

It´s similar to octave, but has a c-like syntax.

For the error messages and the PKGBUILD, have a look here:

http://bbs.archlinux.org/viewtopic.php?t=22994

I hope, that you can help!!!

Thanks

Offline

#16 2006-07-07 10:54:11

Legout
Member
From: Wuerburg/germany
Registered: 2004-01-19
Posts: 292

Re: g77 with gcc package

It´s me again.

I´ve installed gcc-3.4.3 and gcc-g77-3.4.3 and now i can compile the package.

But snowman, if you could have a look at the app, so that it would install with the new gfortran.

Offline

#17 2006-10-23 21:33:27

Sigi
Member
From: Thurgau, Switzerland
Registered: 2005-09-22
Posts: 1,131

Re: g77 with gcc package

Its sometimes helpful to use the following:

export F77=gfortran

This helped for my elmer_mathlibs package, available in the AUR soon 8)


Haven't been here in a while. Still rocking Arch. smile

Offline

#18 2006-10-24 05:34:53

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: g77 with gcc package

Yes, I did something similar to build rlabplus.  The PKGBUILD is in another thread.

Offline

#19 2006-10-24 11:05:13

Sigi
Member
From: Thurgau, Switzerland
Registered: 2005-09-22
Posts: 1,131

Re: g77 with gcc package

One additional comment on that topic:
It's sometimes FC=gfortran instead of F77, as usual depending on the configure script of the package.


Haven't been here in a while. Still rocking Arch. smile

Offline

#20 2006-10-24 14:24:28

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: g77 with gcc package

And it can also be:
FORTRAN=gfortran
or
G77=gfortran
I had to use the four of them to build rlabplus (it uses a bunch of different libraries).

Offline

Board footer

Powered by FluxBB