Problem 46 - Memory size at compilation time in ExN04PhysicsList.cc
Summary: Memory size at compilation time in ExN04PhysicsList.cc
Status: CLOSED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: config (show other problems)
Version: 1.0
Hardware: PC Linux
: P2 normal
Assignee: Gabriele Cosmo
URL:
Depends on:
Blocks:
 
Reported: 2000-01-05 03:56 CET by nedelec
Modified: 2000-02-02 09:47 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description nedelec 2000-01-05 03:56:38 CET
Using the file ExN04PhysicsList.cc fromnovice/N04 example, I was suprised to get
a `broken pipe' error at compilation time. I found it happened when the memory
used was already 168Mb ! Too much for my poor 128Mb computer !
This was due to the non-usage of the G4DEBUG flag. Looking at the
`architecture.gmk' config file I found that not asking for the G4DEBUG means
asking for the G4OPTIMISE flag instead ! On Linux it means -O compilation option
which is too good probably.
Would it be possible to disantangle G4DEBUG and G4OPTIMISE ?
Comment 1 Gabriele Cosmo 2000-01-06 06:38:59 CET
For the supported compiler egcs 1.1.2 on Linux, the actual compilation of
ExN04PhysicsList.cc is forced to be non-optimised (see N04/GNUmakefile).
You're probably not using the supported compiler. Try re-adapting that
GNUmakefile in examples/novice/N04 for your system configuration.
The reason why G4DEBUG and G4OPTIMISE are not disantagled is merely for
porting purposes and maintenance issues, since on some compilers in the
past we noticed misbehaviors when not specifying any optimisation level.
We're anyhow going to review this issue and hopefully introduce this extra
setup level in future releases. Thanks for reporting this.
Comment 2 Gabriele Cosmo 2000-02-02 09:46:59 CET
Added G4NO_OPTIMISE flag to setup. If set (and G4DEBUG is not set), compilation
will be performed with no optimisation levels. Will be available at the next
public patch.