2 years ago

#39392

test-img

joshp

Docker Segmentation Fault Build on M1 Mac

I'm trying to get pywine docker container to build/run on an M1 mac.

I get the following error

 => ERROR [4/6] RUN xvfb-run sh /tmp/helper/wine-init.sh                                                                                                        1.3s
------
 > [4/6] RUN xvfb-run sh /tmp/helper/wine-init.sh:
#9 1.095 wine: created the configuration directory '/opt/wineprefix'
#9 1.151 qemu: uncaught target signal 11 (Segmentation fault) - core dumped
#9 1.156 Segmentation fault
------
executor failed running [/bin/sh -c xvfb-run sh /tmp/helper/wine-init.sh]: exit code: 139

It seems there are two issues with both the image:

https://www.python.org/ftp/python/${PYTHON_VERSION}/python-${PYTHON_VERSION}-amd64.exe \

(I.e. amd-64)

and the base image:

dpkg --add-architecture i386 && \

(I.e. i386)

Is it possible to make this work? I've seen multiple posts stating that there are compatibility issues with docker x64 builds... seems like the only possible solution is UTM?

python

docker

segmentation-fault

apple-m1

wine

0 Answers

Your Answer

Accepted video resources