Author Topic: gfortran TDM 5.1 problem  (Read 546 times)

Offline gd_on

  • Regular
  • ***
  • Posts: 408
gfortran TDM 5.1 problem
« on: January 05, 2018, 10:52:05 am »
I tried your new 17.12 C::B provided with gfortran (codeblocks-17.12mingw_fortran-setup.exe).
I think you should not distribute this gfortran version (TDM 5.1.0) because it is bugged (no such problem with TDM gcc 5.1.0).
This is not new. Version TDM 4.9.2 had not this bug. It has been corrected in official 5.2 version, and it works also with recent official versions. Its OK too with 6.4 reckless version (except a problem with an empty drive, but it's an other problem already signaled somewhere in the forum).
See the gfortran test case in attachment.
gd_on
Windows 10 or 7, svn C::B (last version or almost!), WxWidgets 2.8.12, Compilers TDM 4.9.2 32 bits (gcc and gfortran installed in C:\MinGW32). Tests with C::B 64 bits and WxWidgets 2.8.12 or 3.1.1 (64 bits) compiled by TDM 4.9.2 in C:\MinGW64

Offline BentL

  • Single posting newcomer
  • *
  • Posts: 8
Re: gfortran TDM 5.1 problem
« Reply #1 on: March 08, 2018, 03:08:55 pm »
It has been corrected in official 5.2 version, and it works also with recent official versions.

According to this bug report:

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

this bug was introduced in version 5.1 and corrected in version 5.2.

The bug is in the version 5.1.0 of the file "libgfortran-3.dll" located in the default installation folder:

C:\Program Files (x86)\CodeBlocks\MinGW\bin

A newer version 5.3.0 of this file can be found in file "libgfortran-5.3.0-3-mingw32-dll-3.tar.xz" at:

https://sourceforge.net/projects/mingw/files/MinGW/Base/gcc/Version5/gcc-5.3.0-3/

This file can be opened in e.g. WinRar and version 5.3.0 of the file "libgfortran-3.dll" can be extracted. By replacing the existing version 5.1.0 file with the version 5.3.0 file in the default installation folder mentioned above, reading from files works again.

The gfortran test case in the attachment in the post above works now.

Offline gd_on

  • Regular
  • ***
  • Posts: 408
Re: gfortran TDM 5.1 problem
« Reply #2 on: March 08, 2018, 06:37:27 pm »
cool. 8)
nevertheless, mixing 5.1 and 5.3 gfortran versions may cause other problems (but may not  ::) ). I'll try that.
gd_on
Windows 10 or 7, svn C::B (last version or almost!), WxWidgets 2.8.12, Compilers TDM 4.9.2 32 bits (gcc and gfortran installed in C:\MinGW32). Tests with C::B 64 bits and WxWidgets 2.8.12 or 3.1.1 (64 bits) compiled by TDM 4.9.2 in C:\MinGW64

Offline karaul

  • Single posting newcomer
  • *
  • Posts: 4
Re: gfortran TDM 5.1 problem
« Reply #3 on: June 12, 2018, 05:32:57 pm »
does not work in my case too