Fail to build LDC2 on Windows 7 X64

Kai Nacke kai at redstar.de
Mon Sep 16 10:55:07 PDT 2013


On Sunday, 8 September 2013 at 10:59:38 UTC, Zhouxuan wrote:
> On Sunday, 8 September 2013 at 10:21:39 UTC, Kai Nacke wrote:
>> On Sunday, 8 September 2013 at 06:51:18 UTC, Zhouxuan wrote:
>>> I tried building LDC2 on windows according to 
>>> http://wiki.dlang.org/Building_and_hacking_LDC_on_Windows_using_MSVC, 
>>> but failed while building phobos-ldc.vcxproj.
>>>
>>> The error is:
>>> ...
>>> ...
>>> Generating std/file.obj
>>> Unknown frame setup opcode!
>>> UNREACHABLE executed at 
>>> D:\ldcenv\llvm\lib\Target\X86\X86MCInstLower.cpp:707!
>>> Stack dump:
>>> 0.        Running pass 'X86 Assembly / Object Emitter' on 
>>> function '@_D3std4file6getcwdFZAya'
>>
>> Hi Zhouxuan,
>>
>> I noticed that, too. It comes from my patch for EH handling. 
>> Something has changed in LLVM and I did not correct the patch 
>> yet. (I correct it as soon as I understand the LLVM changes 
>> causing the failure.)
>>
>> It works if you do not apply the patch. But then you get no 
>> exception handling...
>>
>> Regards
>> Kai
>
> Awesome, lookinng forward an update!

The root cause of this problem is PR16779 
(http://llvm.org/bugs/show_bug.cgi?id=16779). I try to fis this.

Kai


More information about the digitalmars-d-ldc mailing list