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

Offline gd_on

  • Regular
  • ***
  • Posts: 413
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: 413
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

Offline grem

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: gfortran TDM 5.1 problem
« Reply #4 on: June 29, 2018, 02:23:52 am »
What about updating/replacing "codeblocks-17.12mingw_fortran-setup.exe" with updated TDM MinGW librariy as current binary contains such serious problem?

What will the replacement of TDM in future? Does it planning to replace it with MinGW64 as currently as I see the TDM development is frozen?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6295
    • My Best Post
Re: gfortran TDM 5.1 problem
« Reply #5 on: June 29, 2018, 03:16:33 am »
What about updating/replacing "codeblocks-17.12mingw_fortran-setup.exe" with updated TDM MinGW librariy as current binary contains such serious problem?

What will the replacement of TDM in future? Does it planning to replace it with MinGW64 as currently as I see the TDM development is frozen?

I think we should remove the "codeblocks-17.12mingw_fortran-setup.exe" from the download site.

C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Testing, compiling CB Trunk against wxWidgets 3.0.2.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline gd_on

  • Regular
  • ***
  • Posts: 413
Re: gfortran TDM 5.1 problem
« Reply #6 on: June 29, 2018, 09:01:13 am »
Quote
I think we should remove the "codeblocks-17.12mingw_fortran-setup.exe" from the download site.
I think a better solution is to propose a recent MinGW version : may be 7.3 (or 8.1, but may be too new !). Personnaly, I have projects mixing C, C++ and fortran codes, in 32 and/or 64 bits. So, I need an homogeneous solution.
What is your feeling devs ?
What is the best solution ?
Which one to choose between pure 32 bits solution, or 64 bits ones ?
If I look at the number of downloads, it looks that for 64 bit, a good choice is seh, posix and for pure 32 bits it's dwarf, posix.
If for 64 bits, it's looks compatible with TDM choices, for pure 32 bits, it's different with TDM choices I think.
Could someone explain in simple words the advantage of the different choices ?
Thanks,
gd_on
« Last Edit: June 29, 2018, 09:20:35 am by 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