You are not logged in.

#1 2005-10-16 16:56:30

Fixed
Member
Registered: 2005-08-09
Posts: 210

Failed transition from g77 to gfortran (resolved)

Did an upgrade from g77 to gfortran. Now I am not able to link fftw3 package.

Before, I compiled it through:         

g77 filter.f -lfftw3

Now I get:

gfortran filter.f -lfftw3
/tmp/ccUPFGOH.o: In function `MAIN__':
filter.f: (.text+0x342): undefined reference to `dfftw_plan_dft_r2c_2d_'
filter.f: (.text+0x34d): undefined reference to `dfftw_execute_'
filter.f: (text+0x358): undefined reference to `dfftw_destroy_plan_'
filter.f: (.text+0x65e): undefined reference to `dfftw_plan_dft_c2r_2d_'
filter.f: (.text+0x669): undefined reference to `dfftw_execute_'
filter.f: (.text+0x674): undefined reference to `dfftw_destroy_plan_'
collect2: ld returned 1 exit status

Attempt to re-install g77 fails too:

pacman -S gcc-g77
error: unresolvable dependencies:

gcc-g77: requires gcc=3.4.3 but it is not in the sync d

Is it still possible to get back to g77? I really need to move on
with my project.


XFCE4 under Arch on Honor MagicBook

Offline

#2 2005-10-16 17:45:14

jftaylor21
Member
From: Arch Linux Forums
Registered: 2004-02-21
Posts: 237

Re: Failed transition from g77 to gfortran (resolved)

I too have had trouble using fortran 77 programs with the new gfortran compiler, particularly blas. Here is a quote from gcc's website:

Gfortran is not yet a fully conformant Fortran 95 compiler. It can generate code for most constructs and expressions, but work remains to be done. In particular, there are known deficiencies with ENTRY, NAMELIST, and sophisticated use of MODULES, POINTERS and DERIVED TYPES. For those whose Fortran codes conform to either the Fortran 77 standard or the GNU Fortran 77 language, we recommend to use g77 from GCC 3.4. We recommend that distributors continue to provide packages of g77-3.4 until we announce that gfortran fully replaces g77. The gfortran developers welcome any feedback on user experience with gfortran at fortran@gcc.gnu.org.

Unless we can figure out how to get g77 to compile with gcc 4, I guess we will have to wait until "gfortran fully replaces g77". :cry:
I wish that the gcc developers didn't release gfortran as "stable" until it was complete or continue to update g77 along with it so that we could still have a fully functional fortran compiler.

Offline

#3 2005-10-16 18:15:01

Fixed
Member
Registered: 2005-08-09
Posts: 210

Re: Failed transition from g77 to gfortran (resolved)

Does it mean that we cannot use g77 under ArchLinux anymore?


XFCE4 under Arch on Honor MagicBook

Offline

#4 2005-10-16 18:21:17

jftaylor21
Member
From: Arch Linux Forums
Registered: 2004-02-21
Posts: 237

Re: Failed transition from g77 to gfortran (resolved)

Well I'm not really sure of how the different gcc tools work together. From the quote above it looks like it is possible to use g77-3.4 still, but I am not sure if you can use it with gcc 4. It looks like the gcc developers are going to replace it one day with gfortran, but it is not done yet. So I am not really sure. :oops:  :?

Maybe someone else knows more about this than I?

Offline

#5 2005-10-16 18:34:41

Fixed
Member
Registered: 2005-08-09
Posts: 210

Re: Failed transition from g77 to gfortran (resolved)

As to my understanding, the message:

pacman -S gcc-g77
error: unresolvable dependencies:

gcc-g77: requires gcc=3.4.3 but it is not in the sync d

means that  gcc version 3.4.3 is not available anymore and hence, g77 is not available too.

I would appreciate the advice on how to re-install g77 (if it's possible).

It is quite frustrating that gfortran compiler was advised to be installed.
Even

man gfortran

warns that g77 shouldn't be replaced until full compliance of gfortran with Fortran 95!


XFCE4 under Arch on Honor MagicBook

Offline

#6 2005-10-16 18:41:40

arooaroo
Member
From: London, UK
Registered: 2005-01-13
Posts: 1,268
Website

Re: Failed transition from g77 to gfortran (resolved)

What about:

pacman -Rd gcc-g77
pacman -S gcc-fortran

Offline

#7 2005-10-17 00:13:44

jftaylor21
Member
From: Arch Linux Forums
Registered: 2004-02-21
Posts: 237

Re: Failed transition from g77 to gfortran (resolved)

Thanks arooaroo for the suggestion. Only I did it this way:
1) Mustered up the courage to not listen to suggested dependencies.
2) pacman -Sd gcc-g77
3) Recompile blas and lapack.
4) Now everything works! big_smile
I haven't had any problems so far, but hopefully my system won't blow up or anything. I wonder if maybe the dependencies on gcc-g77 should be changed to gcc>=3.4.3? Should I post a bug report?

Offline

#8 2005-10-17 16:41:36

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: Failed transition from g77 to gfortran (resolved)

Just what I was expecting: fftw isn't compiled with fortran support, because it doesn't detect a fortran compiler. I don't know if it's the meaning of fftw to get compiled with fortran support, but I think I'll poke damir for this one.

Offline

#9 2005-10-19 06:31:40

Fixed
Member
Registered: 2005-08-09
Posts: 210

Re: Failed transition from g77 to gfortran (resolved)

JGC -- thank you very much, upgrade worked, at least for now.

What was the problem?


XFCE4 under Arch on Honor MagicBook

Offline

Board footer

Powered by FluxBB