| Summary: | Geant4 10.5.1 compilation in Debug fails due to too many objects | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | David Sarria <david.sarria.89> |
| Component: | cmake | Assignee: | Ben Morgan <Ben.Morgan> |
| Status: | CLOSED LATER | ||
| Severity: | normal | CC: | shangjiaxuan |
| Priority: | P4 | ||
| Version: | 10.5 | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| Attachments: | compilation log , with failure on line 4098 | ||
|
Description
David Sarria
2019-04-23 11:44:27 CEST
Comment on attachment 569 [details]
compilation log , with failure on line 4098
First line of the attached file indicates "Compiling and Installing GEANT4 10_04_p03" but it is actually 10_05_p01. It is because I tried with 10_04_03 also before (and it gives the same problem) and I forgot to update it.
Unfortunately there is no workaround for this at the present time. 2019's workplan (https://geant4.web.cern.ch/node/1799) includes a task on modularising libraries which should fix this. That would only be from 10.6 beta (June) however. OK, thanks for the quick reply. Good luck to the team, and congratulation for the very valuable work that has already been done. -David A hack to work around this is to specify /Ob1 instead of /Od in cmake cxx flags. This removes most header-inline functions exported, and makes the symbol count much smaller. Of course, inlining functions can interfere with debugging. |