On 29 June 2017 at 10:44, Matthias Klose wrote:
> Package: src:gcc-7
> Version: 7.1.0-7
>
> full build log at
> https://buildd.debian.org/status/fetch.php?pkg=gcc-7&arch=armel&ver=7.1.0-7&stamp=1498249793&raw=0
>
> ../../../../src/libphobos/src/std/math.d:4971:5: warning: statement is not
> reachable
> void ensureDefaults()
> ^
> ../../../../src/libphobos/src/std/math.d:4979:5: warning: statement is not
> reachable
> {
> ^
> ../../../../src/libphobos/src/std/math.d:4982:5: warning: statement is not
> reachable
> ensureDefaults();
> ^
> ../../../../src/libphobos/src/std/math.d:4984:5: warning: statement is not
> reachable
> {
> ^
> ../../../../src/libphobos/src/std/math.d:4989:5: warning: statement is not
> reachable
> ensureDefaults();
> ^
> ../../../../src/libphobos/src/std/math.d:4991:5: warning: statement is not
> reachable
> if(FloatingPointControl.hasExceptionTraps)
> ^
> ../../../../src/libphobos/src/std/math.d:5003:5: warning: statement is not
> reachable
> ensureDefaults();
> ^
> ../../../../src/libphobos/src/std/math.d:5643:32: error: cannot take address
> of
> local x in @safe function __unittestL5638_68
> auto xl = *cast(ulong*)&x;
> ^
> test disabled on ARM, see bug 5628
> Makefile:1804: recipe for target 'std/math.t.lo' failed
> make[6]: *** [std/math.t.lo] Error 1
Thanks.
Looks like this is the second time upstream have mechanically added
@safe to this unittest.
https://github.com/dlang/phobos/pull/5524
Hopefully they will heed to my warning and not repeat the mistake a
third time. :-)
Also, I should really set-up my own ARM CI very soon. Maybe the same
for all crosses you build.
Iain.