The error: [...] /spare/usr/ports/editors/libreoffice/work/libreoffice-6.0.5.2/pyuno/source/module/pyuno_util.cxx:45:5: error: static_assert failed "bad assumption" static_assert(sizeof (wchar_t) == Py_UNICODE_SIZE, "bad assumption"); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /spare/usr/ports/editors/libreoffice/work/libreoffice-6.0.5.2/pyuno/source/module/pyuno_util.cxx:46:18: error: no matching function for call to 'PyUnicodeUCS2_FromUnicode' ret = PyRef( PyUnicode_FromUnicode( reinterpret_cast<wchar_t const *>(str.getStr()), str.getLength() ), SAL_NO_ACQUIRE ); ^~~~~~~~~~~~~~~~~~~~~ /opt/include/python2.7/unicodeobject.h:196:32: note: expanded from macro 'PyUnicode_FromUnicode' # define PyUnicode_FromUnicode PyUnicodeUCS2_FromUnicode ^~~~~~~~~~~~~~~~~~~~~~~~~ /opt/include/python2.7/unicodeobject.h:464:23: note: candidate function not viable: no known conversion from 'const wchar_t *' to 'const Py_UNICODE *' (aka 'const unsigned short *') for 1st argument PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode( ^ /opt/include/python2.7/unicodeobject.h:196:32: note: expanded from macro 'PyUnicode_FromUnicode' # define PyUnicode_FromUnicode PyUnicodeUCS2_FromUnicode ^ 7 warnings and 2 errors generated. [...]
USES=python still defaults to lang/python27, and libreoffice builds fine on the package cluster. Can you provide more details? http://beefy5.nyi.freebsd.org/data/104i386-default/479225/logs/libreoffice-6.0.5_4.log http://beefy6.nyi.freebsd.org/data/104amd64-default/479225/logs/libreoffice-6.0.5_4.log http://beefy9.nyi.freebsd.org/data/111amd64-default/479225/logs/libreoffice-6.0.5_4.log http://beefy10.nyi.freebsd.org/data/111i386-default/479225/logs/libreoffice-6.0.5_4.log http://www.ipv6proxy.net/go.php?u=http://beefy11.nyi.freebsd.org/data/head-i386-default/p479265_s338539/logs/libreoffice-6.0.5_4.log http://www.ipv6proxy.net/go.php?u=http://beefy12.nyi.freebsd.org/data/head-amd64-default/p479265_s338539/logs/libreoffice-6.0.5_4.log
Could it because I have the UCS2 option enabled in lang/python27 -- instead of UCS4, which is the default?
Is this still relevant after change of the python default version to 3.6?
(In reply to Mikhail Teterin from comment #2) Likely, could you test with the latest tree, with lang/python27 with UCS4 and let us know if its still reproducible
Time to close this.
Feedback timeout.
^Triage: Assign to committer that resolved, such that if/when re-opened, they can re-triage