[Gate-users] Problems with Gate7.0 on MacOS
Dávid Völgyes
david.volgyes at gmail.com
Wed Oct 22 14:48:44 CEST 2014
Hi Paola,
Try to disable the verbose output of the random events.
There is a bug in the Geant4 (actually, in the embedded CLHEP) inside
the Mersenne Twister random number generator. Depending on actual
compilation differences, sometimes it does not cause any problem, like
in the vGATE, and sometimes it does. The code tries to read 625
elements from a 624 long array. If there is another data after this
array, then it's fine. If there is code there, then you get a
segfault.
So first, try to remove this line from the benchPET.mac:
/gate/random/verbose 1
if you still get segfault, then it is another bug, and please, report it.
Mac compilation: don't have Macs, but in worst case you can run the
vGate in a virtual machine on Mac, or a dockerized version of Gate.
(Which also runs in kind of a virtual machine.)
https://docs.docker.com/installation/mac/
Cheers from Oslo!
David
On Wed, Oct 22, 2014 at 2:18 PM, Paola Solevi <paola.solevi at gmail.com> wrote:
> Dear Gate Users,
> I have to go back to an issue open in March (Mojca et al) but I can't find a
> solution to my problem.
>
> I'm trying to install Gate on my Mac (10.9.3).
> I made two different attempts:
> 1) following the port strategy, everything went smooth but when I type Gate
> benchPET.mac (to test the benchmark) I got:
> "....
> .....
> annihil: for e+, applyCuts: 1 SubType= 5
> ===== EM models for the G4Region DefaultRegionForTheWorld ======
> eplus2gg : Emin= 0 eV Emax= 10 TeV
>
> /opt/local/bin/Gate: line 12: 25102 Segmentation fault: 11
> /opt/local/libexec/gate/Gate $@
> "
>
> 2) I try to manually install everything from source using cmake (even with
> system clhep or g4 internal clhep, to be sure it was not clhep error).
> Geant4 installation went fine, then I go to Gate -I guess I correctly
> configured by ccmake- but after make command it builds CXX object down to
> 100% but then I get a long list of printouts and error at the very end:
> ".......
> .........
> "_gROOT", referenced from:
> _main in Gate.cc.o
> GateToRoot::RecordBeginOfAcquisition() in GateToRoot.cc.o
> "_gRandom", referenced from:
> GateRandomEngine::Initialize() in GateRandomEngine.cc.o
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
> make[2]: *** [Gate] Error 1
> make[1]: *** [CMakeFiles/Gate.dir/all] Error 2
> make: *** [all] Error 2
> "
> ROOT path is correctly set (5.34/14), geant4 path too. Can be a problem with
> the compiler?
>
> I have:
> /usr/bin/c++ -v
> Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
> Target: x86_64-apple-darwin13.2.0
> Thread model: posix
>
> /usr/bin/gcc -v
> Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
> --with-gxx-include-dir=/usr/include/c++/4.2.1
> Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
> Target: x86_64-apple-darwin13.2.0
> Thread model: posix
> Paolas-MacBook-Air-2:geant4.9.6.p03 psolevi$
>
> I attach the configuration shell screenshot of Gate, if it can help.
>
> Any help will be precious!
>
> Thanks a lot,
> p.
>
>
>
>
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
More information about the Gate-users
mailing list