virtualbox-kvm icon indicating copy to clipboard operation
virtualbox-kvm copied to clipboard

Does not build in Arch with GCC 15 and Python 3.13

Open PM1001 opened this issue 4 months ago • 0 comments

To fix the issue, add one line in Config.kmk, and edit one in configure:

diff --git a/Config.kmk b/Config.kmk
index 2203ef99..841ada21 100644
--- a/Config.kmk
+++ b/Config.kmk
@@ -5,7 +5,7 @@
 # This file gets included by all makefiles through the
 # include $(KBUILD_PATH)/header.kmk statement.
 #
-
+CFLAGS += -std=gnu17
 #
 # Copyright (C) 2006-2024 Oracle and/or its affiliates.
 #
diff --git a/configure b/configure
index c3f4581b..a194654a 100755
--- a/configure
+++ b/configure
@@ -2188,7 +2188,7 @@ extern "C" int main(void)
 }
 EOF
   found=
-  SUPPYTHONLIBS="python2.7 python2.6 python3.1 python3.2 python3.3 python3.4 python3.4m python3.5 python3.5m python3.6 python3.6m python3.7 python3.7m python3.8 python3.9 python3.10 python3.11 python3.12"
+  SUPPYTHONLIBS="python2.7 python2.6 python3.1 python3.2 python3.3 python3.4 python3.4m python3.5 python3.5m python3.6 python3.6m python3.7 python3.7m python3.8 python3.9 python3.10 python3.11 python3.12 python3.13"
   for p in $PYTHONDIR; do
     for d in $SUPPYTHONLIBS; do
       for b in lib/x86_64-linux-gnu lib/i386-linux-gnu lib64 lib/64 lib; do

PM1001 avatar Aug 04 '25 05:08 PM1001