[2025-03-23 06:03:46.658070 sunset] INFO: xbbs.worker: running job JobMessage(project='managarm', job='package:lewis', repository='https://github.com/managarm/bootstrap-managarm.git', revision='3bfd101292f3a8ea97590e0ce7585bb8857c01f0', output='tcp://10.0.69.1:16999', build_root='/var/lib/xbbs/tmp/worker', needed_pkgs={'linux-headers': {'architecture': 'x86_64', 'version': '6.12.8_2'}, 'libdrm-headers': {'architecture': 'x86_64', 'version': '2.4.115_2'}, 'mlibc-headers': {'architecture': 'x86_64', 'version': '0.0pl4380_2'}, 'frigg': {'architecture': 'x86_64', 'version': '0.0pl358_7'}, 'mlibc': {'architecture': 'x86_64', 'version': '0.0pl4380_2'}}, needed_tools={'cross-binutils': {'architecture': 'x86_64', 'version': '2.43.1_1'}, 'system-gcc': {'architecture': 'x86_64', 'version': '14.2.0_1'}}, prod_pkgs={'lewis': {'architecture': 'x86_64', 'version': '0.0pl109_10'}}, prod_tools={}, prod_files=[], tool_repo='https://mirrors.managarm.org/currents/managarm/tool_repo', pkg_repo='https://mirrors.managarm.org/currents/managarm/package_repo', mirror_root='https://mirrors.managarm.org/mirror/', distfile_path='xbbs/x86_64/')
[2025-03-23 06:03:46.658450 sunset] INFO: xbbs.worker: running command ['git', 'init'] (params {'cwd': '/var/lib/xbbs/tmp/worker.src'})
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint: 
hint: 	git config --global init.defaultBranch <name>
hint: 
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint: 
hint: 	git branch -m <name>
Initialized empty Git repository in /var/lib/xbbs/tmp/worker.src/.git/
[2025-03-23 06:03:46.670822 sunset] INFO: xbbs.worker: running command ['git', 'remote', 'add', 'origin', 'https://github.com/managarm/bootstrap-managarm.git'] (params {'cwd': '/var/lib/xbbs/tmp/worker.src'})
[2025-03-23 06:03:46.682161 sunset] INFO: xbbs.worker: running command ['git', 'fetch', 'origin'] (params {'cwd': '/var/lib/xbbs/tmp/worker.src'})
From https://github.com/managarm/bootstrap-managarm
 * [new branch]      master     -> origin/master
[2025-03-23 06:03:47.729013 sunset] INFO: xbbs.worker: running command ['git', 'checkout', '--detach', '3bfd101292f3a8ea97590e0ce7585bb8857c01f0'] (params {'cwd': '/var/lib/xbbs/tmp/worker.src'})
HEAD is now at 3bfd101 Merge pull request #486 from no92/systemd-hwdb-pregenerate
[2025-03-23 06:03:47.762963 sunset] INFO: xbbs.worker: running command ['xbstrap', 'init', '/var/lib/xbbs/tmp/worker.src'] (params {'cwd': '/var/lib/xbbs/tmp/worker'})
Creating cargo-home/config.toml
[2025-03-23 06:03:52.633502 sunset] INFO: xbbs.worker: running command ['xbps-install', '-Uy', '-R', 'https://mirrors.managarm.org/currents/managarm/package_repo', '-r', '/var/lib/xbbs/tmp/worker/system-root', '-SM', '--', 'linux-headers', 'libdrm-headers', 'mlibc-headers', 'frigg', 'mlibc'] (params {'extra_env': {'XBPS_ARCH': 'x86_64'}})
[*] Updating repository `https://mirrors.managarm.org/currents/managarm/package_repo/x86_64-repodata' ...
x86_64-repodata: [10KB 38%] 49MB/s ETA: 00m00s
x86_64-repodata: 10KB [avg rate: 127MB/s]
5 packages will be downloaded:

5 packages will be installed:

  linux-headers-6.12.8_2 
  libdrm-headers-2.4.115_2 
  mlibc-headers-0.0pl4380_2 
  frigg-0.0pl358_7 
  mlibc-0.0pl4380_2 

Size to download:             8099KB
Size required on disk:          31MB
Space available on disk:       757GB


[*] Downloading packages
linux-headers-6.12.8_2.x86_64.xbps.sig2: [512B 100%] 14MB/s ETA: 00m00s
linux-headers-6.12.8_2.x86_64.xbps.sig2: 512B [avg rate: 14MB/s]
linux-headers-6.12.8_2.x86_64.xbps: [3121KB 0%] 109MB/s ETA: 00m00s
linux-headers-6.12.8_2.x86_64.xbps: [3121KB 94%] 18MB/s ETA: 00m00s
linux-headers-6.12.8_2.x86_64.xbps: 3121KB [avg rate: 19MB/s]
linux-headers-6.12.8_2: verifying RSA signature...
libdrm-headers-2.4.115_2.x86_64.xbps.sig2: [512B 100%] 16MB/s ETA: 00m00s
libdrm-headers-2.4.115_2.x86_64.xbps.sig2: 512B [avg rate: 16MB/s]
libdrm-headers-2.4.115_2.x86_64.xbps: [114KB 3%] 95MB/s ETA: 00m00s
libdrm-headers-2.4.115_2.x86_64.xbps: 114KB [avg rate: 2722MB/s]
libdrm-headers-2.4.115_2: verifying RSA signature...
mlibc-headers-0.0pl4380_2.x86_64.xbps.sig2: [512B 100%] 14MB/s ETA: 00m00s
mlibc-headers-0.0pl4380_2.x86_64.xbps.sig2: 512B [avg rate: 14MB/s]
mlibc-headers-0.0pl4380_2.x86_64.xbps: [99KB 4%] 100MB/s ETA: 00m00s
mlibc-headers-0.0pl4380_2.x86_64.xbps: 99KB [avg rate: 2469MB/s]
mlibc-headers-0.0pl4380_2: verifying RSA signature...
frigg-0.0pl358_7.x86_64.xbps.sig2: [512B 100%] 14MB/s ETA: 00m00s
frigg-0.0pl358_7.x86_64.xbps.sig2: 512B [avg rate: 14MB/s]
frigg-0.0pl358_7.x86_64.xbps: [42KB 9%] 98MB/s ETA: 00m00s
frigg-0.0pl358_7.x86_64.xbps: 42KB [avg rate: 1024MB/s]
frigg-0.0pl358_7: verifying RSA signature...
mlibc-0.0pl4380_2.x86_64.xbps.sig2: [512B 100%] 14MB/s ETA: 00m00s
mlibc-0.0pl4380_2.x86_64.xbps.sig2: 512B [avg rate: 14MB/s]
mlibc-0.0pl4380_2.x86_64.xbps: [4721KB 0%] 95MB/s ETA: 00m00s
mlibc-0.0pl4380_2.x86_64.xbps: 4721KB [avg rate: 110GB/s]
mlibc-0.0pl4380_2: verifying RSA signature...

[*] Collecting package files
linux-headers-6.12.8_2: collecting files...
libdrm-headers-2.4.115_2: collecting files...
mlibc-headers-0.0pl4380_2: collecting files...
frigg-0.0pl358_7: collecting files...
mlibc-0.0pl4380_2: collecting files...

[*] Unpacking packages
linux-headers-6.12.8_2: unpacking ...
libdrm-headers-2.4.115_2: unpacking ...
mlibc-headers-0.0pl4380_2: unpacking ...
frigg-0.0pl358_7: unpacking ...
mlibc-0.0pl4380_2: unpacking ...

5 downloaded, 5 installed, 0 updated, 5 configured, 0 removed.
[2025-03-23 06:03:53.793221 sunset] DEBUG: xbbs.worker: creating repository with existing packages...
[2025-03-23 06:03:53.794370 sunset] DEBUG: xbbs.worker: ... found libdrm-headers-2.4.115_2.x86_64.xbps
[2025-03-23 06:03:53.795987 sunset] INFO: xbbs.worker: running command ['xbps-rindex', '-fa', '--', 'libdrm-headers-2.4.115_2.x86_64.xbps'] (params {'extra_env': {'XBPS_ARCH': 'x86_64'}, 'cwd': '/var/lib/xbbs/tmp/worker/xbps-repo'})
index: added `libdrm-headers-2.4.115_2' (x86_64).
index: 1 packages registered.
[2025-03-23 06:03:53.813877 sunset] DEBUG: xbbs.worker: ... found mlibc-headers-0.0pl4380_2.x86_64.xbps
[2025-03-23 06:03:53.814520 sunset] INFO: xbbs.worker: running command ['xbps-rindex', '-fa', '--', 'mlibc-headers-0.0pl4380_2.x86_64.xbps'] (params {'extra_env': {'XBPS_ARCH': 'x86_64'}, 'cwd': '/var/lib/xbbs/tmp/worker/xbps-repo'})
index: added `mlibc-headers-0.0pl4380_2' (x86_64).
index: 2 packages registered.
[2025-03-23 06:03:53.831523 sunset] DEBUG: xbbs.worker: ... found linux-headers-6.12.8_2.x86_64.xbps
[2025-03-23 06:03:53.834775 sunset] INFO: xbbs.worker: running command ['xbps-rindex', '-fa', '--', 'linux-headers-6.12.8_2.x86_64.xbps'] (params {'extra_env': {'XBPS_ARCH': 'x86_64'}, 'cwd': '/var/lib/xbbs/tmp/worker/xbps-repo'})
index: added `linux-headers-6.12.8_2' (x86_64).
index: 3 packages registered.
[2025-03-23 06:03:53.864610 sunset] DEBUG: xbbs.worker: ... found mlibc-0.0pl4380_2.x86_64.xbps
[2025-03-23 06:03:53.869110 sunset] INFO: xbbs.worker: running command ['xbps-rindex', '-fa', '--', 'mlibc-0.0pl4380_2.x86_64.xbps'] (params {'extra_env': {'XBPS_ARCH': 'x86_64'}, 'cwd': '/var/lib/xbbs/tmp/worker/xbps-repo'})
index: added `mlibc-0.0pl4380_2' (x86_64).
index: 4 packages registered.
[2025-03-23 06:03:53.891809 sunset] DEBUG: xbbs.worker: ... found frigg-0.0pl358_7.x86_64.xbps
[2025-03-23 06:03:53.892589 sunset] INFO: xbbs.worker: running command ['xbps-rindex', '-fa', '--', 'frigg-0.0pl358_7.x86_64.xbps'] (params {'extra_env': {'XBPS_ARCH': 'x86_64'}, 'cwd': '/var/lib/xbbs/tmp/worker/xbps-repo'})
index: added `frigg-0.0pl358_7' (x86_64).
index: 5 packages registered.
[2025-03-23 06:04:00.908140 sunset] INFO: xbbs.worker: running command ['xbstrap-pipeline', 'run-job', '--keep-going', '--progress-file', 'fd:17', 'package:lewis'] (params {'cwd': '/var/lib/xbbs/tmp/worker', 'pass_fds': (17,)})
xbstrap: Running the following plan:
    fetch          lewis
    checkout       lewis
    patch          lewis
    regenerate     lewis
    install        frigg (inside sysroot.br8dngt0)
    install        libdrm-headers (inside sysroot.br8dngt0)
    install        linux-headers (inside sysroot.br8dngt0)
    install        mlibc-headers (inside sysroot.br8dngt0)
    install        mlibc (inside sysroot.br8dngt0)
    configure      lewis (inside sysroot.br8dngt0)
    build          lewis (inside sysroot.br8dngt0)
    pack           lewis
xbstrap: fetch lewis [1/12]
Initialized empty Git repository in /var/lib/xbbs/tmp/worker.src/ports/lewis/.git/
From https://mirrors.managarm.org/mirror/git/lewis
 * [new branch]      master     -> origin/master
xbstrap: checkout lewis [2/12]
[2025-03-23 06:04:01.644232 sunset] DEBUG: xbbs.worker: got notify {'action': 'fetch', 'artifact_files': [], 'n_all': 12, 'n_this': 1, 'status': 'success', 'subject': 'lewis'}
Reset branch 'master'
branch 'master' set up to track 'origin/master'.
xbstrap: patch lewis [3/12]
xbstrap: regenerate lewis [4/12]
xbstrap: install frigg [5/12]
xbstrap: Running ['xbps-remove', '-Fy', '-r', '/tmp/sysroot.br8dngt0', 'frigg']
[2025-03-23 06:04:01.672569 sunset] DEBUG: xbbs.worker: got notify {'action': 'checkout', 'artifact_files': [], 'n_all': 12, 'n_this': 2, 'status': 'success', 'subject': 'lewis'}
[2025-03-23 06:04:01.673184 sunset] DEBUG: xbbs.worker: got notify {'action': 'patch', 'artifact_files': [], 'n_all': 12, 'n_this': 3, 'status': 'success', 'subject': 'lewis'}
[2025-03-23 06:04:01.673644 sunset] DEBUG: xbbs.worker: got notify {'action': 'regenerate', 'artifact_files': [], 'n_all': 12, 'n_this': 4, 'status': 'success', 'subject': 'lewis'}
xbstrap: Running ['xbps-install', '-fyU', '-r', '/tmp/sysroot.br8dngt0', '--repository', '/var/lib/xbbs/tmp/worker/xbps-repo', 'frigg']
xbstrap[2025-03-23 06:04:01.723845 sunset] DEBUG: xbbs.worker: got notify {'action': 'install', 'artifact_files': [], 'n_all': 12, 'n_this': 5, 'status': 'success', 'subject': 'frigg'}
: install libdrm-headers [6/12]
xbstrap: Running ['xbps-remove', '-Fy', '-r', '/tmp/sysroot.br8dngt0', 'libdrm-headers']
xbstrap: Running ['xbps-install', '-fyU', '-r', '/tmp/sysroot.br8dngt0', '--repository', '/var/lib/xbbs/tmp/worker/xbps-repo', 'libdrm-headers']
xbstrap: install linux-headers [7/12]
xbstrap: Running ['xbps-remove', '-Fy', '-r', '/tmp/sysroot.br8dngt0', 'linux-headers']
[2025-03-23 06:04:01.817592 sunset] DEBUG: xbbs.worker: got notify {'action': 'install', 'artifact_files': [], 'n_all': 12, 'n_this': 6, 'status': 'success', 'subject': 'libdrm-headers'}
xbstrap: Running ['xbps-install', '-fyU', '-r', '/tmp/sysroot.br8dngt0', '--repository', '/var/lib/xbbs/tmp/worker/xbps-repo', 'linux-headers']
xbstrap: install mlibc-headers [8/12]
xbstrap: Running ['xbps-remove', '-Fy', '-r', '/tmp/sysroot.br8dngt0', 'mlibc-headers']
[2025-03-23 06:04:02.040903 sunset] DEBUG: xbbs.worker: got notify {'action': 'install', 'artifact_files': [], 'n_all': 12, 'n_this': 7, 'status': 'success', 'subject': 'linux-headers'}
xbstrap: Running ['xbps-install', '-fyU', '-r', '/tmp/sysroot.br8dngt0', '--repository', '/var/lib/xbbs/tmp/worker/xbps-repo', 'mlibc-headers']
xbstrap: install mlibc [9/12]
xbstrap: Running ['xbps-remove', '-Fy', '-r', '/tmp/sysroot.br8dngt0', 'mlibc']
xbstrap: Running ['xbps-install', '-fyU', '-r', '/tmp/sysroot.br8dngt0', '--repository', '/var/lib/xbbs/tmp/worker/xbps-repo', 'mlibc']
[2025-03-23 06:04:02.069849 sunset] DEBUG: xbbs.worker: got notify {'action': 'install', 'artifact_files': [], 'n_all': 12, 'n_this': 8, 'status': 'success', 'subject': 'mlibc-headers'}
xbstrap: configure lewis [10/12]
[2025-03-23 06:04:02.132620 sunset] DEBUG: xbbs.worker: got notify {'action': 'install', 'artifact_files': [], 'n_all': 12, 'n_this': 9, 'status': 'success', 'subject': 'mlibc'}
xbstrap: Running ['meson', '--cross-file', '@SOURCE_ROOT@/scripts/meson-@OPTION:arch-triple@.cross-file', '--prefix=/usr', '--libdir=lib', '--buildtype=debugoptimized', '@THIS_SOURCE_DIR@'] (tools: ['system-gcc', 'cross-binutils']) via cbuildrt
PID init is 1776404 (outside the namespace)
Cloning into 'frigg'...
Already on 'master'
Your branch is up to date with 'origin/master'.
The Meson build system
Version: 1.7.0
Source dir: /var/lib/managarm-buildenv/src/ports/lewis
Build dir: /var/lib/managarm-buildenv/build/pkg-builds/lewis
Build type: cross build
Project name: lewis
Project version: undefined
C++ compiler for the host machine: x86_64-managarm-g++ (gcc 14.2.0 "x86_64-managarm-g++ (managarm) 14.2.0")
C++ linker for the host machine: x86_64-managarm-g++ ld.bfd 2.43.1
C++ compiler for the build machine: c++ (gcc 12.2.0 "c++ (Debian 12.2.0-14) 12.2.0")
C++ linker for the build machine: c++ ld.bfd 2.40
Build machine cpu family: x86_64
Build machine cpu: x86_64
Host machine cpu family: x86_64
Host machine cpu: x86_64
Target machine cpu family: x86_64
Target machine cpu: x86_64

Executing subproject frigg 

frigg| Project name: frigg
frigg| Project version: undefined
frigg| Build targets in project: 0
frigg| Subproject frigg finished.

Build targets in project: 2

lewis undefined

  Subprojects
    frigg      : YES

  User defined options
    Cross files: /var/lib/managarm-buildenv/src/scripts/meson-x86_64-managarm.cross-file
    buildtype  : debugoptimized
    libdir     : lib
    prefix     : /usr

Found ninja-1.11.1 at /usr/bin/ninja
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.
xbstrap: build lewis [11/12]
[2025-03-23 06:04:04.376835 sunset] DEBUG: xbbs.worker: got notify {'action': 'configure', 'artifact_files': [], 'n_all': 12, 'n_this': 10, 'status': 'success', 'subject': 'lewis'}
xbstrap: Running ['ninja'] (tools: ['system-gcc', 'cross-binutils']) via cbuildrt
PID init is 1776467 (outside the namespace)
[1/13] Compiling C++ object liblewis.so.p/lib_elf_internal-link-pass.cpp.o
[2/13] Compiling C++ object liblewis.so.p/lib_ir.cpp.o
[3/13] Compiling C++ object liblewis.so.p/lib_elf_object.cpp.o
[4/13] Compiling C++ object liblewis.so.p/lib_elf_file-emitter.cpp.o
[5/13] Compiling C++ object liblewis.so.p/lib_elf_create-headers-pass.cpp.o
[6/13] Compiling C++ object liblewis.so.p/lib_elf_layout-pass.cpp.o
../../../src/ports/lewis/lib/elf/layout-pass.cpp: In member function ‘virtual void lewis::elf::LayoutPassImpl::run()’:
../../../src/ports/lewis/lib/elf/layout-pass.cpp:144:16: warning: ‘size’ may be used uninitialized [-Wmaybe-uninitialized]
  144 |         offset += size;
      |         ~~~~~~~^~~~~~~
../../../src/ports/lewis/lib/elf/layout-pass.cpp:56:16: note: ‘size’ was declared here
   56 |         size_t size;
      |                ^~~~
[7/13] Compiling C++ object test-elf.p/tools_test-elf.cpp.o
[8/13] Compiling C++ object liblewis.so.p/lib_target-x86_64_lower-code.cpp.o
[9/13] Compiling C++ object liblewis.so.p/lib_target-x86_64_mc-emitter.cpp.o
[10/13] Compiling C++ object liblewis.so.p/lib_target-x86_64_alloc-regs.cpp.o
../../../src/ports/lewis/lib/target-x86_64/alloc-regs.cpp: In member function ‘void lewis::targets::x86_64::AllocateRegistersImpl::_collectBlockIntervals(lewis::BasicBlock*)’:
../../../src/ports/lewis/lib/target-x86_64/alloc-regs.cpp:585:32: warning: unused variable ‘resultRegs’ [-Wunused-variable]
  585 |             std::array<int, 2> resultRegs{0x01, 0x04};
      |                                ^~~~~~~~~~
../../../src/ports/lewis/lib/target-x86_64/alloc-regs.cpp: In member function ‘std::optional<lewis::targets::x86_64::ProgramCounter> lewis::targets::x86_64::AllocateRegistersImpl::_determineFinalPc(lewis::BasicBlock*, lewis::Value*)’:
../../../src/ports/lewis/lib/target-x86_64/alloc-regs.cpp:783:36: warning: ‘finalIndex’ may be used uninitialized [-Wmaybe-uninitialized]
  783 |         if (!finalInst || useIndex > finalIndex) {
      |                           ~~~~~~~~~^~~~~~~~~~~~
../../../src/ports/lewis/lib/target-x86_64/alloc-regs.cpp:775:12: note: ‘finalIndex’ was declared here
  775 |     size_t finalIndex;
      |            ^~~~~~~~~~
[11/13] Linking target liblewis.so
[12/13] Generating symbol file liblewis.so.p/liblewis.so.symbols
[13/13] Linking target test-elf
xbstrap: Running ['ninja', 'install'] (tools: ['system-gcc', 'cross-binutils']) via cbuildrt
PID init is 1776522 (outside the namespace)
xbstrap: pack lewis [12/12]
[2025-03-23 06:04:11.174297 sunset] DEBUG: xbbs.worker: got notify {'action': 'build', 'artifact_files': [], 'n_all': 12, 'n_this': 11, 'status': 'success', 'subject': 'lewis'}
xbstrap: Running ['xbps-create', '-A', 'x86_64', '-s', 'lewis', '-n', 'lewis-0.0pl109_10', '-D', 'mlibc>=0', '/tmp/tmpbs4g2w98']
xbstrap: Running ['xbps-rindex', '-fa', '/var/lib/xbbs/tmp/worker/xbps-repo/lewis-0.0pl109_10.x86_64.xbps'] (x86_64)
[2025-03-23 06:04:11.329356 sunset] DEBUG: xbbs.worker: got notify {'action': 'pack', 'architecture': 'x86_64', 'artifact_files': [], 'n_all': 12, 'n_this': 12, 'status': 'success', 'subject': 'lewis'}
[2025-03-23 06:04:11.350506 sunset] DEBUG: xbbs.worker: successfully uploaded package lewis for JobMessage(project='managarm', job='package:lewis', repository='https://github.com/managarm/bootstrap-managarm.git', revision='3bfd101292f3a8ea97590e0ce7585bb8857c01f0', output='tcp://10.0.69.1:16999', build_root='/var/lib/xbbs/tmp/worker', needed_pkgs={'linux-headers': {'architecture': 'x86_64', 'version': '6.12.8_2'}, 'libdrm-headers': {'architecture': 'x86_64', 'version': '2.4.115_2'}, 'mlibc-headers': {'architecture': 'x86_64', 'version': '0.0pl4380_2'}, 'frigg': {'architecture': 'x86_64', 'version': '0.0pl358_7'}, 'mlibc': {'architecture': 'x86_64', 'version': '0.0pl4380_2'}}, needed_tools={'cross-binutils': {'architecture': 'x86_64', 'version': '2.43.1_1'}, 'system-gcc': {'architecture': 'x86_64', 'version': '14.2.0_1'}}, prod_pkgs={'lewis': {'architecture': 'x86_64', 'version': '0.0pl109_10'}}, prod_tools={}, prod_files=[], tool_repo='https://mirrors.managarm.org/currents/managarm/tool_repo', pkg_repo='https://mirrors.managarm.org/currents/managarm/package_repo', mirror_root='https://mirrors.managarm.org/mirror/', distfile_path='xbbs/x86_64/')
[2025-03-23 06:04:11.435415 sunset] INFO: xbbs.worker: job done. return code: 0