On Thu, May 08, 2025 at 09:30:34AM +0100, Stuart Henderson wrote:
> On 2025/05/08 10:09, Theo Buehler wrote:
> > On Wed, May 07, 2025 at 07:38:29PM -0400, Daniel Dickman wrote:
> > > The main blocker for the update used to be boost. But now that we have 
> > > boost 1.87 I think it's a good time to update numpy to the 2.x series. 
> > > The 
> > > diff below gets us to 2.0.2.
> > 
> > Hits an ICE on aarch64:
> > 
> > ../numpy/_core/src/umath/loops_autovec.dispatch.c.src:107:43: internal 
> > compiler error: Segmentation fault
> 
> https://github.com/numpy/numpy/issues/27699#issuecomment-2692261936

Yes that works around the issue:

= 89 failed, 43745 passed, 329 skipped, 2789 deselected, 59 xfailed, 4 xpassed, 
64 warnings in 484.61s (0:08:04) =

This looks about as usual for aarch64. Short summary after the patch.

Index: patches/patch-numpy__core_src_umath_loops_autovec_dispatch_c_src
===================================================================
RCS file: patches/patch-numpy__core_src_umath_loops_autovec_dispatch_c_src
diff -N patches/patch-numpy__core_src_umath_loops_autovec_dispatch_c_src
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-numpy__core_src_umath_loops_autovec_dispatch_c_src    8 May 
2025 08:35:56 -0000
@@ -0,0 +1,17 @@
+Index: numpy/_core/src/umath/loops_autovec.dispatch.c.src
+--- numpy/_core/src/umath/loops_autovec.dispatch.c.src.orig
++++ numpy/_core/src/umath/loops_autovec.dispatch.c.src
+@@ -104,11 +104,13 @@ NPY_NO_EXPORT void NPY_CPU_DISPATCH_CURFX(@TYPE@_right
+ #endif
+ }
+ 
++#pragma GCC optimize ("0")  // Deactivate optimisations
+ NPY_NO_EXPORT void NPY_CPU_DISPATCH_CURFX(@TYPE@_bitwise_count)
+ (char **args, npy_intp const *dimensions, npy_intp const *steps, void 
*NPY_UNUSED(func))
+ {
+     UNARY_LOOP_FAST(@type@, npy_ubyte, *out = npy_popcount@c@(in));
+ }
++#pragma GCC reset_options  // Re-activate optimisations
+ 
+ 
+ /**end repeat**/

=========================== short test summary info ============================
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[longdouble-to-f2_1]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[longdouble-to-f8]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[longdouble-to-c8]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[inf-to-b3]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[(inf+0j)-to-b2]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[nan-to-b3]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[(nan+0j)-to-b2]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[inf-to-B3]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[(inf+0j)-to-B2]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[nan-to-B3]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[(nan+0j)-to-B2]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[inf-to-h3]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[(inf+0j)-to-h2]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[nan-to-h3]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[(nan+0j)-to-h2]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[inf-to-H3]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[(inf+0j)-to-H2]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[nan-to-H3]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[(nan+0j)-to-H2]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[inf-to-i3]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[(inf+0j)-to-i2]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[nan-to-i3]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[(nan+0j)-to-i2]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[inf-to-I3]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[(inf+0j)-to-I2]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[nan-to-I3]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[(nan+0j)-to-I2]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[inf-to-l3]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[(inf+0j)-to-l2]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[nan-to-l3]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[(nan+0j)-to-l2]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[inf-to-L3]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[(inf+0j)-to-L2]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[nan-to-L3]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[(nan+0j)-to-L2]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[inf-to-q3]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[(inf+0j)-to-q2]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[nan-to-q3]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[(nan+0j)-to-q2]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[inf-to-Q3]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[(inf+0j)-to-Q2]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[nan-to-Q3]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[(nan+0j)-to-Q2]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[inf-to-n3]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[(inf+0j)-to-n2]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[nan-to-n3]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[(nan+0j)-to-n2]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[inf-to-N3]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[(inf+0j)-to-N2]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[nan-to-N3]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[(nan+0j)-to-N2]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[inf-to-p3]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[(inf+0j)-to-p2]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[nan-to-p3]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[(nan+0j)-to-p2]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[inf-to-P3]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[(inf+0j)-to-P2]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[nan-to-P3]
FAILED 
_core/tests/test_casting_floatingpoint_errors.py::test_floatingpoint_errors_casting[(nan+0j)-to-P2]
FAILED _core/tests/test_longdouble.py::test_str_roundtrip - AssertionError:
FAILED 
_core/tests/test_print.py::TestCommaDecimalPointLocale::test_locale_longdouble
FAILED _core/tests/test_scalarprint.py::TestRealScalars::test_dragon4_interface
FAILED _core/tests/test_umath.py::TestDivision::test_floor_division_errors[g]
FAILED _core/tests/test_umath.py::TestRemainder::test_float_divmod_errors[g]
FAILED 
_core/tests/test_umath.py::TestRemainder::test_float_remainder_errors[fmod-g]
FAILED 
_core/tests/test_umath.py::TestRemainder::test_float_remainder_errors[remainder-g]
FAILED _core/tests/test_umath.py::TestLog2::test_log2_special - IndexError: l...
FAILED _core/tests/test_umath.py::TestSpecialFloats::test_exp_exceptions - As...
FAILED _core/tests/test_umath.py::TestSpecialFloats::test_log_values - Assert...
FAILED _core/tests/test_umath.py::TestSpecialFloats::test_reciprocal_values
FAILED _core/tests/test_umath.py::TestSpecialFloats::test_arctanh - Assertion...
FAILED _core/tests/test_umath.py::TestSpecialFloats::test_exp2 - AssertionErr...
FAILED 
_core/tests/test_umath.py::TestSpecialFloats::test_unary_spurious_fpexception[data6-escape6-e-tan]
FAILED 
_core/tests/test_umath.py::TestSpecialFloats::test_unary_spurious_fpexception[data6-escape6-f-tan]
FAILED 
_core/tests/test_umath.py::TestSpecialFloats::test_unary_spurious_fpexception[data7-escape7-e-tan]
FAILED 
_core/tests/test_umath.py::TestSpecialFloats::test_unary_spurious_fpexception[data7-escape7-f-tan]
FAILED 
_core/tests/test_umath.py::TestSpecialFloats::test_unary_spurious_fpexception[data8-escape8-e-tan]
FAILED 
_core/tests/test_umath.py::TestSpecialFloats::test_unary_spurious_fpexception[data8-escape8-f-tan]
FAILED 
_core/tests/test_umath.py::TestSpecialFloats::test_unary_spurious_fpexception[data9-escape9-e-tan]
FAILED 
_core/tests/test_umath.py::TestSpecialFloats::test_unary_spurious_fpexception[data9-escape9-f-tan]
FAILED _core/tests/test_umath.py::TestAVXUfuncs::test_avx_based_ufunc - Asser...
FAILED 
_core/tests/test_umath.py::TestAVXFloat32Transcendental::test_sincos_float32
FAILED 
_core/tests/test_umath.py::TestComplexFunctions::test_precisions_consistent
FAILED _core/tests/test_umath.py::TestComplexFunctions::test_branch_cuts - As...
FAILED 
_core/tests/test_umath.py::TestComplexFunctions::test_branch_cuts_complex64
FAILED 
_core/tests/test_umath.py::TestComplexFunctions::test_loss_of_precision[complex64]
FAILED 
_core/tests/test_umath.py::TestComplexFunctions::test_loss_of_precision[complex128]
FAILED 
lib/tests/test_function_base.py::TestPercentile::test_linear_interpolation[inverted_cdf-False-20-longdouble-longdouble-quantile-0.4]
FAILED 
lib/tests/test_function_base.py::TestPercentile::test_linear_interpolation[averaged_inverted_cdf-False-27.5-longdouble-longdouble-quantile-0.4]
= 89 failed, 43745 passed, 329 skipped, 2789 deselected, 59 xfailed, 4 xpassed, 
64 warnings in 484.61s (0:08:04) =

Reply via email to