I just verified that the bug reported in trac #33212 does not arise with the current prerelease of the binary SageMath 9.7 app, which is based on 9.7.beta5. This is consistent with the trac report since the app is built with XCode 13.3.1. Note that the binary app will work on older versions of M1 macOS, even if XCode 13.3 is not available or not installed. One more reason why most users should install Sage as a self-contained binary package.
- Marc On Tuesday, July 19, 2022 at 2:12:24 AM UTC-5 [email protected] wrote: > Thanks. This test error is known, it's a specific to M1 Apple CPUs bug > in gf2e external package used by Sage. > See https://trac.sagemath.org/ticket/33212 > > On Tue, Jul 19, 2022 at 4:28 AM Yueqi Li <[email protected]> wrote: > > > > Thank you so much for your help! After using ./sage -t > --optional='sage,optional,!sage.misc.cython' --all, I only had two error: > > > > ********************************************************************** > > File "src/sage/modules/vector_rational_dense.pyx", line 112, in > sage.modules.vector_rational_dense.Vector_rational_dense._init > > Failed example: > > try: > > # Note: some malloc() implementations (on OS X > > # for example) print stuff when an allocation > > # fails. # We catch this with the ... in the > > # doctest result. The * is needed because a > > # result cannot start with ... > > print("*") > > Vector_rational_dense(QQ^(2^56)) > > except (MemoryError, OverflowError): > > print("allocation failed") > > Expected: > > *... > > allocation failed > > Got: > > Python(43133,0x10509fd40) malloc: can't allocate region > > :*** mach_vm_map(size=2305843009213693952, flags: 100) failed (error > code=3) > > Python(43133,0x10509fd40) malloc: *** set a breakpoint in > malloc_error_break to debug > > * > > allocation failed > > ********************************************************************** > > > > > > ********************************************************************** > > File "src/sage/modules/vector_rational_dense.pyx", line 112, in > sage.modules.vector_rational_dense.Vector_rational_dense._init > > Failed example: > > try: > > # Note: some malloc() implementations (on OS X > > # for example) print stuff when an allocation > > # fails. # We catch this with the ... in the > > # doctest result. The * is needed because a > > # result cannot start with ... > > print("*") > > Vector_rational_dense(QQ^(2^56)) > > except (MemoryError, OverflowError): > > print("allocation failed") > > Expected: > > *... > > allocation failed > > Got: > > Python(43133,0x10509fd40) malloc: can't allocate region > > :*** mach_vm_map(size=2305843009213693952, flags: 100) failed (error > code=3) > > Python(43133,0x10509fd40) malloc: *** set a breakpoint in > malloc_error_break to debug > > * > > allocation failed > > ********************************************************************** > > sage -t --warn-long 11.8 > --random-seed=192345898809345273832468885719321887261 > src/sage/modules/vector_rational_dense.pyx # 1 doctest failed > > sage -t --warn-long 11.8 > --random-seed=192345898809345273832468885719321887261 > src/sage/matrix/matrix_gf2e_dense.pyx # 1 doctest failed > > > > > > Sincerely, > > Yueqi > > > > On Monday, July 18, 2022 at 3:12:19 PM UTC-4 Matthias Koeppe wrote: > >> > >> You can also suppress these particular doctests (which test the runtime > use of the compilers) using > >> ./sage -t --optional='sage,optional,!sage.misc.cython' --all > >> (see > https://trac.sagemath.org/wiki/ReleaseTours/sage-9.7#Modularizationchanges > ) > >> > >> On Monday, July 18, 2022 at 10:18:25 AM UTC-7 Matthias Koeppe wrote: > >>> > >>> These are not the same errors. The linker complains about mpfr not > being found. > >>> This happens on macOS when you run the doctester (sage -t) from a > shell where you didn't run "source ./.homebrew-build-env" > >>> > >>> On Monday, July 18, 2022 at 1:21:33 AM UTC-7 [email protected] > wrote: > >>>> > >>>> > >>>> I tried rebuild it, it didn't rasied error but still unable to run > doctest. > >>>> > >>>> While doing that, I installed another sage from github, that one can > run doctest, and it has same error as the previous doctest. I I attached > doctest error and config.log with the email. Thanks again for your help. > >>>> > >>>> Sincerely, > >>>> Yueqi > >>>> On Monday, July 18, 2022 at 2:54:35 AM UTC-4 Matthias Koeppe wrote: > >>>>> > >>>>> This needs to be done in a shell prepared for building Sage -- don't > forget "source ./.homebrew-build-env" > >>>>> > >>>>> On Sunday, July 17, 2022 at 11:16:42 PM UTC-7 [email protected] > wrote: > >>>>>> > >>>>>> It raise errors when i run it. > >>>>>> > >>>>>> On Monday, July 18, 2022 at 1:56:38 AM UTC-4 Matthias Koeppe wrote: > >>>>>>> > >>>>>>> Try "make primecountpy-clean primecountpy" > >>>>>>> > >>>>>>> On Sunday, July 17, 2022 at 10:39:50 PM UTC-7 [email protected] > wrote: > >>>>>>>> > >>>>>>>> Thank you for your advice, I tried to reinstall python3 from > Homebrew, but it still doesn't work. After I reinstall/upgrade python 3 and > gsl from Homebrew, my working directory sage 9.6 crashed. My laptop is > MacBook Pro with M1 chip with MacOS Big > >>>>>>>> Sur version11.4. Thanks for any suggestion and help! > >>>>>>>> > >>>>>>>> Sincerely, > >>>>>>>> Yueqi > >>>>>>>> On Sunday, July 17, 2022 at 5:57:55 AM UTC-4 [email protected] > wrote: > >>>>>>>>> > >>>>>>>>> I recommend that you do as recommended in the > >>>>>>>>> output of ./configure, and install python3 from Homebrew > >>>>>>>>> > >>>>>>>>> On Sun, 17 Jul 2022, 08:59 Yueqi Li, <[email protected]> > wrote: > >>>>>>>>>> > >>>>>>>>>> Dear Prof. Koeppe, > >>>>>>>>>> > >>>>>>>>>> Thank you so much for your help! After I run "brew install > gsl," I was not able to run any doctes. Then I try to run ./configure and > make to fix it. But it dosen't work, and I had error while I make it. I > attached the configure information, make error and doctest error with this > massage. > >>>>>>>>>> > >>>>>>>>>> Thank you for any help you may have! > >>>>>>>>>> > >>>>>>>>>> Sincerely, > >>>>>>>>>> Yueqi > >>>>>>>>>> > >>>>>>>>>> -- > >>>>>>>>>> You received this message because you are subscribed to the > Google Groups "sage-devel" group. > >>>>>>>>>> To unsubscribe from this group and stop receiving emails from > it, send an email to [email protected]. > >>>>>>>>>> To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-devel/c407887f-201a-43d5-908b-44af013781c6n%40googlegroups.com > . > > > > -- > > You received this message because you are subscribed to the Google > Groups "sage-devel" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected]. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-devel/840ed21e-c268-4b78-94ac-ae05986520f7n%40googlegroups.com > . > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/61687abb-ec61-48aa-882e-8ed7fa97a74dn%40googlegroups.com.
