MinGW 6.0.0 libraries for DMD

Basile B. b2.temp at gmx.com
Mon Apr 15 12:02:03 UTC 2019


On Monday, 15 April 2019 at 11:22:04 UTC, Basile B. wrote:
> On Sunday, 14 April 2019 at 08:19:01 UTC, Seb wrote:
>> Hi all,
>>
>> so I just revitalized the half-dead PR from kinke [1] which 
>> upgrades DMD's MinGW libraries to MinGW-64 6.0.0.
>>
>> The bundle is now available at [2] and it would be awesome if 
>> the people actually interested in this could give it a quick 
>> test:
>>
>> 1) Download the built MinGW libaries from [2]
>> 2) Replace them with dmd2/windows/lib64/mingw and/or 
>> dmd2/windows/lib32mscoff in your DMD Windows installation
>> 3) Test whether everything is still working
>
> This is not ready. When building DCD with build.bat with MFLAGS 
> set to -m64 I get this linker error:
>
>   lld-link.exe: error: /alternatename: conflicts: fileno=_fileno
>   Error: linker exited with status 1
>
> This error doesn't occur with the older libraries.

There's a very simple test case, don't forget the -m64, that is:

   void main()
   {
       import core.stdc.stdio;
       auto a = fileno(stdin);
   }

It must compile. It's probably just a druntime issue.


More information about the Digitalmars-d mailing list