Raunak-Singh-Inventor commented on issue #20144:
URL: 
https://github.com/apache/incubator-mxnet/issues/20144#issuecomment-816822008


   I am cross-compiling `libmxnet` from my 64-bit windows desktop. I am setting 
up the build environment, and am using the `debian:buster` base image 
[https://hub.docker.com/_/debian](https://hub.docker.com/_/debian). When I 
build the environment Dockerfile, I get this error:
   
   ```
   Step 4/7 : COPY toolchains/aarch64-linux-gnu-toolchain.cmake /usr
   COPY failed: stat 
/var/lib/docker/tmp/docker-builder467877908/toolchains/aarch64-linux-gnu-toolchain.cmake:
 no such file or directory
   ```
   
   Here is my Dockerfile with the base image of `debian:buster`. I had to 
change the Dockerfile a bit to get it to run (installing pip, python3, cmake):
   ```
   FROM debian:buster
   
   RUN apt-get update && apt-get install -y \
   python3 python3-pip
   RUN python3 -m pip install --user --upgrade "cmake>=3.13.2"
   
   COPY toolchains/aarch64-linux-gnu-toolchain.cmake /usr 
    ENV CMAKE_TOOLCHAIN_FILE=/usr/aarch64-linux-gnu-toolchain.cmake 
     
    RUN git clone --recursive -b v0.3.12 https://github.com/xianyi/OpenBLAS.git 
&& \ 
        cd /usr/local/OpenBLAS && \ 
        make NOFORTRAN=1 NO_SHARED=1 CC=aarch64-linux-gnu-gcc && \ 
        make PREFIX=/usr/aarch64-linux-gnu NO_SHARED=1 install && \ 
        cd /usr/local && \ 
        rm -rf OpenBLAS 
     
    RUN git clone --recursive -b v1.2.11 https://github.com/madler/zlib.git && 
\ 
        cd /usr/local/zlib && \ 
        CHOST=arm \ 
        CC=aarch64-linux-gnu-gcc \ 
        AR=aarch64-linux-gnu-ar \ 
        RANLIB=aarch64-linux-gnu-ranlib \ 
        ./configure --static --prefix=/usr/aarch64-linux-gnu && \ 
        make -j$(nproc) && \ 
        make install && \ 
        cd /usr/local && \ 
        rm -rf zlib 
   ```
   
   @leezu  Can you give me a complete build env dockerfile? It would be helpful.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to