Bug 1181885

Summary: GCC 11: xapian-core package fails
Product: [openSUSE] openSUSE Tumbleweed Reporter: Martin Liška <martin.liska>
Component: BasesystemAssignee: Antonio Larrosa <alarrosa>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
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-06 11:26:23 UTC
The package fails here:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/xapian-core/standard/x86_64

due to:
[   43s] api/omdocument.cc: In member function 'bool OmDocumentTerm::add_position(Xapian::termcount, Xapian::termpos)':
[   43s] api/omdocument.cc:303:34: error: 'numeric_limits' was not declared in this scope
[   43s]   303 |             if (rare(new_split > numeric_limits<decltype(split)>::max())) {
[   43s]       |                                  ^~~~~~~~~~~~~~
[   43s] ./config.h:527:41: note: in definition of macro 'rare'
[   43s]   527 | # define rare(COND) __builtin_expect(!!(COND), 0)
[   43s]       |                                         ^~~~
[   43s] api/omdocument.cc:303:49: error: expected primary-expression before 'decltype'
[   43s]   303 |             if (rare(new_split > numeric_limits<decltype(split)>::max())) {
[   43s]       |                                                 ^~~~~~~~~~~~~~~
[   43s] ./config.h:527:41: note: in definition of macro 'rare'
[   43s]   527 | # define rare(COND) __builtin_expect(!!(COND), 0)
[   43s]       |                                         ^~~~
[   43s] api/omdocument.cc:303:49: error: expected ')' before 'decltype'
[   43s]   303 |             if (rare(new_split > numeric_limits<decltype(split)>::max())) {
[   43s]       |                                                 ^~~~~~~~~~~~~~~
[   43s] ./config.h:527:41: note: in definition of macro 'rare'
[   43s]   527 | # define rare(COND) __builtin_expect(!!(COND), 0)
[   43s]       |                                         ^~~~
Comment 1 Christophe Marin 2021-02-10 09:30:44 UTC
Fixed by https://build.opensuse.org/request/show/864581