[Issue 23206] New: ImportC: errors compiling VC .h files that <errno.h> relies on

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jun 23 00:43:50 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=23206

          Issue ID: 23206
           Summary: ImportC: errors compiling VC .h files that <errno.h>
                    relies on
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: bugzilla at digitalmars.com

This happens when trying to compile errno.c in druntime:

https://github.com/dlang/druntime/pull/3856

---
D:/a/1/dmd/generated/windows/release/64/dmd -c -of=errno_c_64.obj -m64 -conf=
-O -release -preview=dip1000 -preview=fieldwise -preview=dtorfields -inline -w
-Isrc -Iimport -v -P=-I. src\core\stdc\errno.c
predefs   DigitalMars LittleEndian D_Version2 all D_SIMD Windows Win64
CRuntime_Microsoft CppRuntime_Microsoft D_InlineAsm_X86_64 X86_64 D_LP64
D_ModuleInfo D_Exceptions D_TypeInfo D_HardFloat
binary    D:/a/1/dmd/generated/windows/release/64/dmd.exe
version   v2.100.0


config    
DFLAGS    (none)
include   src\importc.h
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\cl.exe /P
/Zc:preprocessor /PD /nologo src\core\stdc\errno.c /FIsrc\importc.h /Fierrno.i
-I.
parse     errno
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\include\vadefs.h(61): Error:
missing comma or semicolon after declaration of `__anonymous`, found
`uintptr_t` instead
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(96):
Error: no type-specifier for parameter
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(96):
Error: found `8` when expecting `,`
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(193):
Error: `=`, `;` or `,` expected to end declaration instead of `typedef`
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(352):
Error: no type for declarator before `__declspec`
C:\Program Files (x86)\Windows
Kits\10\include\10.0.22000.0\ucrt\corecrt.h(125): Error: missing comma or
semicolon after declaration of `__anonymous`, found `__pragma` instead
C:\Program Files (x86)\Windows
Kits\10\include\10.0.22000.0\ucrt\corecrt.h(372): Error: no type for declarator
before `__declspec`
C:\Program Files (x86)\Windows
Kits\10\include\10.0.22000.0\ucrt\corecrt.h(374): Error: no type for declarator
before `__declspec`
C:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt\errno.h(18):
Error: missing comma or semicolon after declaration of `__anonymous`, found
`__pragma` instead
src\core\stdc\errno.c(15): Error: `=`, `;` or `,` expected to end declaration
instead of `int`
src\core\stdc\errno.c(18): Error: no type for declarator before `}`

--- errorlevel 1
---

--


More information about the Digitalmars-d-bugs mailing list