Hi Sarah,
If your question is about how to find reason of the failure, then the following may help:
If `cmake` fails I believe the reason should be visible from `cmake` output, you can post it here.
If `make` fails and you cannot see the reason, try `make -j1` to build in single thread. Error should be at the end of the log. You can use `make -j1 --trace` to have even more information.