From 5ee256e998f5842ccbf1a025731c2a693a6ce8d2 Mon Sep 17 00:00:00 2001 From: Mazunki Hoksaas Date: Thu, 23 Oct 2025 20:44:12 +0200 Subject: [PATCH 1/3] bump llvm 19=>20 --- overlay.nix | 2 +- unittests.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/overlay.nix b/overlay.nix index 907f6bbd6..de76d9084 100644 --- a/overlay.nix +++ b/overlay.nix @@ -6,7 +6,7 @@ final: prev: { stdenvIncludeOS = prev.pkgsStatic.lib.makeScope prev.pkgsStatic.newScope (self: { - llvmPkgs = prev.pkgsStatic.llvmPackages_19; + llvmPkgs = prev.pkgsStatic.llvmPackages_20; stdenv = self.llvmPkgs.libcxxStdenv; # Use this as base stdenv # Import unpatched musl for building libcxx. Libcxx needs some linux headers to be passed through. diff --git a/unittests.nix b/unittests.nix index ae22628b7..68feb6f43 100644 --- a/unittests.nix +++ b/unittests.nix @@ -1,6 +1,6 @@ { nixpkgs ? ./pinned.nix, pkgs ? import nixpkgs { config = { }; overlays = [ ]; }, - stdenv ? pkgs.llvmPackages_19.libcxxStdenv, + stdenv ? pkgs.llvmPackages_20.libcxxStdenv, withCcache ? false, }: stdenv.mkDerivation rec { From 03c2fc0a6de0581ec9725bb3ffe6e99a50135773 Mon Sep 17 00:00:00 2001 From: Mazunki Hoksaas Date: Thu, 23 Oct 2025 20:44:35 +0200 Subject: [PATCH 2/3] ensure alignof has a complete type of fs::Dirent --- api/fs/common.hpp | 4 ---- api/fs/dirent.hpp | 6 ++++++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/api/fs/common.hpp b/api/fs/common.hpp index 5954c53a0..2ddb00be5 100644 --- a/api/fs/common.hpp +++ b/api/fs/common.hpp @@ -205,10 +205,6 @@ namespace fs { { error_t error; Dirvec_ptr entries; - auto begin() { return entries->begin(); } - auto end() { return entries->end(); } - auto cbegin() const { return entries->cbegin(); } - auto cend() const { return entries->cend(); } }; } //< fs diff --git a/api/fs/dirent.hpp b/api/fs/dirent.hpp index a1549e651..9c5c91d63 100644 --- a/api/fs/dirent.hpp +++ b/api/fs/dirent.hpp @@ -194,5 +194,11 @@ namespace fs { } //< namespace fs +namespace fs { + inline auto begin(List& l) { return l.entries->begin(); } + inline auto end(List& l) { return l.entries->end(); } + inline auto cbegin(const List& l) { return l.entries->cbegin(); } + inline auto cend(const List& l) { return l.entries->cend(); } +} //< namespace fs #endif //< FS_DIRENT_HPP From fdcde677fd25cfb43d319021d60679c213633c97 Mon Sep 17 00:00:00 2001 From: Mazunki Hoksaas Date: Thu, 23 Oct 2025 21:14:43 +0200 Subject: [PATCH 3/3] fix missing mutex include --- api/mem/alloc/buddy.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/mem/alloc/buddy.hpp b/api/mem/alloc/buddy.hpp index bc6e291fd..798f4cecc 100644 --- a/api/mem/alloc/buddy.hpp +++ b/api/mem/alloc/buddy.hpp @@ -25,6 +25,9 @@ #include #include #include +#ifdef INCLUDEOS_SMP_ENABLE +#include +#endif #include #include