Opened 2 years ago

Last modified 2 years ago

#57157 assigned defect

root6 with +veccore variant has include path problems

Reported by: olupton (Olli Lupton) Owned by: cjones051073 (Chris Jones)
Priority: Normal Milestone:
Component: ports Version: 2.5.3
Keywords: Cc: mojca (Mojca Miklavec)
Port: root6

Description

I have the following variant of the root6 port @6.14.04_0+clang60+cocoa+cxx17+gcc8+gsl+http+minuit2+opengl+python37+roofit+root7+soversion+ssl+tmva+vc+veccore+xml+xrootd

Code that links against this now fails to compile with errors such as:

In file included from /opt/local/libexec/root6/include/root/Math/Minimizer.h:20:
In file included from /opt/local/libexec/root6/include/root/Math/Util.h:27:
/opt/local/libexec/root6/include/root/Math/Types.h:22:10: fatal error: 'VecCore/VecCore' file not found
#include <VecCore/VecCore>
         ^~~~~~~~~~~~~~~~~
1 error generated.

The problem seems to be that the VecCore headers are installed at a higher level in the directory structure than the other ROOT headers:

$ ls /opt/local/libexec/root6/include/
VecCore root

So even if the correct ROOT include directory

$ root-config --incdir
/opt/local/libexec/root6/include/root

is in the include path, the VecCore headers that ROOT's own headers request cannot be found.

As a minimal workaround, making /opt/local/libexec/root6/include/root/VecCore be a symlink to /opt/local/libexec/root6/include/VecCore seems to fix the compilation errors.

Change History (1)

comment:1 Changed 2 years ago by mf2k (Frank Schima)

Cc: cjones051073 removed
Keywords: root6 veccore removed
Owner: set to cjones051073
Note: See TracTickets for help on using tickets.