In flint log there are errors about "unknown type constexpr", which seem to indicate that c++ compiler needs "-std=c++11", which did not make it through somehow, and Apple's clang has a weird default -std= value.
Try building flint as follows: CXXFLAGS="$CXXFLAGS -std=c++" ./sage -i flint (or perhaps std=gnu++11) On Fri, Dec 27, 2019 at 3:54 PM Samuel Lelièvre <[email protected]> wrote: > > Le jeu. 26 déc. 2019 à 00:28, Samuel Lelièvre: > > > > On one laptop, > > - MacBook Air, Early 2014 > > - macOS 10.14.6 Mojave > > - Homebrew installed with many packages > > - "git pull origin develop" from 9.0.beta9 > > - "./configure --with-python=3 && make": ok > > - "make testlong": All tests pass! > > > > NB: "make testlong" failed when using Homebrew's > > glpk-4.65, which is not patched for the bug discussed at > > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=891465 > > > > The (2018-03) discussion indicated that the bug was fixed > > upstream in GLPK and would be part of the next release, > > but after four releases in 2017, there was only one in early > > 2018, which was GLPK 4.65, and there was none in 2019. > > > > On the same laptop, and on a desktop (iMac, Mid 2015), > > also running macOS 10.14.6 Mojave, Sage failed to build > > from a fresh git install, with errors building gfan and flint. > > Could not figure out why... Maybe these logs give clues? > > > > https://cocalc.com/share/4d32f8fb5011bd389b1f2238d0c49190d8e41543/2019-12-air-slel/sage-py3-with-brew/config.log?viewer=share > > https://cocalc.com/share/c1ac9c0a5cfecebf4161bf4e25d3bb00ec904de7/2019-12-air-slel/sage-py3-with-brew/flint-2.5.2.p5.log?viewer=share > > https://cocalc.com/share/fcaf1d8aa7ec8f865f15925b767b6b7599cd38db/2019-12-air-slel/sage-py3-with-brew/gfan-0.6.2.p1.log?viewer=share > > On that desktop iMac, building with gcc worked, > and `make testlong` gave one file failing 2 doctests, > the file `src/sage/misc/sageinspect.py` -- the failure > persisted when running `./sage -t --long` on that file. > See below: > > ```bash > $ make testlong > > [...] > > ---------------------------------------------------------------------- > sage -t --long --warn-long 51.6 src/sage/misc/sageinspect.py # 2 > doctests failed > ---------------------------------------------------------------------- > Total time for all tests: 11030.2 seconds > cpu time: 8401.6 seconds > cumulative wall time: 10722.0 seconds > make: *** [testlong] Error 1 > ``` > > ```bash > $ ./sage -t --long --warn-long 51.6 src/sage/misc/sageinspect.py > Running doctests with ID 2019-12-26-19-53-58-64505fb8. > Git branch: develop > Using --optional=build,ccache,dochtml,mpir,openssl,sage > Doctesting 1 file. > sage -t --long --warn-long 51.6 src/sage/misc/sageinspect.py > ********************************************************************** > File "src/sage/misc/sageinspect.py", line 2132, in > sage.misc.sageinspect._sage_getsourcelines_name_with_dot > Failed example: > cython(''' > class A: > def __init__(self): > "some init doc" > pass > class B: > "some class doc" > class A(A): > pass > ''') > Exception raised: > Traceback (most recent call last): > File > "/Users/lelievre/s/sage3nobrew/local/lib/python3.7/site-packages/sage/doctest/forker.py", > line 681, in _run > self.compile_and_execute(example, compiler, test.globs) > File > "/Users/lelievre/s/sage3nobrew/local/lib/python3.7/site-packages/sage/doctest/forker.py", > line 1123, in compile_and_execute > exec(compiled, globs) > File "<doctest > sage.misc.sageinspect._sage_getsourcelines_name_with_dot[3]>", line > 10, in <module> > ''') > File "sage/misc/lazy_import.pyx", line 353, in > sage.misc.lazy_import.LazyImport.__call__ > (build/cythonized/sage/misc/lazy_import.c:3686) > return self.get_object()(*args, **kwds) > File > "/Users/lelievre/s/sage3nobrew/local/lib/python3.7/site-packages/sage/misc/cython.py", > line 634, in cython_compile > return cython_import_all(tmpfile, get_globals(), **kwds) > File > "/Users/lelievre/s/sage3nobrew/local/lib/python3.7/site-packages/sage/misc/cython.py", > line 524, in cython_import_all > m = cython_import(filename, **kwds) > File > "/Users/lelievre/s/sage3nobrew/local/lib/python3.7/site-packages/sage/misc/cython.py", > line 504, in cython_import > return builtins.__import__(name) > ModuleNotFoundError: No module named > '_Users_lelievre__sage_temp_Ghost_83982_tmp_uhql0xtf_pyx_0' > ********************************************************************** > File "src/sage/misc/sageinspect.py", line 2142, in > sage.misc.sageinspect._sage_getsourcelines_name_with_dot > Failed example: > B.A.__name__ > Exception raised: > Traceback (most recent call last): > File > "/Users/lelievre/s/sage3nobrew/local/lib/python3.7/site-packages/sage/doctest/forker.py", > line 681, in _run > self.compile_and_execute(example, compiler, test.globs) > File > "/Users/lelievre/s/sage3nobrew/local/lib/python3.7/site-packages/sage/doctest/forker.py", > line 1123, in compile_and_execute > exec(compiled, globs) > File "<doctest > sage.misc.sageinspect._sage_getsourcelines_name_with_dot[4]>", line 1, > in <module> > B.A.__name__ > NameError: name 'B' is not defined > ********************************************************************** > File "src/sage/misc/sageinspect.py", line 2144, in > sage.misc.sageinspect._sage_getsourcelines_name_with_dot > Failed example: > B.A.__qualname__ > Exception raised: > Traceback (most recent call last): > File > "/Users/lelievre/s/sage3nobrew/local/lib/python3.7/site-packages/sage/doctest/forker.py", > line 681, in _run > self.compile_and_execute(example, compiler, test.globs) > File > "/Users/lelievre/s/sage3nobrew/local/lib/python3.7/site-packages/sage/doctest/forker.py", > line 1123, in compile_and_execute > exec(compiled, globs) > File "<doctest > sage.misc.sageinspect._sage_getsourcelines_name_with_dot[5]>", line 1, > in <module> > B.A.__qualname__ > NameError: name 'B' is not defined > ********************************************************************** > File "src/sage/misc/sageinspect.py", line 2146, in > sage.misc.sageinspect._sage_getsourcelines_name_with_dot > Failed example: > sage_getsource(B.A) > Exception raised: > Traceback (most recent call last): > File > "/Users/lelievre/s/sage3nobrew/local/lib/python3.7/site-packages/sage/doctest/forker.py", > line 681, in _run > self.compile_and_execute(example, compiler, test.globs) > File > "/Users/lelievre/s/sage3nobrew/local/lib/python3.7/site-packages/sage/doctest/forker.py", > line 1123, in compile_and_execute > exec(compiled, globs) > File "<doctest > sage.misc.sageinspect._sage_getsourcelines_name_with_dot[6]>", line 1, > in <module> > sage_getsource(B.A) > NameError: name 'B' is not defined > ********************************************************************** > File "src/sage/misc/sageinspect.py", line 2281, in > sage.misc.sageinspect.sage_getsourcelines > Failed example: > cython('''cpdef test_funct(x,y): return''') > Exception raised: > Traceback (most recent call last): > File > "/Users/lelievre/s/sage3nobrew/local/lib/python3.7/site-packages/sage/doctest/forker.py", > line 681, in _run > self.compile_and_execute(example, compiler, test.globs) > File > "/Users/lelievre/s/sage3nobrew/local/lib/python3.7/site-packages/sage/doctest/forker.py", > line 1123, in compile_and_execute > exec(compiled, globs) > File "<doctest sage.misc.sageinspect.sage_getsourcelines[6]>", > line 1, in <module> > cython('''cpdef test_funct(x,y): return''') > File "sage/misc/lazy_import.pyx", line 353, in > sage.misc.lazy_import.LazyImport.__call__ > (build/cythonized/sage/misc/lazy_import.c:3686) > return self.get_object()(*args, **kwds) > File > "/Users/lelievre/s/sage3nobrew/local/lib/python3.7/site-packages/sage/misc/cython.py", > line 634, in cython_compile > return cython_import_all(tmpfile, get_globals(), **kwds) > File > "/Users/lelievre/s/sage3nobrew/local/lib/python3.7/site-packages/sage/misc/cython.py", > line 524, in cython_import_all > m = cython_import(filename, **kwds) > File > "/Users/lelievre/s/sage3nobrew/local/lib/python3.7/site-packages/sage/misc/cython.py", > line 504, in cython_import > return builtins.__import__(name) > ModuleNotFoundError: No module named > '_Users_lelievre__sage_temp_Ghost_83982_tmp_lucle0ai_pyx_0' > ********************************************************************** > File "src/sage/misc/sageinspect.py", line 2282, in > sage.misc.sageinspect.sage_getsourcelines > Failed example: > sage_getsourcelines(test_funct) > Exception raised: > Traceback (most recent call last): > File > "/Users/lelievre/s/sage3nobrew/local/lib/python3.7/site-packages/sage/doctest/forker.py", > line 681, in _run > self.compile_and_execute(example, compiler, test.globs) > File > "/Users/lelievre/s/sage3nobrew/local/lib/python3.7/site-packages/sage/doctest/forker.py", > line 1123, in compile_and_execute > exec(compiled, globs) > File "<doctest sage.misc.sageinspect.sage_getsourcelines[7]>", > line 1, in <module> > sage_getsourcelines(test_funct) > NameError: name 'test_funct' is not defined > ********************************************************************** > 2 items had failures: > 4 of 8 in sage.misc.sageinspect._sage_getsourcelines_name_with_dot > 2 of 31 in sage.misc.sageinspect.sage_getsourcelines > [339 tests, 6 failures, 11.99 s] > ---------------------------------------------------------------------- > sage -t --long --warn-long 51.6 src/sage/misc/sageinspect.py # 6 > doctests failed > ---------------------------------------------------------------------- > Total time for all tests: 12.3 seconds > cpu time: 3.0 seconds > cumulative wall time: 12.0 seconds > ``` > > -- > You received this message because you are subscribed to the Google Groups > "sage-release" 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-release/CAEcArF3JcDpPw6neyUnwseb%3DSTtQ3-5xORp_tGv1RLPfpV-LfQ%40mail.gmail.com. -- You received this message because you are subscribed to the Google Groups "sage-release" 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-release/CAAWYfq0qjcMggXtDCXN8x6eYMY4kCtvk_qwQp5ZyADcp3PhHHw%40mail.gmail.com.
