mkuf / prind

print in docker - Deploy a containerized Klipper Stack for your 3D Printer
GNU General Public License v3.0
324 stars 82 forks source link

Building the docker image throws unknown system architecture: aarch64 when building simulavr #83

Closed napter closed 1 year ago

napter commented 1 year ago

Here is the error:

=> ERROR [klipper2 build-simulavr 8/8] RUN git clone git://git.savannah.nongnu.org/simulavr.git  && cd simulavr  && git checkout release-1.1.0  && make python  && make   9.1s
------                                                                                                                                                                          
 > [klipper2 build-simulavr 8/8] RUN git clone git://git.savannah.nongnu.org/simulavr.git  && cd simulavr  && git checkout release-1.1.0  && make python  && make build  && chown -R simulavr:simulavr /opt/simulavr:                                                                                                                                           
#0 0.755 Cloning into 'simulavr'...                                                                                                                                             
#0 6.042 Note: switching to 'release-1.1.0'.                                                                                                                                    
#0 6.042                                                                                                                                                                        
#0 6.042 You are in 'detached HEAD' state. You can look around, make experimental
#0 6.042 changes and commit them, and you can discard any commits you make in this
#0 6.042 state without impacting any branches by switching back to a branch.
#0 6.042 
#0 6.042 If you want to create a new branch to retain commits you create, you may
#0 6.042 do so (now or later) by using -c with the switch command. Example:
#0 6.042 
#0 6.042   git switch -c <new-branch-name>
#0 6.042 
#0 6.042 Or undo this operation with:
#0 6.042 
#0 6.042   git switch -
#0 6.042 
#0 6.042 Turn off this advice by setting config variable advice.detachedHead to false
#0 6.042 
#0 6.042 HEAD is now at e6eac87 Fix some warnings, clang compiler shows
#0 6.268 -- The C compiler identification is GNU 10.2.1
#0 6.483 -- The CXX compiler identification is GNU 10.2.1
#0 6.509 -- Detecting C compiler ABI info
#0 6.781 -- Detecting C compiler ABI info - done
#0 6.821 -- Check for working C compiler: /usr/bin/cc - skipped
#0 6.822 -- Detecting C compile features
#0 6.824 -- Detecting C compile features - done
#0 6.837 -- Detecting CXX compiler ABI info
#0 7.144 -- Detecting CXX compiler ABI info - done
#0 7.184 -- Check for working CXX compiler: /usr/bin/c++ - skipped
#0 7.186 -- Detecting CXX compile features
#0 7.189 -- Detecting CXX compile features - done
#0 7.291 -- version major 1 / minor 1 / patch 0
#0 7.388 -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.9.2", minimum required is "3.5") 
#0 7.496 -- Found SWIG: /usr/bin/swig4.0 (found version "4.0.2")  
#0 7.512 -- Found PythonLibs: /usr/lib/aarch64-linux-gnu/libpython3.9.so (found version "3.9.2") 
#0 7.531 -- can't create man page because of:
#0 7.531 --   - help2man not found
#0 7.531 -- can't create info page because of:
#0 7.531 --   - makeinfo not found
#0 7.623 -- Could NOT find PY_SPHINX (missing: PY_SPHINX) 
#0 7.713 -- Could NOT find PY_RST2PDF (missing: PY_RST2PDF) 
#0 7.802 -- Could NOT find PY_BS4 (missing: PY_BS4) 
#0 7.892 -- Could NOT find PY_REQUESTS (missing: PY_REQUESTS) 
#0 7.958 -- gtest will be configured
#0 7.970 -- can build debian package
#0 7.972 CMake Error at debian/CMakeLists.txt:7 (message):
#0 7.972   unknown system architecture: aarch64
#0 7.972 
#0 7.972 
#0 7.973 -- package architecture: 
#0 7.990 -- Configuring incomplete, errors occurred!
#0 7.990 See also "/opt/simulavr/build/CMakeFiles/CMakeOutput.log".
#0 8.003 make: *** [Makefile:82: python] Error 1
------
failed to solve: executor failed running [/bin/sh -c git clone git://git.savannah.nongnu.org/simulavr.git  && cd simulavr  && git checkout release-1.1.0  && make python  && make build  && chown -R simulavr:simulavr /opt/simulavr]: exit code: 2

Any suggestions? Is simulavr necessary? What is it used for?

mkuf commented 1 year ago

Did you specify which target you'd like to build?

Have look at the klipper image docs here https://github.com/mkuf/prind/tree/main/docker/klipper#targets
and the main readme https://github.com/mkuf/prind#building-docker-images-locally

Simulavr is used to simulate the microcontroller for debugging, as described here https://github.com/mkuf/prind#debugging-the-stack

-Markus