Compiling druntime gives error messages

tcak via Digitalmars-d digitalmars-d at puremagic.com
Thu Nov 6 03:32:49 PST 2014


On Wednesday, 5 November 2014 at 03:31:47 UTC, Joakim wrote:
> On Tuesday, 4 November 2014 at 23:45:54 UTC, H. S. Teoh via 
> Digitalmars-d wrote:
>> On Tue, Nov 04, 2014 at 11:32:34PM +0000, tcak via 
>> Digitalmars-d wrote:
>>
>> Generally, to compile druntime from git HEAD requires that you 
>> use dmd
>> from git HEAD, as a number of compiler / druntime fixes 
>> require changes
>> in both. So it's not surprising if the latest druntime fails 
>> to be
>> compiled by an earlier compiler.
>>
>> See also: http://wiki.dlang.org/Building_DMD
>>
>> (which includes building druntime).
>
> Specifically, it was noticed that certain function attribute 
> checks are skipped if the function contains an asm block 
> (https://issues.dlang.org/show_bug.cgi?id=12979), so attributes 
> for asm blocks were added after the stable release:
>
> https://github.com/D-Programming-Language/dmd/pull/4033
>
> Obviously, the stable compiler doesn't recognize those 
> subsequent changes in git HEAD, so you have to compile dmd from 
> git source if you want to compile druntime from the latest git.

I downloaded the source codes of 2.066.1 from Downloads page of 
Dlan. Then I used its druntime folder. It builds properly. Though 
I still couldn't have made it work with -defaultlib flag. Anyway, 
I will play with it for a while.


More information about the Digitalmars-d mailing list