Bug 131445 - Cannot build cppuhelper on Debian 9
Summary: Cannot build cppuhelper on Debian 9
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Installation (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-20 17:00 UTC by Peter
Modified: 2020-05-14 11:15 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:
Regression By:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter 2020-03-20 17:00:50 UTC
I'm trying to build LibreOffice (to use it with LibreOffice Online) using build wrapper from https://github.com/husisusi/officeonlin-install.sh
There is no problem with the wrapper itself, but the build is failed in cppuhelper with the following error:

/opt/libreoffice/cppuhelper/source/component_context.cxx: In member function ‘virtual void cppu::ComponentContext::disposing()’:
/opt/libreoffice/cppuhelper/source/component_context.cxx:394:17: error: expected unqualified-id before ‘[’ token
     for ( auto& [rName, rEntry] : m_map )
                 ^

It seems that the commit, changed this line is 58ef4b593bba3d592e07e0f25140808c74f8aa0f

Probably, something is needed on the compiler level to overcome this issue. Please, help.
Comment 1 Xisco Faulí 2020-05-13 11:59:20 UTC
(In reply to Peter from comment #0)
> I'm trying to build LibreOffice (to use it with LibreOffice Online) using
> build wrapper from https://github.com/husisusi/officeonlin-install.sh
> There is no problem with the wrapper itself, but the build is failed in
> cppuhelper with the following error:
> 
> /opt/libreoffice/cppuhelper/source/component_context.cxx: In member function
> ‘virtual void cppu::ComponentContext::disposing()’:
> /opt/libreoffice/cppuhelper/source/component_context.cxx:394:17: error:
> expected unqualified-id before ‘[’ token
>      for ( auto& [rName, rEntry] : m_map )

@Stephan, I thought you might be interested in this issue
Comment 2 Stephan Bergmann 2020-05-13 12:26:35 UTC
What revision of LibreOffice are you trying to build?  What version of what C++ compiler are you using?
Comment 3 Peter 2020-05-14 09:14:49 UTC
Collabora Office 6.2.10.7
https://github.com/LibreOffice/core.git
Branch distro/collabora/cp-6.2 (head)
I tried both gcc 6.3.0 and clang 7.0.1
Comment 4 Stephan Bergmann 2020-05-14 09:53:03 UTC
see <https://gerrit.libreoffice.org/c/core/+/83472/2#message-7bc0ff3eecb502304f503e52f6a2c4b63dbce382>: "This requires C++17. I thought we don't allow that on this branch?"
Comment 5 Aron Budea 2020-05-14 11:15:13 UTC
This requires a newer compiler, something like GCC 7 or newer. Otherwhise distro/collabora/cp-6.2 is a vendor branch, if you wish to build LibreOffice Online, use master instead.