[Buildroot] [PATCH 4/5] package/python-numpy: disable numpy if fenv.h is not provided by libc

Arnout Vandecappelle arnout at mind.be
Sat Aug 3 10:44:34 UTC 2019



On 01/08/2019 23:09, Romain Naour wrote:
> From: Damien DUVAL <damien.duval at smile.fr>
> 
> With a c library which does not provide fenv.h, it won't work at runtime:
> Crash after an "import numpy" on python.
> 
> Since numpy v1.16.0:
> "Alpine Linux (and other musl c library distros) support
> We now default to use fenv.h for floating point status error reporting.
> Previously we had a broken default that sometimes would not report
> underflow, overflow, and invalid floating point operations. Now we can
> support non-glibc distrubutions like Alpine Linux as long as they ship
> fenv.h."
> Also there is a lack of define in glibc for ARC architecture and python
> numpy cannot build.
> The removed patches were just fixes for the build for uclibc and glibc
> for ARC

 Since Alexey indicated that this is not needed any longer, I removed that part
and applied to master, thanks.

 Alexey, could you do a runtime test (based on the one submitted by Romain) for
ARC to be sure? You'll need a qemu for ARC for that, obviously, which is why I'm
asking you instead of doing it myself :-)

 Regards,
 Arnout

> 
> Configurations which does not provide fenv.h (like uclibc) won't be able
> to select the python-numpy package to avoid errors at runtime.
> 
> Signed-off-by: Damien DUVAL <damien.duval at smile.fr>
> Signed-off-by: Alexandre PAYEN <alexandre.payen at smile.fr>
> Cc: Alexey Brodkin <Alexey.Brodkin at synopsys.com>
> Signed-off-by: Romain Naour <romain.naour at smile.fr>


More information about the buildroot mailing list