Device Information (please complete the following information):
- aarch64 / arm64 on Debian
Command with arguments
git clone --recursive https://github.com/sist2app/sist2/
cd sist2
docker build --file Dockerfile.amd4 --progress=plain -t localhost:5000/sist2:latest .
Describe the bug
The docker build fails.
Steps To Reproduce
Just execute the mentioned commands or follow the instructions to build mentioned on the main page.
Output
#0 building with "default" instance using docker driver
#1 [internal] load build definition from Dockerfile.arm64
#1 transferring dockerfile: 2.98kB 0.0s done
#1 DONE 0.1s
#2 [internal] load metadata for docker.io/sist2app/sist2-build-arm64:latest
#2 DONE 0.0s
#3 [internal] load metadata for docker.io/library/ubuntu@sha256:537da24818633b45fcb65e5285a68c3ec1f3db25f5ae5476a7757bc8dfae92a3
#3 ...
#4 [auth] library/ubuntu:pull token for registry-1.docker.io
#4 DONE 0.0s
#3 [internal] load metadata for docker.io/library/ubuntu@sha256:537da24818633b45fcb65e5285a68c3ec1f3db25f5ae5476a7757bc8dfae92a3
#3 DONE 1.8s
#5 [internal] load .dockerignore
#5 transferring context: 585B done
#5 DONE 0.0s
#6 [build 1/16] FROM docker.io/sist2app/sist2-build-arm64:latest
#6 DONE 0.0s
#7 [internal] load build context
#7 DONE 0.0s
#8 [stage-1 1/8] FROM docker.io/library/ubuntu@sha256:537da24818633b45fcb65e5285a68c3ec1f3db25f5ae5476a7757bc8dfae92a3
#8 DONE 0.0s
#9 [stage-1 2/8] WORKDIR /root
#9 CACHED
#10 [stage-1 3/8] RUN apt update && apt install -y curl libasan5 libmagic1 tesseract-ocr python3-pip python3 git && rm -rf /var/lib/apt/lists/*
#10 CACHED
#11 [stage-1 4/8] RUN mkdir -p /usr/share/tessdata && cd /usr/share/tessdata/ && curl -o /usr/share/tesseract-ocr/4.00/tessdata/hin.traineddata https://raw.githubusercontent.com/tesseract-ocr/tessdata/master/hin.traineddata && curl -o /usr/share/tesseract-ocr/4.00/tessdata/jpn.traineddata https://raw.githubusercontent.com/tesseract-ocr/tessdata/master/jpn.traineddata && curl -o /usr/share/tesseract-ocr/4.00/tessdata/eng.traineddata https://raw.githubusercontent.com/tesseract-ocr/tessdata/master/eng.traineddata && curl -o /usr/share/tesseract-ocr/4.00/tessdata/fra.traineddata https://raw.githubusercontent.com/tesseract-ocr/tessdata/master/fra.traineddata && curl -o /usr/share/tesseract-ocr/4.00/tessdata/rus.traineddata https://raw.githubusercontent.com/tesseract-ocr/tessdata/master/rus.traineddata && curl -o /usr/share/tesseract-ocr/4.00/tessdata/osd.traineddata https://raw.githubusercontent.com/tesseract-ocr/tessdata/master/osd.traineddata && curl -o /usr/share/tesseract-ocr/4.00/tessdata/spa.traineddata https://raw.githubusercontent.com/tesseract-ocr/tessdata/master/spa.traineddata && curl -o /usr/share/tesseract-ocr/4.00/tessdata/deu.traineddata https://raw.githubusercontent.com/tesseract-ocr/tessdata/master/deu.traineddata && curl -o /usr/share/tesseract-ocr/4.00/tessdata/equ.traineddata https://raw.githubusercontent.com/tesseract-ocr/tessdata/master/equ.traineddata && curl -o /usr/share/tesseract-ocr/4.00/tessdata/pol.traineddata https://raw.githubusercontent.com/tesseract-ocr/tessdata/master/pol.traineddata && curl -o /usr/share/tesseract-ocr/4.00/tessdata/chi_sim.traineddata https://raw.githubusercontent.com/tesseract-ocr/tessdata/master/chi_sim.traineddata
#11 CACHED
#7 [internal] load build context
#7 transferring context: 11.17MB 0.3s done
#7 DONE 0.3s
#12 [build 10/16] RUN cd sist2-vue/ && npm install && npm run build
#12 CACHED
#13 [build 11/16] RUN cd sist2-admin/frontend/ && npm install && npm run build
#13 CACHED
#14 [build 2/16] WORKDIR /build/
#14 CACHED
#15 [build 4/16] COPY schema schema
#15 CACHED
#16 [build 6/16] COPY third-party third-party
#16 CACHED
#17 [build 3/16] COPY scripts scripts
#17 CACHED
#18 [build 7/16] COPY src src
#18 CACHED
#19 [build 8/16] COPY sist2-vue sist2-vue
#19 CACHED
#20 [build 5/16] COPY CMakeLists.txt .
#20 CACHED
#21 [build 9/16] COPY sist2-admin sist2-admin
#21 CACHED
#22 [build 12/16] WORKDIR /build/
#22 CACHED
#23 [build 13/16] ADD . /build/
#23 DONE 2.9s
#24 [build 14/16] RUN mkdir build && cd build && cmake -DSIST_PLATFORM=arm64_linux_docker -DSIST_DEBUG_INFO=on -DSIST_DEBUG=off -DBUILD_TESTS=off -DCMAKE_TOOLCHAIN_FILE=/vcpkg/scripts/buildsystems/vcpkg.cmake ..
#24 2.577 -- The C compiler identification is GNU 12.2.0
#24 3.994 -- The CXX compiler identification is GNU 12.2.0
#24 4.038 -- Detecting C compiler ABI info
#24 4.328 -- Detecting C compiler ABI info - done
#24 4.345 -- Check for working C compiler: /usr/bin/cc - skipped
#24 4.347 -- Detecting C compile features
#24 4.348 -- Detecting C compile features - done
#24 4.369 -- Detecting CXX compiler ABI info
#24 4.601 -- Detecting CXX compiler ABI info - done
#24 4.619 -- Check for working CXX compiler: /usr/bin/c++ - skipped
#24 4.619 -- Detecting CXX compile features
#24 4.620 -- Detecting CXX compile features - done
#24 4.626 -- libmobi version 0.11
#24 4.757 -- Found ZLIB: /vcpkg/installed/arm64-linux/lib/libz.a (found version "1.3.1")
#24 4.767 -- Looking for unistd.h
#24 4.940 -- Looking for unistd.h - found
#24 4.940 -- Looking for getopt
#24 5.131 -- Looking for getopt - found
#24 5.132 -- Looking for strdup
#24 6.017 -- Looking for strdup - found
#24 6.017 -- Looking for sys/resource.h
#24 6.161 -- Looking for sys/resource.h - found
#24 6.178 -- Performing Test HAVE_INLINE
#24 6.301 -- Performing Test HAVE_INLINE - Success
#24 6.301 -- Performing Test HAVE_ATTRIBUTE_NORETURN
#24 6.477 -- Performing Test HAVE_ATTRIBUTE_NORETURN - Success
#24 6.499 -- Found LibArchive: /vcpkg/installed/arm64-linux/debug/lib/libarchive.a (found version "3.7.8")
#24 6.520 -- Found BZip2: /vcpkg/installed/arm64-linux/lib/libbz2.a (found version "1.0.8")
#24 6.521 -- Looking for BZ2_bzCompressInit
#24 6.691 -- Looking for BZ2_bzCompressInit - found
#24 6.709 -- Performing Test Iconv_IS_BUILT_IN
#24 6.925 -- Performing Test Iconv_IS_BUILT_IN - Success
#24 6.926 -- Found Iconv: built in to C library
#24 6.929 -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
#24 7.118 -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
#24 7.119 -- Found Threads: TRUE
#24 7.143 -- Found LibLZMA: /vcpkg/installed/arm64-linux/lib/liblzma.a (found version "5.8.1")
#24 7.254 -- Found OpenSSL: /vcpkg/installed/arm64-linux/debug/lib/libcrypto.a (found suitable version "3.5.0", minimum required is "3")
#24 7.268 -- Found ZLIB: /vcpkg/installed/arm64-linux/lib/libz.a (found suitable version "1.3.1", minimum required is "1")
#24 7.307 -- Found ZLIB: /vcpkg/installed/arm64-linux/lib/libz.a (found version "1.3.1")
#24 7.351 -- Found JPEG: /vcpkg/installed/arm64-linux/lib/libjpeg.a (found version "62")
#24 7.404 -- Found Jasper: /vcpkg/installed/arm64-linux/lib/libjasper.a (found version "4.2.4")
#24 7.420 -- Found Jasper: /vcpkg/installed/arm64-linux/lib/libjasper.a;/vcpkg/installed/arm64-linux/lib/libjpeg.a (found version "4.2.4")
#24 7.475 -- Found PNG: /vcpkg/installed/arm64-linux/lib/libpng16.a (found version "1.6.46")
#24 7.487 -- Found FFMPEG: /vcpkg/installed/arm64-linux/lib/libavformat.a;/vcpkg/installed/arm64-linux/lib/libavcodec.a;/vcpkg/installed/arm64-linux/lib/libswresample.a;/vcpkg/installed/arm64-linux/lib/libswscale.a;/vcpkg/installed/arm64-linux/lib/libavutil.a;/vcpkg/installed/arm64-linux/lib/libvpx.a;pthread;/vcpkg/installed/arm64-linux/lib/libwebpmux.a;/vcpkg/installed/arm64-linux/lib/libmp3lame.a;/vcpkg/installed/arm64-linux/lib/libopus.a;/vcpkg/installed/arm64-linux/lib/libwebp.a;/vcpkg/installed/arm64-linux/lib/libsharpyuv.a;/vcpkg/installed/arm64-linux/lib/libz.a;-pthread;m;atomic
#24 7.505 CMake Warning (dev) at /usr/share/cmake-3.26/Modules/ExternalProject.cmake:3091 (message):
#24 7.505 The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is
#24 7.505 not set. The policy's OLD behavior will be used. When using a URL
#24 7.505 download, the timestamps of extracted files should preferably be that of
#24 7.505 the time of extraction, otherwise code that depends on the extracted
#24 7.505 contents might not be rebuilt if the URL changes. The OLD behavior
#24 7.505 preserves the timestamps from the archive instead, but this is usually not
#24 7.505 what you want. Update your project to the NEW behavior or specify the
#24 7.505 DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this
#24 7.505 robustness issue.
#24 7.505 Call Stack (most recent call first):
#24 7.505 /usr/share/cmake-3.26/Modules/ExternalProject.cmake:4208 (_ep_add_download_command)
#24 7.505 third-party/libscan/CMakeLists.txt:144 (ExternalProject_Add)
#24 7.505 This warning is for project developers. Use -Wno-dev to suppress it.
#24 7.505
#24 7.519 CMake Warning (dev) at third-party/argparse/CMakeLists.txt:14 (option):
#24 7.519 Policy CMP0077 is not set: option() honors normal variables. Run "cmake
#24 7.519 --help-policy CMP0077" for policy details. Use the cmake_policy command to
#24 7.519 set the policy and suppress this warning.
#24 7.519
#24 7.519 For compatibility with older versions of CMake, option is clearing the
#24 7.519 normal variable 'ARGPARSE_SHARED'.
#24 7.519 This warning is for project developers. Use -Wno-dev to suppress it.
#24 7.519
#24 7.526 -- Found PkgConfig: /vcpkg/installed/arm64-linux/tools/pkgconf/pkgconf (found version "2.4.3")
#24 7.561 -- Found ZLIB: /vcpkg/installed/arm64-linux/lib/libz.a (found suitable version "1.3.1", minimum required is "1")
#24 7.587 CMake Error at /vcpkg/scripts/buildsystems/vcpkg.cmake:893 (_find_package):
#24 7.587 Could not find a package configuration file provided by "libgit2" with any
#24 7.587 of the following names:
#24 7.587
#24 7.587 libgit2Config.cmake
#24 7.587 libgit2-config.cmake
#24 7.587
#24 7.587 Add the installation prefix of "libgit2" to CMAKE_PREFIX_PATH or set
#24 7.587 "libgit2_DIR" to a directory containing one of the above files. If
#24 7.587 "libgit2" provides a separate development package or SDK, be sure it has
#24 7.587 been installed.
#24 7.587 Call Stack (most recent call first):
#24 7.587 CMakeLists.txt:81 (find_package)
#24 7.587
#24 7.587
#24 7.587 -- Configuring incomplete, errors occurred!
#24 ERROR: process "/bin/sh -c mkdir build && cd build && cmake -DSIST_PLATFORM=arm64_linux_docker -DSIST_DEBUG_INFO=on -DSIST_DEBUG=off -DBUILD_TESTS=off -DCMAKE_TOOLCHAIN_FILE=/vcpkg/scripts/buildsystems/vcpkg.cmake .." did not complete successfully: exit code: 1
------
> [build 14/16] RUN mkdir build && cd build && cmake -DSIST_PLATFORM=arm64_linux_docker -DSIST_DEBUG_INFO=on -DSIST_DEBUG=off -DBUILD_TESTS=off -DCMAKE_TOOLCHAIN_FILE=/vcpkg/scripts/buildsystems/vcpkg.cmake ..:
7.587
7.587 Add the installation prefix of "libgit2" to CMAKE_PREFIX_PATH or set
7.587 "libgit2_DIR" to a directory containing one of the above files. If
7.587 "libgit2" provides a separate development package or SDK, be sure it has
7.587 been installed.
7.587 Call Stack (most recent call first):
7.587 CMakeLists.txt:81 (find_package)
7.587
7.587
7.587 -- Configuring incomplete, errors occurred!
------
4 warnings found (use docker --debug to expand):
- FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1)
- FromPlatformFlagConstDisallowed: FROM --platform flag should not use constant value "linux/arm64/v8" (line 22)
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 26)
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 27)
Dockerfile.arm64:18
--------------------
16 | WORKDIR /build/
17 | ADD . /build/
18 | >>> RUN mkdir build && cd build && cmake -DSIST_PLATFORM=arm64_linux_docker -DSIST_DEBUG_INFO=on -DSIST_DEBUG=off -DBUILD_TESTS=off -DCMAKE_TOOLCHAIN_FILE=/vcpkg/scripts/buildsystems/vcpkg.cmake ..
19 | RUN cd build && make -j$(nproc)
20 | RUN strip build/sist2 || mv build/sist2_debug build/sist2
--------------------
ERROR: failed to build: failed to solve: process "/bin/sh -c mkdir build && cd build && cmake -DSIST_PLATFORM=arm64_linux_docker -DSIST_DEBUG_INFO=on -DSIST_DEBUG=off -DBUILD_TESTS=off -DCMAKE_TOOLCHAIN_FILE=/vcpkg/scripts/buildsystems/vcpkg.cmake .." did not complete successfully: exit code: 1
Device Information (please complete the following information):
Command with arguments
git clone --recursive https://github.com/sist2app/sist2/
cd sist2
docker build --file Dockerfile.amd4 --progress=plain -t localhost:5000/sist2:latest .
Describe the bug
The docker build fails.
Steps To Reproduce
Just execute the mentioned commands or follow the instructions to build mentioned on the main page.
Output