https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120111

--- Comment #5 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
(In reply to john.harper from comment #4)
> Sorry if I did something wrong when installing gfortran 15 from source 
> tarball gcc-15.1.0.tar.xz in a Linux Ubuntu system. Maybe your gfortran 15
> is not identical to the release I used. I certainly don't know how to fake 
> gfortran --version and I didn't want to. My evidence:
> 

One possible thing to check on your system. Do make sure that LD_LIBRARY_PATH
is set correctly. Here is an example of how one can get in trouble.

$ gfc14 missing.f90 
$ ./a.out 
At line 3 of file missing.f90 (unit = 6, file = 'stdout')
Fortran runtime error: Missing comma between descriptors
(AI0)
  ^
$ gfc13 missing.f90 
$ ./a.out 
At line 3 of file missing.f90 (unit = 6, file = 'stdout')
Fortran runtime error: Missing comma between descriptors
(AI0)
  ^
$ export LD_LIBRARY_PATH=/home/jerry/dev/usr14/lib:/home/jerry/dev/usr14/lib64
$ gfc15 missing.f90 
$ ./a.out 
6*7 = 42

When I set it correctly:

$ export LD_LIBRARY_PATH=/home/jerry/dev/usr15/lib:/home/jerry/dev/usr15/lib64
$ ./a.out 
At line 3 of file missing.f90 (unit = 6, file = 'stdout')
Fortran runtime error: Missing comma between descriptors
(AI0)
  ^

I get the correct result without recompiling.

Do a quick check with

$ echo $LD_LIBRARY_PATH
/home/jerry/dev/usr15/lib:/home/jerry/dev/usr15/lib64
$

Reply via email to