wlav / cppyy

Other
405 stars 42 forks source link

Problems on building and running tests on Ubuntu 20.04 #90

Open keceli opened 2 years ago

keceli commented 2 years ago

I just wanted to report the problems in building and running cppyy tests on Ubuntu 20.04. I added CI runs on my fork to make sure these problems are reproducible.

The first problem is that Makefile calls python but Ubuntu comes with python3 not python. A user can create a symbolic link to python or install python-is-python3 package on Ubuntu, but I think it would be better to fix it in the Makefile by calling python3 directly. I assume python2 is not supported anymore.

The second problem is with clang-12. Build fails with: stltypes.cxx:15:25: error: explicit instantiation of 'operator==' does not refer to a function template, variable template, member function, member class, or static data member. You can see the log for the error here.

The third problem is the failing unit tests with gcc-10.

FAILED test_datatypes.py::TestDATATYPES::test02_instance_data_write_access - ...
FAILED test_regression.py::TestREGRESSION::test40_explicit_initializer_list

You can see the log here.

keceli commented 2 years ago

I think the third problem is due to mismatch between pip installed version (2.4.0) vs building the head. By checking out cppyy-2.4.0 tag, all tests pass for gcc-10. However, the second problem with clang-12 was not resolved.

wlav commented 2 years ago

I'm afraid that python2 is still supported. :) The Numba support is the first feature where I'm not testing py2 anymore.

The explicit instantiation of operator== is something ancient from the CINT days and can be removed. It should have no bearing on the test.

Yes, if testing master, the whole chain needs to be updated.