swiftlang / swift-docker

Docker Official Image packaging for Swift
https://swift.org
Apache License 2.0
1.35k stars 182 forks source link

Problem with Docker.build Vapor project with qemu #356

Closed skibinalexander closed 10 months ago

skibinalexander commented 10 months ago

Hello, I'm having problems building the Vapor project.

Relation: https://github.com/vapor/template/issues/96

I would like to clarify whether you know about such a problem, is there a solution, perhaps I didn’t see it, please help, I can’t move on.

I also tried Swift:latest and also have problems building the docker image. Thank you, I hope for an answer

skibinalexander commented 10 months ago

Log trace:

[build 7/12] RUN swift build -c release --static-swift-stdlib -Xlinker -u -Xlinker _swift_backtrace_isThunkFunction: 32.16 Building for production... 33.94 [0/1285] Compiling _NumericsShims _NumericsShims.c 33.94 [1/1285] Compiling errno.c 34.08 [2/1285] Compiling a_d2i_fp.c 34.21 [3/1285] Compiling a_utctm.c 34.24 [4/1285] Compiling a_type.c 34.37 [5/1285] Compiling a_time.c 35.06 swift-runtime: unable to suspend thread 231 35.06 swift-runtime: unable to suspend thread 231 35.06 qemu: uncaught target signal 4 (Illegal instruction) - core dumped

skibinalexander commented 10 months ago

My Dockerfile Dockerfile.txt

skibinalexander commented 10 months ago

This solve my problem

Снимок экрана 2023-10-23 в 01 28 55