Thread overview
[D-runtime] I can't get druntime to build on Wnidows
Jul 15, 2012
Jonathan M Davis
Jul 15, 2012
Jonathan M Davis
July 15, 2012
Right now, whenever I try and build druntime on Windows, I get this error:

Internal error: toir.c 528

I made sure that dmd and druntime match what's on github (even blowing away all of the files and then using git-checkout to restore them). I removed my /c/dmd2 directory, grabbed the one from the last release, restored my sc.ini file, restored the curl libraries (which druntime doesn't need anyway), built dmd, and put in /c/dmd2/windows/bin/, all of which should make dmd and druntime and all of the stuff that they rely on as fresh as they can be, and I'm _still_ getting this same failure. The autotester is passing, so I assume that it's an environment issue on my part, but I have no idea what it could be. My sc.ini file looks like this:

-------------------
[Version]
version=7.51 Build 020

[Environment]
LIB="c:\github\druntime\lib";"c:\github\phobos\";"c:\dmd2\windows\lib";c:
\dm\lib
DFLAGS="-Ic:\github\phobos\";"c:\github\druntime\import"
LINKCMD=%@P%\link.exe
-------------------

Any idea what could be casing this? The error is indicative of a compiler problem, but it's fine on the autotester, so it must be something on my box which is messed up.

- Jonathan M Davis
_______________________________________________
D-runtime mailing list
D-runtime@puremagic.com
http://lists.puremagic.com/mailman/listinfo/d-runtime

July 16, 2012
On Sun, Jul 15, 2012 at 11:54 PM, Jonathan M Davis <jmdavisProg@gmx.com> wrote:
> Right now, whenever I try and build druntime on Windows, I get this error:
>
> Internal error: toir.c 528
>
> I made sure that dmd and druntime match what's on github (even blowing away all of the files and then using git-checkout to restore them). I removed my /c/dmd2 directory, grabbed the one from the last release, restored my sc.ini file, restored the curl libraries (which druntime doesn't need anyway), built dmd, and put in /c/dmd2/windows/bin/, all of which should make dmd and druntime and all of the stuff that they rely on as fresh as they can be, and I'm _still_ getting this same failure. The autotester is passing, so I assume that it's an environment issue on my part, but I have no idea what it could be. My sc.ini file looks like this:
>
> -------------------
> [Version]
> version=7.51 Build 020
>
> [Environment]
> LIB="c:\github\druntime\lib";"c:\github\phobos\";"c:\dmd2\windows\lib";c:
> \dm\lib
> DFLAGS="-Ic:\github\phobos\";"c:\github\druntime\import"
> LINKCMD=%@P%\link.exe
> -------------------
>
> Any idea what could be casing this? The error is indicative of a compiler problem, but it's fine on the autotester, so it must be something on my box which is messed up.

I have no idea how this is even passing the auto tester. The failure is:

    assert(sizeof(std_namearray) / sizeof(char *) == sizeof(std_ioptab));

This is definitely a result of my core.bitop patches. Investigating.

Regards,
Alex
_______________________________________________
D-runtime mailing list
D-runtime@puremagic.com
http://lists.puremagic.com/mailman/listinfo/d-runtime

July 16, 2012
On Mon, Jul 16, 2012 at 12:01 AM, Alex Rønne Petersen <xtzgzorex@gmail.com> wrote:
> On Sun, Jul 15, 2012 at 11:54 PM, Jonathan M Davis <jmdavisProg@gmx.com> wrote:
>> Right now, whenever I try and build druntime on Windows, I get this error:
>>
>> Internal error: toir.c 528
>>
>> I made sure that dmd and druntime match what's on github (even blowing away all of the files and then using git-checkout to restore them). I removed my /c/dmd2 directory, grabbed the one from the last release, restored my sc.ini file, restored the curl libraries (which druntime doesn't need anyway), built dmd, and put in /c/dmd2/windows/bin/, all of which should make dmd and druntime and all of the stuff that they rely on as fresh as they can be, and I'm _still_ getting this same failure. The autotester is passing, so I assume that it's an environment issue on my part, but I have no idea what it could be. My sc.ini file looks like this:
>>
>> -------------------
>> [Version]
>> version=7.51 Build 020
>>
>> [Environment]
>> LIB="c:\github\druntime\lib";"c:\github\phobos\";"c:\dmd2\windows\lib";c:
>> \dm\lib
>> DFLAGS="-Ic:\github\phobos\";"c:\github\druntime\import"
>> LINKCMD=%@P%\link.exe
>> -------------------
>>
>> Any idea what could be casing this? The error is indicative of a compiler problem, but it's fine on the autotester, so it must be something on my box which is messed up.
>
> I have no idea how this is even passing the auto tester. The failure is:
>
>     assert(sizeof(std_namearray) / sizeof(char *) == sizeof(std_ioptab));
>
> This is definitely a result of my core.bitop patches. Investigating.

That was quicker to narrow down than I expected. Please try with this patch: https://github.com/D-Programming-Language/dmd/pull/1051

Regards,
Alex
_______________________________________________
D-runtime mailing list
D-runtime@puremagic.com
http://lists.puremagic.com/mailman/listinfo/d-runtime

July 15, 2012
On Monday, July 16, 2012 00:03:16 Alex Rønne Petersen wrote:
> That was quicker to narrow down than I expected. Please try with this patch: https://github.com/D-Programming-Language/dmd/pull/1051

With those changes, it now builds. Thanks!

- Jonathan M Davis
_______________________________________________
D-runtime mailing list
D-runtime@puremagic.com
http://lists.puremagic.com/mailman/listinfo/d-runtime