Bug 24615 – ImportC can't import Python 3.12 header

Status
NEW
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2024-06-17T22:45:24Z
Last change time
2024-12-13T19:35:48Z
Keywords
ImportC
Assigned to
No Owner
Creator
Atila Neves
Moved to GitHub: dmd#20470 →

Comments

Comment #0 by atila.neves — 2024-06-17T22:45:24Z
------------ // 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
Comment #1 by robert.schadek — 2024-12-13T19:35:48Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20470 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB