[phobos] Build broken again

Jonathan M Davis jmdavisProg at gmx.com
Sun Feb 24 17:11:06 PST 2013


One of the recent slew of pull request merges just broke the build - the 
Phobos unit tests are failing. Given the error messages, it was probably the 
pull relating to schwarzSort:

Testing generated/linux/debug/64/unittest/std/algorithm
std/algorithm.d(9099): Error: function core.stdc.stdlib.free (void* ptr) is 
not callable using argument types (char[])
std/algorithm.d(9099): Error: cannot implicitly convert expression (xform1) of 
type char[] to void*
std/algorithm.d(9123): Error: template instance std.algorithm.schwartzSort!
(function char(Tuple!(char) c)
{
return c._expand_field_0;
}
, "a < b", cast(SwapStrategy)0, Tuple!(char)[]) error instantiating
std/algorithm.d(9099): Error: function core.stdc.stdlib.free (void* ptr) is 
not callable using argument types (double[])
std/algorithm.d(9099): Error: cannot implicitly convert expression (xform1) of 
type double[] to void*
std/algorithm.d(9148): Error: template instance std.algorithm.schwartzSort!
(entropy, "a > b", cast(SwapStrategy)0, double[][]) error instantiating
std/algorithm.d(9099): Error: function core.stdc.stdlib.free (void* ptr) is 
not callable using argument types (double[])
std/algorithm.d(9099): Error: cannot implicitly convert expression (xform1) of 
type double[] to void*
std/algorithm.d(9177): Error: template instance std.algorithm.schwartzSort!
(entropy, "a < b", cast(SwapStrategy)0, double[][]) error instantiating
make[1]: *** [generated/linux/debug/64/unittest/std/algorithm] Error 1
make: *** [unittest] Error 2
phobos: unit tests failed.


- Jonathan M Davis


More information about the phobos mailing list