Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 854681 - sys-cluster/ceph-17.2.3 fails to compile: buffer.h:98:52: error: expected template-name before < token
Summary: sys-cluster/ceph-17.2.3 fails to compile: buffer.h:98:52: error: expected tem...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-12
  Show dependency tree
 
Reported: 2022-06-27 19:57 UTC by Agostino Sarubbo
Modified: 2022-08-12 20:46 UTC (History)
4 users (show)

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


Attachments
build.log (build.log,380.31 KB, text/plain)
2022-06-27 19:57 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-06-27 19:57:33 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sys-cluster/ceph-16.2.9 fails to compile (lto).
Discovered on: amd64 (internal ref: lto_tinderbox)

NOTE:
This machine uses lto with CFLAGS=-flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing
Comment 1 Agostino Sarubbo gentoo-dev 2022-06-27 19:57:36 UTC
Created attachment 788135 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-06-27 19:57:38 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
/var/tmp/portage/sys-cluster/ceph-16.2.9/work/ceph-16.2.9/src/include/buffer.h:98:52: error: expected template-name before ‘<’ token
Comment 3 Agostino Sarubbo gentoo-dev 2022-06-28 06:51:40 UTC
I'm not 100% sure that it is an lto fault. After if you dig into it, please remove the blocker bug if you think this has nothing to do with lto. Thanks
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-28 06:58:58 UTC
Think it's GCC 12 here:

/var/tmp/portage/sys-cluster/ceph-16.2.9/work/ceph-16.2.9/src/include/buffer.h:65:1: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
   64 | #include "inline_memory.h"
  +++ |+#include <memory>
   65 |
Comment 5 Agostino Sarubbo gentoo-dev 2022-07-13 05:57:59 UTC
ci has reproduced this issue with version 17.2.1-r1 - Updating summary.
Comment 6 Agostino Sarubbo gentoo-dev 2022-07-23 06:24:23 UTC
ci has reproduced this issue with version 17.2.2 - Updating summary.
Comment 7 Agostino Sarubbo gentoo-dev 2022-08-11 06:43:31 UTC
ci has reproduced this issue with version 17.2.3 - Updating summary.
Comment 8 Larry the Git Cow gentoo-dev 2022-08-12 20:46:47 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0fb3b4acc70849deeee7a7cf07bc111e34be12fc

commit 0fb3b4acc70849deeee7a7cf07bc111e34be12fc
Author:     Patrick McLean <chutzpah@gentoo.org>
AuthorDate: 2022-08-12 20:45:59 +0000
Commit:     Patrick McLean <chutzpah@gentoo.org>
CommitDate: 2022-08-12 20:46:44 +0000

    sys-cluster/ceph: Add patch to attempt to fix bug #854681
    
    I am unable to reproduce this bug, but this patch should theoretically fix it.
    Please reopen the bug if the issue still exists.
    
    Closes: https://bugs.gentoo.org/854681
    Signed-off-by: Patrick McLean <chutzpah@gentoo.org>

 sys-cluster/ceph/ceph-17.2.3.ebuild            |  1 +
 sys-cluster/ceph/files/ceph-17.2.3-gcc12.patch | 12 ++++++++++++
 2 files changed, 13 insertions(+)