Skip to content

ROOT (really llvm) polutes CXX with clang++ despite everything built with GCC #15

@brettviren

Description

@brettviren
$ echo $CXX
$ spack load root
$ echo $CXX
/wcwc/spack/local/opt/spack/linux-debian12-haswell/gcc-12.2.0/llvm-17.0.6-34sidf3oyyyrsz47uyhhpp3d72rl3ewn/bin/clang++
$ ls -l (which root)
-rwxr-xr-x 1 bviren bviren 52672 Jun  3 19:01 /wcwc/spack/local/opt/spack/linux-debian12-haswell/gcc-12.2.0/root-6.30.06-a3mgusydgufcmvsl6e5cqyaajbivef6q/bin/root

The culprit is actually llvm. According to spack spec root this is the dependency path:

root->glx->mesa->llvm

I think glx and mesa come in by root depending on "opengl".

OTOH, ROOT has a builtin_llvm definition that defaults to True.

So, actually I guess TWO copies of llvm are getting built including the one external from ROOT which is causing the CXX abuse.

I think the best is for WCT to build against +root~opengl though that may mean some 3D ROOT views are no longer possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions