Fail to build LDC2 on Windows 7 X64

Kai Nacke kai at redstar.de
Sun Sep 8 03:21:37 PDT 2013


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


More information about the digitalmars-d-ldc mailing list