Docker GPU Build fails on step 6/11 in Ubuntu 20.04 (WSL)
I clone BirdNET to my WSL installation and run the standard line: sudo docker build -f Dockerfile-GPU -t birdnet-gpu . All is fine until step 6.
[ 6/11] RUN cd libgpuarray && mkdir Build && cd Build && cmake .. -DCMAKE_BUILD_TYPE=Release && make && make install && cd .. && python3 setup.py build && python3 setup.py install && ldconfig: #9 0.508 -- The C compiler identification is GNU 7.5.0 #9 0.513 -- Check for working C compiler: /usr/bin/cc #9 0.568 -- Check for working C compiler: /usr/bin/cc -- works #9 0.569 -- Detecting C compiler ABI info #9 0.627 -- Detecting C compiler ABI info - done #9 0.637 -- Detecting C compile features #9 0.811 -- Detecting C compile features - done #9 0.820 -- Looking for strlcat #9 0.879 -- Looking for strlcat - not found #9 0.879 -- Looking for mkstemp #9 0.935 -- Looking for mkstemp - found #9 0.940 -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) #9 0.941 -- Checking for one of the modules 'check' #9 0.943 Tests disabled because Check was not found #9 0.945 -- Configuring done #9 0.969 -- Generating done #9 0.970 -- Build files have been written to: /libgpuarray/Build #9 0.998 [ 1%] Generating ../../src/cluda_opencl.h.c #9 1.000 /bin/sh: 1: python: not found #9 1.000 src/CMakeFiles/gpuarray.dir/build.make:74: recipe for target '../src/cluda_opencl.h.c' failed #9 1.000 make[2]: *** [../src/cluda_opencl.h.c] Error 127 #9 1.000 make[1]: *** [src/CMakeFiles/gpuarray.dir/all] Error 2 #9 1.000 CMakeFiles/Makefile2:124: recipe for target 'src/CMakeFiles/gpuarray.dir/all' failed #9 1.000 make: *** [all] Error 2 #9 1.000 Makefile:140: recipe for target 'all' failed
executor failed running [/bin/sh -c cd libgpuarray && mkdir Build && cd Build && cmake .. -DCMAKE_BUILD_TYPE=Release && make && make install && cd .. && python3 setup.py build && python3 setup.py install && ldconfig]: exit code: 2