-
Notifications
You must be signed in to change notification settings - Fork 7
Description
问题日志:
Sending build context to Docker daemon 9.216kB
Step 1/56 : FROM ubuntu:22.04 AS python-installer
---> 61cbdeb57a0f
Step 2/56 : ENV PATH=/usr/local/python3.11.13/bin:${PATH}
---> Using cache
---> 2b148b204b9d
Step 3/56 : RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y apt-transport-https ca-certificates bash curl build-essential libssl-dev zlib1g-dev libncurses5-dev libbz2-dev libreadline-dev libsqlite3-dev libffi-dev libnss3-dev libgdbm-dev liblzma-dev libev-dev && apt-get clean && rm -rf /var/lib/apt/lists/* && rm -rf /var/tmp/* && rm -rf /tmp/*
---> Using cache
---> 1ca59278e7a3
Step 4/56 : RUN curl -fsSL https://repo.huaweicloud.com/python/3.11.13/Python-3.11.13.tgz -o /tmp/Python-3.11.13.tgz && tar -xf /tmp/Python-3.11.13.tgz -C /tmp && cd /tmp/Python-3.11.13 && mkdir -p /usr/local/python3.11.13/lib && ./configure --enable-shared --enable-shared LDFLAGS="-Wl,-rpath /usr/local/python3.11.13/lib" --prefix=/usr/local/python3.11.13 && make -j $(nproc) && make altinstall && ln -sf /usr/local/python3.11.13/bin/python3.11 /usr/local/python3.11.13/bin/python3 && ln -sf /usr/local/python3.11.13/bin/pip3.11 /usr/local/python3.11.13/bin/pip3 && ln -sf /usr/local/python3.11.13/bin/python3 /usr/local/python3.11.13/bin/python && ln -sf /usr/local/python3.11.13/bin/pip3 /usr/local/python3.11.13/bin/pip && rm -rf /tmp/*
---> Using cache
---> b823b4419b53
Step 5/56 : FROM python-installer AS cann-installer
---> b823b4419b53
Step 6/56 : ARG TARGETPLATFORM
---> Using cache
---> f9b643148435
Step 7/56 : RUN apt-get update && apt-get install --no-install-recommends -y git wget gcc g++ make cmake zlib1g openssl unzip pciutils net-tools libblas-dev gfortran patchelf libblas3 && apt-get clean && rm -rf /var/lib/apt/lists/*
---> Using cache
---> c28119838e20
Step 8/56 : RUN pip install --no-cache-dir --upgrade pip
---> Using cache
---> 004219bc3dab
Step 9/56 : RUN pip install --no-cache-dir attrs cython numpy==1.24.0 decorator sympy cffi pyyaml pathlib2 psutil protobuf==3.20 scipy requests absl-py
---> Using cache
---> 5a0ccb793733
Step 10/56 : RUN ARCH=$(case "${TARGETPLATFORM}" in "linux/amd64") echo "x86_64" ;; "linux/arm64") echo "aarch64" ;; *) echo "Unsupported TARGETPLATFORM: ${TARGETPLATFORM}" && exit 1 ;; esac) && CANN_TOOLKIT_URL=https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%208.2.RC1/Ascend-cann-toolkit_8.2.RC1_linux-${ARCH}.run && CANN_KERNELS_URL=https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%208.2.RC1/Ascend-cann-kernels-910b_8.2.RC1_linux-${ARCH}.run && CANN_NNAL_URL=https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%208.2.RC1/Ascend-cann-nnal_8.2.RC1_linux-${ARCH}.run && wget --quiet --header="Referer: https://www.hiascend.com/" ${CANN_TOOLKIT_URL} -O ~/Ascend-cann-toolkit.run && wget --quiet --header="Referer: https://www.hiascend.com/" ${CANN_KERNELS_URL} -O ~/Ascend-cann-kernels.run && wget --quiet --header="Referer: https://www.hiascend.com/" ${CANN_NNAL_URL} -O ~/Ascend-cann-nnal.run
---> Running in e3ed5bad22a0
The command '/bin/sh -c ARCH=$(case "${TARGETPLATFORM}" in "linux/amd64") echo "x86_64" ;; "linux/arm64") echo "aarch64" ;; *) echo "Unsupported TARGETPLATFORM: ${TARGETPLATFORM}" && exit 1 ;; esac) && CANN_TOOLKIT_URL=https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%208.2.RC1/Ascend-cann-toolkit_8.2.RC1_linux-${ARCH}.run && CANN_KERNELS_URL=https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%208.2.RC1/Ascend-cann-kernels-910b_8.2.RC1_linux-${ARCH}.run && CANN_NNAL_URL=https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%208.2.RC1/Ascend-cann-nnal_8.2.RC1_linux-${ARCH}.run && wget --quiet --header="Referer: https://www.hiascend.com/" ${CANN_TOOLKIT_URL} -O ~/Ascend-cann-toolkit.run && wget --quiet --header="Referer: https://www.hiascend.com/" ${CANN_KERNELS_URL} -O ~/Ascend-cann-kernels.run && wget --quiet --header="Referer: https://www.hiascend.com/" ${CANN_NNAL_URL} -O ~/Ascend-cann-nnal.run' returned a non-zero code: 1
使用的是 8.2.rc1-910b-ubuntu22.04-py3.11 下的dockerfile进行build,宿主机信息:
Linux localhost.localdomain 4.19.90-89.11.v2401.ky10.aarch64 #1 SMP Thu Apr 25 18:20:10 CST 2024 aarch64 aarch64 aarch64 GNU/Linux
NAME="Kylin Linux Advanced Server"
VERSION="V10 (Halberd)"
ID="kylin"
VERSION_ID="V10"
PRETTY_NAME="Kylin Linux Advanced Server V10 (Halberd)"
ANSI_COLOR="0;31"