Compiling druntime gives error messages

tcak via Digitalmars-d digitalmars-d at puremagic.com
Tue Nov 4 15:32:34 PST 2014


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

I use following command line to compile druntime to
generate library.

make -f posix.mak DMD=dmd

First few lines are as follows:
dmd -c -o- -Isrc -Iimport -Hfimport/core/sync/barrier.di 
src/core/sync/barrier.d
src/core/stdc/stdio.d(859): Error: found 'nothrow' when expecting 
'{'
src/core/stdc/stdio.d(861): Error: mismatched number of curly 
brackets
src/core/stdc/stdio.d(862): Error: mismatched number of curly 
brackets
src/core/stdc/stdio.d(863): Error: mismatched number of curly 
brackets


Then I opened both
./src/core/stdc/stdio.d
/usr/include/dmd/druntime/import/core/stdc/stdio.d

to compare them each other.

On line 859, the downloaded stdio.d has "asm nothrow @nogc".
The installed stdio.d has "asm" only.


Am I downloading wrong druntime codes, or using wrong DMD 
compiler? It is like downloaded druntime codes are coming from 
future.


More information about the Digitalmars-d mailing list