Skip to content

Does not build in Arch with GCC 15 and Python 3.13 #52

@PM1001

Description

@PM1001

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions