[Issue 24786] New: dmd does not compile a c file (ImportC not used)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 26 13:46:42 UTC 2024


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

          Issue ID: 24786
           Summary: dmd does not compile a c file (ImportC not used)
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: fithis2001 at gmail.com

Created attachment 1917
  --> https://issues.dlang.org/attachment.cgi?id=1917&action=edit
The c file I used to compile

dmd cannot compile the attached hello.c file with ImportC


System Windows 10 x64 19045.4894


Output of command

```
c:\work\swig_experiment>dmd -v example.c
predefs   DigitalMars LittleEndian D_Version2 all D_SIMD Windows Win64
CRuntime_Microsoft CppRuntime_Microsoft D_InlineAsm_X86_64 X86_64 D_LP64 assert
D_PreConditions D_PostConditions D_Invariants D_ModuleInfo D_Exceptions
D_TypeInfo D_HardFloat
binary    dmd
version   v2.109.1
config    c:\winoss\dmd2\windows\bin64\sc.ini
DFLAGS    -Ic:\winoss\dmd2\windows\bin64\..\..\src\phobos
-Ic:\winoss\dmd2\windows\bin64\..\..\src\druntime\import
include   c:\winoss\dmd2\windows\bin64\..\..\src\druntime\import\importc.h
cl.exe /P /Zc:preprocessor /PD /nologo /utf-8 example.c
/FIc:\winoss\dmd2\windows\bin64\..\..\src\druntime\import\importc.h
/FiC:\Users\VASILI~1\AppData\Local\Temp\scuo.0
```


PATH:

```
C:\Windows;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program
Files\dotnet\;C:\winoss\VSCodium\bin;C:\Program
Files\RedHat\Podman\;c:\winoss\git\cmd;C:\winoss\Python312\Scripts\;C:\winoss\Python312\;C:\Users\VasilisAnagnostopoul\AppData\Local\Programs\Python\Launcher\;C:\Users\VasilisAnagnostopoul\AppData\Local\Microsoft\WindowsApps;C:\Users\VasilisAnagnostopoul\AppData\Local\Coursier\data\bin;C:\Users\VasilisAnagnostopoul\AppData\Local\Programs\Rancher
Desktop\resources\resources\linux\bin\;C:\Users\VasilisAnagnostopoul\AppData\Local\Programs\Rancher
Desktop\resources\resources\win32\bin\;C:\winoss\jdk-23\bin;C:\winoss\apache-maven-3.9.8\bin;C:\Users\VasilisAnagnostopoul\AppData\Local\Programs\Microsoft
VS
Code\bin;C:\Users\VasilisAnagnostopoul\AppData\Local\Apps\Janet\bin\;;"c:\winoss\clang+llvm-18.1.8-x86_64-pc-windows-msvc\bin";c:\winoss\dmd2\windows\bin64
```


Is there any possibility it has to do with Corporate Antivirus?

I use Sophos

--


More information about the Digitalmars-d-bugs mailing list