Skip to content

[Bug]: Swift: segfault when building a package #27101

@Nikitf777

Description

@Nikitf777

Problem description

I'm getting a segfault when building the following Swift package: https://github.com/lorenalexm/Starter-Kit-3D-Platformer-Swift.git
Here's the command's output:

└─[$] swift build
Fetching https://github.com/apple/swift-numerics
Fetching https://github.com/migueldeicaza/SwiftGodot
Fetching https://github.com/apple/swift-syntax
Fetched https://github.com/apple/swift-numerics from cache (4.38s)
Fetched https://github.com/apple/swift-syntax from cache (104.36s)
Fetched https://github.com/migueldeicaza/SwiftGodot from cache (154.64s)
Computing version for https://github.com/migueldeicaza/SwiftGodot
Computed https://github.com/migueldeicaza/SwiftGodot at 0.42.0 (155.45s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.0.2 (3.68s)
Computing version for https://github.com/apple/swift-syntax
Computed https://github.com/apple/swift-syntax at 510.0.2 (0.89s)
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.0.2
Creating working copy for https://github.com/migueldeicaza/SwiftGodot
Working copy of https://github.com/migueldeicaza/SwiftGodot resolved at 0.42.0
Creating working copy for https://github.com/apple/swift-syntax
Working copy of https://github.com/apple/swift-syntax resolved at 510.0.2
[25/25] Linking Generator-tool[1]    3848 segmentation fault  swift build

What steps will reproduce the bug?

git clone https://github.com/lorenalexm/Starter-Kit-3D-Platformer-Swift.git
cd Starter-Kit-3D-Platformer-Swift/source
swift build

What is the expected behavior?

The package should successfully build like others do (a Hello World project builds normally).

System information

Termux Variables:
TERMUX_API_VERSION=0.50.1
TERMUX_APK_RELEASE=F_DROID
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=8724
TERMUX_APP__DATA_DIR=/data/user/0/com.termux
TERMUX_APP__LEGACY_DATA_DIR=/data/data/com.termux
TERMUX_APP__SE_FILE_CONTEXT=u:object_r:app_data_file:s0:c37,c258,c512,c768
TERMUX_APP__SE_INFO=default:targetSdkVersion=28:complete
TERMUX_IS_DEBUGGABLE_BUILD=0
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.3
TERMUX__HOME=/data/data/com.termux/files/home
TERMUX__PREFIX=/data/data/com.termux/files/usr
TERMUX__ROOTFS_DIR=/data/data/com.termux/files
TERMUX__SE_PROCESS_CONTEXT=u:r:untrusted_app_27:s0:c37,c258,c512,c768
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb http://mirror.mephi.ru/termux/termux-main stable main
# sources.list.d/termux-adb.list
deb https://nohajc.github.io termux extras
# root-repo (sources.list.d/root.list)
deb http://mirror.mephi.ru/termux/termux-root root stable
# x11-repo (sources.list.d/x11.list)
deb http://mirror.mephi.ru/termux/termux-x11 x11 main
# glibc-repo (sources.list.d/glibc.list)
deb https://packages-cf.termux.dev/apt/termux-glibc/ glibc stable
Updatable packages:
command-not-found/stable 3.2-2 aarch64 [upgradable from: 3.2-1]
lazygit/stable 0.56.0 aarch64 [upgradable from: 0.55.1]
libbluray/stable 1.4.0 aarch64 [upgradable from: 1.3.4-3]
libdav1d/stable 1.5.2 aarch64 [upgradable from: 1.5.1-1]
libdrm/stable 2.4.128 aarch64 [upgradable from: 2.4.127]
libmpg123/stable 1.33.3 aarch64 [upgradable from: 1.33.2]
libudfread/stable 1.2.0 aarch64 [upgradable from: 1.1.2-1]
llama-cpp-backend-vulkan/stable 0.0.0-b6933-0 aarch64 [upgradable from: 0.0.0-b6891-0]
llama-cpp/stable 0.0.0-b6933-0 aarch64 [upgradable from: 0.0.0-b6891-0]
ollama/stable 0.12.9 aarch64 [upgradable from: 0.12.7]
rust-std-aarch64-linux-android/stable 1.91.0 all [upgradable from: 1.90.0+really1.90.0-1]
rust-std-x86-64-linux-android/stable 1.91.0 all [upgradable from: 1.90.0+really1.90.0-1]
rust/stable 1.91.0 aarch64 [upgradable from: 1.90.0+really1.90.0-1]
vulkan-loader-generic/stable 1.4.331 aarch64 [upgradable from: 1.4.330]
vulkan-tools/stable 1.4.331 aarch64 [upgradable from: 1.4.330]
termux-tools version:
1.45.0
Android version:
15
Kernel build information:
Linux localhost 4.19.322-perf-876876-g8a2319bb07dd-dirty #6 SMP PREEMPT Sun Nov 24 23:40:32 IST 2024 aarch64 Android
Device manufacturer:
realme
Device model:
RMX3371
Supported ABIs:
SUPPORTED_ABIS: arm64-v8a,armeabi-v7a,armeabi
SUPPORTED_32_BIT_ABIS: armeabi-v7a,armeabi
SUPPORTED_64_BIT_ABIS: arm64-v8a
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec-ld-preload.so
Installed termux plugins:
com.termux.window versionCode:15
com.termux.widget versionCode:13
com.termux.x11 versionCode:15
com.termux.gui versionCode:7
com.termux.styling versionCode:1000
com.termux.api versionCode:51
com.termux.boot versionCode:1000
com.termux.tasker versionCode:6
com.termux.wayland versionCode:1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions