tbenthompson/okada_wrapper

ImportError: DLL load failed: The specified module could not be found.

Closed this issue · 4 comments

On windows 10, python 3.7.1, and VS2017 I'm getting this error after trying to run the test script:

>>python test_okada.py
Traceback (most recent call last):
  File "test_okada.py", line 1, in <module>
    from okada_wrapper import dc3d0wrapper, dc3dwrapper
  File "C:\Users\......\okada_wrapper-master\okada_wrapper\__init__.py", line 4, in <module>
    from okada_wrapper.okada_wrapper import dc3d0wrapper, dc3dwrapper
  File "C:\Users\.....\okada_wrapper-master\okada_wrapper\okada_wrapper.py", line 1, in <module>
    from DC3D import dc3d0, dc3d
ImportError: DLL load failed: The specified module could not be found.

The setup seems to run normally though:

>>python setup.py install
C:\Program Files (x86)\Python37-32\lib\distutils\dist.py:274: UserWarning: Unknown distribution option: 'zip_safe'
  warnings.warn(msg)
running install
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building extension "DC3D" sources
f2py options: []
  adding 'build\src.win32-3.7\build\src.win32-3.7\okada_wrapper\fortranobject.c' to sources.
  adding 'build\src.win32-3.7\build\src.win32-3.7\okada_wrapper' to include_dirs.
  adding 'build\src.win32-3.7\okada_wrapper\DC3D-f2pywrappers.f' to sources.
build_src: building npy-pkg config files
running build_py
running build_ext
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
customize MSVCCompiler using build_ext
get_default_fcompiler: matching types: '['gnu', 'intelv', 'absoft', 'compaqv', 'intelev', 'gnu95', 'g95', 'intelvem', 'intelem', 'flang']'
customize GnuFCompiler
Could not locate executable g77
Could not locate executable f77
customize IntelVisualFCompiler
Could not locate executable ifort
Could not locate executable ifl
customize AbsoftFCompiler
Could not locate executable f90
customize CompaqVisualFCompiler
Could not locate executable DF
customize IntelItaniumVisualFCompiler
Could not locate executable efl
customize Gnu95FCompiler
Found executable C:\TDM-GCC-64\bin\gfortran.exe
customize Gnu95FCompiler
customize Gnu95FCompiler using build_ext
copying build\temp.win32-3.7\Release\.libs\libDC3D.YWWING242CKUXVDDK3RRUTNJTTTDPZ7R.gfortran-win32.dll -> build\lib.win32-3.7\DC3D\.libs
running install_lib
running install_egg_info
Removing C:\Program Files (x86)\Python37-32\Lib\site-packages\okada_wrapper-17.07.25-py3.7.egg-info
Writing C:\Program Files (x86)\Python37-32\Lib\site-packages\okada_wrapper-17.07.25-py3.7.egg-info
running install_clib
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler

I don't see the compilation output in what you pasted. I'm not very familiar with Windows, but I see some errors like No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils. Could that be the issue? For reference, I pasted the results of python setup.py install that I get running in a fresh virtualenv.

/usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'zip_safe'
  warnings.warn(msg)
running install
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building extension "DC3D" sources
f2py options: []
  adding 'build/src.linux-x86_64-3.6/build/src.linux-x86_64-3.6/okada_wrapper/fortranobject.c' to sources.
  adding 'build/src.linux-x86_64-3.6/build/src.linux-x86_64-3.6/okada_wrapper' to include_dirs.
copying /home/tbent/.virtualenvs/testtest/lib/python3.6/site-packages/numpy/f2py/src/fortranobject.c -> build/src.linux-x86_64-3.6/build/src.linux-x86_64-3.6/okada_wrapper
copying /home/tbent/.virtualenvs/testtest/lib/python3.6/site-packages/numpy/f2py/src/fortranobject.h -> build/src.linux-x86_64-3.6/build/src.linux-x86_64-3.6/okada_wrapper
  adding 'build/src.linux-x86_64-3.6/okada_wrapper/DC3D-f2pywrappers.f' to sources.
build_src: building npy-pkg config files
running build_py
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
get_default_fcompiler: matching types: '['gnu95', 'intel', 'lahey', 'pg', 'absoft', 'nag', 'vast', 'compaq', 'intele', 'intelem', 'gnu', 'g95', 'pathf95', 'nagfor']'
customize Gnu95FCompiler
Found executable /usr/bin/gfortran
customize Gnu95FCompiler
customize Gnu95FCompiler using build_ext
building 'DC3D' extension
compiling C sources
C compiler: ccachegcc -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-EKG1lX/python3.6-3.6.5=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC

compile options: '-Ibuild/src.linux-x86_64-3.6/build/src.linux-x86_64-3.6/okada_wrapper -I/home/tbent/.virtualenvs/testtest/lib/python3.6/site-packages/numpy/core/include -I/usr/include/python3.6m -I/home/tbent/.virtualenvs/testtest/include/python3.6m -c'
extra options: '-O3'
ccachegcc: build/src.linux-x86_64-3.6/okada_wrapper/DC3Dmodule.c
ccachegcc: build/src.linux-x86_64-3.6/build/src.linux-x86_64-3.6/okada_wrapper/fortranobject.c
In file included from /home/tbent/.virtualenvs/testtest/lib/python3.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1821:0,
                 from /home/tbent/.virtualenvs/testtest/lib/python3.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
                 from /home/tbent/.virtualenvs/testtest/lib/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from build/src.linux-x86_64-3.6/build/src.linux-x86_64-3.6/okada_wrapper/fortranobject.h:13,
                 from build/src.linux-x86_64-3.6/build/src.linux-x86_64-3.6/okada_wrapper/fortranobject.c:2:
/home/tbent/.virtualenvs/testtest/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
 #warning "Using deprecated NumPy API, disable it by " \
  ^~~~~~~
In file included from /home/tbent/.virtualenvs/testtest/lib/python3.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1821:0,
                 from /home/tbent/.virtualenvs/testtest/lib/python3.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
                 from /home/tbent/.virtualenvs/testtest/lib/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from build/src.linux-x86_64-3.6/okada_wrapper/fortranobject.h:13,
                 from build/src.linux-x86_64-3.6/okada_wrapper/DC3Dmodule.c:16:
/home/tbent/.virtualenvs/testtest/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
 #warning "Using deprecated NumPy API, disable it by " \
  ^~~~~~~
build/src.linux-x86_64-3.6/okada_wrapper/DC3Dmodule.c:102:12: warning: ‘f2py_size’ defined but not used [-Wunused-function]
 static int f2py_size(PyArrayObject* var, ...)
            ^~~~~~~~~
compiling Fortran sources
Fortran f77 compiler: /usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -fPIC -O3 -funroll-loops
Fortran f90 compiler: /usr/bin/gfortran -Wall -g -fno-second-underscore -fPIC -O3 -funroll-loops
Fortran fix compiler: /usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -Wall -g -fno-second-underscore -fPIC -O3 -funroll-loops
compile options: '-Ibuild/src.linux-x86_64-3.6/build/src.linux-x86_64-3.6/okada_wrapper -I/home/tbent/.virtualenvs/testtest/lib/python3.6/site-packages/numpy/core/include -I/usr/include/python3.6m -I/home/tbent/.virtualenvs/testtest/include/python3.6m -c'
gfortran:f77: okada_wrapper/DC3D.f
gfortran:f77: build/src.linux-x86_64-3.6/okada_wrapper/DC3D-f2pywrappers.f
okada_wrapper/DC3D.f:94:9:

       UX=U(1)
         1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:95:9:

       UY=U(2)
         1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:96:9:

       UZ=U(3)
         1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:97:10:

       UXX=U(4)
          1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:98:10:

       UYX=U(5)
          1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:99:10:

       UZX=U(6)
          1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:100:10:

       UXY=U(7)
          1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:101:10:

       UYY=U(8)
          1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:102:10:

       UZY=U(9)
          1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:103:10:

       UXZ=U(10)
          1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:104:10:

       UYZ=U(11)
          1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:105:10:

       UZZ=U(12)
          1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:110:9:

    99 UX=F0
         1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:111:9:

       UY=F0
         1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:112:9:

       UZ=F0
         1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:113:10:

       UXX=F0
          1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:114:10:

       UYX=F0
          1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:115:10:

       UZX=F0
          1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:116:10:

       UXY=F0
          1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:117:10:

       UYY=F0
          1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:118:10:

       UZY=F0
          1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:119:10:

       UXZ=F0
          1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:120:10:

       UYZ=F0
          1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:121:10:

       UZZ=F0
          1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:650:9:

       UX=U(1)
         1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:651:9:

       UY=U(2)
         1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:652:9:

       UZ=U(3)
         1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:653:10:

       UXX=U(4)
          1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:654:10:

       UYX=U(5)
          1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:655:10:

       UZX=U(6)
          1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:656:10:

       UXY=U(7)
          1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:657:10:

       UYY=U(8)
          1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:658:10:

       UZY=U(9)
          1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:659:10:

       UXZ=U(10)
          1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:660:10:

       UYZ=U(11)
          1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:661:10:

       UZZ=U(12)
          1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:666:9:

    99 UX=F0
         1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:667:9:

       UY=F0
         1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:668:9:

       UZ=F0
         1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:669:10:

       UXX=F0
          1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:670:10:

       UYX=F0
          1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:671:10:

       UZX=F0
          1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:672:10:

       UXY=F0
          1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:673:10:

       UYY=F0
          1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:674:10:

       UZY=F0
          1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:675:10:

       UXZ=F0
          1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:676:10:

       UYZ=F0
          1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:677:10:

       UZZ=F0
          1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
okada_wrapper/DC3D.f:241:17:

       COMMON /C1/P,Q,S,T,XY,X2,Y2,D2,R,R2,R3,R5,QR,QRX,A3,A5,B3,C3,
                 1
Warning: Named COMMON block ‘c1’ at (1) shall be of the same size as elsewhere (192 vs 144 bytes)
okada_wrapper/DC3D.f:1037:17:

       COMMON /C0/DUMMY(5),SD,CD
                 1
Warning: Named COMMON block ‘c0’ at (1) shall be of the same size as elsewhere (56 vs 96 bytes)
okada_wrapper/DC3D.f:37:17:

       COMMON /C1/DUMMY(8),R
                 1
Warning: Named COMMON block ‘c1’ at (1) shall be of the same size as elsewhere (72 vs 192 bytes)
okada_wrapper/DC3D.f:506:17:

       COMMON /C0/DUMMY(5),SD,CD
                 1
Warning: Named COMMON block ‘c0’ at (1) shall be of the same size as elsewhere (56 vs 96 bytes)
/usr/bin/gfortran -Wall -g -Wall -g -shared build/temp.linux-x86_64-3.6/build/src.linux-x86_64-3.6/okada_wrapper/DC3Dmodule.o build/temp.linux-x86_64-3.6/build/src.linux-x86_64-3.6/build/src.linux-x86_64-3.6/okada_wrapper/fortranobject.o build/temp.linux-x86_64-3.6/okada_wrapper/DC3D.o build/temp.linux-x86_64-3.6/build/src.linux-x86_64-3.6/okada_wrapper/DC3D-f2pywrappers.o -L/usr/lib/gcc/x86_64-linux-gnu/7 -L/usr/lib/gcc/x86_64-linux-gnu/7 -lgfortran -o build/lib.linux-x86_64-3.6/DC3D.cpython-36m-x86_64-linux-gnu.so
running install_lib
copying build/lib.linux-x86_64-3.6/DC3D.cpython-36m-x86_64-linux-gnu.so -> /home/tbent/.virtualenvs/testtest/lib/python3.6/site-packages
creating /home/tbent/.virtualenvs/testtest/lib/python3.6/site-packages/okada_wrapper
copying build/lib.linux-x86_64-3.6/okada_wrapper/okada_wrapper.py -> /home/tbent/.virtualenvs/testtest/lib/python3.6/site-packages/okada_wrapper
copying build/lib.linux-x86_64-3.6/okada_wrapper/__init__.py -> /home/tbent/.virtualenvs/testtest/lib/python3.6/site-packages/okada_wrapper
byte-compiling /home/tbent/.virtualenvs/testtest/lib/python3.6/site-packages/okada_wrapper/okada_wrapper.py to okada_wrapper.cpython-36.pyc
byte-compiling /home/tbent/.virtualenvs/testtest/lib/python3.6/site-packages/okada_wrapper/__init__.py to __init__.cpython-36.pyc
running install_egg_info
Writing /home/tbent/.virtualenvs/testtest/lib/python3.6/site-packages/okada_wrapper-17.11.03.egg-info
running install_clib
customize UnixCCompiler

Thanks Ben, yes that probably could be the issue, because whenever I try to compile DC3D.f by g95 I get this error:

>>g95 dc3d.f
In file dc3d.f:140

      COMMON /C1/P,Q,S,T,XY,X2,Y2,D2,R,R2,R3,R5,QR,QRX,A3,A5,B3,C3,
              1
In file dc3d.f:37

      COMMON /C1/DUMMY(8),R
              2
Warning (121): COMMON block 'c1' is 192 bytes at (1) and 72 bytes at (2)
In file dc3d.f:364

      COMMON /C1/P,Q,S,T,XY,X2,Y2,D2,R,R2,R3,R5,QR,QRX,A3,A5,B3,C3
              1
In file dc3d.f:37

      COMMON /C1/DUMMY(8),R
              2
Warning (121): COMMON block 'c1' is 144 bytes at (1) and 192 bytes at (2)
In file dc3d.f:506

      COMMON /C0/DUMMY(5),SD,CD
              1
In file dc3d.f:139

      COMMON /C0/ALP1,ALP2,ALP3,ALP4,ALP5,SD,CD,SDSD,CDCD,SDCD,S2D,C2D
              2
Warning (121): COMMON block 'c0' is 56 bytes at (1) and 96 bytes at (2)
In file dc3d.f:1037

      COMMON /C0/DUMMY(5),SD,CD
              1
In file dc3d.f:139

      COMMON /C0/ALP1,ALP2,ALP3,ALP4,ALP5,SD,CD,SDSD,CDCD,SDCD,S2D,C2D
              2
Warning (121): COMMON block 'c0' is 56 bytes at (1) and 96 bytes at (2)
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s: Assembler messages:
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:10: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:74: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:76: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:96: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:98: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:100: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:131: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:133: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:135: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:137: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:139: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:141: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:143: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:145: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:196: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:198: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:200: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:204: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:206: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:208: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:210: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:212: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:214: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:216: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:218: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:223: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:225: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:227: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:229: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:231: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:233: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:235: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:237: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:239: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:244: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:246: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:248: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:250: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:252: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:254: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:256: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:258: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:260: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:450: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:1703: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:2872: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:4565: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:4567: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:4568: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:4569: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:4632: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:4634: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:4994: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:4995: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:4996: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:4997: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:4999: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5000: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5001: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5016: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5018: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5020: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5022: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5024: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5025: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5026: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5468: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5469: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5470: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5471: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5473: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5474: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5475: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5490: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5492: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5494: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5496: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5498: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5499: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5500: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5515: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5517: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5519: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5521: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5523: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5524: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5525: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5539: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5541: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5543: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5545: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5547: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5549: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5550: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5551: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5867: Error: invalid instruction suffix for `pop'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5868: Error: invalid instruction suffix for `pop'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5869: Error: invalid instruction suffix for `pop'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:5886: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:6656: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:6795: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:6796: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:6945: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:6946: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:7717: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:9266: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:9268: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:9443: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:9790: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:9792: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:10010: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:10011: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:10078: Error: invalid instruction suffix for `push'
C:\Users\h118341\AppData\Local\Temp/ccRiAsJb.s:10079: Error: invalid instruction suffix for `push'

With gfortran I get this:

>>gfortran dc3d.f
dc3d.f:241:17:

       COMMON /C1/P,Q,S,T,XY,X2,Y2,D2,R,R2,R3,R5,QR,QRX,A3,A5,B3,C3,
                 1
Warning: Named COMMON block 'c1' at (1) shall be of the same size as elsewhere (192 vs 144 bytes)
dc3d.f:1037:17:

       COMMON /C0/DUMMY(5),SD,CD
                 1
Warning: Named COMMON block 'c0' at (1) shall be of the same size as elsewhere (56 vs 96 bytes)
dc3d.f:37:17:

       COMMON /C1/DUMMY(8),R
                 1
Warning: Named COMMON block 'c1' at (1) shall be of the same size as elsewhere (72 vs 192 bytes)
dc3d.f:506:17:

       COMMON /C0/DUMMY(5),SD,CD
                 1
Warning: Named COMMON block 'c0' at (1) shall be of the same size as elsewhere (56 vs 96 bytes)
C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a(lib64_libmingw32_a-crt0_c.o): In function `main':
C:/crossdev/src/mingw-w64-v4-git/mingw-w64-crt/crt/crt0_c.c:18: undefined reference to `WinMain'
collect2.exe: error: ld returned 1 exit status

And g77 compiler output is similar to g95.

I fixed numpy error you mentioned but still can't see compiler output:

>python setup.py install
C:\Program Files (x86)\Python37-32\lib\distutils\dist.py:274: UserWarning: Unknown distribution option: 'zip_safe'
  warnings.warn(msg)
running install
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building extension "DC3D" sources
f2py options: []
  adding 'build\src.win32-3.7\build\src.win32-3.7\okada_wrapper\fortranobject.c' to sources.
  adding 'build\src.win32-3.7\build\src.win32-3.7\okada_wrapper' to include_dirs.
  adding 'build\src.win32-3.7\okada_wrapper\DC3D-f2pywrappers.f' to sources.
build_src: building npy-pkg config files
running build_py
running build_ext
customize Mingw32CCompiler
customize Mingw32CCompiler using build_ext
get_default_fcompiler: matching types: '['gnu', 'intelv', 'absoft', 'compaqv', 'intelev', 'gnu95', 'g95', 'intelvem', 'intelem', 'flang']'
customize GnuFCompiler
Found executable C:\MinGW\bin\g77.exe
gnu: no Fortran 90 compiler found
gnu: no Fortran 90 compiler found
customize GnuFCompiler
gnu: no Fortran 90 compiler found
gnu: no Fortran 90 compiler found
customize GnuFCompiler using build_ext
copying build\temp.win32-3.7\Release\.libs\libDC3D.YWWING242CKUXVDDK3RRUTNJTTTDPZ7R.gfortran-win32.dll -> build\lib.win32-3.7\DC3D\.libs
running install_lib
running install_egg_info
Removing C:\Program Files (x86)\Python37-32\Lib\site-packages\okada_wrapper-17.07.25-py3.7.egg-info
Writing C:\Program Files (x86)\Python37-32\Lib\site-packages\okada_wrapper-17.07.25-py3.7.egg-info
running install_clib

The compiler output you pasted is as expected because the code needs to be compiled as a shared library rather than an executable. Regarding the lack of compilation in the setup.py install... maybe try following along with this advice: https://scipy.github.io/old-wiki/pages/F2PY_Windows.html