Bug#879071: 0ad FTBFS with on armhf with gcc 7: error: call of overloaded 'abs(unsigned int)' is ambiguous

Ludovic Rousseau ludovic.rousseau at gmail.com
Sun Nov 19 14:38:04 UTC 2017


Peter,

Please go with the NMU.

You may also want to fix the arm64 build failure at the same time.
See
https://buildd.debian.org/status/fetch.php?pkg=0ad&arch=arm64&ver=0.0.22-1&stamp=1508351579&raw=0

Thanks

2017-11-19 13:38 GMT+01:00 peter green <plugwash at p10link.net>:

> Jumping straight to removing an architecture from the architecture list
> and filing a removal request over a build failure with no evidence of an
> attempt at a fix and no attempt to bring it up with the porters is not in
> line with "Packages must be supported on as many architectures as is
> reasonably possible".
>
> I decided to take a look at actually fixing this bug.
>
> It seems that the cause is the signedness of wchar_t. It appears that on
> arm linux wchar_t is unsigned whereas on x86 linux wchar_t is signed.
>
> The result is that on arm linux the subtraction produces an unsigned
> result. The standard libary has no abs functions for unsigned types and so
> you get the ambiguous call error.
>
> Casting both arguments of the subtraction to int fixes the error.
>
> Debdiff attatched, no immediate intent to NMU.
>
> _______________________________________________
> Pkg-games-devel mailing list
> Pkg-games-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-devel
>



-- 
 Dr. Ludovic Rousseau
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20171119/8fb4484a/attachment.html>


More information about the Pkg-games-devel mailing list