Bug 1181917

Summary: GCC 11: libreoffice package fails
Product: [openSUSE] openSUSE Tumbleweed Reporter: Martin Liška <martin.liska>
Component: BasesystemAssignee: Markéta Machová <mmachova>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: gp
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 1181859    

Description Martin Liška 2021-02-08 07:49:45 UTC
Fails here:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/libreoffice/standard/x86_64

due to:
[ 1807s] In file included from /home/abuild/rpmbuild/BUILD/libreoffice-7.0.4.2/vcl/inc/svdata.hxx:25,
[ 1807s]                  from /home/abuild/rpmbuild/BUILD/libreoffice-7.0.4.2/vcl/source/window/brdwin.cxx:21:
[ 1807s] /home/abuild/rpmbuild/BUILD/libreoffice-7.0.4.2/include/o3tl/lru_map.hxx:51:11: error: 'size_t' does not name a type
[ 1807s]    51 |     const size_t mMaxSize;
[ 1807s]       |           ^~~~~~
[ 1807s] /home/abuild/rpmbuild/BUILD/libreoffice-7.0.4.2/include/o3tl/lru_map.hxx:17:1: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
[ 1807s]    16 | #include <unordered_map>
[ 1807s]   +++ |+#include <cstddef>
[ 1807s]    17 | 
[ 1807s] /home/abuild/rpmbuild/BUILD/libreoffice-7.0.4.2/include/o3tl/lru_map.hxx:69:19: error: expected ')' before 'nMaxSize'
[ 1807s]    69 |     lru_map(size_t nMaxSize)
[ 1807s]       |            ~      ^~~~~~~~~
[ 1807s]       |                   )
[ 1807s] /home/abuild/rpmbuild/BUILD/libreoffice-7.0.4.2/include/o3tl/lru_map.hxx:168:5: error: 'size_t' does not name a type
[ 1807s]   168 |     size_t size() const
[ 1807s]       |     ^~~~~~
[ 1807s] /home/abuild/rpmbuild/BUILD/libreoffice-7.0.4.2/include/o3tl/lru_map.hxx:168:5: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
[ 1807s] /home/abuild/rpmbuild/BUILD/libreoffice-7.0.4.2/include/o3tl/lru_map.hxx: In member function 'void o3tl::lru_map<Key, Value, KeyHash, KeyEqual>::checkLRU()':
[ 1807s] /home/abuild/rpmbuild/BUILD/libreoffice-7.0.4.2/include/o3tl/lru_map.hxx:55:30: error: 'mMaxSize' was not declared in this scope
[ 1807s]    55 |         if (mLruMap.size() > mMaxSize)
[ 1807s]       |                              ^~~~~~~~
Comment 1 Markéta Machová 2021-02-10 12:51:06 UTC
Looks like regression... anyway, LibreOffice 7.1 in in Staging:F, which will hopefully be accepted soon. Could you please try it with the new version?
Comment 2 Markéta Machová 2021-02-10 13:02:45 UTC
(In reply to Markéta Machová from comment #1)
> Could you please try it with the new version?

I was curious, so I looked into commits on upstream git... it is fixed in 7.1 https://github.com/LibreOffice/core/commit/f6112bf4a0577db4c43370aafa37a073e73a94b1
Comment 3 Martin Liška 2021-02-10 13:04:42 UTC
Great, thank you for the investigation.
Fixed in devel project.