Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 910540 - sci-physics/root-6.28.04 fails to compile (PYTHON-3.12-SYSTEM): utility.h:219:27: error: redefinition of __is_in_place_type_v<in_place_type_t<_Tp>>
Summary: sci-physics/root-6.28.04 fails to compile (PYTHON-3.12-SYSTEM): utility.h:219...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Guilherme Amadio
URL: https://root-forum.cern.ch/t/failing-...
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: gcc-13
  Show dependency tree
 
Reported: 2023-07-19 07:01 UTC by Agostino Sarubbo
Modified: 2023-09-11 11:46 UTC (History)
1 user (show)

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


Attachments
build.log.xz (build.log.xz,217.73 KB, application/x-xz)
2023-07-19 07:01 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 2023-07-19 07:01:47 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sci-physics/root-6.28.04 fails to compile (PYTHON-3.12-SYSTEM).
Discovered on: amd64 (internal ref: python-3.12_tinderbox)

NOTE:
(PYTHON-3.12-SYSTEM) in the summary means that the bug was found on a machine that runs python-3.12 but this bug MAY or MAY NOT BE related to the new python version
Comment 1 Agostino Sarubbo gentoo-dev 2023-07-19 07:01:49 UTC
Created attachment 865788 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Agostino Sarubbo gentoo-dev 2023-07-19 07:01:50 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


-- And if not found, will invoke: '/usr/bin/x86_64-pc-linux-gnu-g++ ' for them.
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) 
Error: Error loading the default rootcling header files.
/usr/lib/gcc/x86_64-pc-linux-gnu/13/include/g++-v13/bits/utility.h:219:27: error: redefinition of '__is_in_place_type_v<in_place_type_t<_Tp>>'
Comment 3 Benda Xu gentoo-dev 2023-08-14 06:52:21 UTC
I reproduced this bug with GCC-13.

But after switching to GCC-12, by

CC=${CHOST}-gcc-12
CXX=${CHOST}-g++-12
F77=${CHOST}-gfortran-12
FC=${CHOST}-gfortran-12
LDFLAGS="-Wl,-rpath,${EPREFIX}/usr/lib/gcc/${CHOST}/12"

the error disappears.


I somehow relates to https://root-forum.cern.ch/t/failing-to-build-root-6-24-06-and-root-6-26-02-on-fedora-36/49971 although the reference discusses GCC-12.
Comment 5 Larry the Git Cow gentoo-dev 2023-09-11 11:46:04 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3eadc14ff0e8063575938e7aa2010c8bb6f3c342

commit 3eadc14ff0e8063575938e7aa2010c8bb6f3c342
Author:     Guilherme Amadio <amadio@gentoo.org>
AuthorDate: 2023-09-11 11:44:18 +0000
Commit:     Guilherme Amadio <amadio@gentoo.org>
CommitDate: 2023-09-11 11:45:34 +0000

    sci-physics/root: add 6.28.06, drop 6.28.04
    
    Closes: https://bugs.gentoo.org/910540
    
    Signed-off-by: Guilherme Amadio <amadio@gentoo.org>

 sci-physics/root/Manifest                                     | 2 +-
 sci-physics/root/{root-6.28.04.ebuild => root-6.28.06.ebuild} | 0
 2 files changed, 1 insertion(+), 1 deletion(-)