Hi Brad,
Thanks for the suggestions! I have followed the above steps and bypassed the intel compiler issue. However, the build failed after running make
in the top-level installer directory (step4, see make3.log (48.3 KB) for detailed output):
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
File "/Users/gcheng6/pylith/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/Users/gcheng6/pylith/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
File "/Users/gcheng6/pylith/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/Users/gcheng6/pylith/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha1
ERROR:root:code for hash sha224 was not found.
Traceback (most recent call last):
File "/Users/gcheng6/pylith/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/Users/gcheng6/pylith/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha224
ERROR:root:code for hash sha256 was not found.
Traceback (most recent call last):
File "/Users/gcheng6/pylith/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/Users/gcheng6/pylith/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha256
ERROR:root:code for hash sha384 was not found.
Traceback (most recent call last):
File "/Users/gcheng6/pylith/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/Users/gcheng6/pylith/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha384
ERROR:root:code for hash sha512 was not found.
Traceback (most recent call last):
File "/Users/gcheng6/pylith/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/Users/gcheng6/pylith/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha512
Traceback (most recent call last):
File "setup.py", line 394, in <module>
setup_package()
File "setup.py", line 386, in setup_package
setup(**metadata)
File "/Users/gcheng6/build/pylith/numpy-1.14.3/numpy/distutils/core.py", line 135, in setup
config = configuration()
File "setup.py", line 166, in configuration
config.add_subpackage('numpy')
File "/Users/gcheng6/build/pylith/numpy-1.14.3/numpy/distutils/misc_util.py", line 1024, in add_subpackage
caller_level = 2)
File "/Users/gcheng6/build/pylith/numpy-1.14.3/numpy/distutils/misc_util.py", line 993, in get_subpackage
caller_level = caller_level + 1)
File "/Users/gcheng6/build/pylith/numpy-1.14.3/numpy/distutils/misc_util.py", line 930, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "numpy/setup.py", line 10, in configuration
config.add_subpackage('core')
File "/Users/gcheng6/build/pylith/numpy-1.14.3/numpy/distutils/misc_util.py", line 1024, in add_subpackage
caller_level = 2)
File "/Users/gcheng6/build/pylith/numpy-1.14.3/numpy/distutils/misc_util.py", line 993, in get_subpackage
caller_level = caller_level + 1)
File "/Users/gcheng6/build/pylith/numpy-1.14.3/numpy/distutils/misc_util.py", line 930, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "numpy/core/setup.py", line 400, in configuration
check_api_version(C_API_VERSION, codegen_dir)
File "numpy/core/setup_common.py", line 83, in check_api_version
curapi_hash, api_hash = get_api_versions(apiversion, codegen_dir)
File "numpy/core/setup_common.py", line 74, in get_api_versions
curapi_hash = m.fullapi_hash(numpy_api.full_api)
File "numpy/core/code_generators/genapi.py", line 482, in fullapi_hash
return hashlib.md5(''.join(a).encode('ascii')).hexdigest()
AttributeError: 'module' object has no attribute 'md5'
Prior to this, when I was running make
and make install
in the python-build
directory (step3), there are several output showing errors as well:
Error output after make
in the python-build
directory (make1.log (196.3 KB) for details):
----------------- omitted -----------------
building '_bsddb' extension
/usr/share/apps/2020.2/base_arch/gcc-5.4.0/openmpi-3.1.6/bin/mpicc -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/include -I. -I../Python-2.7.15/Include -I/Users/gcheng6/pylith/include -I/usr/share/apps/2020.2/base_arch/gcc-5.4.0/hdf5-1.10.6/include -I/usr/share/apps/2020.2/base_arch/gcc-5.4.0/netcdf-cxx-4.2/include -I/usr/local/include -I/Users/gcheng6/build/pylith/Python-2.7.15/Include -I/Users/gcheng6/build/pylith/python-build -c /Users/gcheng6/build/pylith/Python-2.7.15/Modules/_bsddb.c -o build/temp.linux-x86_64-2.7/Users/gcheng6/build/pylith/Python-2.7.15/Modules/_bsddb.o
/usr/share/apps/2020.2/base_arch/gcc-5.4.0/openmpi-3.1.6/bin/mpicc -shared -L/Users/gcheng6/pylith/lib -L/Users/gcheng6/pylith/lib64 -L/Users/gcheng6/pylith/lib -L/Users/gcheng6/pylith/lib64 -L/usr/share/apps/2020.2/base_arch/gcc-5.4.0/hdf5-1.10.6/lib -L/usr/share/apps/2020.2/base_arch/gcc-5.4.0/netcdf-cxx-4.2/lib build/temp.linux-x86_64-2.7/Users/gcheng6/build/pylith/Python-2.7.15/Modules/_bsddb.o -L/usr/lib64 -L/Users/gcheng6/pylith/lib -L/usr/share/apps/2020.2/base_arch/gcc-5.4.0/hdf5-1.10.6/lib -L/usr/share/apps/2020.2/base_arch/gcc-5.4.0/netcdf-cxx-4.2/lib -L/usr/local/lib -L. -R/usr/lib64 -ldb-5.3 -lpython2.7 -o build/lib.linux-x86_64-2.7/_bsddb.so
gcc: error: unrecognized command line option '-R'
----------------- omitted -----------------
And error output after make install
in the python-build
directory (make2.log (446.3 KB) for details):
----------------- omitted -----------------
building '_bsddb' extension
/usr/share/apps/2020.2/base_arch/gcc-5.4.0/openmpi-3.1.6/bin/mpicc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include -I. -I../Python-2.7.15/Include -I/Users/gcheng6/pylith/include -I/usr/share/apps/2020.2/base_arch/gcc-5.4.0/hdf5-1.10.6/include -I/usr/share/apps/2020.2/base_arch/gcc-5.4.0/netcdf-cxx-4.2/include -I/usr/local/include -I/Users/gcheng6/build/pylith/Python-2.7.15/Include -I/Users/gcheng6/build/pylith/python-build -c /Users/gcheng6/build/pylith/Python-2.7.15/Modules/_bsddb.c -o build/temp.linux-x86_64-2.7/Users/gcheng6/build/pylith/Python-2.7.15/Modules/_bsddb.o
/usr/share/apps/2020.2/base_arch/gcc-5.4.0/openmpi-3.1.6/bin/mpicc -shared -L/Users/gcheng6/pylith/lib -L/Users/gcheng6/pylith/lib64 -L/Users/gcheng6/pylith/lib -L/Users/gcheng6/pylith/lib64 -L/usr/share/apps/2020.2/base_arch/gcc-5.4.0/hdf5-1.10.6/lib -L/usr/share/apps/2020.2/base_arch/gcc-5.4.0/netcdf-cxx-4.2/lib build/temp.linux-x86_64-2.7/Users/gcheng6/build/pylith/Python-2.7.15/Modules/_bsddb.o -L/usr/lib64 -L/Users/gcheng6/pylith/lib -L/usr/share/apps/2020.2/base_arch/gcc-5.4.0/hdf5-1.10.6/lib -L/usr/share/apps/2020.2/base_arch/gcc-5.4.0/netcdf-cxx-4.2/lib -L/usr/local/lib -L. -R/usr/lib64 -ldb-5.3 -lpython2.7 -o build/lib.linux-x86_64-2.7/_bsddb.so
gcc: error: unrecognized command line option '-R'
----------------- omitted -----------------
I wonder if these errors lead to the failed building?
Thanks in advance!
Guo