Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 789390 - dev-libs/xapian-1.2.25 fails to compile with gcc-11
Summary: dev-libs/xapian-1.2.25 fails to compile with gcc-11
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
Depends on:
Blocks: gcc-11
  Show dependency tree
Reported: 2021-05-11 06:28 UTC by Agostino Sarubbo
Modified: 2021-06-15 03:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---

build.log (build.log,172.75 KB, text/plain)
2021-05-11 06:28 UTC, Agostino Sarubbo

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2021-05-11 06:28:50 UTC

Issue: dev-libs/xapian-1.2.25 fails to compile with gcc-11.
Discovered on: amd64 (internal ref: tinderbox)

This machine uses GCC-11:
Comment 1 Agostino Sarubbo gentoo-dev 2021-05-11 06:28:53 UTC
Created attachment 706902 [details]

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2021-05-11 06:28:56 UTC
Possible context of error(s):

/var/tmp/portage/dev-libs/xapian-1.2.25/work/xapian-core-1.2.25/backends/brass/ error: reference to ‘byte’ is ambiguous
Comment 3 Larry the Git Cow gentoo-dev 2021-06-15 03:20:34 UTC
The bug has been closed via the following commit(s):

commit 35f3c535b370e4965ae9d5c40021767029f91122
Author:     Sam James <>
AuthorDate: 2021-06-15 03:19:47 +0000
Commit:     Sam James <>
CommitDate: 2021-06-15 03:19:47 +0000

    dev-libs/xapian: workaround build failure with GCC 11 for 1.2.25
    Force C++14 for now. This is an older version we'll be cleaning up soon, but
    we may as well let it build. Newer versions are fine.
    (Also, this style of error usually results in a noisy patch.)
    Signed-off-by: Sam James <>

 dev-libs/xapian/xapian-1.2.25.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)