Just-Some-Bots / MusicBot

:musical_note: The original MusicBot for Discord (formerly SexualRhinoceros/MusicBot)
https://just-some-bots.github.io/MusicBot/
MIT License
3.11k stars 2.35k forks source link

Building image via Docker fails #2285

Closed Bence98007 closed 2 years ago

Bence98007 commented 2 years ago

What went wrong?

I just cloned this git repo, then tried to build the docker image version, but it fails. Error message I've got:

docker build -t dc-musicbot .
Sending build context to Docker daemon  616.4kB
Step 1/11 : FROM python:3.8-alpine
 ---> d314e28e240c
Step 2/11 : WORKDIR /musicbot
 ---> Using cache
 ---> de404300a2a9
Step 3/11 : COPY . ./
 ---> 4a956a7184fb
Step 4/11 : COPY ./config sample_config
 ---> c2470069c093
Step 5/11 : RUN apk update && apk add --no-cache --virtual .build-deps   build-base   libffi-dev   libsodium-dev
 ---> Running in 8e227eb0c2f7
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz
v3.15.0-170-gcdc9c95561 [https://dl-cdn.alpinelinux.org/alpine/v3.15/main]
v3.15.0-171-g7d7aaf30bd [https://dl-cdn.alpinelinux.org/alpine/v3.15/community]
OK: 15838 distinct packages available
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz
(1/26) Installing libgcc (10.3.1_git20211027-r0)
(2/26) Installing libstdc++ (10.3.1_git20211027-r0)
(3/26) Installing binutils (2.37-r3)
(4/26) Installing libmagic (5.41-r0)
(5/26) Installing file (5.41-r0)
(6/26) Installing libgomp (10.3.1_git20211027-r0)
(7/26) Installing libatomic (10.3.1_git20211027-r0)
(8/26) Installing libgphobos (10.3.1_git20211027-r0)
(9/26) Installing gmp (6.2.1-r0)
(10/26) Installing isl22 (0.22-r0)
(11/26) Installing mpfr4 (4.1.0-r0)
(12/26) Installing mpc1 (1.2.1-r0)
(13/26) Installing gcc (10.3.1_git20211027-r0)
(14/26) Installing musl-dev (1.2.2-r7)
(15/26) Installing libc-dev (0.7.2-r3)
(16/26) Installing g++ (10.3.1_git20211027-r0)
(17/26) Installing make (4.3-r0)
(18/26) Installing fortify-headers (1.1-r1)
(19/26) Installing patch (2.7.6-r7)
(20/26) Installing build-base (0.5-r2)
(21/26) Installing linux-headers (5.10.41-r0)
(22/26) Installing pkgconf (1.8.0-r0)
(23/26) Installing libffi-dev (3.4.2-r1)
(24/26) Installing libsodium (1.0.18-r0)
(25/26) Installing libsodium-dev (1.0.18-r0)
(26/26) Installing .build-deps (20220101.203644)
Executing busybox-1.34.1-r3.trigger
OK: 210 MiB in 61 packages
Removing intermediate container 8e227eb0c2f7
 ---> 1d9beb32c313
Step 6/11 : RUN apk update && apk add --no-cache   ca-certificates   ffmpeg   opus-dev   libffi   libsodium   gcc
 ---> Running in 185d2af36453
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz
v3.15.0-170-gcdc9c95561 [https://dl-cdn.alpinelinux.org/alpine/v3.15/main]
v3.15.0-171-g7d7aaf30bd [https://dl-cdn.alpinelinux.org/alpine/v3.15/community]
OK: 15839 distinct packages available
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz
(1/54) Installing sdl2 (2.0.16-r4)
(2/54) Installing libxau (1.0.9-r0)
(3/54) Installing libmd (1.0.3-r0)
(4/54) Installing libbsd (0.11.3-r1)
(5/54) Installing libxdmcp (1.1.3-r0)
(6/54) Installing libxcb (1.14-r2)
(7/54) Installing libx11 (1.7.2-r0)
(8/54) Installing aom-libs (3.2.0-r0)
(9/54) Installing alsa-lib (1.2.5.1-r1)
(10/54) Installing brotli-libs (1.0.9-r5)
(11/54) Installing libpng (1.6.37-r1)
(12/54) Installing freetype (2.11.0-r0)
(13/54) Installing fontconfig (2.13.1-r4)
(14/54) Installing fribidi (1.0.11-r0)
(15/54) Installing libblkid (2.37.2-r1)
(16/54) Installing libmount (2.37.2-r1)
(17/54) Installing pcre (8.45-r1)
(18/54) Installing glib (2.70.1-r0)
(19/54) Installing graphite2 (1.3.14-r0)
(20/54) Installing harfbuzz (3.0.0-r2)
(21/54) Installing libass (0.15.2-r0)
(22/54) Installing libdav1d (0.9.2-r0)
(23/54) Installing nettle (3.7.3-r0)
(24/54) Installing p11-kit (0.24.0-r1)
(25/54) Installing libtasn1 (4.18.0-r0)
(26/54) Installing libunistring (0.9.10-r1)
(27/54) Installing gnutls (3.7.1-r0)
(28/54) Installing lame (3.100-r0)
(29/54) Installing opus (1.3.1-r1)
(30/54) Installing soxr (0.1.3-r2)
(31/54) Installing libsrt (1.4.2-r1)
(32/54) Installing libssh (0.9.6-r1)
(33/54) Installing libogg (1.3.5-r0)
(34/54) Installing libtheora (1.1.1-r16)
(35/54) Installing libjpeg-turbo (2.1.2-r0)
(36/54) Installing v4l-utils-libs (1.22.1-r1)
(37/54) Installing libxext (1.3.4-r0)
(38/54) Installing libxfixes (6.0.0-r0)
(39/54) Installing libpciaccess (0.16-r0)
(40/54) Installing libdrm (2.4.109-r0)
(41/54) Installing wayland-libs-client (1.19.0-r1)
(42/54) Installing libva (2.13.0-r0)
(43/54) Installing libvdpau (1.4-r0)
(44/54) Installing vidstab (1.1.0-r1)
(45/54) Installing libvorbis (1.3.7-r0)
(46/54) Installing libvpx (1.10.0-r0)
(47/54) Installing vulkan-loader (1.2.196-r0)
(48/54) Installing libwebp (1.2.1-r0)
(49/54) Installing x264-libs (20210613-r0)
(50/54) Installing x265-libs (3.5-r0)
(51/54) Installing xvidcore (1.3.7-r1)
(52/54) Installing ffmpeg-libs (4.4.1-r2)
(53/54) Installing ffmpeg (4.4.1-r2)
(54/54) Installing opus-dev (1.3.1-r1)
Executing busybox-1.34.1-r3.trigger
OK: 276 MiB in 115 packages
Removing intermediate container 185d2af36453
 ---> 48fa9fee883b
Step 7/11 : RUN pip3 install --no-cache-dir -r requirements.txt
 ---> Running in 75d8d0982d3c
Collecting py-cord[voice]
  Downloading py_cord-1.7.3-py3-none-any.whl (786 kB)
Requirement already satisfied: pip in /usr/local/lib/python3.8/site-packages (from -r requirements.txt (line 3)) (21.2.4)
Collecting yt-dlp
  Downloading yt_dlp-2021.12.27-py2.py3-none-any.whl (2.4 MB)
Collecting colorlog
  Downloading colorlog-6.6.0-py2.py3-none-any.whl (11 kB)
Collecting cffi
  Downloading cffi-1.15.0.tar.gz (484 kB)
Collecting aiohttp<3.8.0,>=3.6.0
  Downloading aiohttp-3.7.4.post0.tar.gz (1.1 MB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
    Preparing wheel metadata: started
    Preparing wheel metadata: finished with status 'done'
Collecting PyNaCl<1.5,>=1.3.0
  Downloading PyNaCl-1.4.0.tar.gz (3.4 MB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
    Preparing wheel metadata: started
    Preparing wheel metadata: finished with status 'done'
Collecting mutagen
  Downloading mutagen-1.45.1-py3-none-any.whl (218 kB)
Collecting websockets
  Downloading websockets-10.1-cp38-cp38-musllinux_1_1_x86_64.whl (109 kB)
Collecting pycryptodomex
  Downloading pycryptodomex-3.12.0.zip (3.7 MB)
Collecting pycparser
  Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB)
Collecting multidict<7.0,>=4.5
  Downloading multidict-5.2.0-cp38-cp38-musllinux_1_1_x86_64.whl (156 kB)
Collecting chardet<5.0,>=2.0
  Downloading chardet-4.0.0-py2.py3-none-any.whl (178 kB)
Collecting async-timeout<4.0,>=3.0
  Downloading async_timeout-3.0.1-py3-none-any.whl (8.2 kB)
Collecting attrs>=17.3.0
  Downloading attrs-21.4.0-py2.py3-none-any.whl (60 kB)
Collecting yarl<2.0,>=1.0
  Downloading yarl-1.7.2-cp38-cp38-musllinux_1_1_x86_64.whl (321 kB)
Collecting typing-extensions>=3.6.5
  Downloading typing_extensions-4.0.1-py3-none-any.whl (22 kB)
Collecting six
  Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting idna>=2.0
  Downloading idna-3.3-py3-none-any.whl (61 kB)
Building wheels for collected packages: cffi, aiohttp, PyNaCl, pycryptodomex
  Building wheel for cffi (setup.py): started
  Building wheel for cffi (setup.py): finished with status 'done'
  Created wheel for cffi: filename=cffi-1.15.0-cp38-cp38-linux_x86_64.whl size=185926 sha256=4e8d06c1e8d2a57f617539718766b4c97b5e8c450d394c148dc80a02f076cdc7
  Stored in directory: /tmp/pip-ephem-wheel-cache-d8tliks4/wheels/a4/cb/1a/277a076c4434fadc0707a37ba48587dc2ac6397d517c3b9de7
  Building wheel for aiohttp (PEP 517): started
  Building wheel for aiohttp (PEP 517): finished with status 'done'
  Created wheel for aiohttp: filename=aiohttp-3.7.4.post0-cp38-cp38-linux_x86_64.whl size=650811 sha256=5cc4cf1c0369063b59891ea9a9121c469ec3c5b7396216917535827905363afc
  Stored in directory: /tmp/pip-ephem-wheel-cache-d8tliks4/wheels/70/a6/74/e3ee8e169262359ed1d452bdfbe82e6420aa40ccfc2d727126
  Building wheel for PyNaCl (PEP 517): started
  Building wheel for PyNaCl (PEP 517): finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /usr/local/bin/python /usr/local/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmpsfvh8_wz
       cwd: /tmp/pip-install-7g_huco_/pynacl_58e22c9d720845de8a8ef84cd0c82b15
  Complete output (322 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.8
  creating build/lib.linux-x86_64-3.8/nacl
  copying src/nacl/hashlib.py -> build/lib.linux-x86_64-3.8/nacl
  copying src/nacl/encoding.py -> build/lib.linux-x86_64-3.8/nacl
  copying src/nacl/signing.py -> build/lib.linux-x86_64-3.8/nacl
  copying src/nacl/__init__.py -> build/lib.linux-x86_64-3.8/nacl
  copying src/nacl/hash.py -> build/lib.linux-x86_64-3.8/nacl
  copying src/nacl/secret.py -> build/lib.linux-x86_64-3.8/nacl
  copying src/nacl/public.py -> build/lib.linux-x86_64-3.8/nacl
  copying src/nacl/utils.py -> build/lib.linux-x86_64-3.8/nacl
  copying src/nacl/exceptions.py -> build/lib.linux-x86_64-3.8/nacl
  creating build/lib.linux-x86_64-3.8/nacl/pwhash
  copying src/nacl/pwhash/_argon2.py -> build/lib.linux-x86_64-3.8/nacl/pwhash
  copying src/nacl/pwhash/__init__.py -> build/lib.linux-x86_64-3.8/nacl/pwhash
  copying src/nacl/pwhash/scrypt.py -> build/lib.linux-x86_64-3.8/nacl/pwhash
  copying src/nacl/pwhash/argon2id.py -> build/lib.linux-x86_64-3.8/nacl/pwhash
  copying src/nacl/pwhash/argon2i.py -> build/lib.linux-x86_64-3.8/nacl/pwhash
  creating build/lib.linux-x86_64-3.8/nacl/bindings
  copying src/nacl/bindings/crypto_box.py -> build/lib.linux-x86_64-3.8/nacl/bindings
  copying src/nacl/bindings/crypto_secretstream.py -> build/lib.linux-x86_64-3.8/nacl/bindings
  copying src/nacl/bindings/crypto_shorthash.py -> build/lib.linux-x86_64-3.8/nacl/bindings
  copying src/nacl/bindings/__init__.py -> build/lib.linux-x86_64-3.8/nacl/bindings
  copying src/nacl/bindings/crypto_core.py -> build/lib.linux-x86_64-3.8/nacl/bindings
  copying src/nacl/bindings/crypto_kx.py -> build/lib.linux-x86_64-3.8/nacl/bindings
  copying src/nacl/bindings/crypto_secretbox.py -> build/lib.linux-x86_64-3.8/nacl/bindings
  copying src/nacl/bindings/sodium_core.py -> build/lib.linux-x86_64-3.8/nacl/bindings
  copying src/nacl/bindings/randombytes.py -> build/lib.linux-x86_64-3.8/nacl/bindings
  copying src/nacl/bindings/utils.py -> build/lib.linux-x86_64-3.8/nacl/bindings
  copying src/nacl/bindings/crypto_sign.py -> build/lib.linux-x86_64-3.8/nacl/bindings
  copying src/nacl/bindings/crypto_pwhash.py -> build/lib.linux-x86_64-3.8/nacl/bindings
  copying src/nacl/bindings/crypto_generichash.py -> build/lib.linux-x86_64-3.8/nacl/bindings
  copying src/nacl/bindings/crypto_scalarmult.py -> build/lib.linux-x86_64-3.8/nacl/bindings
  copying src/nacl/bindings/crypto_hash.py -> build/lib.linux-x86_64-3.8/nacl/bindings
  copying src/nacl/bindings/crypto_aead.py -> build/lib.linux-x86_64-3.8/nacl/bindings
  running build_clib
  checking build system type... x86_64-pc-linux-musl
  checking host system type... x86_64-pc-linux-musl
  checking for a BSD-compatible install... /usr/bin/install -c
  checking whether build environment is sane... yes
  checking for a thread-safe mkdir -p... /tmp/pip-install-7g_huco_/pynacl_58e22c9d720845de8a8ef84cd0c82b15/src/libsodium/build-aux/install-sh -c -d
  checking for gawk... no
  checking for mawk... no
  checking for nawk... no
  checking for awk... awk
  checking whether make sets $(MAKE)... no
  checking whether make supports nested variables... no
  checking whether UID '0' is supported by ustar format... yes
  checking whether GID '0' is supported by ustar format... yes
  checking how to create a ustar tar archive... none
  checking whether make supports nested variables... (cached) no
  checking whether to enable maintainer-specific portions of Makefiles... no
  checking whether make supports the include directive... no
  checking for gcc... gcc
  checking whether the C compiler works... yes
  checking for C compiler default output file name... a.out
  checking for suffix of executables...
  checking whether we are cross compiling... no
  checking for suffix of object files... o
  checking whether we are using the GNU C compiler... yes
  checking whether gcc accepts -g... yes
  checking for gcc option to accept ISO C89... none needed
  checking whether gcc understands -c and -o together... yes
  checking dependency style of gcc... none
  checking for a sed that does not truncate output... /bin/sed
  checking how to run the C preprocessor... gcc -E
  checking for grep that handles long lines and -e... /bin/grep
  checking for egrep... /bin/grep -E
  checking whether gcc is Clang... no
  checking whether pthreads work with -pthread... yes
  checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
  checking whether more special flags are required for pthreads... no
  checking for PTHREAD_PRIO_INHERIT... yes
  checking for gcc option to accept ISO C99... none needed
  checking dependency style of gcc... none
  checking for ANSI C header files... yes
  checking for sys/types.h... yes
  checking for sys/stat.h... yes
  checking for stdlib.h... yes
  checking for string.h... yes
  checking for memory.h... yes
  checking for strings.h... yes
  checking for inttypes.h... yes
  checking for stdint.h... yes
  checking for unistd.h... yes
  checking minix/config.h usability... no
  checking minix/config.h presence... no
  checking for minix/config.h... no
  checking whether it is safe to define __EXTENSIONS__... yes
  checking for variable-length arrays... yes
  checking for __wasi__ defined... no
  checking for _FORTIFY_SOURCE defined... yes
  checking whether C compiler accepts -fvisibility=hidden... yes
  checking whether C compiler accepts -fPIC... yes
  checking whether C compiler accepts -fPIE... yes
  checking whether the linker accepts -pie... yes
  checking whether C compiler accepts -fno-strict-aliasing... yes
  checking whether C compiler accepts -fno-strict-overflow... yes
  checking whether C compiler accepts -fstack-protector... yes
  checking whether the linker accepts -fstack-protector... yes
  checking whether C compiler accepts -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall   -DTHREAD_STACK_SIZE=0x100000 -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wall... yes
  checking whether C compiler accepts -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall   -DTHREAD_STACK_SIZE=0x100000 -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra... yes
  checking for clang... no
  checking whether C compiler accepts -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall   -DTHREAD_STACK_SIZE=0x100000 -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wbad-function-cast... yes
  checking whether C compiler accepts -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall   -DTHREAD_STACK_SIZE=0x100000 -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wbad-function-cast -Wcast-qual... yes
  checking whether C compiler accepts -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall   -DTHREAD_STACK_SIZE=0x100000 -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wbad-function-cast -Wcast-qual -Wdiv-by-zero... yes
  checking whether C compiler accepts -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall   -DTHREAD_STACK_SIZE=0x100000 -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches... yes
  checking whether C compiler accepts -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall   -DTHREAD_STACK_SIZE=0x100000 -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond... yes
  checking whether C compiler accepts -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall   -DTHREAD_STACK_SIZE=0x100000 -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal... yes
  checking whether C compiler accepts -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall   -DTHREAD_STACK_SIZE=0x100000 -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2... yes
  checking whether C compiler accepts -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall   -DTHREAD_STACK_SIZE=0x100000 -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op... yes
  checking whether C compiler accepts -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall   -DTHREAD_STACK_SIZE=0x100000 -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op -Wmaybe-uninitialized... yes
  checking whether C compiler accepts -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall   -DTHREAD_STACK_SIZE=0x100000 -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op -Wmaybe-uninitialized -Wmisleading-indentation... yes
  checking whether C compiler accepts -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall   -DTHREAD_STACK_SIZE=0x100000 -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-declarations... yes
  checking whether C compiler accepts -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall   -DTHREAD_STACK_SIZE=0x100000 -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-declarations -Wmissing-prototypes... yes
  checking whether C compiler accepts -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall   -DTHREAD_STACK_SIZE=0x100000 -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-declarations -Wmissing-prototypes -Wnested-externs... yes
  checking whether C compiler accepts -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall   -DTHREAD_STACK_SIZE=0x100000 -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-type-limits... yes
  checking whether C compiler accepts -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall   -DTHREAD_STACK_SIZE=0x100000 -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-type-limits -Wno-unknown-pragmas... yes
  checking whether C compiler accepts -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall   -DTHREAD_STACK_SIZE=0x100000 -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-type-limits -Wno-unknown-pragmas -Wnormalized=id... yes
  checking whether C compiler accepts -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall   -DTHREAD_STACK_SIZE=0x100000 -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-type-limits -Wno-unknown-pragmas -Wnormalized=id -Wnull-dereference... yes
  checking whether C compiler accepts -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall   -DTHREAD_STACK_SIZE=0x100000 -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-type-limits -Wno-unknown-pragmas -Wnormalized=id -Wnull-dereference -Wold-style-declaration... yes
  checking whether C compiler accepts -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall   -DTHREAD_STACK_SIZE=0x100000 -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-type-limits -Wno-unknown-pragmas -Wnormalized=id -Wnull-dereference -Wold-style-declaration -Wpointer-arith... yes
  checking whether C compiler accepts -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall   -DTHREAD_STACK_SIZE=0x100000 -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-type-limits -Wno-unknown-pragmas -Wnormalized=id -Wnull-dereference -Wold-style-declaration -Wpointer-arith -Wredundant-decls... yes
  checking whether C compiler accepts -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall   -DTHREAD_STACK_SIZE=0x100000 -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-type-limits -Wno-unknown-pragmas -Wnormalized=id -Wnull-dereference -Wold-style-declaration -Wpointer-arith -Wredundant-decls -Wrestrict... yes
  checking whether C compiler accepts -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall   -DTHREAD_STACK_SIZE=0x100000 -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-type-limits -Wno-unknown-pragmas -Wnormalized=id -Wnull-dereference -Wold-style-declaration -Wpointer-arith -Wredundant-decls -Wrestrict -Wshorten-64-to-32... no
  checking whether C compiler accepts -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall   -DTHREAD_STACK_SIZE=0x100000 -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-type-limits -Wno-unknown-pragmas -Wnormalized=id -Wnull-dereference -Wold-style-declaration -Wpointer-arith -Wredundant-decls -Wrestrict -Wsometimes-uninitialized... no
  checking whether C compiler accepts -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall   -DTHREAD_STACK_SIZE=0x100000 -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-type-limits -Wno-unknown-pragmas -Wnormalized=id -Wnull-dereference -Wold-style-declaration -Wpointer-arith -Wredundant-decls -Wrestrict -Wstrict-prototypes... yes
  checking whether C compiler accepts -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall   -DTHREAD_STACK_SIZE=0x100000 -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-type-limits -Wno-unknown-pragmas -Wnormalized=id -Wnull-dereference -Wold-style-declaration -Wpointer-arith -Wredundant-decls -Wrestrict -Wstrict-prototypes -Wswitch-enum... yes
  checking whether C compiler accepts -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall   -DTHREAD_STACK_SIZE=0x100000 -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-type-limits -Wno-unknown-pragmas -Wnormalized=id -Wnull-dereference -Wold-style-declaration -Wpointer-arith -Wredundant-decls -Wrestrict -Wstrict-prototypes -Wswitch-enum -Wvariable-decl... no
  checking whether C compiler accepts -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall   -DTHREAD_STACK_SIZE=0x100000 -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-type-limits -Wno-unknown-pragmas -Wnormalized=id -Wnull-dereference -Wold-style-declaration -Wpointer-arith -Wredundant-decls -Wrestrict -Wstrict-prototypes -Wswitch-enum -Wwrite-strings... yes
  checking whether the linker accepts -Wl,-z,relro... yes
  checking whether the linker accepts -Wl,-z,now... yes
  checking whether the linker accepts -Wl,-z,noexecstack... yes
  checking whether segmentation violations can be caught when using the C compiler... yes
  checking whether SIGABRT can be caught when using the C compiler... no
  configure: WARNING: On this platform, SIGABRT cannot be caught using signal handlers.
  checking for thread local storage (TLS) class... _Thread_local
  thread local storage is supported
  checking whether C compiler accepts -ftls-model=local-dynamic... yes
  checking how to print strings... printf
  checking for a sed that does not truncate output... (cached) /bin/sed
  checking for fgrep... /bin/grep -F
  checking for ld used by gcc... /usr/x86_64-alpine-linux-musl/bin/ld
  checking if the linker (/usr/x86_64-alpine-linux-musl/bin/ld) is GNU ld... yes
  checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
  checking the name lister (/usr/bin/nm -B) interface... BSD nm
  checking whether ln -s works... yes
  checking the maximum length of command line arguments... 98304
  checking how to convert x86_64-pc-linux-musl file names to x86_64-pc-linux-musl format... func_convert_file_noop
  checking how to convert x86_64-pc-linux-musl file names to toolchain format... func_convert_file_noop
  checking for /usr/x86_64-alpine-linux-musl/bin/ld option to reload object files... -r
  checking for objdump... objdump
  checking how to recognize dependent libraries... pass_all
  checking for dlltool... no
  checking how to associate runtime and link libraries... printf %s\n
  checking for ar... ar
  checking for archiver @FILE support... @
  checking for strip... strip
  checking for ranlib... ranlib
  checking command to parse /usr/bin/nm -B output from gcc object... ok
  checking for sysroot... no
  checking for a working dd... /bin/dd
  checking how to truncate binary pipes... /bin/dd bs=4096 count=1
  checking for mt... no
  checking if : is a manifest tool... no
  checking for dlfcn.h... yes
  checking for objdir... .libs
  checking if gcc supports -fno-rtti -fno-exceptions... no
  checking for gcc option to produce PIC... -fPIC -DPIC
  checking if gcc PIC flag -fPIC -DPIC works... yes
  checking if gcc static flag -static works... yes
  checking if gcc supports -c -o file.o... yes
  checking if gcc supports -c -o file.o... (cached) yes
  checking whether the gcc linker (/usr/x86_64-alpine-linux-musl/bin/ld -m elf_x86_64) supports shared libraries... yes
  checking dynamic linker characteristics... GNU/Linux ld.so
  checking how to hardcode library paths into programs... immediate
  checking whether stripping libraries is possible... yes
  checking if libtool supports shared libraries... yes
  checking whether to build shared libraries... no
  checking whether to build static libraries... yes
  checking for ar... (cached) ar
  checking whether C compiler accepts -mmmx... yes
  checking for MMX instructions set... yes
  checking whether C compiler accepts -mmmx... (cached) yes
  checking whether C compiler accepts -msse2... yes
  checking for SSE2 instructions set... yes
  checking whether C compiler accepts -msse2... (cached) yes
  checking whether C compiler accepts -msse3... yes
  checking for SSE3 instructions set... yes
  checking whether C compiler accepts -msse3... (cached) yes
  checking whether C compiler accepts -mssse3... yes
  checking for SSSE3 instructions set... yes
  checking whether C compiler accepts -mssse3... (cached) yes
  checking whether C compiler accepts -msse4.1... yes
  checking for SSE4.1 instructions set... yes
  checking whether C compiler accepts -msse4.1... (cached) yes
  checking whether C compiler accepts -mavx... yes
  checking for AVX instructions set... yes
  checking whether C compiler accepts -mavx... (cached) yes
  checking whether C compiler accepts -mavx2... yes
  checking for AVX2 instructions set... yes
  checking whether C compiler accepts -mavx2... (cached) yes
  checking if _mm256_broadcastsi128_si256 is correctly defined... yes
  checking whether C compiler accepts -mavx512f... yes
  checking for AVX512F instructions set... yes
  checking whether C compiler accepts -mavx512f... (cached) yes
  checking whether C compiler accepts -maes... yes
  checking whether C compiler accepts -mpclmul... yes
  checking for AESNI instructions set and PCLMULQDQ... yes
  checking whether C compiler accepts -maes... (cached) yes
  checking whether C compiler accepts -mpclmul... (cached) yes
  checking whether C compiler accepts -mrdrnd... yes
  checking for RDRAND... yes
  checking whether C compiler accepts -mrdrnd... (cached) yes
  checking sys/mman.h usability... yes
  checking sys/mman.h presence... yes
  checking for sys/mman.h... yes
  checking sys/random.h usability... yes
  checking sys/random.h presence... yes
  checking for sys/random.h... yes
  checking intrin.h usability... no
  checking intrin.h presence... no
  checking for intrin.h... no
  checking if _xgetbv() is available... no
  checking for inline... inline
  checking whether byte ordering is bigendian... (cached) no
  checking whether __STDC_LIMIT_MACROS is required... no
  checking whether we can use inline asm code... yes
  no
  checking whether we can use x86_64 asm code... yes
  checking whether we can assemble AVX opcodes... yes
  checking for 128-bit arithmetic... yes
  checking for cpuid instruction... yes
  checking if the .private_extern asm directive is supported... no
  checking if the .hidden asm directive is supported... yes
  checking if weak symbols are supported... yes
  checking if data alignment is required... no
  checking if atomic operations are supported... yes
  checking for size_t... yes
  checking for working alloca.h... yes
  checking for alloca... yes
  checking for arc4random... no
  checking for arc4random_buf... no
  checking for mmap... yes
  checking for mlock... yes
  checking for madvise... yes
  checking for mprotect... yes
  checking for getrandom with a standard API... yes
  checking for getrandom... yes
  checking for getentropy with a standard API... yes
  checking for getentropy... yes
  checking for posix_memalign... yes
  checking for getpid... yes
  checking for nanosleep... yes
  checking for memset_s... no
  checking for explicit_bzero... yes
  checking for explicit_memset... no
  checking if gcc/ld supports -Wl,--output-def... not needed, shared libraries are disabled
  checking that generated files are newer than configure... done
  configure: creating ./config.status
  config.status: creating Makefile
  config.status: creating builds/Makefile
  config.status: creating contrib/Makefile
  config.status: creating dist-build/Makefile
  config.status: creating libsodium.pc
  config.status: creating libsodium-uninstalled.pc
  config.status: creating msvc-scripts/Makefile
  config.status: creating src/Makefile
  config.status: creating src/libsodium/Makefile
  config.status: creating src/libsodium/include/Makefile
  config.status: creating src/libsodium/include/sodium/version.h
  config.status: creating test/default/Makefile
  config.status: creating test/Makefile
  config.status: executing depfiles commands
  config.status: executing libtool commands
  make: /bin/sh: Operation not permitted
  make: *** [Makefile:514: all-recursive] Error 127
  Traceback (most recent call last):
    File "/usr/local/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 349, in <module>
      main()
    File "/usr/local/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 331, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/usr/local/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 248, in build_wheel
      return _build_backend().build_wheel(wheel_directory, config_settings,
    File "/tmp/pip-build-env-b8ufhyer/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 230, in build_wheel
      return self._build_with_temp_dir(['bdist_wheel'], '.whl',
    File "/tmp/pip-build-env-b8ufhyer/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 215, in _build_with_temp_dir
      self.run_setup()
    File "/tmp/pip-build-env-b8ufhyer/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 158, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 216, in <module>
      setup(
    File "/tmp/pip-build-env-b8ufhyer/overlay/lib/python3.8/site-packages/setuptools/__init__.py", line 155, in setup
      return distutils.core.setup(**attrs)
    File "/tmp/pip-build-env-b8ufhyer/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 148, in setup
      return run_commands(dist)
    File "/tmp/pip-build-env-b8ufhyer/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 163, in run_commands
      dist.run_commands()
    File "/tmp/pip-build-env-b8ufhyer/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 967, in run_commands
      self.run_command(cmd)
    File "/tmp/pip-build-env-b8ufhyer/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
      cmd_obj.run()
    File "/tmp/pip-build-env-b8ufhyer/overlay/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 299, in run
      self.run_command('build')
    File "/tmp/pip-build-env-b8ufhyer/overlay/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/tmp/pip-build-env-b8ufhyer/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
      cmd_obj.run()
    File "/tmp/pip-build-env-b8ufhyer/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/build.py", line 135, in run
      self.run_command(cmd_name)
    File "/tmp/pip-build-env-b8ufhyer/overlay/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/tmp/pip-build-env-b8ufhyer/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
      cmd_obj.run()
    File "setup.py", line 184, in run
      subprocess.check_call(["make"] + make_args, cwd=build_temp)
    File "/usr/local/lib/python3.8/subprocess.py", line 364, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['make']' returned non-zero exit status 2.
  ----------------------------------------
  ERROR: Failed building wheel for PyNaCl
  Building wheel for pycryptodomex (setup.py): started
  Building wheel for pycryptodomex (setup.py): finished with status 'done'
  Created wheel for pycryptodomex: filename=pycryptodomex-3.12.0-cp35-abi3-linux_x86_64.whl size=1522149 sha256=c7627881b36394fb4770455be99f1aac8b6cbaf14d1469d2d86b3135f88a16fe
  Stored in directory: /tmp/pip-ephem-wheel-cache-d8tliks4/wheels/37/7c/2f/5a91f01dd52fa1eb8f8bbc1bbba0f962caacf3ef6afa768c1b
Successfully built cffi aiohttp pycryptodomex
Failed to build PyNaCl
ERROR: Could not build wheels for PyNaCl which use PEP 517 and cannot be installed directly
WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
The command '/bin/sh -c pip3 install --no-cache-dir -r requirements.txt' returned a non-zero code: 1

How do we reproduce this?

  1. git clone https://github.com/Just-Some-Bots/MusicBot.git ~/MusicBot -b master
  2. docker build -t dc-musicbot .

Which version of the bot are you using?

No response

Which operating system are you using?

No response

Just checking...

Bence98007 commented 2 years ago

The main problem that the Docker Engine wasnt updated to latest.