From: David A. <da...@no...> - 2002-12-24 04:02:42
|
All, I downloaded and installed f_win_021209.zip from ftp://ftp.swcp.com/pub/walt/F (looks like it is f_win_021212.zip now) into F:/F. darnold@NEWMICRONPC /f/f $ ls -al total 0 drwxr-xr-x 8 darnold unknown 0 Dec 9 22:54 . drwxr-xr-x 30 darnold unknown 0 Dec 31 1969 .. drwxr-xr-x 2 darnold unknown 0 Dec 9 22:54 bin drwxr-xr-x 2 darnold unknown 0 Dec 9 22:54 doc drwxr-xr-x 2 darnold unknown 0 Dec 9 22:54 examples drwxr-xr-x 2 darnold unknown 0 Dec 9 22:54 lib drwxr-xr-x 2 darnold unknown 0 Dec 9 22:54 src drwxr-xr-x 2 darnold unknown 0 Dec 9 22:54 tmp I've also downloaded MSYS-1.0.8.exe and MinGW-2.0.0-3.exe and installed in F: darnold@NEWMICRONPC / $ ls -al total 6 drwxr-xr-x 9 darnold unknown 0 Dec 9 22:04 . drwxr-xr-x 9 darnold unknown 0 Dec 9 22:04 .. drwxr-xr-x 2 darnold unknown 0 Dec 9 22:04 bin drwxr-xr-x 3 darnold unknown 0 Dec 9 22:04 doc drwxr-xr-x 2 darnold unknown 0 Dec 9 22:04 etc drwxr-xr-x 3 darnold unknown 0 Dec 9 22:04 home drwxr-xr-x 5 darnold unknown 0 Dec 11 07:34 local -rw-r--r-- 1 darnold unknown 2238 Dec 9 08:57 m.ico drwxr-xr-x 10 darnold unknown 0 Dec 9 22:04 mingw -rwxr-xr-x 1 darnold unknown 4160 Dec 9 08:57 msys.bat -rw-r--r-- 1 darnold unknown 2238 Dec 9 08:57 msys.ico drwxr-xr-x 2 darnold unknown 0 Dec 9 22:04 uninstall Note that I've installed mingw in the directory provided by the MSYS installation. Now I've set my path in the usual way, and I can compile seven_11.f95 from a DOS box. E:\fortran>path PATH=F:\MIKTEX\MIKTEX\BIN;C:\GS\GS7.04\BIN;C:\GS\GS7.04\LIB;F:\MIKTEX\CONTEX T\PE RLTK;C:\PERL\BIN;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\YANDY\YANDYTEX\ ;E:\ MATLAB6P1\BIN\WIN32;C:\EMACS\BIN;;C:\GHOSTGUM\GSVIEW\;;F:\MSYS\1.0\MINGW\BIN ;F:\ F\BIN;;E:\J2SDK1.4.0_02\BIN;E:\MATLAB6P5\BIN\WIN32;F:\SSHSEC~1 F:\F\examples>F -o seven_11 seven_11.f95 No problems. It also runs. F:\F\examples>seven_11 The percentage of rolls that are 7 or 11 is 22.25 But in the MSYS shell, my path is: darnold@NEWMICRONPC /f/f/examples $ ls a.exe csub.c hpf_example.f95 quick_sort.f95 adaptive_integrate.f95 expression.f95 integrate.f95 random_module.mod alloc_dummy.f95 f77sub.f io_demo.f95 seven_11.exe alloc_fn.f95 f_calls_c.f95 kinds.f95 seven_11.f95 alloc_struct.f95 f_calls_f77.f95 linear_equations.f95 sieve.f95 args.f95 factor_big_int.f95 list_module.mod simple_module.f95 asinh.f95 factor_module.f95 magic_squares.f95 spec_fn.f95 big_int.f95 factorial.f95 make_primes.f95 sqrt.f95 big_integer_module.f95 fc.f95 pendulum.f95 swap.f95 char_count.f95 fpp.F95 poly_roots.f95 system.f95 comp_module.mod fppr.F95 print_pi.f95 test_gamma.f95 complex_roots.f95 hanoi.f95 quick_select.f95 tree_sort.f95 darnold@NEWMICRONPC /f/f/examples $ echo $PATH .:/usr/local/bin:/mingw/bin:/bin:/f/MIKTEX/MIKTEX/BIN:/c/GS/GS7.04/BIN:/c/GS /GS7.04/LIB:/f/MIKTEX/CONTEXT/PERLTK:/c/PERL/BIN:/c/WINDOWS:/c/WINDOWS:/c/WI NDOWS/COMMAND:/c/YANDY/YANDYTEX/:/e/MATLAB6P1/BIN/WIN32:/c/EMACS/BIN:.:/c/GH OSTGUM/GSVIEW/:.:/mingw/BIN:/f/F/BIN:.:/e/J2SDK1.4.0_02/BIN:/e/MATLAB6P5/BIN /WIN32:/f/SSHSEC~1 But when I try to compile in the MSYS shell, here is what happens. darnold@NEWMICRONPC /f/f/examples $ F -o seven_ll seven_11.f95 f:/msys/1.0/mingw/bin\gcc.exe cannot be executed Can you see what I am doing wrong? Any suggestions? |
From: Greg C. <chi...@mi...> - 2002-12-24 04:52:31
|
David Arnold wrote: > [snip discussion of installing 'F', a sort of FORTRAN compiler] [apparently it works in a 'DOS' session but not in MSYS] > > darnold@NEWMICRONPC /f/f/examples > $ F -o seven_ll seven_11.f95 > f:/msys/1.0/mingw/bin\gcc.exe cannot be executed I'd guess that 'F' is trying to execute gcc in some way that MSYS doesn't like. It would probably be helpful to pin down exactly what the 'F' source code is doing and turn that into a minimal test case (a few lines of code that can be compiled into a tiny standalone program) and report that here. |