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

--- Comment #6 from john.harper at vuw dot ac.nz ---
Thank you. I haven't changed my LD_FORTRAN_PATH for a long time and the 
only things in it are to do with intel/oneapi. But there are a lot of
lib64 directories in my system. How do I find which one to use with 
gfortran?


On Tue, 6 May 2025, jvdelisle at gcc dot gnu.org wrote:

> Date: Tue, 6 May 2025 23:51:31 +0000
> From: jvdelisle at gcc dot gnu.org <gcc-bugzi...@gcc.gnu.org>
> To: john.har...@vuw.ac.nz
> Subject: [Bug fortran/120111] program with bad format that compiles and runs
> 
> 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
> $
>
> -- 
> You are receiving this mail because:
> You reported the bug.


-- John Harper, School of Mathematics and Statistics
Victoria Univ. of Wellington, PO Box 600, Wellington 6140, New Zealand.
e-mail john.har...@vuw.ac.nz

Reply via email to