Thread overview | |||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
September 08, 2013 Fail to build LDC2 on Windows 7 X64 | ||||
---|---|---|---|---|
| ||||
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 Re: Fail to build LDC2 on Windows 7 X64 | ||||
---|---|---|---|---|
| ||||
Posted in reply to 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. 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 Re: Fail to build LDC2 on Windows 7 X64 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Zhouxuan | 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 Re: Fail to build LDC2 on Windows 7 X64 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Zhouxuan | 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 Re: Fail to build LDC2 on Windows 7 X64 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kai Nacke | > Indeed, this section can be simplified. I am going to update the instructions.
Instructions are updated now.
Kai
|
September 08, 2013 Re: Fail to build LDC2 on Windows 7 X64 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kai Nacke | 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 Re: Fail to build LDC2 on Windows 7 X64 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Zhouxuan | 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 Re: Fail to build LDC2 on Windows 7 X64 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kai Nacke | 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 Re: Fail to build LDC2 on Windows 7 X64 | ||||
---|---|---|---|---|
| ||||
Posted in reply to tae hoo | 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 Re: Fail to build LDC2 on Windows 7 X64 | ||||
---|---|---|---|---|
| ||||
Posted in reply to tae hoo | 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
|
Copyright © 1999-2021 by the D Language Foundation