https://bugs.gentoo.org/936146
--- a/src/slic3r/GUI/GLTexture.cpp	2024-08-10 11:05:17.663411745 +0100
+++ b/src/slic3r/GUI/GLTexture.cpp	2024-08-10 11:05:34.463543701 +0100
@@ -10,6 +10,8 @@
 
 #include <boost/filesystem.hpp>
 #include <boost/algorithm/string/predicate.hpp>
+#include <boost/log/trivial.hpp>
+#include <boost/log/core.hpp>
 
 #include <vector>
 #include <algorithm>
--- a/src/slic3r/GUI/RemovableDriveManager.cpp	2024-08-10 11:24:53.572234573 +0100
+++ b/src/slic3r/GUI/RemovableDriveManager.cpp	2024-08-10 11:28:24.393792051 +0100
@@ -22,7 +22,7 @@
 #include <pwd.h>
 #include <boost/filesystem.hpp>
 #include <boost/system/error_code.hpp>
-#include <boost/filesystem/convenience.hpp>
+//#include <boost/filesystem/convenience.hpp>
 #include <boost/process.hpp>
 #endif
 
--- a/src/slic3r/GUI/ScriptExecutor.cpp	2024-08-10 11:28:32.423851365 +0100
+++ b/src/slic3r/GUI/ScriptExecutor.cpp	2024-08-10 11:28:41.893921315 +0100
@@ -10,7 +10,7 @@
 #include <boost/algorithm/string/erase.hpp>
 #include <boost/algorithm/string/split.hpp>
 #include <boost/filesystem.hpp>
-#include <boost/filesystem/string_file.hpp>
+//#include <boost/filesystem/string_file.hpp>
 
 #include <fstream>
 #include <string>
--- a/src/slic3r/GUI/BitmapCache.cpp.old	2024-08-10 12:00:52.538869133 +0100
+++ b/src/slic3r/GUI/BitmapCache.cpp	2024-08-10 12:01:15.519040423 +0100
@@ -6,6 +6,8 @@
 #include "GUI_Utils.hpp"
 
 #include <boost/filesystem.hpp>
+#include <boost/log/trivial.hpp>
+#include <boost/log/core.hpp>
 
 #ifdef __WXGTK2__
     // Broken alpha workaround
