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:
I have DMD 2.066.1 installed on 64-bit Ubuntu 14.04.

I downloaded all files from
https://github.com/D-Programming-Language/druntime
[...]
Am I downloading wrong druntime codes, or using wrong DMD compiler? It
is like downloaded druntime codes are coming from future.

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.

Reply via email to