Summary: | app-office/libreoffice failed to build, error: ‘free’ is not a member of ‘std’ | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | look |
Component: | Current packages | Assignee: | Gentoo Office Team <office> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dev, look, stffn.mobil |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/36049 | ||
Whiteboard: | fixed in 7.6.6.3 | ||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 914580 | ||
Attachments: |
The emerge --info output
The build environment. The build log. |
Description
look
2024-03-30 06:47:49 UTC
Created attachment 889031 [details]
The emerge --info output
Created attachment 889032 [details]
The build environment.
Created attachment 889033 [details]
The build log.
I don't know what is exactly causing this, but the problem is GCC 14. If you want to install libreoffice right now, you can switch to GCC 13 for this build. Without digging any more into it, I would guess that libreoffice depends on some sort of transitive include of a C++ library header (specifically '<cstdlib>'), which puts the naked C functions in the 'std::' namespace, and upstream GCC removed that transitive include. That happens regularly with major releases of the big compilers. Have submitted a PR that fixes this by backporting a patch from the 24.x branch: https://github.com/gentoo/gentoo/pull/36049 Have also asked libreoffice if they can backport the patch upstream: https://bugs.documentfoundation.org/show_bug.cgi?id=160464 The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f224f3894ade5676409e39999cf00fc6d0a3ddc commit 8f224f3894ade5676409e39999cf00fc6d0a3ddc Author: Robert Greener <me@r0bert.dev> AuthorDate: 2024-04-02 20:29:25 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-04-03 04:55:45 +0000 app-office/libreoffice: Backport patch from 24.x branch to allow GCC 14 compilation Closes: https://bugs.gentoo.org/928152 Signed-off-by: Robert Greener <me@r0bert.dev> Closes: https://github.com/gentoo/gentoo/pull/36049 Signed-off-by: Sam James <sam@gentoo.org> app-office/libreoffice/libreoffice-7.6.6.3.ebuild | 1 + 1 file changed, 1 insertion(+) |