analogdevicesinc / lnxdsp-u-boot

U-Boot for Analog Devices ADSP-SC5xx based EZ-KIT boards
3 stars 9 forks source link

Dockerfile fails to build an image #24

Open gon1332 opened 8 months ago

gon1332 commented 8 months ago

Hi!

First of all sorry if this isn't the space to post such issues.

I've tried it on current main (09225f2).

$ docker build . -f ./Dockerfile -t lnxdsp-u-boot-2023-4
[+] Building 203.0s (24/37)
 => [internal] load build definition from Dockerfile                                                                                                                                                           
 => => transferring dockerfile: 9.71kB                                                                                                                                                                         
 => [internal] load .dockerignore                                                                                                                                                                              
 => => transferring context: 2B                                                                                                                                                                                
 => [internal] load metadata for docker.io/library/ubuntu:jammy-20230126                                                                                                                                       
 => [ 1/34] FROM docker.io/library/ubuntu:jammy-20230126@sha256:9a0bdde4188b896a372804be2384015e90e3f84906b750c1a53539b585fbbe7f                                                                               
 => CACHED [ 2/34] RUN apt-get update && apt-get install -y gnupg2 wget xz-utils && rm -rf /var/lib/apt/lists/*                                                                                                
 => CACHED [ 3/34] RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -                                                                                                                    
 => CACHED [ 4/34] RUN echo deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-14 main | tee /etc/apt/sources.list.d/llvm.list                                                                                
 => CACHED [ 5/34] RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/12.2.0/x86_64-gcc-12.2.0-nolibc-aarch64-linux.tar.xz | tar -C /opt -xJ                                   
 => CACHED [ 6/34] RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/12.2.0/x86_64-gcc-12.2.0-nolibc-arm-linux-gnueabi.tar.xz | tar -C /opt -xJ                               
 => CACHED [ 7/34] RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/12.2.0/x86_64-gcc-12.2.0-nolibc-i386-linux.tar.xz | tar -C /opt -xJ                                      
 => CACHED [ 8/34] RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/12.2.0/x86_64-gcc-12.2.0-nolibc-m68k-linux.tar.xz | tar -C /opt -xJ                                      
 => CACHED [ 9/34] RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/12.2.0/x86_64-gcc-12.2.0-nolibc-mips-linux.tar.xz | tar -C /opt -xJ                                      
 => CACHED [10/34] RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/12.2.0/x86_64-gcc-12.2.0-nolibc-microblaze-linux.tar.xz | tar -C /opt -xJ                                
 => CACHED [11/34] RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/12.2.0/x86_64-gcc-12.2.0-nolibc-nios2-linux.tar.xz | tar -C /opt -xJ                                     
 => CACHED [12/34] RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/12.2.0/x86_64-gcc-12.2.0-nolibc-powerpc-linux.tar.xz | tar -C /opt -xJ                                   
 => CACHED [13/34] RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/12.2.0/x86_64-gcc-12.2.0-nolibc-riscv64-linux.tar.xz | tar -C /opt -xJ                                   
 => CACHED [14/34] RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/12.2.0/x86_64-gcc-12.2.0-nolibc-riscv32-linux.tar.xz | tar -C /opt -xJ                                   
 => CACHED [15/34] RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/12.2.0/x86_64-gcc-12.2.0-nolibc-sh2-linux.tar.xz | tar -C /opt -xJ                                       
 => CACHED [16/34] RUN wget -O - https://github.com/foss-xtensa/toolchain/releases/download/2020.07/x86_64-2020.07-xtensa-dc233c-elf.tar.gz | tar -C /opt -xz                                                  
 => CACHED [17/34] RUN wget -O - https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/releases/download/arc-2021.03-release/arc_gnu_2021.03_prebuilt_uclibc_le_archs_linux_install.tar.gz | tar --
 => CACHED [18/34] RUN apt-get update && apt-get install -y  automake  autopoint  bc  binutils-dev  bison  build-essential  clang-14  coreutils  cpio  cppcheck  curl  device-tree-compiler  dosfstools  e2fspr
 => CACHED [19/34] RUN chmod +r /boot/vmlinu*                                                                                                                                                                  
 => CACHED [20/34] RUN git clone git://git.savannah.gnu.org/grub.git /tmp/grub &&  cd /tmp/grub &&  git checkout grub-2.06 &&  git config --global user.name "GitLab CI Runner" &&  git config --global user.em
 => ERROR [21/34] RUN git clone https://gitlab.com/qemu-project/qemu.git /tmp/qemu &&  cd /tmp/qemu &&  git submodule update --init dtc &&  git checkout v6.1.0 &&  git config user.name u-boot &&  git config 
------
 > [21/34] RUN git clone https://gitlab.com/qemu-project/qemu.git /tmp/qemu &&  cd /tmp/qemu &&         git submodule update --init dtc &&      git checkout v6.1.0 &&  git config user.name u-boot &&  git conget -O - http://patchwork.ozlabs.org/project/qemu-devel/patch/20210823020813.25192-2-bmeng.cn@gmail.com/mbox/ | git am &&       ./configure --prefix=/opt/qemu --target-list="aarch64-softmmu,arm-softmmu,i386-oftmmu,ppc-softmmu,riscv32-softmmu,riscv64-softmmu,sh4-softmmu,x86_64-softmmu,xtensa-softmmu" &&        make -j$(nproc) all install &&  rm -rf /tmp/qemu:
#24 0.506 Cloning into '/tmp/qemu'...
Updating files: 100% (10099/10099), done.99)
#24 185.2 error: pathspec 'dtc' did not match any file(s) known to git
------
executor failed running [/bin/sh -c git clone https://gitlab.com/qemu-project/qemu.git /tmp/qemu &&     cd /tmp/qemu &&         git submodule update --init dtc &&      git checkout v6.1.0 &&  git config userit config user.email u-boot@denx.de &&  wget -O - http://patchwork.ozlabs.org/project/qemu-devel/patch/20210823020813.25192-2-bmeng.cn@gmail.com/mbox/ | git am &&      ./configure --prefix=/opt/qemu --targetmips64-softmmu,mips64el-softmmu,mipsel-softmmu,ppc-softmmu,riscv32-softmmu,riscv64-softmmu,sh4-softmmu,x86_64-softmmu,xtensa-softmmu" &&        make -j$(nproc) all install &&  rm -rf /tmp/qemu]: exit code: 1

That's actually a known issue that has been fixed on the upstream recently.

Is there any way this fix makes it to your main branch?

Thanks!

artursartamonovsadi commented 6 months ago

Hi, if you follow closely the u-boot mailing list there is submitted patches, to u-boot mainline to add support for adi adsp-sc5xx. So this will be not an issue in future when submitted patches will be in upstream.