gasabr commented on issue #14670:
URL:
https://github.com/apache/incubator-mxnet/issues/14670#issuecomment-698343224
i'm trying to build mxnet version 1.5.0 from sources and still receive the
same error (in 1.5.1 as well) could you please help me with this? Below goes
context of my dockerfile, so the error should be trivial to reproduce
``` Dockerfile
FROM ubuntu:18.04 as build
LABEL description="build images for the extractor server"
# next 2 lines help avoid configuring tzinfo in docker
ENV TZ=Europe/Moscow
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezon
RUN apt update \
&& apt install -y git g++ build-essential automake libtool libssl-dev \
libcpprest-dev wget \
libopenblas-dev liblapack-dev libopencv-dev graphviz \
libjemalloc-dev libatlas-base-dev \
python3.8 \
&& rm -rf /var/lib/apt/lists/*
# installing cmake, because apt installs 3.10, when 3.13 is needed
RUN git clone --depth 1 --branch v3.17.0 https://github.com/Kitware/CMake/ \
&& cd CMake \
&& ./bootstrap -- -DCMAKE_USE_OPENSSL=OFF && make && make install
ENV OPENCV_VERSION=4.1.1
# Building and installing `OpenCV`
RUN wget https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.tar.gz \
-O /usr/src/opencv-${OPENCV_VERSION}.tar.gz \
&& tar -xzf /usr/src/opencv-${OPENCV_VERSION}.tar.gz -C /usr/src \
&& cd /usr/src/opencv-${OPENCV_VERSION}/ && mkdir -p build && cd build \
&& cmake -DBUILD_SHARED_LIBS=OFF -DOPENCV_FORCE_3RDPARTY_BUILD=ON \
-DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DWITH_1394=OFF
-DWITH_FFMPEG=OFF \
-DWITH_GTK=OFF -DWITH_GSTREAMER=OFF .. && make install -j $(nproc) \
&& rm /usr/src/opencv-${OPENCV_VERSION}.tar.gz
# install mkl libs
RUN cd /tmp && \
# now get the key:
wget
https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB
&& \
# now install that key
ls && \
apt-key add ./GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB && \
# now remove the public key file exit the root shell
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB && \
wget https://apt.repos.intel.com/setup/intelproducts.list -O
/etc/apt/sources.list.d/intelproducts.list &&\
apt-get update && \
apt-get install -y intel-mkl-2020.0-088
WORKDIR /usr/src
RUN git clone --depth 1 --branch 1.5.0 --recursive
https://github.com/apache/incubator-mxnet
RUN apt install -y python
RUN cd /usr/src/incubator-mxnet/ && \
mkdir build && cd build && \
cmake \
-DUSE_INTEL_PATH=/opt/intel \
-DUSE_CUDA=0 \
-DUSE_CPP_PACKAGE=1 \
-DUSE_CUDNN=0 \
-DUSE_MKLDNN=1 \
-DUSE_MKL_IF_AVAILABLE=0 \
-DUSE_MKLML=0 \
-DUSE_OPENCV=1 \
-DMXNET_PREDICT_ONLY=1 \
-DCMAKE_BUILD_TYPE=Release \
-DUSE_JEMALLOC=ON \
-DUSE_LAPACK=OFF \
-DBUILD_CPP_EXAMPLES=OFF \
.. && \
make install -j$(nproc)
```
----------------------------------------------------------------
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]