You are not logged in.
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
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
Does it mean that we cannot use g77 under ArchLinux anymore?
XFCE4 under Arch on Honor MagicBook
Offline
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
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
What about:
pacman -Rd gcc-g77
pacman -S gcc-fortran
Offline
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!
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
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
JGC -- thank you very much, upgrade worked, at least for now.
What was the problem?
XFCE4 under Arch on Honor MagicBook
Offline