Building 9.0 on macOS: test suite failure with cython-0.29.12.p0 and nose-1.3.7

39 views
Skip to first unread message

Szabolcs Horvát

unread,
Jan 11, 2020, 5:40:04 AM1/11/20
to sage-devel
Hello everyone,

I tried to build Sage from source on macOS 10.14.6 / Xcode 11.3. Some functionality, such as using CBC for integer programming problems, is only supported if Sage is built from source.

I set SAGE_CHECK="yes". Some of the tests seem to fail.

I was wondering if others have managed to build Sage from source on this platform and if the test suite passes for you.

I cannot think of anything on my system that could have interfered with the build. I do not have Homebrew. I have MacPorts and Anaconda Python, but I removed both from the PATH environment variable before starting the build (reverted PATH to a pristine value). 

I have attached the log files as instructed.


For cython, several tests appear to fail because of overflow errors with long long. For example,

Failed example:
long_long_abs(-max_long_long-1) #doctest: +ELLIPSIS
Expected:
Traceback (most recent call last):
...
OverflowError: ...
Got:
-9223372036854775808


For nose, the log file suggests that the tests are missing or not copied to the final location?

ValueError: Working directory 'build/tests' not found, or not a directory
Error running functional_tests.

I could just not set SAGE_CHECK="yes" but is that safe?


cython-0.29.12.p0.log
nose-1.3.7.log

Matthias Koeppe

unread,
Jan 11, 2020, 10:02:36 AM1/11/20
to sage-devel
On Saturday, January 11, 2020 at 5:40:04 AM UTC-5, Szabolcs Horvát wrote:
I tried to build Sage from source on macOS 10.14.6 / Xcode 11.3. Some functionality, such as using CBC for integer programming problems, is only supported if Sage is built from source.


Note that there is now https://github.com/mkoeppe/sage-numerical-backends-coin, which you can install on top of binary distributions of sage.
 

John H Palmieri

unread,
Jan 11, 2020, 1:27:21 PM1/11/20
to sage-devel
It is safe to build without setting SAGE_CHECK. Also, some packages are known to fail their test suites — see https://groups.google.com/d/msg/sage-devel/abysgIIVGZI/fF7efL9RAwAJ, for example.

Szabolcs Horvát

unread,
Jan 11, 2020, 2:40:48 PM1/11/20
to sage-devel
Thanks for confirming it's not just me. It looks like out of those 6 failures only 2 remain then.
Reply all
Reply to author
Forward
0 new messages