Sorry, unless I'm missing something - the links below are for changes committed in March 2017, and are not fixing the problem. I think the change we need is to include xlocale.h in the next Cygwin-devel package. Unless there was another change to Cygwin in March this year?
On Thu, May 28, 2020 at 1:56 AM ilyub <ilyub...@gmail.com> wrote:
>
> Yes please put it back, so it can build on latest cygwin
It should be back in cygwin soon, see
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=90e35b1eb3df4070e68afc5e7060665214d586be
https://sourceware.org/pipermail/cygwin-cvs/2017q1/013271.html
(Rename <sys/_locale.h> to <xlocale.h>)
(it's not in cygwin 3.1.4-1, which was released in Feb 2020, whereas
that fix was committed in March)
I presume you can just patch your cygwin with it.
>
> On Wednesday, May 27, 2020 at 5:39:30 PM UTC-4, ilyub wrote:
>>
>> (Cygwin 64: cygwin-devel package version: 3.1.4-1 | SageMath version 9.1, Release Date: 2020-05-20)
>>
>> Building Sage fails when compiling numpy with "fatal error: xlocale.h: No such file or directory".
>>
>> I was able to complete the build after copying xlocale.h from the old cgwyn-devel package (version 3.0.7-1 still contains it) to /usr/include/.
>>
>> Can an environment variable be set for build not to look for xlocale.h and use locale.h instead?
>
> --
> You received this message because you are subscribed to the Google Groups "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-s...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/2229b43f-a558-4fda-b813-123ca3670b2e%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/2229b43f-a558-4fda-b813-123ca3670b2e%40googlegroups.com.
The cygwin people seemed to have removed the physical file (xlocale.h) from the cygwin distribution starting with version 3.1.1-1 https://cygwin.com/packages/summary/cygwin-devel.html.Because the include file is missing, sage build fails because the numpy module has an include of xlocale.h .
On Thu, May 28, 2020 at 7:10 PM Matthias Koeppe
<matthia...@gmail.com> wrote:
>
> On Thursday, May 28, 2020 at 7:21:35 AM UTC-7, ilyub wrote:
>>
>> The cygwin people seemed to have removed the physical file (xlocale.h) from the cygwin distribution starting with version 3.1.1-1 https://cygwin.com/packages/summary/cygwin-devel.html.
>> Because the include file is missing, sage build fails because the numpy module has an include of xlocale.h .
>>>>
>>>>
>
> Is upstream numpy aware of this issue?
It has been done and dusted in numpy:
https://github.com/numpy/numpy/pull/8367
they took Sage's patch from embray, and then Sage's patch was removed.
I have no idea why this pops up again.
Please post the logs.
> > To unsubscribe from this group and stop receiving emails from it, send an email to sage-s...@googlegroups.com.