Bug 240064 - editors/libreoffice: 6.3.0 fails to build on FreeBSD 12.0 - Release
Summary: editors/libreoffice: 6.3.0 fails to build on FreeBSD 12.0 - Release
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-office mailing list
URL:
Keywords: needs-qa, regression
Depends on:
Blocks:
 
Reported: 2019-08-23 23:28 UTC by lumiwa
Modified: 2019-09-01 23:20 UTC (History)
5 users (show)

See Also:
koobs: maintainer-feedback? (office)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lumiwa 2019-08-23 23:28:59 UTC
Hi!

On my FreeBSD 12.0-RELEASE-p10 (amd64) I cannot build - upgrade LibreOffice to version 6.3.0. Boo-libs are updated without problems, all depenencies are okay but when I build it I got:
> Try to build LibreOffice on FreeBSD 12.0-RELEASE p10, amd64 with GTK3
> as usual and I got:
>
>
> /usr/local/include/python2.7/unicodeobject.h:534:5: error: ISO C++17
> does not allow 'register' storage class specifier [-Wregister] register
> PyObject *obj,     /* Object */ ^~~~~~~~~
> /usr/local/include/python2.7/unicodeobject.h:553:5: error: ISO C++17
> does not allow 'register' storage class specifier [-Wregister] register
> PyObject *obj      /* Object */ ^~~~~~~~~
> /usr/local/include/python2.7/unicodeobject.h:575:5: error: ISO C++17
> does not allow 'register' storage class specifier [-Wregister] register
> const wchar_t *w,  /* wchar_t buffer */ ^~~~~~~~~
> /usr/local/include/python2.7/unicodeobject.h:593:5: error: ISO C++17
> does not allow 'register' storage class specifier [-Wregister] register
> wchar_t *w,        /* wchar_t buffer */ ^~~~~~~~~
> In file included from
> /usr/ports/editors/libreoffice/work/libreoffice-6.3.0.4/pyuno/source/module/pyuno_runtime.cxx:22:
> In file included from
> /usr/ports/editors/libreoffice/work/libreoffice-6.3.0.4/pyuno/source/module/pyuno_impl.hxx:27:
> In file included from /usr/local/include/python2.7/Python.h:97:
> /usr/local/include/python2.7/stringobject.h:173:5: error: ISO C++17
> does not allow 'register' storage class specifier [-Wregister] register
> PyObject *obj,     /* string or Unicode object */ ^~~~~~~~~
> /usr/local/include/python2.7/stringobject.h:174:5: error: ISO C++17
> does not allow 'register' storage class specifier [-Wregister] register
> char **s,          /* pointer to buffer variable */ ^~~~~~~~~
> /usr/local/include/python2.7/stringobject.h:175:5: error: ISO C++17
> does not allow 'register' storage class specifier [-Wregister] register
> Py_ssize_t *len    /* pointer to length variable or NULL ^~~~~~~~~ 7
> errors generated. gmake[3]: ***
> [/usr/ports/editors/libreoffice/work/libreoffice-6.3.0.4/solenv/gbuild/LinkTarget.mk:293:
> /usr/ports/editors/libreoffice/work/libreoffice-6.3.0.4/workdir/CxxObject/pyuno/source/module/pyuno_runtime.o]
> Error 1 rm
> /usr/ports/editors/libreoffice/work/libreoffice-6.3.0.4/workdir/CustomTarget/i18npool/breakiterator/sent.txt
> /usr/ports/editors/libreoffice/work/libreoffice-6.3.0.4/workdir/CustomTarget/i18npool/breakiterator/dict_word_he.brk
> /usr/ports/editors/libreoffice/work/libreoffice-6.3.0.4/workdir/CustomTarget/i18npool/breakiterator/line.brk
> /usr/ports/editors/libreoffice/work/libreoffice-6.3.0.4/workdir/CustomTarget/i18npool/breakiterator/dict_word.brk
> /usr/ports/editors/libreoffice/work/libreoffice-6.3.0.4/workdir/CustomTarget/i18npool/breakiterator/edit_word.brk
> /usr/ports/editors/libreoffice/work/libreoffice-6.3.0.4/workdir/CustomTarget/i18npool/breakiterator/dict_word_nodash.brk
> /usr/ports/editors/libreoffice/work/libreoffice-6.3.0.4/workdir/CustomTarget/i18npool/breakiterator/dict_word_hu.brk
> /usr/ports/editors/libreoffice/work/libreoffice-6.3.0.4/workdir/CustomTarget/i18npool/breakiterator/dict_word.txt
> /usr/ports/editors/libreoffice/work/libreoffice-6.3.0.4/workdir/CustomTarget/i18npool/breakiterator/count_word.txt
> /usr/ports/editors/libreoffice/work/libreoffice-6.3.0.4/workdir/CustomTarget/i18npool/breakiterator/edit_word_he.brk
> /usr/ports/editors/libreoffice/work/libreoffice-6.3.0.4/workdir/CustomTarget/i18npool/breakiterator/char_in.brk
> /usr/ports/editors/libreoffice/work/libreoffice-6.3.0.4/workdir/CustomTarget/i18npool/breakiterator/dict_word_prepostdash.txt
> /usr/ports/editors/libreoffice/work/libreoffice-6.3.0.4/workdir/CustomTarget/i18npool/breakiterator/line.txt
> /usr/ports/editors/libreoffice/work/libreoffice-6.3.0.4/workdir/CustomTarget/i18npool/breakiterator/sent.brk
> /usr/ports/editors/libreoffice/work/libreoffice-6.3.0.4/workdir/CustomTarget/i18npool/breakiterator/edit_word.txt
> /usr/ports/editors/libreoffice/work/libreoffice-6.3.0.4/workdir/CustomTarget/i18npool/breakiterator/edit_word_hu.brk
> /usr/ports/editors/libreoffice/work/libreoffice-6.3.0.4/workdir/CustomTarget/i18npool/breakiterator/char_in.txt
> /usr/ports/editors/libreoffice/work/libreoffice-6.3.0.4/workdir/CustomTarget/i18npool/breakiterator/dict_word_nodash.txt
> /usr/ports/editors/libreoffice/work/libreoffice-6.3.0.4/workdir/CustomTarget/i18npool/breakiterator/dict_word_hu.txt
> /usr/ports/editors/libreoffice/work/libreoffice-6.3.0.4/workdir/CustomTarget/i18npool/breakiterator/edit_word_he.txt
> /usr/ports/editors/libreoffice/work/libreoffice-6.3.0.4/workdir/CustomTarget/i18npool/breakiterator/edit_word_hu.txt
> /usr/ports/editors/libreoffice/work/libreoffice-6.3.0.4/workdir/CustomTarget/i18npool/breakiterator/count_word.brk
> /usr/ports/editors/libreoffice/work/libreoffice-6.3.0.4/workdir/CustomTarget/i18npool/breakiterator/dict_word_prepostdash.brk
> /usr/ports/editors/libreoffice/work/libreoffice-6.3.0.4/workdir/CustomTarget/i18npool/breakiterator/char.brk
> /usr/ports/editors/libreoffice/work/libreoffice-6.3.0.4/workdir/CustomTarget/i18npool/breakiterator/char.txt
> /usr/ports/editors/libreoffice/work/libreoffice-6.3.0.4/workdir/CustomTarget/i18npool/breakiterator/dict_word_he.txt
> gmake[3]: Leaving directory
> '/usr/ports/editors/libreoffice/work/libreoffice-6.3.0.4' gmake[2]: ***
> [Makefile:282: build] Error 2 gmake[2]: Leaving directory
> '/usr/ports/editors/libreoffice/work/libreoffice-6.3.0.4' ===>
> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and
> rebuild before reporting the failure to the maintainer. *** Error code 1
>
> Stop.
> make[1]: stopped in /usr/ports/editors/libreoffice
> *** Error code 1
>
> Stop.
> make: stopped in /usr/ports/editors/libreoffice  

I did  downgrade boos-libs that I can use previous version of LibreOffice.

Thank you.
Comment 1 Walter Schwarzenfeld freebsd_triage 2019-08-24 10:22:03 UTC
Python should remove the long time deprecated register from the header files.
Comment 2 Li-Wen Hsu freebsd_committer 2019-08-24 22:10:17 UTC
Can you provide the output of `make showconfig`?
Comment 3 lumiwa 2019-09-01 23:20:28 UTC
(In reply to Li-Wen Hsu from comment #2)
It works if I chanage settings of /etc/make:
DEFAULT_VERSIONS=python=3.6 python2=2.7 python3=3.6

I have default version 2.7 and libreoffice doesn't build. Today update is the same. After rebuilding LO I change the settings again but I do not know if is this  correct solution!!


     CUPS=on: CUPS printing system support
     DOCS=on: Build and/or install documentation
     GNOME=off: GNOME desktop environment support
     GTK2=off: GTK+ 2 GUI toolkit support
     GTK3=off: GTK+ 3 GUI toolkit support (experimental)
     JAVA=on: Add Java support (XML filters, macros, DB connections)
     KDE5=off: KF5/Qt5 GUI toolkit support (require QT5)
     MMEDIA=on: Enable multimedia backend for Impress
     PGSQL=off: Build with PostgreSQL-SDBC driver
     QT5=on: Qt5 GUI toolkit support
     SDK=off: Build with SDK
     SYSTRAY=on: Enable systemtray quickstarter
     TEST=off: Run all regression tests
     WEBDAV=off: Enable WebDAV protocol