Open brookman opened 2 years ago
Hello. I have tried to build the container with docker build . and got the following error after about 1h:
docker build .
[10/14] RUN git clone --recursive --single-branch https://github.com/MabezDev/rust-xtensa.git "/home/esp32-toolchain/rustc/rust_xtensa" && mkdir -p "/home/esp32-toolchain/rustc/rust_build" && cd "/home/esp32-toolchain/rustc/rust_xtensa" && git reset --hard "b365cff41a60df8fd5f1237ef71897edad0375dd" && ./configure --llvm-root "/home/esp32-toolchain/llvm/llvm_install" --prefix "/home/esp32-toolchain/rustc/rust_build" && python ./x.py build && python ./x.py install: 13 0.774 Cloning into '/home/esp32-toolchain/rustc/rust_xtensa'... Checking out files: 100% (30193/30193), done.93) 13 82.31 Submodule 'library/backtrace' (https://github.com/rust-lang/backtrace-rs.git) registered for path 'library/backtrace' 13 82.31 Submodule 'library/stdarch' (https://github.com/rust-lang/stdarch.git) registered for path 'library/stdarch' 13 82.31 Submodule 'src/doc/book' (https://github.com/rust-lang/book.git) registered for path 'src/doc/book' 13 82.31 Submodule 'src/doc/edition-guide' (https://github.com/rust-lang/edition-guide.git) registered for path 'src/doc/edition-guide' 13 82.31 Submodule 'src/doc/embedded-book' (https://github.com/rust-embedded/book.git) registered for path 'src/doc/embedded-book' 13 82.31 Submodule 'src/doc/nomicon' (https://github.com/rust-lang/nomicon.git) registered for path 'src/doc/nomicon' 13 82.31 Submodule 'src/doc/reference' (https://github.com/rust-lang/reference.git) registered for path 'src/doc/reference' 13 82.31 Submodule 'src/doc/rust-by-example' (https://github.com/rust-lang/rust-by-example.git) registered for path 'src/doc/rust-by-example' 13 82.31 Submodule 'src/doc/rustc-dev-guide' (https://github.com/rust-lang/rustc-dev-guide.git) registered for path 'src/doc/rustc-dev-guide' 13 82.31 Submodule 'src/llvm-project' (https://github.com/espressif/llvm-project) registered for path 'src/llvm-project' 13 82.31 Submodule 'src/tools/cargo' (https://github.com/rust-lang/cargo.git) registered for path 'src/tools/cargo' 13 82.31 Submodule 'src/tools/miri' (https://github.com/rust-lang/miri.git) registered for path 'src/tools/miri' 13 82.31 Submodule 'src/tools/rls' (https://github.com/rust-lang/rls.git) registered for path 'src/tools/rls' 13 82.31 Submodule 'src/tools/rust-analyzer' (https://github.com/rust-analyzer/rust-analyzer.git) registered for path 'src/tools/rust-analyzer' 13 82.31 Submodule 'src/rust-installer' (https://github.com/rust-lang/rust-installer.git) registered for path 'src/tools/rust-installer' 13 82.32 Cloning into '/home/esp32-toolchain/rustc/rust_xtensa/library/backtrace'... 13 83.81 Cloning into '/home/esp32-toolchain/rustc/rust_xtensa/library/stdarch'... 13 91.25 Cloning into '/home/esp32-toolchain/rustc/rust_xtensa/src/doc/nomicon'... 13 91.25 Cloning into '/home/esp32-toolchain/rustc/rust_xtensa/src/doc/embedded-book'... 13 91.25 Cloning into '/home/esp32-toolchain/rustc/rust_xtensa/src/tools/rust-installer'... 13 91.25 Cloning into '/home/esp32-toolchain/rustc/rust_xtensa/src/doc/reference'... 13 91.25 Cloning into '/home/esp32-toolchain/rustc/rust_xtensa/src/doc/edition-guide'... 13 91.25 Cloning into '/home/esp32-toolchain/rustc/rust_xtensa/src/doc/rust-by-example'... 13 91.25 Cloning into '/home/esp32-toolchain/rustc/rust_xtensa/src/doc/rustc-dev-guide'... 13 91.25 Cloning into '/home/esp32-toolchain/rustc/rust_xtensa/src/tools/miri'... 13 91.25 Cloning into '/home/esp32-toolchain/rustc/rust_xtensa/src/tools/rls'... 13 91.35 Cloning into '/home/esp32-toolchain/rustc/rust_xtensa/src/doc/book'... 13 98.39 Cloning into '/home/esp32-toolchain/rustc/rust_xtensa/src/tools/rust-analyzer'... 13 102.1 Cloning into '/home/esp32-toolchain/rustc/rust_xtensa/src/tools/cargo'... 13 102.2 Cloning into '/home/esp32-toolchain/rustc/rust_xtensa/src/llvm-project'... 13 299.3 Submodule path 'library/backtrace': checked out '4f925f8d81dfa57067537217e501e1dff7433491' 13 299.4 Submodule path 'library/stdarch': checked out '89b0e355bc3cff5cddec2290c84f36eb3a026aad' 13 299.6 Submodule path 'src/doc/book': checked out 'fcb5e0ea68112d85a1d29a7a7335978ef2a02181' 13 299.6 Submodule path 'src/doc/edition-guide': checked out '2d9b1b9da706de24650fdc5c3b0182f55c82115d' 13 299.7 Submodule path 'src/doc/embedded-book': checked out 'c3a51e23859554369e6bbb5128dcef0e4f159fb5' 13 299.7 Submodule path 'src/doc/nomicon': checked out 'fe6227eb3c8533200c52dffa42ef1b6f2f02c40e' 13 299.7 Submodule path 'src/doc/reference': checked out '0e5ed7a4bec065f0cc18c35d1c904639e095314d' 13 299.8 Submodule path 'src/doc/rust-by-example': checked out '04f489c889235fe3b6dfe678ae5410d07deda958' 13 299.9 Submodule path 'src/doc/rustc-dev-guide': checked out '95f1acf9a39d6f402f654e917e2c1dfdb779c5fc' 13 307.4 Submodule path 'src/llvm-project': checked out '5d38056e4818f00281fd4504d673d8d91d0715ba' 13 307.5 Submodule path 'src/tools/cargo': checked out '4ed5d137baff5eccf1bae5a7b2ae4b57efad4a7d' 13 307.6 Submodule path 'src/tools/miri': checked out '09cadcbb62a3529801d0463d9878db3f0b5060c7' 13 307.8 Submodule path 'src/tools/rls': checked out 'bf88026f11f2cc7bb9fefdfe1dbcab642f110afa' 13 308.0 Submodule path 'src/tools/rust-analyzer': checked out '996300f4a061e895a339a909fddce94f68ce7d19' 13 308.0 Submodule path 'src/tools/rust-installer': checked out '5254dbfd25d5284728ab624dca1969d61427a0db' 13 308.0 fatal: Could not parse object 'b365cff41a60df8fd5f1237ef71897edad0375dd'. executor failed running [/bin/sh -c git clone --recursive --single-branch https://github.com/MabezDev/rust-xtensa.git "${RUSTC_PATH}" && mkdir -p "${RUSTC_BUILD_PATH}" && cd "${RUSTC_PATH}" && git reset --hard "${RUSTC_VERSION}" && ./configure --llvm-root "${LLVM_INSTALL_PATH}" --prefix "${RUSTC_BUILD_PATH}" && python ./x.py build && python ./x.py install]: exit code: 128 `
[10/14] RUN git clone --recursive --single-branch https://github.com/MabezDev/rust-xtensa.git "/home/esp32-toolchain/rustc/rust_xtensa" && mkdir -p "/home/esp32-toolchain/rustc/rust_build" && cd "/home/esp32-toolchain/rustc/rust_xtensa" && git reset --hard "b365cff41a60df8fd5f1237ef71897edad0375dd" && ./configure --llvm-root "/home/esp32-toolchain/llvm/llvm_install" --prefix "/home/esp32-toolchain/rustc/rust_build" && python ./x.py build && python ./x.py install:
Checking out files: 100% (30193/30193), done.93)
executor failed running [/bin/sh -c git clone --recursive --single-branch https://github.com/MabezDev/rust-xtensa.git "${RUSTC_PATH}" && mkdir -p "${RUSTC_BUILD_PATH}" && cd "${RUSTC_PATH}" && git reset --hard "${RUSTC_VERSION}" && ./configure --llvm-root "${LLVM_INSTALL_PATH}" --prefix "${RUSTC_BUILD_PATH}" && python ./x.py build && python ./x.py install]: exit code: 128 `
Hello. I have tried to build the container with
docker build .
and got the following error after about 1h:` [+] Building 2908.3s (14/18) => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 5.45kB 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load metadata for docker.io/library/debian:buster-slim 3.0s => [internal] load build context 0.1s => => transferring context: 6.11kB 0.0s => [ 1/14] FROM docker.io/library/debian:buster-slim@sha256:544c93597c784cf68dbe492ef35c00de7f4f6a990955c7144a40b20d86a3475f 2.7s => => resolve docker.io/library/debian:buster-slim@sha256:544c93597c784cf68dbe492ef35c00de7f4f6a990955c7144a40b20d86a3475f 0.0s => => sha256:544c93597c784cf68dbe492ef35c00de7f4f6a990955c7144a40b20d86a3475f 1.85kB / 1.85kB 0.0s => => sha256:f6ed7ce6e3264649e1d4f40585247c50e32faaf268984c5c5cbf0e67cf7f0ec7 529B / 529B 0.0s => => sha256:8ae0cebc834a83dc033065409120379a215e64d4d717449a56f211c10c8f1c95 1.46kB / 1.46kB 0.0s => => sha256:b380bbd43752f83945df8b5d1074fef8dd044820e7d3aef33b655a2483e030c7 27.14MB / 27.14MB 1.4s => => extracting sha256:b380bbd43752f83945df8b5d1074fef8dd044820e7d3aef33b655a2483e030c7 1.1s => [ 2/14] RUN apt-get update && apt-get install -y bison cmake curl flex g++ gcc git gperf libncurses-dev make ninja-build python 56.3s => [ 3/14] WORKDIR /home/esp32-toolchain/esp 0.1s => [ 4/14] RUN curl --proto '=https' --tlsv1.2 -sSf -o "/home/esp32-toolchain/esp/esp-toolchain.tar.gz" "https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.ta 3.9s => [ 5/14] WORKDIR /home/esp32-toolchain/esp 0.1s => [ 6/14] RUN git clone --recursive --single-branch -b "v3.3-beta3" https://github.com/espressif/esp-idf.git && pip install --user -r "/home/esp32-toolchain/esp/esp-idf/requirements.txt" 42.3s => [ 7/14] WORKDIR /home/esp32-toolchain/llvm 0.1s => [ 8/14] RUN mkdir "/home/esp32-toolchain/llvm/llvm_xtensa" && cd "/home/esp32-toolchain/llvm/llvm_xtensa" && git init && git remote add origin https://github.com/espressif/llvm-xtensa.git && git fetch --depth 1 2487.7s => [ 9/14] WORKDIR /home/esp32-toolchain/rustc 0.1s => ERROR [10/14] RUN git clone --recursive --single-branch https://github.com/MabezDev/rust-xtensa.git "/home/esp32-toolchain/rustc/rust_xtensa" && mkdir -p "/home/esp32-toolchain/rustc/rust_bu 311.9s