[Halld-offline] problems compiling sim-recon with root6
Nathan Sparks
nsparks at jlab.org
Sat Oct 15 08:58:34 EDT 2016
The simplest long term fix for the group is to remove CPLUS_INCLUDE_PATH from the rcdb env-setup script.
I removed it from hdpm a long time ago.
This is why I did not encounter this problem.
-Nathan
> On Oct 15, 2016, at 12:49 AM, Paul Mattione <pmatt at jlab.org> wrote:
>
> Yes, I’ve seen this. I think if you do the below at the end of your environment setup, it should work (I think Sean may have come up with it?):
>
> # quick fix for rootcling compilation
> unset CPLUS_INCLUDE_PATH
>
> - Paul
>
> On Oct 14, 2016, at 10:00 PM, Nathan Sparks <nsparks at jlab.org> wrote:
>
>> Hi Richard,
>>
>> My build of sim-recon succeeded using the same version of ROOT: 6.06.08.
>>
>> I do see a scary warning involving the same code that you are failing on:
>>
>> ROOTCLING [programs/Analysis/hdview2/trk_mainframe.h]
>> ROOTCLING [programs/Analysis/hdview2/hdv_endviewBframe.h]
>> [Error in <CheckDefinition>: [[Missing definition for class hdv_mainframe, please #include its header in the header of trk_mainframe
>> [ROOTCLING [programs/Analysis/hdview2/hdv_fulllistframe.h]
>>
>> but it finishes building after that. I suspect there really is a problem there, though.
>>
>> Maybe the difference in behavior comes in because we configured ROOT with different options.
>> Did you enable any non-default options?
>>
>> -Nathan
>>> On Oct 14, 2016, at 9:31 PM, Richard Jones <richard.t.jones at uconn.edu> wrote:
>>>
>>> Hello all,
>>>
>>> Is anyone else having trouble building sim-recon against root 6? I have installed root 6.06.08 using devtoolset-3 under Centos 6 as Nathan recommended, using configure/make/make install. This worked ok. But then when I go to build sim-recon against this new root 6 I am getting consistent failures in hdview2. See below for the compiler errors. Anyone else seeing this? The error message seems to indicate we should be using quotes instead of angle <> in the #include string.
>>>
>>> -Richard Jones
>>>
>>> ROOTCLING [programs/Analysis/hdview2/trk_mainframe.h]
>>> In file included from input_line_11:6:
>>> In file included from /home/halld/sim-recon/src/programs/Analysis/hdview2/trk_mainframe.h:16:
>>> /opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/../../../../include/c++/4.9.2/iostream:38:10: error: 'bits/c++config.h' file not found with <angled> include; use "quotes" instead
>>> #include <bits/c++config.h>
>>> ^
>>> In file included from input_line_11:6:
>>> In file included from /home/halld/sim-recon/src/programs/Analysis/hdview2/trk_mainframe.h:16:
>>> In file included from /opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/../../../../include/c++/4.9.2/iostream:39:
>>> In file included from /opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/../../../../include/c++/4.9.2/ostream:38:
>>> /opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/../../../../include/c++/4.9.2/ios:38:10: error: 'iosfwd' file not found with <angled> include; use "quotes" instead
>>> #include <iosfwd>
>>> ^
>>> /opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/../../../../include/c++/4.9.2/ios:39:10: error: 'exception' file not found with <angled> include; use "quotes" instead
>>> #include <exception> // For ios_base::failure
>>> ^
>>> /opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/../../../../include/c++/4.9.2/ios:40:10: error: 'bits/char_traits.h' file not found with <angled> include; use "quotes" instead
>>> #include <bits/char_traits.h> // For char_traits, streamoff, streamsize, fpos
>>> ^
>>> /opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/../../../../include/c++/4.9.2/ios:41:10: error: 'bits/localefwd.h' file not found with <angled> include; use "quotes" instead
>>> #include <bits/localefwd.h> // For class locale
>>>
>>>
>>> _______________________________________________
>>> Halld-offline mailing list
>>> Halld-offline at jlab.org
>>> https://mailman.jlab.org/mailman/listinfo/halld-offline
>>
>>
>> _______________________________________________
>> Halld-offline mailing list
>> Halld-offline at jlab.org
>> https://mailman.jlab.org/mailman/listinfo/halld-offline
>
More information about the Halld-offline
mailing list