okada_wrapper
okada_wrapper copied to clipboard
Pip Install Okada Wrapper Issues
Hello Ben,
I was trying to install Okada Wrapper using the 'pip install Okada_Wrapper' but it just failed to build the wheel. I guess it could be caused by the Fortran compiler, but I can't locate where exactly the problem is. I wonder if you have any experience with this type of error. I would appreciate it very much!!! I'm so sorry that this error is just too long.
Best, Xiaoyu
pip install okada_wrapper Collecting okada_wrapper Using cached okada_wrapper-18.12.07.3.tar.gz (11 kB) Preparing metadata (setup.py) ... done Requirement already satisfied: numpy in /opt/anaconda3/lib/python3.11/site-packages (from okada_wrapper) (1.26.4) Building wheels for collected packages: okada_wrapper Building wheel for okada_wrapper (setup.py) ... error error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [780 lines of output] /private/var/folders/bd/3zw60qqs3t531mslqqd9_kgc000t3m/T/pip-install-bub4sf_i/okada-wrapper_e1a0cec63b3f4f61872ca86b92d6c718/setup.py:1: DeprecationWarning:
`numpy.distutils` is deprecated since NumPy 1.23.0, as a result
of the deprecation of `distutils` itself. It will be removed for
Python >= 3.12. For older Python versions it will remain present.
It is recommended to use `setuptools < 60.0` for those Python versions.
For more details, see:
https://numpy.org/devdocs/reference/distutils_status_migration.html
from numpy.distutils.core import setup, Extension
/opt/anaconda3/lib/python3.11/site-packages/setuptools/dist.py:318: InformationOnly: Normalizing '18.12.07.3' to '18.12.7.3'
self.metadata.version = self._normalize_version(self.metadata.version)
running bdist_wheel
running build
running config_cc
INFO: unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
INFO: unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
INFO: build_src
INFO: building extension "DC3D" sources
INFO: f2py options: []
INFO: adding 'build/src.macosx-10.9-x86_64-3.11/build/src.macosx-10.9-x86_64-3.11/okada_wrapper/fortranobject.c' to sources.
INFO: adding 'build/src.macosx-10.9-x86_64-3.11/build/src.macosx-10.9-x86_64-3.11/okada_wrapper' to include_dirs.
copying /opt/anaconda3/lib/python3.11/site-packages/numpy/f2py/src/fortranobject.c -> build/src.macosx-10.9-x86_64-3.11/build/src.macosx-10.9-x86_64-3.11/okada_wrapper
copying /opt/anaconda3/lib/python3.11/site-packages/numpy/f2py/src/fortranobject.h -> build/src.macosx-10.9-x86_64-3.11/build/src.macosx-10.9-x86_64-3.11/okada_wrapper
INFO: adding 'build/src.macosx-10.9-x86_64-3.11/okada_wrapper/DC3D-f2pywrappers.f' to sources.
INFO: build_src: building npy-pkg config files
/opt/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
running build_py
creating build/lib.macosx-10.9-x86_64-cpython-311
creating build/lib.macosx-10.9-x86_64-cpython-311/okada_wrapper
copying okada_wrapper/__init__.py -> build/lib.macosx-10.9-x86_64-cpython-311/okada_wrapper
copying okada_wrapper/okada_wrapper.py -> build/lib.macosx-10.9-x86_64-cpython-311/okada_wrapper
running build_ext
INFO: customize UnixCCompiler
INFO: customize UnixCCompiler using build_ext
INFO: CCompilerOpt.cc_test_flags[1086] : testing flags (-march=native)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
creating /var/folders/bd/3zw60qqs3t531mslqqd9_kgc000t3m/T/tmpfmswp23b/opt
creating /var/folders/bd/3zw60qqs3t531mslqqd9_kgc000t3m/T/tmpfmswp23b/opt/anaconda3
creating /var/folders/bd/3zw60qqs3t531mslqqd9_kgc000t3m/T/tmpfmswp23b/opt/anaconda3/lib
creating /var/folders/bd/3zw60qqs3t531mslqqd9_kgc000t3m/T/tmpfmswp23b/opt/anaconda3/lib/python3.11
creating /var/folders/bd/3zw60qqs3t531mslqqd9_kgc000t3m/T/tmpfmswp23b/opt/anaconda3/lib/python3.11/site-packages
creating /var/folders/bd/3zw60qqs3t531mslqqd9_kgc000t3m/T/tmpfmswp23b/opt/anaconda3/lib/python3.11/site-packages/numpy
creating /var/folders/bd/3zw60qqs3t531mslqqd9_kgc000t3m/T/tmpfmswp23b/opt/anaconda3/lib/python3.11/site-packages/numpy/distutils
creating /var/folders/bd/3zw60qqs3t531mslqqd9_kgc000t3m/T/tmpfmswp23b/opt/anaconda3/lib/python3.11/site-packages/numpy/distutils/checks
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-march=native'
INFO: CCompilerOpt.cc_test_flags[1086] : testing flags (-O3)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-O3'
INFO: CCompilerOpt.cc_test_flags[1086] : testing flags (-Werror=switch)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-Werror=switch'
INFO: CCompilerOpt.cc_test_flags[1086] : testing flags (-Werror)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-Werror'
INFO: CCompilerOpt.__init__[1795] : check requested baseline
INFO: CCompilerOpt.cc_test_flags[1086] : testing flags (-msse)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-msse'
INFO: CCompilerOpt.cc_test_flags[1086] : testing flags (-msse2)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-msse2'
INFO: CCompilerOpt.feature_test[1560] : testing feature 'SSE2' with flags (-msse -msse2)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-msse -msse2 -Werror=switch -Werror'
INFO: CCompilerOpt.feature_test[1560] : testing feature 'SSE' with flags (-msse -msse2)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-msse -msse2 -Werror=switch -Werror'
INFO: CCompilerOpt.cc_test_flags[1086] : testing flags (-msse3)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-msse3'
INFO: CCompilerOpt.feature_test[1560] : testing feature 'SSE3' with flags (-msse -msse2 -msse3)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-msse -msse2 -msse3 -Werror=switch -Werror'
INFO: CCompilerOpt.__init__[1804] : check requested dispatch-able features
INFO: CCompilerOpt.cc_test_flags[1086] : testing flags (-mssse3)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-mssse3'
INFO: CCompilerOpt.feature_test[1560] : testing feature 'SSSE3' with flags (-msse -msse2 -msse3 -mssse3)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-msse -msse2 -msse3 -mssse3 -Werror=switch -Werror'
INFO: CCompilerOpt.cc_test_flags[1086] : testing flags (-msse4.1)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-msse4.1'
INFO: CCompilerOpt.feature_test[1560] : testing feature 'SSE41' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -Werror=switch -Werror'
INFO: CCompilerOpt.cc_test_flags[1086] : testing flags (-mpopcnt)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-mpopcnt'
INFO: CCompilerOpt.feature_test[1560] : testing feature 'POPCNT' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -Werror=switch -Werror'
INFO: CCompilerOpt.cc_test_flags[1086] : testing flags (-msse4.2)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-msse4.2'
INFO: CCompilerOpt.feature_test[1560] : testing feature 'SSE42' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -Werror=switch -Werror'
INFO: CCompilerOpt.cc_test_flags[1086] : testing flags (-mavx)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-mavx'
INFO: CCompilerOpt.feature_test[1560] : testing feature 'AVX' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -Werror=switch -Werror'
INFO: CCompilerOpt.cc_test_flags[1086] : testing flags (-mf16c)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-mf16c'
INFO: CCompilerOpt.feature_test[1560] : testing feature 'F16C' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -Werror=switch -Werror'
INFO: CCompilerOpt.cc_test_flags[1086] : testing flags (-mavx2)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-mavx2'
INFO: CCompilerOpt.feature_test[1560] : testing feature 'AVX2' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mavx2)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mavx2 -Werror=switch -Werror'
INFO: CCompilerOpt.cc_test_flags[1086] : testing flags (-mfma)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-mfma'
INFO: CCompilerOpt.cc_test_flags[1086] : testing flags (-mavx512f -mno-mmx)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-mavx512f -mno-mmx'
INFO: CCompilerOpt.cc_test_flags[1086] : testing flags (-mavx512cd)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-mavx512cd'
INFO: CCompilerOpt.feature_test[1560] : testing feature 'AVX512CD' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -Werror=switch -Werror'
INFO: CCompilerOpt.feature_test[1560] : testing feature 'FMA3' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -Werror=switch -Werror'
INFO: CCompilerOpt.feature_test[1560] : testing feature 'AVX512F' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -Werror=switch -Werror'
INFO: CCompilerOpt.cc_test_flags[1086] : testing flags (-mavx512vl -mavx512bw -mavx512dq)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-mavx512vl -mavx512bw -mavx512dq'
INFO: CCompilerOpt.feature_test[1560] : testing feature 'AVX512_SKX' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512vl -mavx512bw -mavx512dq)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512vl -mavx512bw -mavx512dq -Werror=switch -Werror'
INFO: CCompilerOpt.cc_test_flags[1086] : testing flags (-mavx512ifma -mavx512vbmi)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-mavx512ifma -mavx512vbmi'
INFO: CCompilerOpt.feature_test[1560] : testing feature 'AVX512_CNL' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512vl -mavx512bw -mavx512dq -mavx512ifma -mavx512vbmi)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512vl -mavx512bw -mavx512dq -mavx512ifma -mavx512vbmi -Werror=switch -Werror'
INFO: CCompilerOpt.cc_test_flags[1086] : testing flags (-mavx512vnni)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-mavx512vnni'
INFO: CCompilerOpt.feature_test[1560] : testing feature 'AVX512_CLX' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512vl -mavx512bw -mavx512dq -mavx512vnni)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512vl -mavx512bw -mavx512dq -mavx512vnni -Werror=switch -Werror'
INFO: CCompilerOpt.cc_test_flags[1086] : testing flags (-mavx512vbmi2 -mavx512bitalg -mavx512vpopcntdq)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-mavx512vbmi2 -mavx512bitalg -mavx512vpopcntdq'
INFO: CCompilerOpt.feature_test[1560] : testing feature 'AVX512_ICL' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512vl -mavx512bw -mavx512dq -mavx512vnni -mavx512ifma -mavx512vbmi -mavx512vbmi2 -mavx512bitalg -mavx512vpopcntdq)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512vl -mavx512bw -mavx512dq -mavx512vnni -mavx512ifma -mavx512vbmi -mavx512vbmi2 -mavx512bitalg -mavx512vpopcntdq -Werror=switch -Werror'
INFO: CCompilerOpt.cc_test_flags[1086] : testing flags (-mavx512fp16)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-mavx512fp16'
INFO: CCompilerOpt.feature_test[1560] : testing feature 'AVX512_SPR' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512vl -mavx512bw -mavx512dq -mavx512vnni -mavx512ifma -mavx512vbmi -mavx512vbmi2 -mavx512bitalg -mavx512vpopcntdq -mavx512fp16)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512vl -mavx512bw -mavx512dq -mavx512vnni -mavx512ifma -mavx512vbmi -mavx512vbmi2 -mavx512bitalg -mavx512vpopcntdq -mavx512fp16 -Werror=switch -Werror'
WARN: CCompilerOpt.dist_test[637] : CCompilerOpt._dist_test_spawn[771] : Command (clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math -I/opt/anaconda3/include/python3.11 -c /opt/anaconda3/lib/python3.11/site-packages/numpy/distutils/checks/cpu_avx512_spr.c -o /var/folders/bd/3zw60qqs3t531mslqqd9_kgc000t3m/T/tmpfmswp23b/opt/anaconda3/lib/python3.11/site-packages/numpy/distutils/checks/cpu_avx512_spr.o -MMD -MF /var/folders/bd/3zw60qqs3t531mslqqd9_kgc000t3m/T/tmpfmswp23b/opt/anaconda3/lib/python3.11/site-packages/numpy/distutils/checks/cpu_avx512_spr.o.d -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512vl -mavx512bw -mavx512dq -mavx512vnni -mavx512ifma -mavx512vbmi -mavx512vbmi2 -mavx512bitalg -mavx512vpopcntdq -mavx512fp16 -Werror=switch -Werror) failed with exit status 1 output ->
/opt/anaconda3/lib/python3.11/site-packages/numpy/distutils/checks/cpu_avx512_spr.c:20:2: error:
#error
^
1 error generated.
WARN: CCompilerOpt.feature_test[1576] : testing failed
INFO: CCompilerOpt.cc_test_flags[1086] : testing flags (-mavx512er -mavx512pf)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-mavx512er -mavx512pf'
INFO: CCompilerOpt.feature_test[1560] : testing feature 'AVX512_KNL' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512er -mavx512pf)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512er -mavx512pf -Werror=switch -Werror'
INFO: CCompilerOpt.cc_test_flags[1086] : testing flags (-mavx5124fmaps -mavx5124vnniw -mavx512vpopcntdq)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-mavx5124fmaps -mavx5124vnniw -mavx512vpopcntdq'
WARN: CCompilerOpt.dist_test[637] : CCompilerOpt._dist_test_spawn[771] : Command (clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math -I/opt/anaconda3/include/python3.11 -c /opt/anaconda3/lib/python3.11/site-packages/numpy/distutils/checks/test_flags.c -o /var/folders/bd/3zw60qqs3t531mslqqd9_kgc000t3m/T/tmpfmswp23b/opt/anaconda3/lib/python3.11/site-packages/numpy/distutils/checks/test_flags.o -MMD -MF /var/folders/bd/3zw60qqs3t531mslqqd9_kgc000t3m/T/tmpfmswp23b/opt/anaconda3/lib/python3.11/site-packages/numpy/distutils/checks/test_flags.o.d -mavx5124fmaps -mavx5124vnniw -mavx512vpopcntdq) failed with exit status 1 output ->
clang: error: unknown argument: '-mavx5124fmaps'
clang: error: unknown argument: '-mavx5124vnniw'
WARN: CCompilerOpt.cc_test_flags[1090] : testing failed
INFO: CCompilerOpt.feature_test[1560] : testing feature 'AVX512_KNM' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512er -mavx512pf)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512er -mavx512pf -Werror=switch -Werror'
WARN: CCompilerOpt.dist_test[637] : CCompilerOpt._dist_test_spawn[771] : Command (clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math -I/opt/anaconda3/include/python3.11 -c /opt/anaconda3/lib/python3.11/site-packages/numpy/distutils/checks/cpu_avx512_knm.c -o /var/folders/bd/3zw60qqs3t531mslqqd9_kgc000t3m/T/tmpfmswp23b/opt/anaconda3/lib/python3.11/site-packages/numpy/distutils/checks/cpu_avx512_knm.o -MMD -MF /var/folders/bd/3zw60qqs3t531mslqqd9_kgc000t3m/T/tmpfmswp23b/opt/anaconda3/lib/python3.11/site-packages/numpy/distutils/checks/cpu_avx512_knm.o.d -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512er -mavx512pf -Werror=switch -Werror) failed with exit status 1 output ->
/opt/anaconda3/lib/python3.11/site-packages/numpy/distutils/checks/cpu_avx512_knm.c:22:9: error: call to undeclared function '_mm512_4fmadd_ps'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
b = _mm512_4fmadd_ps(b, b, b, b, b, NULL);
^
/opt/anaconda3/lib/python3.11/site-packages/numpy/distutils/checks/cpu_avx512_knm.c:22:9: note: did you mean '_mm512_fmadd_ps'?
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/avx512fintrin.h:2720:1: note: '_mm512_fmadd_ps' declared here
_mm512_fmadd_ps(__m512 __A, __m512 __B, __m512 __C)
^
/opt/anaconda3/lib/python3.11/site-packages/numpy/distutils/checks/cpu_avx512_knm.c:22:7: error: assigning to '__m512' (vector of 16 'float' values) from incompatible type 'int'
b = _mm512_4fmadd_ps(b, b, b, b, b, NULL);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/anaconda3/lib/python3.11/site-packages/numpy/distutils/checks/cpu_avx512_knm.c:24:9: error: call to undeclared function '_mm512_4dpwssd_epi32'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
a = _mm512_4dpwssd_epi32(a, a, a, a, a, NULL);
^
/opt/anaconda3/lib/python3.11/site-packages/numpy/distutils/checks/cpu_avx512_knm.c:24:9: note: did you mean '_mm512_dpwssd_epi32'?
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/avx512vnniintrin.h:68:1: note: '_mm512_dpwssd_epi32' declared here
_mm512_dpwssd_epi32(__m512i __S, __m512i __A, __m512i __B)
^
/opt/anaconda3/lib/python3.11/site-packages/numpy/distutils/checks/cpu_avx512_knm.c:24:7: error: assigning to '__m512i' (vector of 8 'long long' values) from incompatible type 'int'
a = _mm512_4dpwssd_epi32(a, a, a, a, a, NULL);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4 errors generated.
WARN: CCompilerOpt.feature_test[1576] : testing failed
INFO: CCompilerOpt.__init__[1816] : skip features (SSE SSE2 SSE3) since its part of baseline
INFO: CCompilerOpt.__init__[1820] : initialize targets groups
INFO: CCompilerOpt.__init__[1822] : parse target group simd_test
INFO: CCompilerOpt._parse_target_tokens[2033] : skip targets (FMA4 VSX4 VXE VSX XOP VSX3 VXE2 VX VSX2 ASIMD NEON) not part of baseline or dispatch-able features
INFO: CCompilerOpt._parse_policy_not_keepbase[2145] : skip baseline features (SSE2)
INFO: CCompilerOpt.generate_dispatch_header[2366] : generate CPU dispatch header: (build/src.macosx-10.9-x86_64-3.11/numpy/distutils/include/npy_cpu_dispatch_config.h)
WARN: CCompilerOpt.generate_dispatch_header[2375] : dispatch header dir build/src.macosx-10.9-x86_64-3.11/numpy/distutils/include does not exist, creating it
INFO: CCompilerOpt.feature_extra_checks[1640] : Testing extra checks for feature 'AVX512F' (AVX512F_REDUCE)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -Werror=switch -Werror'
INFO: CCompilerOpt.feature_extra_checks[1640] : Testing extra checks for feature 'AVX512_SKX' (AVX512BW_MASK AVX512DQ_MASK)
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512vl -mavx512bw -mavx512dq -Werror=switch -Werror'
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
INFO: compile options: '-I/opt/anaconda3/include/python3.11 -c'
extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512vl -mavx512bw -mavx512dq -Werror=switch -Werror'
INFO: get_default_fcompiler: matching types: '['gnu95', 'nag', 'nagfor', 'absoft', 'ibm', 'intel', 'gnu', 'g95', 'pg']'
INFO: customize Gnu95FCompiler
INFO: Found executable /usr/local/bin/gfortran
INFO: customize Gnu95FCompiler
INFO: customize Gnu95FCompiler using build_ext
INFO: building 'DC3D' extension
INFO: compiling C sources
INFO: C compiler: clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/anaconda3/include -fPIC -O2 -isystem /opt/anaconda3/include -ftrapping-math
creating build/temp.macosx-10.9-x86_64-cpython-311/build
creating build/temp.macosx-10.9-x86_64-cpython-311/build/src.macosx-10.9-x86_64-3.11
creating build/temp.macosx-10.9-x86_64-cpython-311/build/src.macosx-10.9-x86_64-3.11/okada_wrapper
creating build/temp.macosx-10.9-x86_64-cpython-311/build/src.macosx-10.9-x86_64-3.11/build
creating build/temp.macosx-10.9-x86_64-cpython-311/build/src.macosx-10.9-x86_64-3.11/build/src.macosx-10.9-x86_64-3.11
creating build/temp.macosx-10.9-x86_64-cpython-311/build/src.macosx-10.9-x86_64-3.11/build/src.macosx-10.9-x86_64-3.11/okada_wrapper
INFO: compile options: '-Ibuild/src.macosx-10.9-x86_64-3.11/build/src.macosx-10.9-x86_64-3.11/okada_wrapper -I/opt/anaconda3/lib/python3.11/site-packages/numpy/core/include -Ibuild/src.macosx-10.9-x86_64-3.11/numpy/distutils/include -I/opt/anaconda3/include/python3.11 -c'
extra options: '-O3 -msse -msse2 -msse3'
INFO: clang: build/src.macosx-10.9-x86_64-3.11/okada_wrapper/DC3Dmodule.c
INFO: clang: build/src.macosx-10.9-x86_64-3.11/build/src.macosx-10.9-x86_64-3.11/okada_wrapper/fortranobject.c
INFO: compiling Fortran sources
INFO: Fortran f77 compiler: /usr/local/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -fPIC -O3 -funroll-loops
Fortran f90 compiler: /usr/local/bin/gfortran -Wall -g -fno-second-underscore -fPIC -O3 -funroll-loops
Fortran fix compiler: /usr/local/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -Wall -g -fno-second-underscore -fPIC -O3 -funroll-loops
creating build/temp.macosx-10.9-x86_64-cpython-311/okada_wrapper
INFO: compile options: '-Ibuild/src.macosx-10.9-x86_64-3.11/build/src.macosx-10.9-x86_64-3.11/okada_wrapper -I/opt/anaconda3/lib/python3.11/site-packages/numpy/core/include -Ibuild/src.macosx-10.9-x86_64-3.11/numpy/distutils/include -I/opt/anaconda3/include/python3.11 -c'
INFO: gfortran:f77: okada_wrapper/DC3D.f
INFO: gfortran:f77: build/src.macosx-10.9-x86_64-3.11/okada_wrapper/DC3D-f2pywrappers.f
okada_wrapper/DC3D.f:146:72:
146 | 111 U(I)=F0
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 111 at (1)
okada_wrapper/DC3D.f:164:72:
164 | 222 U(I)=U(I)+POT1/PI2*DU(I)
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 222 at (1)
okada_wrapper/DC3D.f:183:72:
183 | 333 U(I)=U(I)+POT2/PI2*DU(I)
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 333 at (1)
okada_wrapper/DC3D.f:202:72:
202 | 444 U(I)=U(I)+POT3/PI2*DU(I)
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 444 at (1)
okada_wrapper/DC3D.f:221:72:
221 | 555 U(I)=U(I)+POT4/PI2*DU(I)
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 555 at (1)
okada_wrapper/DC3D.f:269:72:
269 | 111 U(I)=F0
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 111 at (1)
okada_wrapper/DC3D.f:287:72:
287 | 222 U(I)=U(I)+POT1/PI2*DU(I)
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 222 at (1)
okada_wrapper/DC3D.f:306:72:
306 | 333 U(I)=U(I)+POT2/PI2*DU(I)
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 333 at (1)
okada_wrapper/DC3D.f:325:72:
325 | 444 U(I)=U(I)+POT3/PI2*DU(I)
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 444 at (1)
okada_wrapper/DC3D.f:344:72:
344 | 555 U(I)=U(I)+POT4/PI2*DU(I)
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 555 at (1)
okada_wrapper/DC3D.f:383:72:
383 | 111 U(I)=F0
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 111 at (1)
okada_wrapper/DC3D.f:401:72:
401 | 222 U(I)=U(I)+POT1/PI2*DU(I)
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 222 at (1)
okada_wrapper/DC3D.f:422:72:
422 | 333 U(I)=U(I)+POT2/PI2*DU(I)
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 333 at (1)
okada_wrapper/DC3D.f:448:72:
448 | 444 U(I)=U(I)+POT3/PI2*DU(I)
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 444 at (1)
okada_wrapper/DC3D.f:467:72:
467 | 555 U(I)=U(I)+POT4/PI2*DU(I)
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 555 at (1)
okada_wrapper/DC3D.f:701:72:
701 | 111 U(I)=F0
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 111 at (1)
okada_wrapper/DC3D.f:722:72:
722 | 222 U(I)=U(I)+DISL1/PI2*DU(I)
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 222 at (1)
okada_wrapper/DC3D.f:741:72:
741 | 333 U(I)=U(I)+DISL2/PI2*DU(I)
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 333 at (1)
okada_wrapper/DC3D.f:760:72:
760 | 444 U(I)=U(I)+DISL3/PI2*DU(I)
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 444 at (1)
okada_wrapper/DC3D.f:820:72:
820 | 111 U(I)=F0
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 111 at (1)
okada_wrapper/DC3D.f:840:72:
840 | 222 U(I)=U(I)+DISL1/PI2*DU(I)
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 222 at (1)
okada_wrapper/DC3D.f:859:72:
859 | 333 U(I)=U(I)+DISL2/PI2*DU(I)
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 333 at (1)
okada_wrapper/DC3D.f:878:72:
878 | 444 U(I)=U(I)+DISL3/PI2*DU(I)
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 444 at (1)
okada_wrapper/DC3D.f:924:72:
924 | 111 U(I)=F0
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 111 at (1)
okada_wrapper/DC3D.f:943:72:
943 | 222 U(I)=U(I)+DISL1/PI2*DU(I)
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 222 at (1)
okada_wrapper/DC3D.f:962:72:
962 | 333 U(I)=U(I)+DISL2/PI2*DU(I)
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 333 at (1)
okada_wrapper/DC3D.f:985:72:
985 | 444 U(I)=U(I)+DISL3/PI2*DU(I)
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 444 at (1)
okada_wrapper/DC3D.f:94:9:
94 | 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:
95 | 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:
96 | 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:
97 | 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:
98 | 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:
99 | 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:
100 | 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:
101 | 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:
102 | 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:
103 | 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:
104 | 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:
105 | 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:
110 | 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:
111 | 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:
112 | 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:
113 | 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:
114 | 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:
115 | 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:
116 | 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:
117 | 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:
118 | 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:
119 | 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:
120 | 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:
121 | 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:
650 | 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:
651 | 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:
652 | 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:
653 | 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:
654 | 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:
655 | 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:
656 | 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:
657 | 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:
658 | 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:
659 | 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:
660 | 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:
661 | 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:
666 | 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:
667 | 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:
668 | 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:
669 | 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:
670 | 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:
671 | 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:
672 | 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:
673 | 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:
674 | 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:
675 | 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:
676 | 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:
677 | 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:
241 | 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:
1037 | 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:
37 | 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:
506 | 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)
INFO: /usr/local/bin/gfortran -Wall -g -Wall -g -undefined dynamic_lookup -bundle build/temp.macosx-10.9-x86_64-cpython-311/build/src.macosx-10.9-x86_64-3.11/okada_wrapper/DC3Dmodule.o build/temp.macosx-10.9-x86_64-cpython-311/build/src.macosx-10.9-x86_64-3.11/build/src.macosx-10.9-x86_64-3.11/okada_wrapper/fortranobject.o build/temp.macosx-10.9-x86_64-cpython-311/okada_wrapper/DC3D.o build/temp.macosx-10.9-x86_64-cpython-311/build/src.macosx-10.9-x86_64-3.11/okada_wrapper/DC3D-f2pywrappers.o -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin20/11.1.0 -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin20/11.1.0/../../.. -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin20/11.1.0/../../.. -lgfortran -o build/lib.macosx-10.9-x86_64-cpython-311/DC3D.cpython-311-darwin.so
ld: library not found for -lSystem
collect2: error: ld returned 1 exit status
error: Command "/usr/local/bin/gfortran -Wall -g -Wall -g -undefined dynamic_lookup -bundle build/temp.macosx-10.9-x86_64-cpython-311/build/src.macosx-10.9-x86_64-3.11/okada_wrapper/DC3Dmodule.o build/temp.macosx-10.9-x86_64-cpython-311/build/src.macosx-10.9-x86_64-3.11/build/src.macosx-10.9-x86_64-3.11/okada_wrapper/fortranobject.o build/temp.macosx-10.9-x86_64-cpython-311/okada_wrapper/DC3D.o build/temp.macosx-10.9-x86_64-cpython-311/build/src.macosx-10.9-x86_64-3.11/okada_wrapper/DC3D-f2pywrappers.o -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin20/11.1.0 -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin20/11.1.0/../../.. -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin20/11.1.0/../../.. -lgfortran -o build/lib.macosx-10.9-x86_64-cpython-311/DC3D.cpython-311-darwin.so" failed with exit status 1
INFO:
########### EXT COMPILER OPTIMIZATION ###########
INFO: Platform :
Architecture: x64
Compiler : clang
CPU baseline :
Requested : 'min'
Enabled : SSE SSE2 SSE3
Flags : -msse -msse2 -msse3
Extra checks: none
CPU dispatch :
Requested : 'max -xop -fma4'
Enabled : SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2 AVX512F AVX512CD AVX512_KNL AVX512_SKX AVX512_CLX AVX512_CNL AVX512_ICL
Generated : none
INFO: CCompilerOpt.cache_flush[864] : write cache to path -> /private/var/folders/bd/3zw60qqs3t531mslqqd9_kgc000t3m/T/pip-install-bub4sf_i/okada-wrapper_e1a0cec63b3f4f61872ca86b92d6c718/build/temp.macosx-10.9-x86_64-cpython-311/ccompiler_opt_cache_ext.py
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for okada_wrapper Running setup.py clean for okada_wrapper Failed to build okada_wrapper ERROR: Could not build wheels for okada_wrapper, which is required to install pyproject.toml-based projects
Could you try installing from the GitHub repository directly? We made some updates to address deprecations (see that first warning in your log) but they weren't pushed to PyPI yet. I.e., try this:
git clone https://github.com/tbenthompson/okada_wrapper.git
pip install ./okada_wrapper/
@tbenthompson I just noticed that the README contains old "manual installation" instruction that refer to setup.py that should be modified before the PyPI release (happy to do that).
Cheers
Thanks for the quick reply! I tried using git clone and then pip install but I got the following errors:
pip install ./okada_wrapper/ Processing ./okada_wrapper Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [12 lines of output] + meson setup /Users/x3zou/okada_wrapper /Users/x3zou/okada_wrapper/.mesonpy-m92037fi -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/Users/x3zou/okada_wrapper/.mesonpy-m92037fi/meson-python-native-file.ini The Meson build system Version: 1.4.0 Source dir: /Users/x3zou/okada_wrapper Build dir: /Users/x3zou/okada_wrapper/.mesonpy-m92037fi Build type: native build Project name: DC3D Project version: undefined
../meson.build:1:0: ERROR: Compiler gfortran cannot compile programs.
A full log can be found at /Users/x3zou/okada_wrapper/.mesonpy-m92037fi/meson-logs/meson-log.txt
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed
× Encountered error while generating package metadata. ╰─> See above for output.
note: This is an issue with the package mentioned above, not pip. hint: See above for details.
Something wrong with the gfortran?
Something wrong with the gfortran?
It seems so - could you upload the log file mentioned in the output? And post your versions for the two necessary compilers:
gcc --version
gfortran --version
Interestingly, the log doesn't exist. There is no such directory on my computer at all.
output of gcc --version:
Apple clang version 15.0.0 (clang-1500.3.9.4) Target: x86_64-apple-darwin23.4.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin
output of gfortran --version:
GNU Fortran (GCC) 11.1.0 Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I saw this thread in my email and figured I should get around to publishing a release. But I ran into this same issue! I'm on a newer gfortran (13.2.0). I need to get back to my job for now, but I'll try to come back to this soon.
It looks like this issue is probably related to https://github.com/mesonbuild/meson/issues/12282 and there's a workaround towards the end of the thread. Maybe @tobiscode would understand what to do better? I haven't yet learned my way around Meson.
Also, the log file mentioned didn't exist for me either. I'm guessing there's a flag we can pass to the build so that it doesn't delete the logs but I haven't found it yet. Or maybe something else is going on there?
I'm guessing there's a flag we can pass to the build so that it doesn't delete the logs but I haven't found it yet.
Yeah I think that's what's happening - this could fix it: https://pip.pypa.io/en/latest/cli/pip_install/#cmdoption-no-clean
With regards to the actual error, with the version output
Apple clang version 15.0.0 (clang-1500.3.9.4) Target: x86_64-apple-darwin23.4.0
I can now see that you're using MacOS. I don't have a Mac myself so I can't test it, but if it's similar to the link @tbenthompson posted, then it could be because of that. In that case, I cannot directly help with debugging/testing myself, although I'm happy to give the detailed logs a close look and suggest changes you can try.
The installation was smoothly done on my Linux remote server so I will work on that server to save some time. If I have more spare time in the future I will come back to this issue. Thanks anyway for your suggestions!!!
I experienced a similar issue today when I attempted to install okada_wrapper within a conda environment.
The main problem seems to be that "numpy.distutils is deprecated and will be removed for Python >= 3.12," as indicated on this webpage (https://numpy.org/doc/stable/reference/distutils.html#). To resolve this problem, I manually set the Python version to 3.11, which solved the issue.
Pip subprocess error:
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-uc1jvqf8/okada-wrapper_11761feab7314cae89f1853642f185f3/setup.py", line 1, in <module>
from numpy.distutils.core import setup, Extension
ModuleNotFoundError: No module named 'numpy.distutils'
[end of output]
Here's what my conda environment config file looks like:
name: env-name
channels:
- conda-forge
- nodefaults
dependencies:
- python=3.11
- numpy
- pandas
- scipy
- matplotlib
- pip
- pip:
- okada_wrapper
I hope this information is helpful.
@sangchengfang the issue you're reporting is different (as far as I can see) and has already been fixed in https://github.com/tbenthompson/okada_wrapper/issues/8 and https://github.com/tbenthompson/okada_wrapper/issues/12 but it hasn't been pushed to PyPI yet (which is still in the works by @tbenthompson). You can use okada_wrapper with Python >= 3.12 if you clone the repository and install from there.
Ah! Sorry to forget to do the PyPI release. It fell off my radar. I’ll do it in the next couple days.
@tobiscode OK, got it.
Release is done! I did a quick check and it worked for me. Let me know if either of you have issues.
Thanks @tbenthompson!
Just for reference though: I can install it fine but running the test script fails if I run it directly. However, when I first open Python and then call the same import routine, everything works:
~ > python ~/projects/okada_wrapper/test_okada.py
Traceback (most recent call last):
File "/home/tkoehne/projects/okada_wrapper/test_okada.py", line 1, in <module>
from okada_wrapper import dc3d0wrapper, dc3dwrapper
File "/home/tkoehne/projects/okada_wrapper/okada_wrapper/__init__.py", line 4, in <module>
from okada_wrapper.okada_wrapper import dc3d0wrapper, dc3dwrapper
File "/home/tkoehne/projects/okada_wrapper/okada_wrapper/okada_wrapper.py", line 1, in <module>
from .DC3D import dc3d0, dc3d
ModuleNotFoundError: No module named 'okada_wrapper.DC3D'
~ > python
Python 3.11.5 | packaged by conda-forge | (main, Aug 27 2023, 03:34:09) [GCC 12.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from okada_wrapper import dc3d0wrapper, dc3dwrapper # this is the first line of test_okada.py
>>> exit()
So, I'm assuming it's again something about relative imports that could be fixed either in the source code or the test script.
Since the importing of okada_wrapper works from my package, the functionality I need is there, and I'd keep this issue closed unless the importing isn't working for other people in general. Just figured I'd leave this comment here in case other people are wondering.
Thanks for bringing this up! The error you got is expected because you’re running the script from within the okada_wrapper folder. As a result, you’re importing the local version of okada_wrapper in that folder which hasn’t been compiled yet instead of the pip-installed version that does include the compiled components. If you copy the test_okada.py file up a couple directories and then run it, I suspect you’ll see success!
Hmm this is a bit contrary to how I thought Python handles files - I have tried running the script from my home directory and that's where I get the error message. Shouldn't in that case the home directory be the working directory, and no relative imports are necessary?..
I have tried running the script from my home directory and that's where I get the error message.
Oh yeah I missed that line at the top of your copied output! Good point. Either way, from the traceback, you can see that the import is loading up the copy of okada_wrapper in your projects directory:
File "/home/tkoehne/projects/okada_wrapper/okada_wrapper/__init__.py", line 4, in <module>
You might have run pip install -e . or a similar command that installed the version projects/ as an editable package at some point? [EDIT: actually that wouldn't explain why the import works when run from the REPL. So, I'm not sure what's going wrong, but something is going wrong with where python is finding your okada_wrapper.]
Two debugging tips if you're interested:
- you can check your
sys.pathto see the order of folders Python will look in when youimporta package. - you can check where a package is coming from with
.__file__:
❯ python
Python 3.11.9 | packaged by conda-forge | (main, Apr 19 2024, 18:34:54) [Clang 16.0.6 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
imp>>> import okada_wrapper
>>> okada_wrapper.__file__
'/Users/tbent/.mambaforge/envs/okadawrappertest/lib/python3.11/site-packages/okada_wrapper/__init__.py'
Yeah it really does seem that even if I execute test_okada.py from a different folder, sys.path contains the folder where the file is located, which then results in the wrong import order. TIL! That means there is definitely a "correct" way to write imports in the package and have testing scripts at the same time. Unless someone really needs this to work out of the box, I won't spend the time on fixing this though...