[MacPorts] #57157: root6 with +veccore variant has include path problems
MacPorts
noreply at macports.org
Tue Sep 25 08:09:30 UTC 2018
#57157: root6 with +veccore variant has include path problems
---------------------------+----------------------
Reporter: olupton | Owner: (none)
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.3
Keywords: root6 veccore | Port: root6
---------------------------+----------------------
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.
--
Ticket URL: <https://trac.macports.org/ticket/57157>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list