Message: Re: Compile error with Cray compiler, ok with Gnu Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Re: Compile error with Cray compiler, ok with Gnu 

Forum: Installation and Configuration
Re: Ok Compile error with Cray compiler, ok with Gnu (Patrik Eschle)
Date: 15 Oct, 2015
From: Michael H. Kelsey <Michael H. Kelsey>

On Tue, 13 Oct 2015 20:11:37 GMT, Patrik Eschle wrote:
> I just installed Geant4 on CSCS's Cray XC30 Daint (www.cscs.ch).
> 
> Using Cray's compiler I get a compilation error in
> processes/hadronic/models/cascade/cascade/include/G4CascaseCoalescence.hh
> line 114, an innocent location. Commenting this error and building
> example B1 I get two undefined references.
> 
> After switching to Gnu compilers, both Geant4 and example B1 compile,
> link and run smoothly.
> 
> Patrik ( escl@zhaw.ch )

Which Geant4 version did you install? What exactly was the compiler error? In the development tree, that line of G4CascadeCoalescence.hh is the body of an inlined function, accessing a std::vector<> data member. The template argument to the vector is forward declared, which the Cray compiler might possibly not like when accessing one of the vector elements.

If you're willing to play with this, you could try replacing the forward declaration in the .hh file, with

  #include "G4InuclElementaryParticle.hh"

and see if that eliminates the Cray compiler error.

  -- Michael Kelsey

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Feedback: Re: Compile error with Cray compiler, ok with Gnu   (Patrik Eschle - 16 Oct, 2015)
 Add Message Add Message
to: "Re: Compile error with Cray compiler, ok with Gnu"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]