GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » [FIXED] Error while compling pandaroot in macbook pro
[FIXED] Error while compling pandaroot in macbook pro [message #14254] Mon, 03 December 2012 13:39 Go to next message
Himani Bhatt is currently offline  Himani Bhatt
Messages: 11
Registered: October 2012
Location: Juelich
occasional visitor
From: *ikp.kfa-juelich.de
Hi,

I am trying to install pandaroot in Mac OS X 10.7.5

It did following steps in order to install pandaroot.

1. First I fetch the sep12 via svn and put it in:

/Users/himani/PANDA/sep12
and configure it and giving path to install :

/Users/himani/PANDA/INSTALL/

and this complied without any error.

2. Then I fetch pandaroot in the dir.
/Users/himani/PANDA/INSTALL and in this INSTALL dir now I have following sub dirs:

bin/ etc/ include/ lib/ share/ trunk/

I set the SIMPATH = /Users/himani/PANDA/INSTALL/

3. Then I did

cd trunk
mkdir buildpanda
cd buildpanda
cmake ../

it shows at the end:
Found TEve, so the eventdisplay will be compiled.
-- <MVA_INFO> Building MVA with multiClass.
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/himani/PANDA/INSTALL/trunk/buildpanda


and then I did make which is giving following error:

[ 20%] Building CXX object generators/CMakeFiles/Gen.dir/G__GenDict.cxx.o
In file included from /Users/himani/PANDA/INSTALL/trunk/buildpanda/generators/G__GenDict.cxx:17:
In file included from /Users/himani/PANDA/INSTALL/trunk/buildpanda/generators/G__GenDict.h:40:
In file included from /Users/himani/PANDA/INSTALL/trunk/generators/FairPlutoReactionGenerator.h:31:
In file included from /Users/himani/PANDA/INSTALL/include/pluto/PReaction.h:16:
In file included from /Users/himani/PANDA/INSTALL/include/pluto/PDistributionManager.h:15:
In file included from /Users/himani/PANDA/INSTALL/include/pluto/PStdModels.h:22:
In file included from /Users/himani/PANDA/INSTALL/include/pluto/PDalitzDistribution.h:13:
/Users/himani/PANDA/INSTALL/include/pluto/PBatch.h:194:28: warning: declaration
      shadows a field of 'PBatch' [-Wshadow]
    void SetVarList(char * x) {
                           ^
/Users/himani/PANDA/INSTALL/include/pluto/PBatch.h:136:15: note: previous
      declaration is here
    Double_t *x,*y,*z;  //Axis values for _eval
              ^
1 warning generated.
Linking CXX shared library ../lib/libGen.so
[ 20%] Built target Gen
[ 20%] Generating PndPGenDict.cxx, PndPGenDict.h
Scanning dependencies of target PGen
[ 20%] Building CXX object pgenerators/CMakeFiles/PGen.dir/PndRestGas.cxx.o
In file included from /Users/himani/PANDA/INSTALL/trunk/pgenerators/PndRestGas.cxx:7:
/Users/himani/PANDA/INSTALL/trunk/pgenerators/PndRestGas.h:47:2: warning: 
      control reaches end of non-void function [-Wreturn-type]
        }
        ^
/Users/himani/PANDA/INSTALL/trunk/pgenerators/PndRestGas.cxx:69:1: warning: 
      control reaches end of non-void function [-Wreturn-type]
}
^
2 warnings generated.
[ 20%] Building CXX object pgenerators/CMakeFiles/PGen.dir/PndDpmGenerator.cxx.o
[ 20%] Building CXX object pgenerators/CMakeFiles/PGen.dir/PndEvtGenGenerator.cxx.o
/Users/himani/PANDA/INSTALL/trunk/pgenerators/PndEvtGenGenerator.cxx:116:1: warning: 
      control reaches end of non-void function [-Wreturn-type]
}
^
/Users/himani/PANDA/INSTALL/trunk/pgenerators/PndEvtGenGenerator.cxx:156:3: warning: 
      switch condition has boolean value
  switch (fFileType)
  ^       ~~~~~~~~~
/Users/himani/PANDA/INSTALL/trunk/pgenerators/PndEvtGenGenerator.cxx:336:3: warning: 
      switch condition has boolean value
  switch (fFileType) {
  ^       ~~~~~~~~~
3 warnings generated.
[ 20%] Building CXX object pgenerators/CMakeFiles/PGen.dir/PndDpmDirect.cxx.o
[ 20%] Building CXX object pgenerators/CMakeFiles/PGen.dir/PndBoxGenerator.cxx.o
/Users/himani/PANDA/INSTALL/trunk/pgenerators/PndBoxGenerator.cxx:65:1: warning: 
      control reaches end of non-void function [-Wreturn-type]
}
^
1 warning generated.
[ 20%] Building CXX object pgenerators/CMakeFiles/PGen.dir/PndUrqmdSmmGenerator.cxx.o
[ 20%] Building CXX object pgenerators/CMakeFiles/PGen.dir/PndJRGenerator.cxx.o
[ 20%] Building CXX object pgenerators/CMakeFiles/PGen.dir/PndPythia6Generator.cxx.o
[ 21%] Building CXX object pgenerators/CMakeFiles/PGen.dir/PndPythia8Generator.cxx.o
[ 21%] Building CXX object pgenerators/CMakeFiles/PGen.dir/PndFlatParticleGenerator.cxx.o
/Users/himani/PANDA/INSTALL/trunk/pgenerators/PndFlatParticleGenerator.cxx:76:1: warning: 
      control reaches end of non-void function [-Wreturn-type]
}
^
1 warning generated.
[ 21%] Building CXX object pgenerators/CMakeFiles/PGen.dir/PndFlukaGenerator.cxx.o
/Users/himani/PANDA/INSTALL/trunk/pgenerators/PndFlukaGenerator.cxx:68:1: warning: 
      control reaches end of non-void function [-Wreturn-type]
}
^
1 warning generated.
[ 21%] Building CXX object pgenerators/CMakeFiles/PGen.dir/PndGasGenerator.cxx.o
/Users/himani/PANDA/INSTALL/trunk/pgenerators/PndGasGenerator.cxx:60:1: warning: 
      control reaches end of non-void function [-Wreturn-type]
}
^
1 warning generated.
[ 21%] Building CXX object pgenerators/CMakeFiles/PGen.dir/PndHypBupGenerator.cxx.o
[ 21%] Building CXX object pgenerators/CMakeFiles/PGen.dir/PndGiBuuGenerator.cxx.o
[ 21%] Building CXX object pgenerators/CMakeFiles/PGen.dir/PndGiBuuTrack.cxx.o
[ 21%] Building CXX object pgenerators/CMakeFiles/PGen.dir/PndGiBuuDecayerAbs.cxx.o
[ 21%] Building CXX object pgenerators/CMakeFiles/PGen.dir/PndGiBuuJPsiEE.cxx.o
[ 21%] Building CXX object pgenerators/CMakeFiles/PGen.dir/PndPGenDict.cxx.o
In file included from /Users/himani/PANDA/INSTALL/trunk/buildpanda/pgenerators/PndPGenDict.cxx:17:
In file included from /Users/himani/PANDA/INSTALL/trunk/buildpanda/pgenerators/PndPGenDict.h:34:
/Users/himani/PANDA/INSTALL/trunk/pgenerators/PndRestGas.h:47:2: warning: 
      control reaches end of non-void function [-Wreturn-type]
        }
        ^
1 warning generated.
Linking CXX shared library ../lib/libPGen.so
[ 21%] Built target PGen
Scanning dependencies of target DpmEvtGen
[ 21%] Building Fortran object pgenerators/DpmEvtGen/CMakeFiles/DpmEvtGen.dir/common.f.o
[ 21%] Building Fortran object pgenerators/DpmEvtGen/CMakeFiles/DpmEvtGen.dir/decay.f.o
[ 21%] Building Fortran object pgenerators/DpmEvtGen/CMakeFiles/DpmEvtGen.dir/dpm_gen.f.o
[ 21%] Building Fortran object pgenerators/DpmEvtGen/CMakeFiles/DpmEvtGen.dir/init.f.o
[ 21%] Building Fortran object pgenerators/DpmEvtGen/CMakeFiles/DpmEvtGen.dir/rndmget.f.o
[ 21%] Building Fortran object pgenerators/DpmEvtGen/CMakeFiles/DpmEvtGen.dir/string.f.o
Linking Fortran shared library ../../lib/libDpmEvtGen.so
/usr/bin/libtool: can't locate file for: -lGui
/usr/bin/libtool: file: -lGui is not an object file (not allowed in a library)
/usr/bin/libtool: can't locate file for: -lCore
/usr/bin/libtool: file: -lCore is not an object file (not allowed in a library)
/usr/bin/libtool: can't locate file for: -lCint
/usr/bin/libtool: file: -lCint is not an object file (not allowed in a library)
/usr/bin/libtool: can't locate file for: -lRIO
/usr/bin/libtool: file: -lRIO is not an object file (not allowed in a library)
/usr/bin/libtool: can't locate file for: -lNet
/usr/bin/libtool: file: -lNet is not an object file (not allowed in a library)
/usr/bin/libtool: can't locate file for: -lHist
/usr/bin/libtool: file: -lHist is not an object file (not allowed in a library)
/usr/bin/libtool: can't locate file for: -lGraf
/usr/bin/libtool: file: -lGraf is not an object file (not allowed in a library)
/usr/bin/libtool: can't locate file for: -lGraf3d
/usr/bin/libtool: file: -lGraf3d is not an object file (not allowed in a library)
/usr/bin/libtool: can't locate file for: -lGpad
/usr/bin/libtool: file: -lGpad is not an object file (not allowed in a library)
/usr/bin/libtool: can't locate file for: -lTree
/usr/bin/libtool: file: -lTree is not an object file (not allowed in a library)
/usr/bin/libtool: can't locate file for: -lRint
/usr/bin/libtool: file: -lRint is not an object file (not allowed in a library)
/usr/bin/libtool: can't locate file for: -lPostscript
/usr/bin/libtool: file: -lPostscript is not an object file (not allowed in a library)
/usr/bin/libtool: can't locate file for: -lMatrix
/usr/bin/libtool: file: -lMatrix is not an object file (not allowed in a library)
/usr/bin/libtool: can't locate file for: -lPhysics
/usr/bin/libtool: file: -lPhysics is not an object file (not allowed in a library)
/usr/bin/libtool: can't locate file for: -lMathCore
/usr/bin/libtool: file: -lMathCore is not an object file (not allowed in a library)
/usr/bin/libtool: can't locate file for: -lThread
/usr/bin/libtool: file: -lThread is not an object file (not allowed in a library)
make[2]: *** [lib/libDpmEvtGen.0.0.0.so] Error 1
make[1]: *** [pgenerators/DpmEvtGen/CMakeFiles/DpmEvtGen.dir/all] Error 2
make: *** [all] Error 2
ikp635:buildpanda himani$ 





[Updated on: Thu, 04 July 2013 12:42] by Moderator

Report message to a moderator

Re: Error while compling pandaroot in macbook pro [message #14268 is a reply to message #14254] Fri, 14 December 2012 09:26 Go to previous messageGo to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: 140.181.11*
Hi,
was it fixed or the problem is still existing?
Re: Error while compling pandaroot in macbook pro [message #14270 is a reply to message #14268] Fri, 14 December 2012 10:13 Go to previous messageGo to next message
Himani Bhatt is currently offline  Himani Bhatt
Messages: 11
Registered: October 2012
Location: Juelich
occasional visitor
From: *pool.mediaWays.net
Hi,

No its still present. I reinstalled the Xcode and trying to install panda software again but getting same problem. I am attaching the log file after installing the external packages, sep12. Please have a look if you get some idea? It is trying to search libX11 files for 32 bit I think. I dont know may be that is the problem.
Re: Error while compling pandaroot in macbook pro [message #14271 is a reply to message #14270] Fri, 14 December 2012 10:43 Go to previous messageGo to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: 140.181.11*
I forwarded this messsage to Florian and Mohammad, who are our Mac experts. I cannot help for this, sorry.
Re: Error while compling pandaroot in macbook pro [message #14388 is a reply to message #14271] Wed, 23 January 2013 11:12 Go to previous messageGo to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *to.infn.it
Hi,
I have tried to install pandaroot on a MacBookPro with the same Lion version, and in my case it worked.
I have installed xcode, I have installed the Command Line Tools through Xcode, and also fortran from this link suggested by Mohammad, and nothing else.
Is it possible that you have a wrong version of fortran, maybe a 32bit version?
And I have installed also MacPorts. If I remember well this was done after my installation, bu just to be sure you could try to install it.

[Updated on: Wed, 23 January 2013 11:41]

Report message to a moderator

Re: Error while compling pandaroot in macbook pro [message #14391 is a reply to message #14388] Fri, 25 January 2013 10:22 Go to previous messageGo to next message
Himani Bhatt is currently offline  Himani Bhatt
Messages: 11
Registered: October 2012
Location: Juelich
occasional visitor
From: *ikp.kfa-juelich.de
Hi Stefano,

Thanks.
Somehow pandaroot is installed in my macbook, but now I am getting some different error while running macro sim_complet.C in that. In Suse system I am able to run these examples but in macbook it is giving following error:

Himanis-MacBook-Pro:run himani$ root -l sim_complete.C 
root [0] 
Processing sim_complete.C...
Warning in <TClassTable::Add>: class PndSdsTask already in TClassTable
Warning in <TClassTable::Add>: class PndSdsMCPoint already in TClassTable
Warning in <TClassTable::Add>: class PndSdsDigi already in TClassTable
Warning in <TClassTable::Add>: class PndSdsStrip already in TClassTable
Warning in <TClassTable::Add>: class PndSdsDetector already in TClassTable
FairRootManager::OpenOutFile("sim_complete.root")
[INFO   ] Media file used : /Users/himani/PANDA/pandaroot/geometry/media_pnd.geo  
Info in (PndGeoHandling::Instance): Making a new instance using the framework.
 -I container name PndEmcGeoPar
<I> PndEvtGenDirect
<I> Particle: pbarpSystem
<I> decfile: /Users/himani/PANDA/pandaroot/macro/run/2pipi.dec
<I> pbar-Momentum: 7.24
<I> Rnd Seed: -1
<I> Rnd Seed changed to 22672
EvtGen:Initializing EvtGen
EvtGen:Storing known decay models
Will register EvtPythia
EvtGen:Main decay file name  :/Users/himani/PANDA/pandaroot/pgenerators/EvtGen/DECAY.DEC
EvtGen:PDT table file name   :/Users/himani/PANDA/pandaroot/pgenerators/EvtGen/evt.pdl
EvtGen:Initializing RadCorr=PHOTOS
EvtGen:No RadCorr engine given in EvtGen::EvtGen constructor, will use default EvtPHOTOS.
EvtGen:In readDecayFile, reading:/Users/himani/PANDA/pandaroot/pgenerators/EvtGen/DECAY.DEC
root.exe(11369) malloc: *** error for object 0x7fff74049860: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Himanis-MacBook-Pro:run himani$ 



I have removed previously installed root and path declared in bashrc as I defined in SuSe system previously.

I also checked gfortran version and it is for 64bit:


Himanis-MacBook-Pro:run himani$ gfortran --version
GNU Fortran (GCC) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.


and gcc version
Himanis-MacBook-Pro:run himani$ gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)
Copyright (C) 2007 Free Software Foundation, Inc.



Re: Error while compling pandaroot in macbook pro [message #14393 is a reply to message #14391] Fri, 25 January 2013 13:39 Go to previous messageGo to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: 94.160.130*
Hi,
Unfortunately this is a known problem of EvtGenDirect and Mac, while the box generator and Dpm work nicely.
I asked already Mohammad to take care, we will let you know once it will be fixed.
Re: Error while compling pandaroot in macbook pro [message #14927 is a reply to message #14393] Thu, 04 July 2013 12:42 Go to previous message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *to.infn.it
The EvtGenDirect problem for MAC now is fixed.
Previous Topic: [FIXED] Problems in compiling EvtGenDirect
Next Topic: [FIXED] Not set McMotherIdx
Goto Forum:
  


Current Time: Sun Oct 13 09:21:03 CEST 2024

Total time taken to generate the page: 0.00590 seconds