[Function Module].
Compile mindspore 1.3.0 with error CMake Error at cmake/utils.cmake:301 (message): Failed patch:
[Steps & Problems]
1. The compilation process after executing bash build.sh -e ascend gives an error, as follows:
-- Build files have been written to: /root/mindspore-v1.3.0/build/mindspore/_deps/icu4c-subbuild [100%] Built target icu4c-populate icu4c_SOURCE_DIR : /root/mindspore-v1.3.0/build/mindspore/_deps/icu4c-src patching /root/mindspore-v1.3.0/build/mindspore/_deps/icu4c-src -p1 < /root/mindspore-v1.3.0/build/mindspore/_ms_patch/icu4c.patch01 patching file icu4c/source/runConfigureICU Reversed (or previously applied) patch detected! Assume -R?[n] Apply anyway?[n] Skipping patch. 1 out of 1 hunk ignored -- saving rejects to file icu4c/source/runConfigureICU.rej CMake Error at cmake/utils.cmake:301 (message): Failed patch: /root/mindspore-v1.3.0/build/mindspore/_ms_patch/icu4c.patch01 Call Stack (most recent call first): cmake/external_libs/icu4c.cmake:36 (mindspore_add_pkg) cmake/mind_expression.cmake:85 (include) CMakeLists.txt:51 (include) -- Configuring incomplete, errors occurred! See also "/root/mindspore-v1.3.0/build/mindspore/CMakeFiles/CMakeOutput.log". See also "/root/mindspore-v1.3.0/build/mindspore/CMakeFiles/CMakeError.log".
——————————————————————————————————————————-
This situation is usually due to the failure of the last compilation on the way, try to compile again, please try to deal with the following.
rm -rf mindspore/build/mindspore/_deps/icu*
Then retry the compilation.
Read More:
- CMake Error at Could NOT find Python3 [Solved]
- [Solved] MindSpore Error: “operation does not support the type kMetaTypeNone“
- [Solved] ImportError: cannot import name ‘delayed‘ from ‘sklearn.utils.fixes‘
- [Solved] modulenotfounderror: no module named ‘torchtext.legacy.data.datasets_ utils‘
- [Solved] scikit-learn Error: ModuleNotFoundError: No module named ‘sklearn.utils.linear_assignment_’
- RuntimeError: stack expects each tensor to be equal size, but got [x] at entry 0 and [x] at entry 1
- [Solved] Django Configurate celery error: django.db.utils.DatabaseError
- Python: Django exception when executing migrate operation: django.db.utils.OperationalError: (1051, “Unknown table’xxx’”)
- [Solved] RuntimeError: cublas runtime error : resource allocation failed at
- [Solved] RuntimeError: cuda runtime error (801) : operation not supported at
- [Solved] RuntimeError: function ALSQPlusBackward returned a gradient different than None at position 3, but t
- How to Solve RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu
- [Solved] bushi RuntimeError: version_ <= kMaxSupportedFileFormatVersion INTERNAL ASSERT FAILED at /pytorch/caffe2/s
- [Solved] RuntimeError: cuda runtime error (100) : no CUDA-capable device is detected at
- [Solved] pytorch loss.backward() Error: RuntimeError: Function AddBackward0 returned an invalid gradient at index 1…
- Pytorch Error: error: identifier “AT_CHECK“ is undefined [How to Solve]
- [Solved] Python setup.py install Error: error: identifier “AT_CHECK“ is undefined
- [Solved] RuntimeError: cublas runtime error : unknown error at C:/w/b/win…cu:225
- Django Render home error: TypeError at /render() missing 1 required positional argument: ‘template_name‘