Try this:
git clone https://github.com/dlang/dmd
cd dmd
make -f posix.mak -j
cd ..
git clone https://github.com/dlang/druntime
cd druntime
make -f posix.mak -j
cd ..
git clone https://github.com/dlang/phobos
cd phobos
for fn in `find std -name \*.d`; do make -f posix.mak
"${fn%.d}.test" ; done
Enjoy all those failing tests.
What's going on here?!?
P.S. here's the failing tests for me on OS X
(std.algorithm.sorting, std.encoding, std.file, std.net.curl,
std.process, std.zip)
T=`mktemp -d /tmp/.dmd-run-test.XXXXXX` && \
../dmd/src/dmd -od$T -conf= -I../druntime/import -w -dip25
-m64 -O -release -main -unittest
generated/osx/release/64/libphobos2.a -defaultlib= -debuglib=
-cov -run std/algorithm/sorting.d && \
rm -rf $T
core.exception.AssertError@std/algorithm/sorting.d(2265):
unittest failure
----------------
4 dmd_runbQnZeS 0x00000001080cf43c
_d_unittest + 152
5 dmd_runbQnZeS 0x0000000108046052 void
std.algorithm.sorting.__unittest_fail(int) + 38
6 dmd_runbQnZeS 0x0000000108049bef @safe
void std.algorithm.sorting.__unittestL2237_55() + 487
7 dmd_runbQnZeS 0x0000000108045748 void
std.algorithm.sorting.__modtest() + 148
8 dmd_runbQnZeS 0x00000001080cfdc0 int
core.runtime.runModuleUnitTests().__foreachbody2(object.ModuleInfo*) + 44
9 dmd_runbQnZeS 0x00000001080c82c2 int
object.ModuleInfo.opApply(scope int
delegate(object.ModuleInfo*)).__lambda2(immutable(object.ModuleInfo*)) + 34
10 dmd_runbQnZeS 0x00000001080e9745 int
rt.minfo.moduleinfos_apply(scope int
delegate(immutable(object.ModuleInfo*))).__foreachbody2(ref
rt.sections_osx_x86_64.SectionGroup) + 85
11 dmd_runbQnZeS 0x00000001080e96d0 int
rt.minfo.moduleinfos_apply(scope int
delegate(immutable(object.ModuleInfo*))) + 32
12 dmd_runbQnZeS 0x00000001080c8299 int
object.ModuleInfo.opApply(scope int delegate(object.ModuleInfo*))
+ 33
13 dmd_runbQnZeS 0x00000001080cfcaa
runModuleUnitTests + 126
14 dmd_runbQnZeS 0x00000001080e210e void
rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).runAll() + 22
15 dmd_runbQnZeS 0x00000001080e20ab void
rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).tryExec(scope void delegate()) + 35
16 dmd_runbQnZeS 0x00000001080e2011
_d_run_main + 497
17 dmd_runbQnZeS 0x0000000108046153 main +
15
18 dmd_runbQnZeS 0x0000000108045653 start
+ 51
19 ??? 0x0000000000000000 0x0 + 0
make: *** [std/algorithm/sorting.test] Error 1
T=`mktemp -d /tmp/.dmd-run-test.XXXXXX` && \
../dmd/src/dmd -od$T -conf= -I../druntime/import -w -dip25
-m64 -O -release -main -unittest
generated/osx/release/64/libphobos2.a -defaultlib= -debuglib=
-cov -run std/encoding.d && \
rm -rf $T
std.encoding.EncodingException@std/encoding.d(2345): Unrecognized
Encoding: utf-16le
----------------
4 dmd_runEo4fii 0x000000010bdbbd7b
std.encoding.EncodingScheme
std.encoding.EncodingScheme.create(immutable(char)[]) + 171
5 dmd_runEo4fii 0x000000010bdbd2dd void
std.encoding.__unittestL3186_18() + 37
6 dmd_runEo4fii 0x000000010bdb4a4c void
std.encoding.__modtest() + 88
7 dmd_runEo4fii 0x000000010bdfa070 int
core.runtime.runModuleUnitTests().__foreachbody2(object.ModuleInfo*) + 44
8 dmd_runEo4fii 0x000000010bdf25f2 int
object.ModuleInfo.opApply(scope int
delegate(object.ModuleInfo*)).__lambda2(immutable(object.ModuleInfo*)) + 34
9 dmd_runEo4fii 0x000000010be137cd int
rt.minfo.moduleinfos_apply(scope int
delegate(immutable(object.ModuleInfo*))).__foreachbody2(ref
rt.sections_osx_x86_64.SectionGroup) + 85
10 dmd_runEo4fii 0x000000010be13758 int
rt.minfo.moduleinfos_apply(scope int
delegate(immutable(object.ModuleInfo*))) + 32
11 dmd_runEo4fii 0x000000010bdf25c9 int
object.ModuleInfo.opApply(scope int delegate(object.ModuleInfo*))
+ 33
12 dmd_runEo4fii 0x000000010bdf9f5a
runModuleUnitTests + 126
13 dmd_runEo4fii 0x000000010be0c1ce void
rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).runAll() + 22
14 dmd_runEo4fii 0x000000010be0c16b void
rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).tryExec(scope void delegate()) + 35
15 dmd_runEo4fii 0x000000010be0c0d1
_d_run_main + 497
16 dmd_runEo4fii 0x000000010bdb4e5b main +
15
17 dmd_runEo4fii 0x000000010bdb4993 start
+ 51
18 ??? 0x0000000000000000 0x0 + 0
make: *** [std/encoding.test] Error 1
T=`mktemp -d /tmp/.dmd-run-test.XXXXXX` && \
../dmd/src/dmd -od$T -conf= -I../druntime/import -w -dip25
-m64 -O -release -main -unittest
generated/osx/release/64/libphobos2.a -defaultlib= -debuglib=
-cov -run std/file.d && \
rm -rf $T
0 dmd_run7nw77i 0x00000001072ef6e4
_D4core7runtime18runModuleUnitTestsUZ19unittestSegvHandlerUNbNiiPS4core3sys5posix6signal9siginfo_tPvZv + 56
1 libsystem_platform.dylib 0x00007fff9480552a
_sigtramp + 26
2 libdyld.dylib 0x00007fff9f7e0262
dyld_stub_binder + 282
3 dmd_run7nw77i 0x0000000107322117
D3std7process9createEnvFxHAyaAyabZPxPa + 63
4 dmd_run7nw77i 0x0000000107321a31
D3std7process16spawnProcessImplFNexAAaS3std5stdio4FileS3std5stdio4FileS3std5stdio4FilexHAyaAyaE3std7process6ConfigxAaZC3std7process3Pid + 677
5 dmd_run7nw77i 0x00000001073226b4
D3std7process10spawnShellFNexAaS3std5stdio4FileS3std5stdio4FileS3std5stdio4FilexHAyaAyaE3std7process6ConfigxAaAyaZC3std7process3Pid + 320
6 dmd_run7nw77i 0x000000010732426c
D3std7process56__T15pipeProcessImplS243std7process10spawnShellTAxaTAyaZ15pipeProcessImplFNeAxaE3std7process8RedirectxHAyaAyaE3std7process6ConfigxAaAyaZS3std7process12ProcessPipes + 1644
7 dmd_run7nw77i 0x0000000107322e23
D3std7process9pipeShellFNfxAaE3std7process8RedirectxHAyaAyaE3std7process6ConfigxAaAyaZS3std7process12ProcessPipes + 115
8 dmd_run7nw77i 0x0000000107324433
D3std7process143__T11executeImplS114_D3std7process9pipeShellFNfxAaE3std7process8RedirectxHAyaAyaE3std7process6ConfigxAaAyaZS3std7process12ProcessPipesTAxaTAyaZ11executeImplFAxaxHAyaAyaE3std7process6ConfigmxAaAyaZS3std8typecons54__T5TupleTiVAyaa6_737461747573TAyaVAyaa6_6f7574707574Z5Tuple + 155
9 dmd_run7nw77i 0x00000001073232f7
D3std7process12executeShellFNexAaxHAyaAyaE3std7process6ConfigmxAaAyaZS3std8typecons54__T5TupleTiVAyaa6_737461747573TAyaVAyaa6_6f7574707574Z5Tuple + 95
10 dmd_run7nw77i 0x00000001072b3853
D3std4file18__unittestL3508_55FZv + 971
11 dmd_run7nw77i 0x00000001072ad2c7
_D3std4file9__modtestFZv + 259
12 dmd_run7nw77i 0x00000001072ef731
D4core7runtime18runModuleUnitTestsUZ14__foreachbody2MFPS6object10ModuleInfoZi + 45
13 dmd_run7nw77i 0x00000001072e7c63
D6object10ModuleInfo7opApplyFMDFPS6object10ModuleInfoZiZ9__lambda2MFyPS6object10ModuleInfoZi + 35
14 dmd_run7nw77i 0x000000010730bbc2
D2rt5minfo17moduleinfos_applyFMDFyPS6object10ModuleInfoZiZ14__foreachbody2MFKS2rt19sections_osx_x86_6412SectionGroupZi + 86
15 dmd_run7nw77i 0x000000010730bb4d
D2rt5minfo17moduleinfos_applyFMDFyPS6object10ModuleInfoZiZi + 33
16 dmd_run7nw77i 0x00000001072e7c3a
D6object10ModuleInfo7opApplyFMDFPS6object10ModuleInfoZiZi + 34
17 dmd_run7nw77i 0x00000001072ef61b
runModuleUnitTests + 127
18 dmd_run7nw77i 0x0000000107304343
D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ6runAllMFZv + 23
19 dmd_run7nw77i 0x00000001073042e0
D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ7tryExecMFMDFZvZv + 36
20 dmd_run7nw77i 0x0000000107304246
_d_run_main + 498
21 dmd_run7nw77i 0x00000001072ad684 main +
16
22 dmd_run7nw77i 0x00000001072ad164 start
+ 52
23 ??? 0x0000000000000001 0x0 + 1
Error: program killed by signal 11
T=`mktemp -d /tmp/.dmd-run-test.XXXXXX` && \
../dmd/src/dmd -od$T -conf= -I../druntime/import -w -dip25
-m64 -O -release -main -unittest
generated/osx/release/64/libphobos2.a -defaultlib= -debuglib=
-cov -run std/net/curl.d && \
rm -rf $T
std.encoding.EncodingException@std/encoding.d(2345): Unrecognized
Encoding: ISO-8859-1
----------------
4 dmd_runkhZ504 0x000000010b68bb7c
std.encoding.EncodingScheme
std.encoding.EncodingScheme.create(immutable(char)[]) + 148
5 dmd_runkhZ504 0x000000010b61f68a char[]
std.net.curl._decodeContent!(char)._decodeContent(ubyte[],
immutable(char)[]) + 98
6 dmd_runkhZ504 0x000000010b620233 char[]
std.net.curl._basicHTTP!(char)._basicHTTP(const(char)[],
const(void)[], std.net.curl.HTTP) + 579
7 dmd_runkhZ504 0x000000010b61ff97 char[]
std.net.curl.get!(std.net.curl.HTTP, char).get(const(char)[],
std.net.curl.HTTP) + 103
8 dmd_runkhZ504 0x000000010b61f214 char[]
std.net.curl.get!(std.net.curl.AutoProtocol,
char).get(const(char)[], std.net.curl.AutoProtocol) + 188
9 dmd_runkhZ504 0x000000010b5d1190 void
std.net.curl.__unittestL550_7() + 248
10 dmd_runkhZ504 0x000000010b5cfbc6 void
std.net.curl.__modtest() + 18
11 dmd_runkhZ504 0x000000010b65cca0 int
core.runtime.runModuleUnitTests().__foreachbody2(object.ModuleInfo*) + 44
12 dmd_runkhZ504 0x000000010b655102 int
object.ModuleInfo.opApply(scope int
delegate(object.ModuleInfo*)).__lambda2(immutable(object.ModuleInfo*)) + 34
13 dmd_runkhZ504 0x000000010b67971d int
rt.minfo.moduleinfos_apply(scope int
delegate(immutable(object.ModuleInfo*))).__foreachbody2(ref
rt.sections_osx_x86_64.SectionGroup) + 85
14 dmd_runkhZ504 0x000000010b6796a8 int
rt.minfo.moduleinfos_apply(scope int
delegate(immutable(object.ModuleInfo*))) + 32
15 dmd_runkhZ504 0x000000010b6550d9 int
object.ModuleInfo.opApply(scope int delegate(object.ModuleInfo*))
+ 33
16 dmd_runkhZ504 0x000000010b65cb8a
runModuleUnitTests + 126
17 dmd_runkhZ504 0x000000010b671a1a void
rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).runAll() + 22
18 dmd_runkhZ504 0x000000010b6719b7 void
rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).tryExec(scope void delegate()) + 35
19 dmd_runkhZ504 0x000000010b67191d
_d_run_main + 497
20 dmd_runkhZ504 0x000000010b5d07ab main +
15
21 dmd_runkhZ504 0x000000010b5cfb43 start
+ 51
22 ??? 0x0000000000000000 0x0 + 0
T=`mktemp -d /tmp/.dmd-run-test.XXXXXX` && \
../dmd/src/dmd -od$T -conf= -I../druntime/import -w -dip25
-m64 -O -release -main -unittest
generated/osx/release/64/libphobos2.a -defaultlib= -debuglib=
-cov -run std/process.d && \
rm -rf $T
Error: program killed by signal 11
make: *** [std/process.test] Error 1
T=`mktemp -d /tmp/.dmd-run-test.XXXXXX` && \
../dmd/src/dmd -od$T -conf= -I../druntime/import -w -dip25
-m64 -O -release -main -unittest
generated/osx/release/64/libphobos2.a -defaultlib= -debuglib=
-cov -run std/zip.d && \
rm -rf $T
0 dmd_run0bzZAK 0x0000000108d17278
_D4core7runtime18runModuleUnitTestsUZ19unittestSegvHandlerUNbNiiPS4core3sys5posix6signal9siginfo_tPvZv + 56
1 libsystem_platform.dylib 0x00007fff9480552a
_sigtramp + 26
2 ??? 0x0000ffff00001fa0 0x0 +
281470681751456
3 dmd_run0bzZAK 0x0000000108d59e4f
D3std7process9createEnvFxHAyaAyabZPxPa + 63
4 dmd_run0bzZAK 0x0000000108d59769
D3std7process16spawnProcessImplFNexAAaS3std5stdio4FileS3std5stdio4FileS3std5stdio4FilexHAyaAyaE3std7process6ConfigxAaZC3std7process3Pid + 677
5 dmd_run0bzZAK 0x0000000108d5a3ec
D3std7process10spawnShellFNexAaS3std5stdio4FileS3std5stdio4FileS3std5stdio4FilexHAyaAyaE3std7process6ConfigxAaAyaZC3std7process3Pid + 320
6 dmd_run0bzZAK 0x0000000108d5bfa4
D3std7process56__T15pipeProcessImplS243std7process10spawnShellTAxaTAyaZ15pipeProcessImplFNeAxaE3std7process8RedirectxHAyaAyaE3std7process6ConfigxAaAyaZS3std7process12ProcessPipes + 1644
7 dmd_run0bzZAK 0x0000000108d5ab5b
D3std7process9pipeShellFNfxAaE3std7process8RedirectxHAyaAyaE3std7process6ConfigxAaAyaZS3std7process12ProcessPipes + 115
8 dmd_run0bzZAK 0x0000000108d5c16b
D3std7process143__T11executeImplS114_D3std7process9pipeShellFNfxAaE3std7process8RedirectxHAyaAyaE3std7process6ConfigxAaAyaZS3std7process12ProcessPipesTAxaTAyaZ11executeImplFAxaxHAyaAyaE3std7process6ConfigmxAaAyaZS3std8typecons54__T5TupleTiVAyaa6_737461747573TAyaVAyaa6_6f7574707574Z5Tuple + 155
9 dmd_run0bzZAK 0x0000000108d5b02f
D3std7process12executeShellFNexAaxHAyaAyaE3std7process6ConfigmxAaAyaZS3std8typecons54__T5TupleTiVAyaa6_737461747573TAyaVAyaa6_6f7574707574Z5Tuple + 95
10 dmd_run0bzZAK 0x0000000108d00220
D3std3zip16__unittestL915_5FZv + 488
11 dmd_run0bzZAK 0x0000000108cfcbf1
_D3std3zip9__modtestFZv + 29
12 dmd_run0bzZAK 0x0000000108d172c5
D4core7runtime18runModuleUnitTestsUZ14__foreachbody2MFPS6object10ModuleInfoZi + 45
13 dmd_run0bzZAK 0x0000000108d0f7c7
D6object10ModuleInfo7opApplyFMDFPS6object10ModuleInfoZiZ9__lambda2MFyPS6object10ModuleInfoZi + 35
14 dmd_run0bzZAK 0x0000000108d333fa
D2rt5minfo17moduleinfos_applyFMDFyPS6object10ModuleInfoZiZ14__foreachbody2MFKS2rt19sections_osx_x86_6412SectionGroupZi + 86
15 dmd_run0bzZAK 0x0000000108d33385
D2rt5minfo17moduleinfos_applyFMDFyPS6object10ModuleInfoZiZi + 33
16 dmd_run0bzZAK 0x0000000108d0f79e
D6object10ModuleInfo7opApplyFMDFPS6object10ModuleInfoZiZi + 34
17 dmd_run0bzZAK 0x0000000108d171af
runModuleUnitTests + 127
18 dmd_run0bzZAK 0x0000000108d2bb7b
D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ6runAllMFZv + 23
19 dmd_run0bzZAK 0x0000000108d2bb18
D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ7tryExecMFMDFZvZv + 36
20 dmd_run0bzZAK 0x0000000108d2ba7e
_d_run_main + 498
21 dmd_run0bzZAK 0x0000000108cfcd7c main +
16
22 dmd_run0bzZAK 0x0000000108cfcb74 start
+ 52
23 ??? 0x0000000000000001 0x0 + 1
Error: program killed by signal 11
make: *** [std/zip.test] Error 1