The error might be earlier than the last couple of lines and you could grep for it or alternatively post the complete log (or the last part at least) as a code snippet here.
@CLaireeeee
The build seems to fail with:
CMake Error at cmake/public/LoadHIP.cmake:138 (find_package):

By not providing “Findrocrand.cmake” in CMAKE_MODULE_PATH this project has

asked CMake to find a package configuration file provided by “rocrand”, but

CMake did not find one.

Could not find a package configuration file provided by “rocrand” with any

of the following names:

rocrandConfig.cmake

rocrand-config.cmake

Add the installation prefix of “rocrand” to CMAKE_PREFIX_PATH or set

“rocrand_DIR” to a directory containing one of the above files. If

“rocrand” provides a separate development package or SDK, be sure it has

been installed.

Call Stack (most recent call first):

cmake/public/LoadHIP.cmake:197 (find_package_and_print_version)

cmake/Dependencies.cmake:1189 (include)

CMakeLists.txt:615 (include)

– Configuring incomplete, errors occurred!

PS: you can post code snippets (or these types of logs) by wrapping them into three backticks ```, which would make debugging easier.