Problem 1096 - Incomplete build by Configure script
Summary: Incomplete build by Configure script
Status: RESOLVED WORKSFORME
Alias: None
Product: Geant4
Classification: Unclassified
Component: config (show other problems)
Version: 9.3
Hardware: Apple Mac OS X
: P4 minor
Assignee: Gabriele Cosmo
URL: http://neutrino.lbl.gov/~bkf/g4make.log
Depends on:
Blocks:
 
Reported: 2010-01-18 19:55 CET by Brian Kurt Fujikawa
Modified: 2010-01-19 10:33 CET (History)
1 user (show)

See Also:


Attachments
Successful build log (247.33 KB, text/plain)
2010-01-19 10:29 CET, Gabriele Cosmo
Details

Note You need to log in before you can comment on or make changes to this problem.
Description Brian Kurt Fujikawa 2010-01-18 19:55:55 CET
I ran the Configure script on OS X 10.6.2 64-bit, gcc version 4.2.1 (Apple Inc. build 5646) (dot 1), XCode 3.2.1. The Configure script finishes without errors (see attached g4make.log). However, when trying to build novice example N03, I get the following error:

$ pwd
/Users/bkf/test/geant4/examples/novice/N03
$ make
Making dependency for file exampleN03.cc ...
Making dependency for file src/ExN03SteppingVerbose.cc ...
Making dependency for file src/ExN03SteppingAction.cc ...
Making dependency for file src/ExN03RunAction.cc ...
Making dependency for file src/ExN03PrimaryGeneratorMessenger.cc ...
Making dependency for file src/ExN03PrimaryGeneratorAction.cc ...
Making dependency for file src/ExN03PhysicsList.cc ...
Making dependency for file src/ExN03EventActionMessenger.cc ...
Making dependency for file src/ExN03EventAction.cc ...
Making dependency for file src/ExN03DetectorMessenger.cc ...
Making dependency for file src/ExN03DetectorConstruction.cc ...
Compiling ExN03DetectorConstruction.cc ...
Compiling ExN03DetectorMessenger.cc ...
Compiling ExN03EventAction.cc ...
Compiling ExN03EventActionMessenger.cc ...
Compiling ExN03PhysicsList.cc ...
Compiling ExN03PrimaryGeneratorAction.cc ...
Compiling ExN03PrimaryGeneratorMessenger.cc ...
Compiling ExN03RunAction.cc ...
Compiling ExN03SteppingAction.cc ...
Compiling ExN03SteppingVerbose.cc ...
Creating shared library /Users/bkf/geant4/tmp/Darwin-g++/exampleN03/libexampleN03.dylib ...
Compiling exampleN03.cc ...
Using granular libraries ...
ERROR: No liblist program or library map file.
       These are needed for building with granular
       libraries.
         cd $G4INSTALL/source
         gmake
       or if you are sure you have already made all the
       granular libraries:
         gmake libmap
make: *** [/Users/bkf/geant4/bin/Darwin-g++/exampleN03] Error 1

After finishing the geant4.9.3 build manually, i.e.

$ cd $G4INSTALL/source
$ make

everything seems to work normally. So, it looks like the Configure script is not building geant4.9.3 completely and an additional make is required. I am able to reproduce this problem on multiple installs on my MacBook and my iMac.
Comment 1 Gabriele Cosmo 2010-01-19 10:29:20 CET
Created attachment 62 [details]
Successful build log
Comment 2 Gabriele Cosmo 2010-01-19 10:33:44 CET
Using the same configuration on Snow-Leopard I cannot reproduce the problem reported and the installation works just fine (see attached log). From the (incomplete) log provided, it looks like there are errors in the installation and 'global' libraries (which are now build by default through Configure) have not been built due to this:

*** No rule to make target `/Users/bkf/sw/geant4.9.3/tmp/Darwin-g++/G4globman/obj.last', needed by `/Users/bkf/sw/geant4.9.3/lib/Darwin-g++/libG4global.dylib'
    :

Also, by attempting to manually build the libraries with:
  $ cd $G4INSTALL/source
  $ make
will trigger building 'granular' libraries, confusing even further the build (especially if the environment was not configured beforehand)...

I suggest to restart a build from -scratch-, removing everything from the old attempted installation first:
 $ cd /Users/bkf/sw/geant4.9.3
 $ rm -rf tmp lib bin include /Users/bkf/geant4
 $ ./Configure -build
 $ ./Configure
 $ source env.csh      [or . env.sh]
... and rebuild the application.