Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Where I can download GFortran for windows (compiler) free

1,781 views
Skip to first unread message

Jean-Baptiste Faure

unread,
Jun 27, 2017, 3:27:07 AM6/27/17
to
Le 27/06/2017 à 07:58, shalu....@gmail.com a écrit :
> Please help
>
For example : http://www.equation.com/servlet/equation.cmd?fa=fortran

--
Seuls des formats ouverts peuvent assurer la pérennité de vos documents

Chris Coutinho

unread,
Jun 27, 2017, 4:16:45 PM6/27/17
to
When I need to use gfortran on Windows, I use the executables available through the MinGW project (specifically the 64-bit fork of the original project: https://mingw-w64.org/).

Last I checked, they have not yet offered version 7 of gcc/g++/gfortran, which your link reports to have available.

Tim Prince

unread,
Jun 27, 2017, 9:37:26 PM6/27/17
to
Do you use a search engine?
https://gcc.gnu.org/wiki/GFortranBinaries#Windows

cygwin gives a choice of excellent builds, both mingw and cygwin native.
Unless you have a very good reason for 32-bit mode, consider 64-bit
mode. gfortran 7.x and 8.0 can be built successfully under either
cygwin or Windows 10 WSL (which seems not to be mentioned in the above
posts), although the full testsuite has difficulty usually in WSL.

Bernard

unread,
Jun 28, 2017, 12:03:35 PM6/28/17
to
On Tuesday, June 27, 2017 at 9:27:07 AM UTC+2, Jean-Baptiste Faure wrote:
GFortran version distributed by http://www.equation.com/ lacks openacc source and .mod files.

Thomas Koenig

unread,
Jun 28, 2017, 3:15:23 PM6/28/17
to
Jean-Baptiste Faure <j...@no-email-on-usenet.fr> schrieb:
> Le 27/06/2017 à 07:58, shalu....@gmail.com a écrit :
>> Please help
>>
> For example : http://www.equation.com/servlet/equation.cmd?fa=fortran

Watch out - equation.com violates the gcc (and gfortran) license by not publishing
the source to their changes to gfortran.

Bug reports against the equation.com compiler will most likely be met by
shrugs by the gfortran developers.

arba...@gmail.com

unread,
Jul 2, 2017, 5:18:19 PM7/2/17
to
I get MinGW-w64 there:

https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/
https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/

Notice there is one distribution for 32 bits compilers, another for 64 bits. They come with gcc, g++ and gfortran, but not the Ada compiler.

For a given version (say 7.1.0, currently the last), there are 8 files, one for each combination of 32/64 bits, POSIX/Windows threads, and SEH/longjump exception handling. Appart from the bit-ness, I don't think the choice is relevant for Fortran programming.

However, if you are using precompiled third party libraries, it may be important. For instance, tha LAPÄCK for Windows distribution requires a specific combination. I never remember which, but you can find out by checking the DLL imports of LAPACK's DLL.
Also, last time I checked, this LAPACK DLL was compatible with gfortran 6.3.0 and earlier versions, but not 7.1.0, because of the libgfortran version.

Another point to consider: some projects come with their own distribution of the gcc suite. For instance R, Ruby (until recently) and Strawberry Perl. If you are developing Fortran DLLs for R, consider using Rtools instead of MinGW-w64, as it comes with additionnal utilities. Notice R comes with LAPACK, so you don't need to look for it elsewhere.

Last remark: with MinGW-w64 you get only the compilers. If you need a more complete toolchain, you may try MSYS2 in addition to MinGW-w64. I have successfully used it to compile the GSL library, among others.

http://www.msys2.org/

HTH

Jean-Claude Arbaut

Tim Prince

unread,
Jul 2, 2017, 9:43:17 PM7/2/17
to
On 6/28/2017 3:15 PM, Thomas Koenig wrote:
> Jean-Baptiste Faure <j...@no-email-on-usenet.fr> schrieb:
>> Le 27/06/2017 à 07:58, shalu....@gmail.com a écrit :
>>> Please help
>>>
>> For example : http://www.equation.com/servlet/equation.cmd?fa=fortran
>
> Watch out - equation.com violates the gcc (and gfortran) license by not publishing
> the source to their changes to gfortran.
In fact, their OpenMP library appears to be proprietary closed source.
If only libgomp could be fully supported for Windows, it might reduce
the incentive some people seem to see for ignoring the license issues.
>
> Bug reports against the equation.com compiler will most likely be met by
> shrugs by the gfortran developers.
>
This was a confusing issue when gfortran 4.1 appeared to be
problematical (not only the equation.com version). But it seems
difficult to track down problems in the many variants of mingw or find
anyone to support them.

J. Clarke

unread,
Jul 3, 2017, 8:38:22 PM7/3/17
to
In article <0c33f17e-9dd4-41a5...@googlegroups.com>,
shalu....@gmail.com says...
>
> Please help

If you are running 64 bit Windows 10 then first install the Bash shell
<https://msdn.microsoft.com/en-us/commandline/wsl/install_guide>

Then once that is up, do sudo apt-get install gfortran, let it install, and
you're set.


0 new messages