Repository navigation
Complete dictionary rootmaps with all public headers to fix generator macro crashes - #16206
Open
jackal1-66 wants to merge 3 commits into
Open
jackal1-66 wants to merge 3 commits into
jackal1-66 wants to merge 3 commits into
Conversation
…gger in Generator.h Since the FairRoot simulation infrastructure moved into O2 (805a3d7), some external generator macros fail when o2-sim-dpl-eventgen compiles them with either: "unknown type name 'TMCProcess'" followed by a cling segfault or "use of undeclared identifier 'info'" in macros using LOG(...). before FairRoot rootmap had no FairGenerator.h, so including it made cling parse automatically the entire payload of the software, which caused accidentally to pull cleanly VMC types and FairLogger. Now libO2FairRootBase lists the header correctly causing the side effect to be gone, and this needed to be fixed.
This was exposed by the complete rootmaps of the previous commit. Basically with every public header listed now, cling parses a header directly before the macro includes run. Many headers worked only because cling had read them once.
jackal1-66
requested review from
a team,
arossi81,
davidrohr,
f3sch,
fgrosa,
fprino,
jokonig,
mconcas,
mcoquet642,
nstrangm,
sawenzel,
shahor02 and
wiechula
as code owners
November 26, 2026 12:58
sawenzel
previously approved these changes
Nov 26, 2026
…acros In the other macros ROOT name lookups parse libraries that bring in the logger, but these macros are missing it.
jackal1-66
force-pushed
the
fixfairroot
branch
from
November 26, 2026 14:28
60ee946 to
47cec55
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix the external generator macros that crash or fail to compile since FairRoot moved into O2, by listing every public header in each O2 dictionary rootmap. The problem appeared after merging #16054 and two of the errors experienced after that are:
unknown type name 'TMCProcess'anduse of undeclared identifier 'info'. Previously, the FairRoot rootmap did not listFairGenerator.h, so ROOT parsed the entire FairRoot library, causing, as a side effect, the VMC types to be declared and FairLogger to be loaded automatically. The new O2 rootmap lists the header, so this no longer happens. This exposed an old issue in rootcling, which lists only a few headers in the rootmap. When a macro includes an unlisted header, cling parses the whole library from inside the half-read header and fails on types that are not defined yet. Now all the public headers are listed in the rootmaps. In addition,Generator.hnow includes FairLogger (fixing theinfoerror), and five headers that failed when included on their own got include guards or a missing include.