www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21194] New: VisualD cannot build unit-threaded_property.lib:


          Issue ID: 21194
           Summary: VisualD cannot build unit-threaded_property.lib:
                    saying corrupt MS Coff object
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: visuald
          Assignee: nobody puremagic.com
          Reporter: mingwu gmail.com


I got this error, when build with VisualD-v1.0.1-dmd-2.093.1-ldc2-1.23.0.exe


lib\unit-threaded_property.lib: Error: corrupt MS Coff object module
lib\unit-threaded_property.lib: Error: corrupt MS Coff object module
Building lib\unit-threaded_property.lib failed!

(I didn't add package unit-threaded myself, guess it's indirectly pulled in by
some other packages.)

How to fix this Coff object issues?

(BTW, why there are so many \dummy... dirs?)

I just completely deleted that packages dir,


and the <proj_dir>/.dub dir, and also the app.sln file; then I start from

dub.exe generate visuald

But I got the exact same build error: corrupt MS Coff object.

I think it's showhow caused by the build process itself, maybe just inside the
unit-threaded-1.0.4 package, any suggestions where to check further?

I just tried, using -m32:

DFLAGS="-I% p%....\src\phobos" "-I% p%....\src\druntime\import" "-d" "-m32"

at least that error is gone, and I was able to build:


So, looks like this unit-threaded_property.lib cannot be build with -m64, but I
just wonder why?

I think this could be a VisualD issue. I cannot build with VisualD, but I can
build on Windows using command line:

C:\project\dlang\dmd-2.093.1\windows\bin64\dub.exe test --build=unittest

Aug 24 2020