Jump to page: 1 2 3
Thread overview
Fail to build LDC2 on Windows 7 X64
Sep 08, 2013
Zhouxuan
Sep 08, 2013
Zhouxuan
Sep 08, 2013
Kai Nacke
Sep 08, 2013
Kai Nacke
Sep 08, 2013
Kai Nacke
Sep 08, 2013
Zhouxuan
Sep 16, 2013
Kai Nacke
Nov 12, 2013
tae hoo
Nov 12, 2013
tae hoo
Nov 12, 2013
Kai Nacke
Nov 12, 2013
tae hoo
Nov 12, 2013
Kai Nacke
Re: It seems to be a BUG of ldc2 compiler
Nov 13, 2013
tae hoo
Nov 13, 2013
Kai Nacke
Nov 15, 2013
Kai Nacke
Re: Hi Kai !
Nov 17, 2013
tae hoo
Nov 17, 2013
Kai Nacke
Nov 17, 2013
tae hoo
Nov 17, 2013
tae hoo
Nov 18, 2013
Kai Nacke
Nov 19, 2013
Kai Nacke
Hi Kai
Nov 19, 2013
tae hoo
Nov 22, 2013
Kai Nacke
September 08, 2013
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'
September 08, 2013
A minor issue about those instructions in the url is, both "git checkout -b ldc" in section "Build LDC2" failed as ldc branch already exists, just removing -b option works for me.

Another instruction confuse me is that, -DLLVM_TARGETS_TO_BUILD="X86" option to cmake while generating Win64 project files, is X86 instead of X64 here correct?
September 08, 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
September 08, 2013
Hi Zhouxuan!

> A minor issue about those instructions in the url is, both "git checkout -b ldc" in section "Build LDC2" failed as ldc branch already exists, just removing -b option works for me.

Indeed, this section can be simplified. I am going to update the instructions.

> Another instruction confuse me is that, -DLLVM_TARGETS_TO_BUILD="X86" option to cmake while generating Win64 project files, is X86 instead of X64 here correct?

Yes, X86 is right. It includes the 32bit and 64bit targets for Intel/AMD.

There is also PowerPC for 32bit and 64bit PowerPC targets. But is no general rule: target ARM is for ARMv7 (32bit) and target AArch64 is for ARMv8 (64bit).

Regards
Kai
September 08, 2013
> Indeed, this section can be simplified. I am going to update the instructions.

Instructions are updated now.

Kai
September 08, 2013
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!
September 16, 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
November 12, 2013
Hey Kai

I noticed that, too.
Would you send me the llvm SRC files which can be used with
a win64eh_all_20131021.diff file.

Thanks you.


On Monday, 16 September 2013 at 17:55:08 UTC, Kai Nacke wrote:
> 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

November 12, 2013
sorry, I'm poor at english. ^^;;;
my e-mail address : liteon777@daum.net



On Tuesday, 12 November 2013 at 06:07:16 UTC, tae hoo wrote:
> Hey Kai
>
> I noticed that, too.
> Would you send me the llvm SRC files which can be used with
> a win64eh_all_20131021.diff file.
>
> Thanks you.
>
>
> On Monday, 16 September 2013 at 17:55:08 UTC, Kai Nacke wrote:
>> 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

November 12, 2013
On Tuesday, 12 November 2013 at 06:07:16 UTC, tae hoo wrote:
> Hey Kai
>
> I noticed that, too.
> Would you send me the llvm SRC files which can be used with
> a win64eh_all_20131021.diff file.
>
> Thanks you.

Hi tae,

I have updated the patch in the wiki. Just use the new version.

Regards,
Kai
« First   ‹ Prev
1 2 3