[Issue 24615] New: ImportC can't import Python 3.12 header
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jun 17 22:45:24 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=24615
Issue ID: 24615
Summary: ImportC can't import Python 3.12 header
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: atila.neves at gmail.com
------------
// foo.d
import python;
------------
------------
// python.c
#include <Python.h>
------------
% dmd -c -P-I/usr/include/python3.12 foo.d
In file included from <command-line>:
/usr/include/dlang/dmd/importc.h:101:8: warning: undefining "__has_feature"
101 | #undef __has_feature
| ^~~~~~~~~~~~~
/usr/include/dlang/dmd/importc.h:104:8: warning: undefining "__has_extension"
104 | #undef __has_extension
| ^~~~~~~~~~~~~~~
/usr/include/linux/types.h(12): Error: __int128 not supported
/usr/include/linux/types.h(13): Error: unsigned __int128 not supported
--
More information about the Digitalmars-d-bugs
mailing list