JorenSix / Panako

The Panako acoustic fingerprinting system.
GNU Affero General Public License v3.0
179 stars 35 forks source link

Mac M1 Docker image fails to build, Native build does not process anything. #43

Closed benoit-pereira-da-silva closed 1 year ago

benoit-pereira-da-silva commented 1 year ago

docker build -t panako:2.1 resources/scripts/


 => [internal] load build definition from Dockerfile                                                                                                              0.0s
 => => transferring dockerfile: 1.44kB                                                                                                                            0.0s
 => [internal] load .dockerignore                                                                                                                                 0.0s
 => => transferring context: 2B                                                                                                                                   0.0s
 => [internal] load metadata for docker.io/library/debian:bullseye                                                                                                1.9s
 => [auth] library/debian:pull token for registry-1.docker.io                                                                                                     0.0s
 => [ 1/26] FROM docker.io/library/debian:bullseye@sha256:1beb7cf458bdfe71b5220cb2069eb45e3fc7eb77a1ccfb169eaebf5f6c4809ab                                       12.0s
 => => resolve docker.io/library/debian:bullseye@sha256:1beb7cf458bdfe71b5220cb2069eb45e3fc7eb77a1ccfb169eaebf5f6c4809ab                                          0.0s
 => => sha256:1beb7cf458bdfe71b5220cb2069eb45e3fc7eb77a1ccfb169eaebf5f6c4809ab 1.85kB / 1.85kB                                                                    0.0s
 => => sha256:42336fd1e6984b68afbf5c44d2583e8eaba3b96ab4ecb89ac5f8cd9775f96f7f 529B / 529B                                                                        0.0s
 => => sha256:4c26a989498112aa2445f8b49116e71205127a096c51316cb029c48a178286bc 1.48kB / 1.48kB                                                                    0.0s
 => => sha256:e837d9f05c625de5b814b851adbc03559ba02ea7078f57c81a01e18fc65bf42b 53.70MB / 53.70MB                                                                 10.3s
 => => extracting sha256:e837d9f05c625de5b814b851adbc03559ba02ea7078f57c81a01e18fc65bf42b                                                                         1.6s
 => [ 2/26] RUN apt-get update                                                                                                                                    4.0s
 => [ 3/26] RUN apt-get install -y --no-install-recommends git default-jdk ffmpeg                                                                                71.8s
 => [ 4/26] RUN apt-get install -y --no-install-recommends make gcc g++ libc-dev                                                                                 15.7s
 => [ 5/26] RUN git clone --depth 1 https://git.openldap.org/openldap/openldap.git                                                                               13.6s
 => [ 6/26] WORKDIR /openldap/libraries/liblmdb                                                                                                                   0.0s
 => [ 7/26] RUN make                                                                                                                                              3.1s
 => [ 8/26] RUN mv liblmdb.so /lib/                                                                                                                               0.1s
 => [ 9/26] RUN git clone --depth 1 https://github.com/JorenSix/JGaborator                                                                                        1.6s
 => [10/26] WORKDIR /JGaborator/gaborator/                                                                                                                        0.0s
 => ERROR [11/26] RUN make                                                                                                                                        0.3s
------
 > [11/26] RUN make:
0.263 echo /usr/lib/jvm/default-java
0.264 /usr/lib/jvm/default-java
0.264 ruby precompile_for_targets.rb
0.264 make: ruby: No such file or directory
0.264 make: *** [Makefile:6: all] Error 127
------
Dockerfile:26
--------------------
  24 |     WORKDIR /JGaborator/gaborator/
  25 |     ENV JAVA_HOME=/usr/lib/jvm/default-java
  26 | >>> RUN make
  27 |     RUN cp ../build/precompiled/libjgaborator.so /lib/
  28 |
--------------------
ERROR: failed to solve: process "/bin/sh -c make" did not complete successfully: exit code: 2```
benoit-pereira-da-silva commented 1 year ago

Notice that i was able to compile a native version for mac os it self : panako -v without any warning.

panako -v                                    

Panako Acoustic Fingerprinting, by bpds
  Version: 2.1 - 2023-08-30
  Build on: 20.0.2 (Oracle Corporation 20.0.2+9-78) - Mac OS X aarch64 13.4.1

When try to call panako store * it does not process any file.

index; length; audiofile; audio duration; fingerprinting duration; ratio
 ✘  ~/Documents/Entrepot/Git/Compilons/tcpil/repository/stocks/catalogs/bpds/n   dev 