HuggingChatAllInOne icon indicating copy to clipboard operation
HuggingChatAllInOne copied to clipboard

Build error on Mac

Open lin-yaxiong opened this issue 2 years ago • 0 comments

It's giving the following error when running UpdateAllSources.sh on Mac:

Cloning into 'Sources/HuggingChat/BackEnd'... remote: Enumerating objects: 5911, done. remote: Counting objects: 100% (2907/2907), done. remote: Compressing objects: 100% (639/639), done. remote: Total 5911 (delta 2606), reused 2323 (delta 2263), pack-reused 3004 Receiving objects: 100% (5911/5911), 2.72 MiB | 2.34 MiB/s, done. Resolving deltas: 100% (4242/4242), done. Note: switching to '31e2253ae721ea80032283b9e85ffe51945e5a55'.

You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example:

git switch -c

Or undo this operation with:

git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 31e2253 feat(server): use latest flash attention commit (#543) /Users/yxl01/Documents/mcc/tmp/HuggingChatAllInOne Cloning into 'Sources/HuggingChat/FrontEnd'... remote: Enumerating objects: 2593, done. remote: Counting objects: 100% (522/522), done. remote: Compressing objects: 100% (47/47), done. remote: Total 2593 (delta 482), reused 475 (delta 475), pack-reused 2071 Receiving objects: 100% (2593/2593), 567.33 KiB | 1.89 MiB/s, done. Resolving deltas: 100% (1563/1563), done. fatal: reference is not a tree: 0aa57debc7f7ffecccb8dc16b2f4b35816fbd817

I continued to run ./BuildAllInOneDockerFile.sh and it gave the following errors: => ERROR [pytorch-install 5/5] RUN case linux/amd64 in "linux/arm64") exit 1 ;; ) /opt/conda/bin/conda update -y conda && 170.8s ... #16 62.36 Collecting package metadata (current_repodata.json): ...working... WARNING conda.models.version:get_matcher(546): Using . with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 1.7.1., but conda is ignoring the . and treating it as 1.7.1 #16 70.40 done
#16 70.40 Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve. #16 86.94 Solving environment: ...working... failed with repodata from current_repodata.json, will retry with next repodata source. #16 112.2 Collecting package metadata (repodata.json): ...working... Killed ------.00
executor failed running [/bin/sh -c case ${TARGETPLATFORM} in "linux/arm64") exit 1 ;; *) /opt/conda/bin/conda update -y conda && /opt/conda/bin/conda install -c "${INSTALL_CHANNEL}" -c "${CUDA_CHANNEL}" -y "python=${PYTHON_VERSION}" pytorch==$PYTORCH_VERSION "pytorch-cuda=$(echo $CUDA_VERSION | cut -d'.' -f 1-2)" ;; esac && /opt/conda/bin/conda clean -ya]: exit code: 137

lin-yaxiong avatar Sep 25 '23 16:09 lin-yaxiong