Skip to content

Instantly share code, notes, and snippets.

View xavgru12's full-sized avatar
๐Ÿ˜ƒ

Xaver Gruber xavgru12

๐Ÿ˜ƒ
  • Switzerland
  • 20:30 (UTC +02:00)
View GitHub Profile
@xavgru12
xavgru12 / gist:7dfd77b4da3da86d7dadaacf49fd568b
Created March 23, 2026 19:29
wasm build without compiler
This file has been truncated, but you can view the full file.
xaver@laptop:~/code/swift-project-wasm$ ./swift/utils/build-script --skip-build-llvm --skip-build-swift --skip-build-cmark --build-wasm-stdlib --native-swift-tools-path="$SWIFT_TOOLS_PATH" --native-clang-tools-path="$SWIFT_TOOLS_PATH" --native-llvm-tools-path="$SWIFT_TOOLS_PATH"
[./swift/utils/build-script] NOTE: Using toolchain default
+ /usr/bin/cmake --version
--- Bootstrap Local CMake ---
+ /home/xaver/code/swift-project-wasm/cmake/bootstrap --no-qt-gui --parallel=16 -- -DCMAKE_USE_OPENSSL=OFF
---------------------------------------------
CMake 3.30.2, Copyright 2000-2024 Kitware, Inc. and Contributors
Found GNU toolchain
C compiler on this system is: gcc
C++ compiler on this system is: g++
@xavgru12
xavgru12 / gist:3631667368a216810db213ac717bc1c0
Created March 23, 2026 16:53
working swift checkout for buildbot_linux_crosscompile_wasm run
{
"ssh-clone-pattern": "git@github.com:%s.git",
"https-clone-pattern": "https://github.com/%s.git",
"repos": {
"swift": {
"remote": {
"id": "swiftlang/swift"
}
},
"cmark": {
root@qemuarm:~# strace /usr/bin/hello-world
execve("/usr/bin/hello-world", ["/usr/bin/hello-world"], 0xbef0fe20 /* 10 vars */) = 0
brk(NULL) = 0x461000
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6f7b000
readlinkat(AT_FDCWD, "/proc/self/exe", "/usr/bin/hello-world", 4096) = 20
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/xaver/code/meta-swift-project/poky/build-qemuarm/tmp-glibc/work/cortexa15t2hf-neon-oe-linux-gnueabi/swift-hello-world/1.0/recipe-sysroot/usr/lib/swift/linux/libswiftCore.so", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory)
statx(AT_FDCWD, "/home/xaver/code/meta-swift-project/poky/build-qemuarm/tmp-glibc/work/cortexa15t2hf-neon-oe-linux-gnueabi/swift-hello-world/1.0/recipe-sysroot/usr/lib/swift/linux/", AT_STATX_SYNC_AS_STAT|AT_NO_AUTOMOUNT, STATX_BASIC_STATS, 0xbeebbe88) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/bin/libswiftCo
@xavgru12
xavgru12 / gist:f0493f7560de1066c9ce09cd56d38d31
Last active March 15, 2026 10:14
qemuarm crash valgrind
root@qemuarm:~# valgrind /usr/bin/hello-world
==282== Memcheck, a memory error detector
==282== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==282== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
==282== Command: /usr/bin/hello-world
==282==
--282-- WARNING: Serious error when reading debug info
--282-- When reading debug info from /usr/bin/hello-world:
--282-- Can't make sense of .ARM.exidx section mapping
==282== Invalid write of size 4
root@qemuarm:~# gdb /usr/bin/hello-world
GNU gdb (GDB) 14.2
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "arm-oe-linux-gnueabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
@xavgru12
xavgru12 / gist:1f19f3d54fbe9b9da1cb97c3f45149ca
Created January 22, 2026 21:56
error with latest meta-swift(fc60ae5f432823eca654608115a6197acbe05c42)
DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are ['/home/xaver/code/meta-swift-project/meta-swift/recipes-devtools/swift/swift-native.bb:do_populate_sysroot', 'virtual:native:/home/xaver/code/meta-swift-project/poky/meta/recipes-extended/unzip/unzip_6.0.bb:do_populate_sysroot']
NOTE: Installed into sysroot: ['swift-native', 'openssl', 'glibc', 'zlib', 'gcc-runtime', 'libgcc', 'opkg-utils', 'libidn2', 'linux-libc-headers', 'curl', 'libunistring', 'unzip-native']
NOTE: Skipping as already exists in sysroot: []
DEBUG: sed -e 's:^[^/]*/:/home/xaver/code/meta-swift-project/poky/build-beaglebone-yocto/tmp-glibc/work/cortexa8hf-neon-oe-linux-gnueabi/swift-testing/6.2.3+git/recipe-sysroot/:g' /home/xaver/code/meta-swift-project/poky/build-beaglebone-yocto/tmp-glibc/sysroots-components/cortexa8hf-neon/curl/fixmepath | xargs sed -i -e 's:FIXMESTAGINGDIRTARGET:/home/xaver/code/meta-swift-project/poky/build-beaglebone-yocto/tmp-glibc/work/cortexa8hf-neon-oe-linux-gnueabi/swift-testing/
@xavgru12
xavgru12 / gist:ae9620cd9b4221787c3d4ff42502b9b7
Created February 25, 2025 12:25
imx nano 8 compile fail
DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are ['/opt/yocto/imx-6.6.52-2.2.0-build/sources/meta-imx/meta-imx-bsp/recipes-bsp/imx-mkimage/imx-boot_1.0.bb:do_populate_sysroot', '/opt/yocto/imx-6.6.52-2.2.0-build/sources/meta-imx/meta-imx-bsp/recipes-bsp/u-boot/u-boot-imx_2024.04.bb:do_populate_sysroot', '/opt/yocto/imx-6.6.52-2.2.0-build/sources/meta-imx/meta-imx-bsp/recipes-fsl/mcore-demos/imx-m7-demos_2.16.000.bb:do_populate_sysroot', '/opt/yocto/imx-6.6.52-2.2.0-build/sources/poky/meta/recipes-core/glibc/cross-localedef-native_2.39.bb:do_populate_sysroot', '/opt/yocto/imx-6.6.52-2.2.0-build/sources/poky/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb:do_populate_sysroot', '/opt/yocto/imx-6.6.52-2.2.0-build/sources/poky/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb:do_populate_sysroot', '/opt/yocto/imx-6.6.52-2.2.0-build/sources/poky/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'virtual:native:/opt/yocto/imx-6.6.52-2.2.0-build/sources/
@xavgru12
xavgru12 / gist:bd8fc2796e90b8e03356a60beb146f65
Created January 19, 2025 16:12
/utils/build-script --release-debuginfo --debug-swift --clean --dump-config --dry-run
xaver@xaver-HP-EliteBook-860-16-inch-G10-Notebook-PC:~/code/withDebugSwift/swift$ ./utils/build-script --release-debuginfo --debug-swift --clean --dump-config --dry-run
[./utils/build-script] NOTE: Using toolchain default
+ cmake --version
+ /home/xaver/code/withDebugSwift/cmake/bootstrap --no-qt-gui --parallel=20 -- -DCMAKE_USE_OPENSSL=OFF
---------------------------------------------
CMake 3.30.2, Copyright 2000-2024 Kitware, Inc. and Contributors
Found GNU toolchain
C compiler on this system is: gcc
C++ compiler on this system is: g++
Makefile processor on this system is: gmake
@xavgru12
xavgru12 / gist:e8ebd525a8f1be628dabd3b6364273d2
Created January 19, 2025 16:08
./utils/build-script --release-debuginfo --debug-swift --clean
ssert/llvm-linux-x86_64/lib/libLLVMDemangle.a -lrt -ldl -lm /usr/lib/x86_64-linux-gnu/libz.so && :
lib/libswiftMacroEvaluation.a(Macros.swift.o):Macros.swift.o:function $s20swiftMacroEvaluation018expandFreestandingB013diagEnginePtr05macroH017discriminatorText03rawB4Role010sourceFileH00n8LocationH0017expandedSourceOutH0SiSv_SVSPys4Int8VGs5UInt8VSVSPyANGSgSpySo16BridgedStringRefVGtF:(.text.$s20swiftMacroEvaluation018expandFreestandingB013diagEnginePtr05macroH017discriminatorText03rawB4Role010sourceFileH00n8LocationH0017expandedSourceOutH0SiSv_SVSPys4Int8VGs5UInt8VSVSPyANGSgSpySo16BridgedStringRefVGtF+0x350): error: undefined reference to '$ss27_allocateUninitializedArrayySayxG_BptBwlFyp_Tg5'
lib/libswiftMacroEvaluation.a(Macros.swift.o):Macros.swift.o:function $s20swiftMacroEvaluation018expandFreestandingB013diagEnginePtr05macroH017discriminatorText03rawB4Role010sourceFileH00n8LocationH0017expandedSourceOutH0SiSv_SVSPys4Int8VGs5UInt8VSVSPyANGSgSpySo16BridgedStringRefVGtF:(.text.$s20swiftMacroEvaluation018ex
./utils/build-script --release-debuginfo --sccache --debug-swift --dump-config
[./utils/build-script] NOTE: Using toolchain default
+ cmake --version
Ensuring the sccache server is running...
+ /snap/bin/sccache --show-stats
{
"args": {
"_build_llvm": true,
"android": false,
"android_api_level": "21",