Bug#827465: flint FTBFS on testing for mips64el, error: 'LLONG_MAX' undeclared
Radovan Birdic
Radovan.Birdic at imgtec.com
Thu Jun 16 12:19:10 UTC 2016
Package: flint
Version: 2.5.2-5
Severity: normal
Tags: sid + patch
Justification: FTBFS
User: debian-mips at lists.debian.org
Usertags: mips-patch
Hello,
Package flint_2.5.2-5 FTBFS on mips64el with following error:
> In file included from printf.c:32:0:
> gmpcompat.h: In function 'flint_mpf_fits_slong_p':
> flint.h:113:18: error: 'LLONG_MAX' undeclared (first use in this function)
> #define WORD_MAX LLONG_MAX
> flint.h:114:18: error: 'LLONG_MIN' undeclared (first use in this function)
> #define WORD_MIN LLONG_MIN
build log:
https://buildd.debian.org/status/fetch.php?pkg=flint&arch=mips64el&ver=2.5.2-5&stamp=1463208762
The problem occurs because of the use -ansi flag.
When this flag is used on mips64, LLONG_MAX and LLONG_MIN will not be defined.
> ifdef __USE_ISOC99
> /* Minimum and maximum values a `signed long long int' can hold. */
>
> define LLONG_MAX 9223372036854775807LL
> define LLONG_MIN (-LLONG_MAX - 1LL)
I have created and attached a patch which removes -ansi flag.
With this patch package was build successfully for mips64el, mipsel, i386, amd64
Thank you!
Regards,
Radovan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20160616/97695aa9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Removing-ansi-for-mips64.diff
Type: text/x-patch
Size: 1081 bytes
Desc: 0002-Removing-ansi-for-mips64.diff
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20160616/97695aa9/attachment.bin>
More information about the debian-science-maintainers
mailing list