[CMake] Integrating ROOT into Geant4 application

Dim, Odera U Odera_Dim at student.uml.edu
Sun Dec 10 19:37:10 EST 2017


Hi,


Thank you for your response. I obtained source files not binaries. I will attempt to provide the information you require. First of all the operating system i'm using is:

Distributor ID: RedHatEnterpriseServer
Description:    Red Hat Enterprise Linux Server release 6.4 (Santiago)
Release:        6.4
Codename:       Santiago

My compiler version:


gcc version 5.1.0 (GCC)


What build options were selected: I used the default options meaning I built using just the command


cmake --build [no options selected]


I have also included the CMakeCache files for geant4 and ROOT so you can see what options might have constituted the default build on  my system.


Check for Cling:


I have checked the MakeFile generated during the build of my application to see if there is any reference to Cling being linked in and I cant see any. I have Included the MakeFiles ao you may confirm as well as I am definitely no expert at this.


Also, I have posted this question to the ROOT forum and its been there for 2 weeks. I ran into this same issue 3 months ago and posted it on the forum and got no response back then but had to use an alternative method back then which did not require ROOT. This time around I do not have a work around besides trying to make it work some how.


Thanks once again for your efforts. Cheers.


Odera Dim




________________________________
From: R0b0t1 <r030t1 at gmail.com>
Sent: Sunday, December 10, 2017 4:15:06 PM
To: Dim, Odera U
Cc: cmake at cmake.org
Subject: Re: [CMake] Integrating ROOT into Geant4 application

On Fri, Dec 8, 2017 at 3:44 PM, Dim, Odera U <Odera_Dim at student.uml.edu> wrote:
> Hi,
>
>
> Thank you for your prompt response. I found downloading 7zip the easier
> route to get the files into a .tar format which would enable them to be sent
> to you. One question which I did not address which you asked is where I
> accesses the Geant4 and ROOT. I downloaded both CERN website and installed
> them on a remote Unix cluster which I have access to. I followed the
> prescribed installation process which is available on the CERN website.
> Although, I have Genat4 complied for Multi-threading I do not use the
> feature yet because my application is still undergoing many modifications. I
> will send the previous email I sent when the initial file got bounced by
> your email server. Cheers.
>

Did you download binaries? If you built the packages from source, how
did you build it? Which options are enabled? Which OS are you using,
and what is the version of your compiler?

I really do need to know all of these things. Look at the type of
information requested in the bug reports below. Further, the people I
know that use ROOT/Geant4 are often forced to target a specific set of
dependencies with specific options enabled simply because ROOT/Geant4
and programs which link against them are very fragile. ROOT is not
"properly" packaged for most distributions, so I'm going to need to
compile it myself, and I need to make sure it matches what you have.

I found some discussions about your issue, which you have likely found:
1) https://github.com/JuliaLang/julia/issues/12644
2) https://root-forum.cern.ch/t/tfile-llvm-symbols-exposed/17816
3) https://github.com/ALLPix/allpix/issues/14
4) https://root-forum.cern.ch/t/llvm-symbols-are-exposed-to-cling-problem/20889/5
6) https://bugs.freedesktop.org/show_bug.cgi?id=93103

It's starting to sound like it will be a good idea to get the
attention of the ROOT developers, and they will want the same
information I am asking you for. Sadly this might leave you waiting.

Something you might want to do on your own (or you can send it to the
list) is to look at the Makefile generated by CMake, and check to make
sure that Cling is not linked in. If it is this is likely an issue
with FindROOT.cmake. If it's not, you can try using a Makefile.

Cheers,
     R0b0t1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20171211/95e148f1/attachment-0001.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CMakeCache (Geant4).txt
URL: <http://public.kitware.com/pipermail/cmake/attachments/20171211/95e148f1/attachment-0002.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CMakeCache (ROOT).txt
URL: <http://public.kitware.com/pipermail/cmake/attachments/20171211/95e148f1/attachment-0003.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: application/octet-stream
Size: 24555 bytes
Desc: Makefile
URL: <http://public.kitware.com/pipermail/cmake/attachments/20171211/95e148f1/attachment-0001.obj>


More information about the CMake mailing list