source: trunk/documents/UserDoc/DocBookUsersGuides/ForApplicationDeveloper/xml/FAQ/runTimeProblems.xml @ 1218

Last change on this file since 1218 was 1208, checked in by garnier, 15 years ago

CVS update

File size: 3.0 KB
Line 
1<!-- ******************************************************** -->
2<!--                                                          -->
3<!--  [History]                                               -->
4<!--    1st version created:  Katsuya Amako, Dec-2006         -->
5<!--                                                          -->
6<!-- ******************************************************** -->
7
8
9<!-- ********************* QandA Section ******************** -->
10<section id="qanda.RunTimeProb">
11<title>
12Run Time Problems
13</title>
14
15<qandaset defaultlabel="qanda">
16
17
18<!-- ******* QandA Entry ******** -->
19<qandaentry id="qanda.RunTimeProb.SegFltInExmp">
20
21<question><para>
22  On Linux, I get a segmentation fault as soon as I run one of the official
23  examples.
24</para></question>
25
26<answer><para>
27  Check that the CLHEP library has been installed and compiled coherently
28  with the same compiler you use for installing Geant4 and for the same
29  version of Linux distribution. For example, a binary object produced with
30  Red-Hat 7.X is not fully compatible with binaries running on RH 9.X or
31  higher, due to different libc used in the two configurations.
32</para></answer>
33
34</qandaentry>
35
36
37<!-- ******* QandA Entry ******** -->
38<qandaentry id="qanda.RunTimeProb.ErrShareLib">
39
40<question><para>
41  I installed Geant4 libraries and built my application, when I try to run
42  it I get:
43  <informalexample><programlisting>
44         error in loading shared libraries:
45         libCLHEP.so: cannot open shared object file:
46         No such file or directory.
47  </programlisting></informalexample>
48</para></question>
49
50<answer><para>
51  Your installation of CLHEP includes shared libraries. You need to specify
52  the path where libCLHEP.so is installed through your environment variable
53  <literal>LD_LIBRARY_PATH</literal>. For example, in tcsh UNIX shell:
54  <informalexample><programlisting>
55       setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:$CLHEP_BASE_DIR/lib
56  </programlisting></informalexample>
57</para></answer>
58
59</qandaentry>
60
61
62<!-- ******* QandA Entry ******** -->
63<qandaentry id="qanda.RunTimeProb.errFPE">
64
65<question><para>
66  On my system I get a Floating Point Exception (FPE) since some physics
67  processes sometimes return <literal>DBL_MAX</literal> as interaction
68  length  and this number is afterwards multiplied by a number greater
69  than 1.
70</para></question>
71
72<answer><para>
73  Geant4 coding conventions and installation setup explicitly follow the
74  ANSI/IEEE-754 Standard for the initialization of floating-point
75  arithmetic hardware and portability. The Standard foresees floating-point
76  arithmetic to be nonstop and underflows to be gradual. On DEC platforms,
77  for example, the ANSI/IEEE-754 Standard compliance needs to be explicitly
78  set (since deactivated by default); in this case we use infact the option
79  "-ieee" on the DEC/cxx native C++ compiler to achieve this. You should
80  check if your compiler provides compilation options for activating Standard
81   initialization of FP arithmetic (it may be platform specific).
82</para></answer>
83
84</qandaentry>
85
86
87
88</qandaset>
89</section>
Note: See TracBrowser for help on using the repository browser.