From: Sjouke Burry on
James Van Buskirk wrote:
> "Paul Thomas" <paul.richard.thomas(a)gmail.com> wrote in message
> news:5f1e1e90-a716-4b3c-93ee-efc3e3792617(a)g19g2000yqe.googlegroups.com...
>
>> Out of curiosity, during an extremely boring meeting, I downloaded and
>> extracted the equation.com gcc-4.5.0 snapshot package onto a memory
>> stick. I thought that this would be a good test because I have
>> absolutely no administrator rights on my work laptop :-)
>
>> It worked perfectly. I tried compiling and running a few progams and
>> encountered no problems. One nice feature of this package is that it,
>> as well as gcc, gfortran and g++, comes with all sorts of bits and
>> pieces like gdb, make etc..
>
>> http://www.equation.com/servlet/equation.cmd?call=fortran
>
> The www.equation.com package is the most usable of the Windows x64
> ones (g95 doesn't have a Windows x64 version), and installation
> really is a snap, but it does write to your PATH variable (and
> maybe EQ_LIBRARY_PATH -- but maybe I did that myself). So maybe
> the installation on that stick won't work on another machine.
> What I like to do is to create a new command prompt and point it
> at a new *.BAT file. Here is one for 32-bit gfortran:
>
> @echo off
> Title Build environment for 32-bit gfortran equation solutions
> set
> path=C:\gcc_equation32\bin;C:\gcc_equation32\libexec\gcc\i386-pc-mingw32\4.5.0;%path%
> set EQ_LIBRARY_PATH=C:\gcc_equation32\i386-pc-mingw32\lib;%EQ_LIBRARY_PATH%

Out of curiosity, I installed the pack in your suggested
C directory.
I am only used to MS forten 5.1 on dos, so do you have a
"hello world" kind of program with batch or make example to
compile/link? Just to get started, here or email(replace nulnulfour,
and remove double letters in last part).
From: steve on
On Mar 15, 2:43 pm, Luka Djigas <ldigas@___gmail___.com> wrote:
> On Mon, 15 Mar 2010 07:53:34 -0700 (PDT), Paul Thomas <paul.richard.tho....(a)gmail.com> wrote:
> >It worked perfectly.  I tried compiling and running a few progams and
> >encountered no problems.  One nice feature of this package is that it,
> >as well as gcc, gfortran and g++, comes with all sorts of bits and
> >pieces like gdb, make etc..
>
> >http://www.equation.com/servlet/equation.cmd?call=fortran
>
> Indeed. Apart from the difference that I tried the Windows port
> from gfortran's download page, it worked without errors. A PATH
> here and there, but those can hardly be mentioned as "problems".
>
> I'm interested though. (saw it a few times but never looked
> into it). That www.equation.com above - they develop a parallel
> branch of compilers, or have I misunderstood something from
> their page ?

AFAIK, Equation.com replaced libgomp, the threaded library for OpenMP
support, by their own proprietary version. They may have made
other changes to the compiler, but they haven't released anything
back to GCC if they have.

> What is their motivation for doing so ?

You would need to ask someone at equation.com. Based on their
statement "Binaries distributed at this site are a variant of GCC.
Distributions of Equation Solution have indepentent settings." You
can request the source code that they used to build their binaries,
but don't hold your breath.

--
steve


From: Jason Blevins on
On 2010-03-15, Luka Djigas <ldigas@___gmail___.com> wrote:
>
>>On Mar 15, 7:04 pm, Jason Blevins <jrble...(a)sdf.lonestar.org> wrote:
>>> This was a good opportunity to update this table--something I've been
>>> meaning to do since December:
>>>
>>> http://fortranwiki.org/fortran/show/Fortran+2003+status
>
> One suggestion though. It is purely a esthetic issue, but wouldn't it maybe
> be a good idea, if the cells in the table which contain "Y" be colored
> green, and the ones "N" red (or whatever combination). Simply as to provide
> a more easier to look at viewpoint. One easily gets lost in the
> columns/rows. (the thing that fortran drastically needs is visuality in its
> image).

Good idea. I had to convert the table from Markdown to HTML,
which will make it slightly more difficult to edit, but visually
I think the result is very nice. Thanks for the suggestion.

--
Jason Blevins
Ph.D. Candidate, Department of Economics, Duke University
http://jblevins.org/
From: James Van Buskirk on
"user1" <user1(a)example.net> wrote in message
news:hnlvrf$kio$1(a)speranza.aioe.org...

> James Van Buskirk wrote:

>> If you put such a command prompt and Shortcut.bat file on your
>> thumb drive then I would give it a better chance of working when
>> plugged in to another random (Windows) computer. You could test
>> this by taking your thumb drive to a coffeeshop and borrowing
>> anyone's laptop. Mmmm... but how do you know the drive letter for
>> your thumb drive on the computer you are going to plug it in to?
>> I'm sure there's a solution, but it might make the Shortcut.bat
>> file a bit more complicated.

> Don't know the thumb drive letter.

> I keep a setpath.bat file on the thumbdrive, open a brand new cmd.exe, and
> run the bat file on the thumb drive before doing anything else.

> something like "d:\gcc443\bin\setpath.bat d" if the thumbdrive is drive
> letter d.

> There still must be a neater way.

> --------------------------------------------------------------------------

> @echo off

> set
> path=%1:\gcc443\bin;%1:\gcc443\libexec\gcc\i386-pc-mingw32\4.4.3;%path%
> set EQ_LIBRARY_PATH=%1:\gcc443\i386-pc-mingw32\lib

I poled around a little and found that the thumb drive letter can be
given by %cd:~0,2%

So I followed this procedure to install 32-bit gfortran on a thumb
drive:

Find big enough thumb drive (e.g. 128 MB was too small) and insert
into USB slot.

Start up windows Explorer with <WINDOWS>+E key combination, navigate
to thumb drive root, and clean up root directory. I just created a
new directory call "Backup" and dragged everything into it.

Then create a new directory call gcc_eq32 in the root directory.

Start Internet Explorer and go to www.equation.com, click on the
Programming Tools link, then the Fortran,C,C++ link and scroll
down to Download: Weekly Snapshot, and click on the link to
download the 32-bit snapshot. When the little window pops up
and asks if you want to run of save, click on Save and navigate
to your thumb drive and the gcc_eq32 directory, then click on
Save.

Now back in Windows Explorer, navigate to the gcc_eq32
directory and double-click the installation executable that
you just downloaded. Accept the terms, and in the next
dialog box click on browse and browse to the gcc_eq32
directory. Click OK but delete the extra \gcc in the
installation directory name, then click on Install.

After installation, you need a couple of extra things to
make this work cleanly. First, select your gcc_eq32
directory in Windows Explorer and from the menu bar select
File | New | Text document. Change the name to Shortcut.bat,
right-click on the file and select Edit from the drop-down
menu. Paste in this stuff:

@echo off
Title Build environment for 32-bit gfortran equation solutions
set
path=%cd:~0,2%\gcc_eq32\bin;%cd:~0,2%\gcc_eq32\libexec\gcc\i686-pc-mingw32\4.5.0;%path%
set EQ_LIBRARY_PATH=%cd:~0,2%\gcc_eq32\i686-pc-mingw32\lib;%EQ_LIBRARY_PATH%
cd %cd:~0,2%\gcc_eq32

(correct any line wraps above) and then exit Notepad, saving the file.

Next, start up another instance of Windows Explorer and using the
right mouse button, drag and drop C:\WINDOWS\system32\cmd.exe to the
root directory of your thumb drive and select Create Shortcut from
the drop down menu. Right-click on the shortcut, select Properties,
and under the General tab change the name to
Command Prompt for 32-bit gfortran
Under the shortcut tab, change the target to
C:\WINDOWS\system32\cmd.exe /K %cd:~0,2%\gcc_eq32\Shortcut.bat
Change Start in to
%cd:~0,2%\gcc_eq32
And under the Options tab, make sure that QuickEdit mode
and Insert mode are checked. Click on OK, and you should have
a working thumb drive installation.

So now I tried starting up Windows Explorer, and from there
double-click the Command Prompt for 32-bit gfortran and got the
following session:

F:\gcc_eq32>dir
Volume in drive F has no label.
Volume Serial Number is 15FC-004D

Directory of F:\gcc_eq32

03/15/2010 07:35 PM <DIR> .
03/15/2010 07:35 PM <DIR> ..
03/15/2010 07:36 PM 28,969,812 gcc-4.5-20100311-32.exe
03/15/2010 07:39 PM <DIR> bin
03/15/2010 07:41 PM <DIR> i686-pc-mingw32
03/15/2010 07:44 PM <DIR> include
03/15/2010 07:45 PM <DIR> lib
03/15/2010 07:47 PM <DIR> libexec
03/15/2010 07:49 PM <DIR> share
03/15/2010 08:20 PM 269 Shortcut.bat
2 File(s) 28,970,081 bytes
8 Dir(s) 971,669,504 bytes free

F:\gcc_eq32>type Shortcut.bat
@echo off
Title Build environment for 32-bit gfortran equation solutions
set
path=%cd:~0,2%\gcc_eq32\bin;%cd:~0,2%\gcc_eq32\libexec\gcc\i686-pc-mingw32\4
..5.0;%path%
set EQ_LIBRARY_PATH=%cd:~0,2%\gcc_eq32\i686-pc-mingw32\lib;%EQ_LIBRARY_PATH%
cd %cd:~0,2%\gcc_eq32

F:\gcc_eq32>cd ..

F:\>dir
Volume in drive F has no label.
Volume Serial Number is 15FC-004D

Directory of F:\

05/31/2008 02:24 PM <DIR> Backup
03/15/2010 07:35 PM <DIR> gcc_eq32
03/15/2010 07:35 PM <DIR> gcc_eq64
03/15/2010 08:19 PM 811 Command Prompt for 32-bit
gfortran.lnk
03/15/2010 08:19 PM 811 Command Prompt for 64-bit
gfortran.lnk
03/15/2010 08:50 PM <DIR> examples
2 File(s) 1,622 bytes
4 Dir(s) 971,669,504 bytes free

F:\>cd examples

F:\examples>dir
Volume in drive F has no label.
Volume Serial Number is 15FC-004D

Directory of F:\examples

03/15/2010 08:50 PM <DIR> .
03/15/2010 08:50 PM <DIR> ..
03/15/2010 08:52 PM 99 test1.f90
03/15/2010 08:54 PM 1,030,117 test1.exe
2 File(s) 1,030,216 bytes
2 Dir(s) 971,669,504 bytes free

F:\examples>del *.exe

F:\examples>gfortran -v
Built by Equation Solution <http://www.Equation.com>.
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=f:/gcc_eq32/bin/../libexec/gcc/i686-pc-mingw32/4.5.0/lto-wra
pper.exe
Target: i686-pc-mingw32
Configured with:
.../gcc-4.5-20100311-mingw/configure --host=i686-pc-mingw32 --bu
ild=x86_64-unknown-linux-gnu --target=i686-pc-mingw32 --prefix=/home/gfortran/gc
c-home/binary/mingw32/native/x86_32/gcc/4.5-20100311 --with-gcc --with-gnu-ld
--
with-gnu-as --disable-shared --disable-nls --disable-tls --with-gmp=/home/gfortr
an/gcc-home/binary/mingw32/native/x86_32/gmp --with-mpfr=/home/gfortran/gcc-home
/binary/mingw32/native/x86_32/mpfr --with-mpc=/home/gfortran/gcc-home/binary/min
gw32/native/x86_32/mpc --enable-languages=c,fortran,c++ --with-sysroot=/home/gfo
rtran/gcc-home/binary/mingw32/cross/x86_32/gcc/4.5-20100311 --enable-libgomp
--e
nable-threads=win32 --disable-win32-registry
Thread model: win32
gcc version 4.5.0 20100311 (experimental) (GCC)

F:\examples>type test1.f90
program test1
implicit none
write(*,*) 'Hello, world ',gamma(0.5d0)**2
end program test1

F:\examples>gfortran test1.f90 -otest1

F:\examples>test1
Hello, world 3.1415926535897936

F:\examples>

While I was at it, I also installed the 64-bit gfortran from
www.equation.com under the gcc_eq64 directory. The Command Prompt
for 64-bit gfortran shortcut had a different name, of course, and
also the target was changed to
C:\WINDOWS\system32\cmd.exe /K %cd:~0,2%\gcc_eq64\Shortcut.bat
And Start In was changed to
%cd:~0,2%\gcc_eq64
and the gcc_eq64\Startup.bat file was changed a little, too.

Sample session:

F:\gcc_eq64>dir
Volume in drive F has no label.
Volume Serial Number is 15FC-004D

Directory of F:\gcc_eq64

03/15/2010 07:35 PM <DIR> .
03/15/2010 07:35 PM <DIR> ..
03/15/2010 07:38 PM 37,500,044 gcc-4.5-20100311-64.exe
03/15/2010 08:49 PM 273 Shortcut.bat
03/15/2010 08:22 PM <DIR> bin
03/15/2010 08:24 PM <DIR> include
03/15/2010 08:25 PM <DIR> lib
03/15/2010 08:26 PM <DIR> libexec
03/15/2010 08:29 PM <DIR> share
03/15/2010 08:30 PM <DIR> x86_64-pc-mingw32
2 File(s) 37,500,317 bytes
8 Dir(s) 971,931,648 bytes free

F:\gcc_eq64>type Shortcut.bat
@echo off
Title Build environment for 64-bit gfortran equation solutions
set
path=%cd:~0,2%\gcc_eq64\bin;%cd:~0,2%\gcc_eq64\libexec\gcc\x86_64-pc-mingw32
\4.5.0;%path%
set
EQ_LIBRARY_PATH=%cd:~0,2%\gcc_eq64\x86_64-pc-mingw32\lib;%EQ_LIBRARY_PATH%
cd %cd:~0,2%\gcc_eq64

F:\gcc_eq64>cd ..

F:\>dir
Volume in drive F has no label.
Volume Serial Number is 15FC-004D

Directory of F:\

05/31/2008 02:24 PM <DIR> Backup
03/15/2010 07:35 PM <DIR> gcc_eq32
03/15/2010 07:35 PM <DIR> gcc_eq64
03/15/2010 08:19 PM 811 Command Prompt for 32-bit
gfortran.lnk
03/15/2010 08:19 PM 811 Command Prompt for 64-bit
gfortran.lnk
03/15/2010 08:50 PM <DIR> examples
2 File(s) 1,622 bytes
4 Dir(s) 971,931,648 bytes free

F:\>cd examples

F:\examples>dir
Volume in drive F has no label.
Volume Serial Number is 15FC-004D

Directory of F:\examples

03/15/2010 08:50 PM <DIR> .
03/15/2010 08:50 PM <DIR> ..
03/15/2010 08:52 PM 99 test1.f90
03/15/2010 09:27 PM 780,247 test1.exe
2 File(s) 780,346 bytes
2 Dir(s) 971,931,648 bytes free

F:\examples>del *.exe

F:\examples>gfortran -v
Built by Equation Solution <http://www.Equation.com>.
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=f:/gcc_eq64/bin/../libexec/gcc/x86_64-pc-mingw32/4.5.0/lto-w
rapper.exe
Target: x86_64-pc-mingw32
Configured with:
.../gcc-4.5-20100311-mingw/configure --host=x86_64-pc-mingw32 --
build=x86_64-unknown-linux-gnu --target=x86_64-pc-mingw32 --prefix=/home/gfortra
n/gcc-home/binary/mingw32/native/x86_64/gcc/4.5-20100311 --with-gmp=/home/gfortr
an/gcc-home/binary/mingw32/native/x86_64/gmp --with-mpfr=/home/gfortran/gcc-home
/binary/mingw32/native/x86_64/mpfr --with-mpc=/home/gfortran/gcc-home/binary/min
gw32/native/x86_64/mpc --with-sysroot=/home/gfortran/gcc-home/binary/mingw32/cro
ss/x86_64/gcc/4.5-20100311 --with-gcc --with-gnu-ld --with-gnu-as --disable-shar
ed --disable-nls --disable-tls --enable-libgomp --enable-languages=c,fortran,c++
--enable-threads=win32 --disable-win32-registry
Thread model: win32
gcc version 4.5.0 20100311 (experimental) (GCC)

F:\examples>gfortran test1.f90 -otest1

F:\examples>test1
Hello, world 3.1415926535897936

F:\examples>

Well, that worked for me. Are you having any problems with this
procedure?

--
write(*,*) transfer((/17.392111325966148d0,6.5794487871554595D-85, &
6.0134700243160014d-154/),(/'x'/)); end


From: Sjouke Burry on
James Van Buskirk wrote:
> "user1" <user1(a)example.net> wrote in message
cut
>
I was missing the -otest1 piece for the executable,
not used to that,and got an a.exe.

Thanks. :)


output:

double precision x/5d0/
x=4d0*atan(1d0)
print '("hello world")'
print '(1f10.8)',x
end

C:\test>gfortran hello.for -ohello

C:\test>hello
hello world
3.14159265

C:\test>