In this case, I am just using the Windows command prompt. I do not have a
setup.cfg or pydistutils.cfg file. I did create a file in
Python25\Lib\distutils called distutils.cfg containing 2 lines:
[build]
compiler = mingw32
That took care of the previous message. I am currently getting a 'failed
with exit status 1' message, that for the life of me I can't remember what
causes it.
I have attached the full (albeit tedius) output from an attempt, if someone
is willing to wade through it.
-Mark
On Fri, May 23, 2008 at 3:50 PM, Robert Kern <[EMAIL PROTECTED]> wrote:
> On Fri, May 23, 2008 at 5:48 PM, Mark Miller <[EMAIL PROTECTED]>
> wrote:
> > Thank you...getting much closer now.
> >
> > My current issue is this message:
> >
> > running build_ext
> > error: don't know how to compile C/C++ code on platform 'nt' with 'g95'
> > compiler.
> >
> > Any help?
>
> What command line are you using? Do you have a setup.cfg or
> pydistutils.cfg file that you are using? Can you show us the full
> output?
>
> --
> Robert Kern
>
> "I have come to believe that the whole world is an enigma, a harmless
> enigma that is made terrible by our own mad attempt to interpret it as
> though it had an underlying truth."
> -- Umberto Eco
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion@scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
>
F:\>c:\python25\scripts\f2py.py --fcompiler=g95 -c pick_parents.f95 -m
pick_parents
Ignoring "Python was built with Visual Studio 2003;
extensions must be built with a compiler than can generate compatible binaries.
Visual Studio 2003 was not found on this system. If you have Cygwin installed,
you can try compiling with MingW32, by passing "-c mingw32" to setup.py." (one
should fix me in fcompiler/compaq.py)
running build
running scons
customize Mingw32CCompiler
Found executable C:\MinGW\bin\gcc.exe
customize GnuFCompiler
Found executable C:\MinGW\bin\g77.exe
gnu: no Fortran 90 compiler found
gnu: no Fortran 90 compiler found
Found executable C:\MinGW\bin\g77.exe
customize GnuFCompiler
gnu: no Fortran 90 compiler found
gnu: no Fortran 90 compiler found
customize Mingw32CCompiler
customize Mingw32CCompiler using scons
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler opti
ons
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler opt
ions
running build_src
building extension "pick_parents" sources
f2py options: []
f2py:> c:\windows\temp\tmpl5mnqq\src.win32-2.5\pick_parentsmodule.c
creating c:\windows\temp\tmpl5mnqq
creating c:\windows\temp\tmpl5mnqq\src.win32-2.5
Reading fortran codes...
Reading file 'pick_parents.f95' (format:free)
Post-processing...
Block: pick_parents
Block: pick_parents
Block: seedinfo
Block: setseed
Block: getseed
Block: bivnorm
Block: expo
Block: random
Block: bivnorm4barr
Block: bivnormexpansion
Post-processing (stage 2)...
Block: pick_parents
Block: unknown_interface
Block: pick_parents
Block: seedinfo
Block: setseed
Block: getseed
Block: bivnorm
Block: expo
Block: random
Block: bivnorm4barr
Block: bivnormexpansion
Building modules...
Building module "pick_parents"...
Constructing F90 module support for "pick_parents"...
Constructing wrapper function "pick_parents.seedinfo"...
a = seedinfo()
Constructing wrapper function "pick_parents.setseed"...
setseed(seed,[k])
Constructing wrapper function "pick_parents.getseed"...
seed = getseed(k)
Constructing wrapper function "pick_parents.bivnorm"...
bivnorm(sigma,xcoords1,ycoords1,xcoords2,ycoords2,[xdim,ydim])
Constructing wrapper function "pick_parents.expo"...
expo(lambda,xcoords1,ycoords1,xcoords2,ycoords2,[xdim,ydim])
Constructing wrapper function "pick_parents.random"...
random(dummy,xcoords1,ycoords1,xcoords2,ycoords2,[xdim,ydim])
Constructing wrapper function
"pick_parents.bivnorm4barr"...
bivnorm4barr(sigma,xcoords1,ycoords1,xcoords2,ycoords2,[xdim,ydim])
Constructing wrapper function
"pick_parents.bivnormexpansion"...
bivnormexpansion(sigma,xcoords1,ycoords1,xcoords2,ycoords2,occupiedarray,[xdim,ydim])
Wrote C/API module "pick_parents" to file
"c:\windows\temp\tmpl5mnqq\src.win32-2.5/pick_parentsmodule.c"
Fortran 90 wrappers are saved to
"c:\windows\temp\tmpl5mnqq\src.win32-2.5\pick_parents-f2pywrappers2.f90"
adding 'c:\windows\temp\tmpl5mnqq\src.win32-2.5\fortranobject.c' to sources.
adding 'c:\windows\temp\tmpl5mnqq\src.win32-2.5' to include_dirs.
copying C:\Python25\lib\site-packages\numpy\f2py\src\fortranobject.c ->
c:\windows\temp\tmpl5mnqq\src.win32-2.5
copying C:\Python25\lib\site-packages\numpy\f2py\src\fortranobject.h ->
c:\windows\temp\tmpl5mnqq\src.win32-2.5
adding
'c:\windows\temp\tmpl5mnqq\src.win32-2.5\pick_parents-f2pywrappers2.f90' to
sources.
running build_ext
customize Mingw32CCompiler
customize Mingw32CCompiler using build_ext
customize G95FCompiler
Found executable C:\g95\bin\g95.exe
Found executable C:\g95\bin\g95.exe
customize G95FCompiler using build_ext
building 'pick_parents' extension
compiling C sources
C compiler: gcc -mno-cygwin -O2 -Wall -Wstrict-prototypes
creating c:\windows\temp\tmpl5mnqq\Release
creating c:\windows\temp\tmpl5mnqq\Release\windows
creating c:\windows\temp\tmpl5mnqq\Release\windows\temp
creating c:\windows\temp\tmpl5mnqq\Release\windows\temp\tmpl5mnqq
creating c:\windows\temp\tmpl5mnqq\Release\windows\temp\tmpl5mnqq\src.win32-2.5
compile options: '-Ic:\windows\temp\tmpl5mnqq\src.win32-2.5 -IC:\Python25\lib\si
te-packages\numpy\core\include -IC:\Python25\include -IC:\Python25\PC -c'
gcc -mno-cygwin -O2 -Wall -Wstrict-prototypes -Ic:\windows\temp\tmpl5mnqq\src.wi
n32-2.5 -IC:\Python25\lib\site-packages\numpy\core\include -IC:\Python25\include
-IC:\Python25\PC -c c:\windows\temp\tmpl5mnqq\src.win32-2.5\pick_parentsmodule.
c -o c:\windows\temp\tmpl5mnqq\Release\windows\temp\tmpl5mnqq\src.win32-2.5\pick
_parentsmodule.o
gcc -mno-cygwin -O2 -Wall -Wstrict-prototypes -Ic:\windows\temp\tmpl5mnqq\src.wi
n32-2.5 -IC:\Python25\lib\site-packages\numpy\core\include -IC:\Python25\include
-IC:\Python25\PC -c c:\windows\temp\tmpl5mnqq\src.win32-2.5\fortranobject.c -o
c:\windows\temp\tmpl5mnqq\Release\windows\temp\tmpl5mnqq\src.win32-2.5\fortranob
ject.o
compiling Fortran 90 module sources
Fortran f77 compiler: C:\g95\bin\g95.exe -ffixed-form -fno-second-underscore -O
Fortran f90 compiler: C:\g95\bin\g95.exe -fno-second-underscore -O
Fortran fix compiler: C:\g95\bin\g95.exe -ffixed-form -fno-second-underscore -O
compile options: '-Ic:\windows\temp\tmpl5mnqq\src.win32-2.5 -IC:\Python25\lib\si
te-packages\numpy\core\include -IC:\Python25\include -IC:\Python25\PC -c'
extra options: '-fmod=c:\windows\temp\tmpl5mnqq\Release\ -Ic:\windows\temp\tmpl5
mnqq\Release\'
g95.exe:f90: pick_parents.f95
compiling Fortran sources
Fortran f77 compiler: C:\g95\bin\g95.exe -ffixed-form -fno-second-underscore -O
Fortran f90 compiler: C:\g95\bin\g95.exe -fno-second-underscore -O
Fortran fix compiler: C:\g95\bin\g95.exe -ffixed-form -fno-second-underscore -O
compile options: '-Ic:\windows\temp\tmpl5mnqq\src.win32-2.5 -IC:\Python25\lib\si
te-packages\numpy\core\include -IC:\Python25\include -IC:\Python25\PC -c'
extra options: '-fmod=c:\windows\temp\tmpl5mnqq\Release\ -Ic:\windows\temp\tmpl5
mnqq\Release\'
g95.exe:f90: c:\windows\temp\tmpl5mnqq\src.win32-2.5\pick_parents-f2pywrappers2.
f90
C:\g95\bin\g95.exe -shared -shared c:\windows\temp\tmpl5mnqq\Release\windows\tem
p\tmpl5mnqq\src.win32-2.5\pick_parentsmodule.o c:\windows\temp\tmpl5mnqq\Release
\windows\temp\tmpl5mnqq\src.win32-2.5\fortranobject.o c:\windows\temp\tmpl5mnqq\
Release\pick_parents.o c:\windows\temp\tmpl5mnqq\Release\windows\temp\tmpl5mnqq\
src.win32-2.5\pick_parents-f2pywrappers2.o -LC:\Python25\libs -LC:\Python25\PCBu
ild -lpython25 -o .\pick_parents.pyd
ld: dllcrt2.o: No such file: No such file or directory
error: Command "C:\g95\bin\g95.exe -shared -shared c:\windows\temp\tmpl5mnqq\Rel
ease\windows\temp\tmpl5mnqq\src.win32-2.5\pick_parentsmodule.o c:\windows\temp\t
mpl5mnqq\Release\windows\temp\tmpl5mnqq\src.win32-2.5\fortranobject.o c:\windows
\temp\tmpl5mnqq\Release\pick_parents.o c:\windows\temp\tmpl5mnqq\Release\windows
\temp\tmpl5mnqq\src.win32-2.5\pick_parents-f2pywrappers2.o -LC:\Python25\libs -L
C:\Python25\PCBuild -lpython25 -o .\pick_parents.pyd" failed with exit status 1
F:\>
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion