GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » cmake error in pandaroot installation
cmake error in pandaroot installation [message #7388] Thu, 09 October 2008 13:23 Go to next message
Annalisa Cecchi is currently offline  Annalisa Cecchi
Messages: 17
Registered: June 2006
Location: Ferrara
occasional visitor

From: *fe.infn.it
Dear all,
I'm installing PANDAROOT in a Scientific Linux machine.
The extarnal packages installation is ok.

When I do:
cmake ../pandaroot/trunk
I obtain the output below. Obviously if then I do make install doesn't work.

Does someone have some ideas about that?

Thank you in advance for your reply,

Annalisa


[cecchi@babar6 build]$ cmake ../pandaroot/trunk
--- Found a Linux ssytem
--- Found GNU compiler collection
--- Build Type: Debug
--- Compiler Flags: -O2 -g
-- You're not using the GSI installation of the external packages.
-- If any problems occur this can be due to the fact that the macros
-- were mostly tested at GSI. If you find any problems please contact
-- f.uhlig@gsi.de
-- Found root of the simulation software at /home/cecchi/fairsoft
-- Looking for Root...
-- Looking for Root... - found /home/cecchi/fairsoft/tools/root/bin/root
-- Looking for Root... - version 5.20/00
-- Looking for Pluto...
-- Looking for Pluto... - found /home/cecchi/fairsoft/generators/lib
-- Looking for Pythia6...
-- Looking for Pythia6... - found /home/cecchi/fairsoft/generators/lib
-- Looking for GEANT3...
-- Looking for GEANT3... - found /home/cecchi/fairsoft/transport/geant3/lib/tgt_linux/libgeant321.so
-- Looking for GEANT4...
-- Looking for GEANT4... - found /home/cecchi/fairsoft/transport/geant4/lib/Linux-g++
-- Looking for GEANT4VMC...
-- Looking for GEANT4VMC... - found /home/cecchi/fairsoft/transport/geant4_vmc/lib/tgt_linux
-- Looking for VGM...
-- Looking for VGM... - found /home/cecchi/fairsoft/transport/vgm/lib
-- Looking for CLHEP...
-- Looking for CLHEP... - found /home/cecchi/fairsoft/cern/clhep/lib
-- Looking for Java...
-- Looking for Java... - found /usr/bin/java
-- Looking for Perl...
-- Looking for Perl... - found /usr/bin/perl
-- Looking for Rule Checker...
HIER
-- Looking for Rule Checker... - Not found
RegularExpression::compile(): Unmatched [].
RegularExpression::compile(): Error in compile.
CMake Error at cmake/modules/CbmMacros.cmake:120 (IF):
if had incorrect arguments: NOT "${unique_tmp}" MATCHES "(^|;)${l1}(;|$)"
(Regular expression "(^|;)[]/cbmsoft/basics/cmake/bin(;|$)" cannot
compile).
Call Stack (most recent call first):
cmake/modules/WriteConfigFile.cmake:89 (UNIQUE)
CMakeLists.txt:143 (WRITE_CONFIG_FILE)


CMake Error at cmake/modules/CbmMacros.cmake:122 (ENDIF):
endif An ENDIF command was found outside of a proper IF ENDIF structure.
Or its arguments did not match the opening IF command.
Call Stack (most recent call first):
cmake/modules/WriteConfigFile.cmake:89 (UNIQUE)
CMakeLists.txt:143 (WRITE_CONFIG_FILE)


RegularExpression::compile(): Unmatched [].
RegularExpression::compile(): Error in compile.
CMake Error at cmake/modules/CbmMacros.cmake:120 (IF):
if had incorrect arguments: NOT "${unique_tmp}" MATCHES "(^|;)${l1}(;|$)"
(Regular expression "(^|;)[]/cbmsoft/basics/cmake/bin(;|$)" cannot
compile).
Call Stack (most recent call first):
cmake/modules/WriteConfigFile.cmake:89 (UNIQUE)
CMakeLists.txt:143 (WRITE_CONFIG_FILE)


CMake Error at cmake/modules/CbmMacros.cmake:122 (ENDIF):
endif An ENDIF command was found outside of a proper IF ENDIF structure.
Or its arguments did not match the opening IF command.
Call Stack (most recent call first):
cmake/modules/WriteConfigFile.cmake:89 (UNIQUE)
CMakeLists.txt:143 (WRITE_CONFIG_FILE)


RegularExpression::compile(): Unmatched [].
RegularExpression::compile(): Error in compile.
CMake Error at cmake/modules/CbmMacros.cmake:120 (IF):
if had incorrect arguments: NOT "${unique_tmp}" MATCHES "(^|;)${l1}(;|$)"
(Regular expression "(^|;)[]/cbmsoft/basics/cmake/bin(;|$)" cannot
compile).
Call Stack (most recent call first):
cmake/modules/WriteConfigFile.cmake:89 (UNIQUE)
CMakeLists.txt:143 (WRITE_CONFIG_FILE)


CMake Error at cmake/modules/CbmMacros.cmake:122 (ENDIF):
endif An ENDIF command was found outside of a proper IF ENDIF structure.
Or its arguments did not match the opening IF command.
Call Stack (most recent call first):
cmake/modules/WriteConfigFile.cmake:89 (UNIQUE)
CMakeLists.txt:143 (WRITE_CONFIG_FILE)


RegularExpression::compile(): Unmatched [].
RegularExpression::compile(): Error in compile.
CMake Error at cmake/modules/CbmMacros.cmake:120 (IF):
if had incorrect arguments: NOT "${unique_tmp}" MATCHES "(^|;)${l1}(;|$)"
(Regular expression "(^|;)[]/cbmsoft/basics/cmake/bin(;|$)" cannot
compile).
Call Stack (most recent call first):
cmake/modules/WriteConfigFile.cmake:89 (UNIQUE)
CMakeLists.txt:143 (WRITE_CONFIG_FILE)


CMake Error at cmake/modules/CbmMacros.cmake:122 (ENDIF):
endif An ENDIF command was found outside of a proper IF ENDIF structure.
Or its arguments did not match the opening IF command.
Call Stack (most recent call first):
cmake/modules/WriteConfigFile.cmake:89 (UNIQUE)
CMakeLists.txt:143 (WRITE_CONFIG_FILE)


-- Configuring done
[cecchi@babar6 build]$ cmake ../pandaroot/trunk


Re: cmake error in pandaroot installation [message #7389 is a reply to message #7388] Thu, 09 October 2008 14:00 Go to previous messageGo to next message
Florian Uhlig is currently offline  Florian Uhlig
Messages: 424
Registered: May 2007
first-grade participant
From: *pools.arcor-ip.net
Hi Annalisa

Which version of cmake do you use?
cmake --version give you the version.
Which version of PandaRoot do you use?

Ciao

Florian
Re: cmake error in pandaroot installation [message #7390 is a reply to message #7389] Thu, 09 October 2008 14:02 Go to previous messageGo to next message
Annalisa Cecchi is currently offline  Annalisa Cecchi
Messages: 17
Registered: June 2006
Location: Ferrara
occasional visitor

From: *fe.infn.it
Hi Florian,

> cmake --version
cmake version 2.6-patch 0

for pandaroot I downloaded the trunk with "svn co...."

Why?
Re: cmake error in pandaroot installation [message #7391 is a reply to message #7390] Thu, 09 October 2008 14:09 Go to previous messageGo to next message
Florian Uhlig is currently offline  Florian Uhlig
Messages: 424
Registered: May 2007
first-grade participant
From: *pools.arcor-ip.net
Hi Annalisa

I will try to look for the problem.

Ciao

Florian
Re: cmake error in pandaroot installation [message #7392 is a reply to message #7391] Thu, 09 October 2008 14:17 Go to previous messageGo to next message
Annalisa Cecchi is currently offline  Annalisa Cecchi
Messages: 17
Registered: June 2006
Location: Ferrara
occasional visitor

From: *fe.infn.it

Hi agian,
just to try to help you: I have a Scientific linux 5.2, and gcc version: gcc (GCC) 4.1.2 20071124 (Red Hat 4.1.2-42)

Thanks a lot

Annalisa

Re: cmake error in pandaroot installation [message #7393 is a reply to message #7392] Thu, 09 October 2008 15:10 Go to previous messageGo to next message
Florian Uhlig is currently offline  Florian Uhlig
Messages: 424
Registered: May 2007
first-grade participant
From: *pools.arcor-ip.net
Hi Annalisa

Thanks for the information, but i have no SL system to check. I did a fast check
on Mac OS and i don't see the problem.

Did you use the cmake binary which was installed with the external packages or is
there a cmake in Scientific Linux?

Ciao

Floria
Re: cmake error in pandaroot installation [message #7395 is a reply to message #7393] Thu, 09 October 2008 15:27 Go to previous messageGo to next message
Annalisa Cecchi is currently offline  Annalisa Cecchi
Messages: 17
Registered: June 2006
Location: Ferrara
occasional visitor

From: *fe.infn.it

Hi,
I have cmake from esternal packages.

Annalisa
Re: cmake error in pandaroot installation [message #7396 is a reply to message #7395] Thu, 09 October 2008 15:37 Go to previous messageGo to next message
Florian Uhlig is currently offline  Florian Uhlig
Messages: 424
Registered: May 2007
first-grade participant
From: *pools.arcor-ip.net
Hi Annalisa

I did some changes in WriteConfigFile.cmake. Please copy the attached file
to the cmake/modules subdirectory.
To test the changes please start with a clean build directory. I hope the
change helps to solve the problem.
Please let me know if it works, because then i will commit the changes to
the repository.

Ciao

Florian
Re: cmake error in pandaroot installation - SOLVED [message #7397 is a reply to message #7396] Thu, 09 October 2008 16:25 Go to previous messageGo to next message
Annalisa Cecchi is currently offline  Annalisa Cecchi
Messages: 17
Registered: June 2006
Location: Ferrara
occasional visitor

From: *fe.infn.it
Great!
Now I have pandaroot installed!
I have a compilation error when compiling event display.. but this an other story...

Thank you very much, Florian, for your help,

Annalisa
Re: cmake error in pandaroot installation [message #7518 is a reply to message #7396] Tue, 11 November 2008 10:07 Go to previous messageGo to next message
Sverre Dørheim is currently offline  Sverre Dørheim
Messages: 23
Registered: October 2008
Location: Munich
occasional visitor
From: *natpool.mwn.de
I also get part of the error message. The part that it doesnt find the Rule Checker. I tried the fix posted by you and it had no effect. I have the external packages installed(july08 version). CMake is installed from the package system of ubuntu.
Panda-version is the trunk-version downloaded with subversion.

Note: I have in spite of the error also tried to compile pandaroot, which results in compile errors. I will post them after the cmake output.

Here comes the cmake output:
sverre@sverre-laptop:~/pandaroot/buildPanda$ cmake ../trunk
--- Found a Linux ssytem
--- Found GNU compiler collection
--- Build Type: Debug
--- Compiler Flags: -g
-- Looking for Root...
-- Looking for Root... - found /home/sverre/fairsoft/tools/root/bin/root
-- Looking for Root... - version 5.20/00
-- Looking for Pluto...
-- Looking for Pluto... - found /home/sverre/fairsoft/generators/lib
-- Looking for Pythia6...
-- Looking for Pythia6... - found /home/sverre/fairsoft/generators/lib
-- Looking for GEANT3...
-- Looking for GEANT3... - found /home/sverre/fairsoft/transport/geant3/lib/tgt_linuxx8664gcc/libgeant321 .so
-- Looking for GEANT4...
-- Looking for GEANT4... - found /home/sverre/fairsoft/transport/geant4/lib/Linux-g++
-- Looking for GEANT4VMC...
-- Looking for GEANT4VMC... - found /home/sverre/fairsoft/transport/geant4_vmc/lib/tgt_linuxx8664gcc
-- Looking for VGM...
-- Looking for VGM... - found /home/sverre/fairsoft/transport/vgm/lib
-- Looking for CLHEP...
-- Looking for CLHEP... - found /home/sverre/fairsoft/cern/clhep/lib
-- Looking for Java...
-- Looking for Java... - found /usr/bin/java
-- Looking for Perl...
-- Looking for Perl... - found /usr/bin/perl
-- Looking for Rule Checker...
HIER
-- Looking for Rule Checker... - Not found
running /bin/chmod u+x /home/sverre/pandaroot/buildPanda/macro/run/run_sim.sh 2>&1
running /bin/chmod u+x /home/sverre/pandaroot/buildPanda/macro/run/run_sim1.sh 2>&1
-- Configuring done
CMake Warning (dev) at pgenerators/DpmEvtGen/CMakeLists.txt:44 (add_executable):
Policy CMP0003 should be set before this line. Add code such as

if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)

as early as possible but after the most recent call to
cmake_minimum_required or cmake_policy(VERSION). This warning appears
because target "DpmEvtGen_exe" links to some libraries for which the linker
must search:

EG

and other libraries with known full path:

/home/sverre/pandaroot/buildPanda/lib/libDpmEvtGen.so.0.0.0

CMake is adding directories in the second list to the linker search path in
case they are needed to find libraries from the first list (for backwards
compatibility with CMake 2.4). Set policy CMP0003 to OLD or NEW to enable
or disable this behavior explicitly. Run "cmake --help-policy CMP0003" for
more information.
This warning is for project developers. Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: /home/sverre/pandaroot/buildPanda

Make output:
Before this, only some warnings
Linking CXX shared library ../lib/libRho.so
[ 96%] Built target Rho
[ 97%] Generating EventDisplayDict.cxx, EventDisplayDict.h
Error: cannot open file "TEveEventManager.h" /home/sverre/pandaroot/trunk/eventdisplay/FairEventManager.h:11:
Error: class,struct,union or type TEveEventManager not defined /home/sverre/pandaroot/trunk/eventdisplay/FairEventManager.h:17:
Error: Symbol TGListTreeItem is not defined in current scope /home/sverre/pandaroot/trunk/eventdisplay/FairEventManager.h:52:
Error: Symbol fEvent is not defined in current scope /home/sverre/pandaroot/trunk/eventdisplay/FairEventManager.h:52:
Error: cannot open file "TEveTrackPropagator.h" /home/sverre/pandaroot/trunk/eventdisplay/FairMCTracks.h:20:
Error: Symbol TParticle is not defined in current scope /home/sverre/pandaroot/trunk/eventdisplay/FairMCTracks.h:53:
Error: Symbol P is not defined in current scope /home/sverre/pandaroot/trunk/eventdisplay/FairMCTracks.h:53:
Error: Symbol TEveTrackPropagator is not defined in current scope /home/sverre/pandaroot/trunk/eventdisplay/FairMCTracks.h:59:
Error: Symbol fTrPr is not defined in current scope /home/sverre/pandaroot/trunk/eventdisplay/FairMCTracks.h:59:
Warning: Error occurred during reading source files
Warning: Error occurred during dictionary source generation
!!!Removing /home/sverre/pandaroot/buildPanda/eventdisplay/EventDisplayDict.cxx /home/sverre/pandaroot/buildPanda/eventdisplay/EventDisplayDict.h !!!
Error: /home/sverre/fairsoft/tools/root/bin/rootcint: error loading headers...
make[2]: *** [eventdisplay/EventDisplayDict.cxx] Error 1
make[1]: *** [eventdisplay/CMakeFiles/EventDisplay.dir/all] Error 2
make: *** [all] Error 2

Thanks
Sverre

[Updated on: Tue, 11 November 2008 11:14]

Report message to a moderator

Re: cmake error in pandaroot installation [message #7519 is a reply to message #7518] Tue, 11 November 2008 13:16 Go to previous messageGo to next message
Florian Uhlig is currently offline  Florian Uhlig
Messages: 424
Registered: May 2007
first-grade participant
From: *gsi.de
Hi

The RuleChecker cannot be found, because it is only installed at GSI, but this is no error. The error comes below. I assume that you're using cmake 2.6.? . If this is correct the solution should be to do an update from the repository or if you don't like a complete update, please update at least pgenerators/DpmEvtGen/CMakeLists.txt. I forgot to commit the file yesterday.
Hope it works now.


Ciao

Florian
Re: cmake error in pandaroot installation [message #7520 is a reply to message #7519] Tue, 11 November 2008 14:05 Go to previous messageGo to next message
Sverre Dørheim is currently offline  Sverre Dørheim
Messages: 23
Registered: October 2008
Location: Munich
occasional visitor
From: *natpool.mwn.de
Hi

I updated my repository and the file mentionet got updated. I deleted my build-directory and remade it. I ran "cmake ../trunk" again with the same output. And when compiling i get the same error messages as far as i can see.

Cmake version is:
cmake -help gives this output:
cmake version 2.6-patch 0
This is the cmake-verison in the ubuntu repository.

Hope there is a solution for this.

Regards
Sverre
Re: cmake error in pandaroot installation [message #7521 is a reply to message #7520] Tue, 11 November 2008 15:38 Go to previous messageGo to next message
Florian Uhlig is currently offline  Florian Uhlig
Messages: 424
Registered: May 2007
first-grade participant
From: *gsi.de
Hi

Can you change in pgenerators/DpmEvtGen/CMakeListst.txt the part
cmake_policy(SET CMP0003 OLD) from OLD to new and try again.

Ciao

Florian
Re: cmake error in pandaroot installation [message #7523 is a reply to message #7521] Tue, 11 November 2008 16:40 Go to previous messageGo to next message
Sverre Dørheim is currently offline  Sverre Dørheim
Messages: 23
Registered: October 2008
Location: Munich
occasional visitor
From: *natpool.mwn.de
I did this with a clean build directory. Ran cmake and make again. With the same errors.

Hope you have some more things I can try out.

summary of my current packages and changed things

cmake version 2.6-patch 2(updated from patch 2)
gcc version 4.3.2(the same)
pandaroot/trunk/pgenerators/DpmEvtGen/CMakeLists.txt:
cmake_policy(SET CMP0003 NEW) changed from old

The updating of cmake didnt make any difference.
Since its searching for TEveEventManager.h, a root-file. My it not finding it be caused by a faulty root installation during the installation of the external packages?


Thanks
Sverre

[Updated on: Fri, 14 November 2008 10:28]

Report message to a moderator

Re: cmake error in pandaroot installation [message #7526 is a reply to message #7388] Thu, 13 November 2008 10:42 Go to previous messageGo to next message
Susanna Costanza is currently offline  Susanna Costanza
Messages: 33
Registered: January 2008
Location: Pavia
continuous participant
From: *pv.infn.it
Hi all,
we encountered the following error while running make install, after updating the pandaroot code:

Install the project...
-- Install configuration: "Debug"
CMake Error at base/cmake_install.cmake:42 (FILE):
file INSTALL cannot find file
"/home/susanna/test_install/trunk/buildPanda/lib/libBase.so.0.0.0" to install.
Call Stack (most recent call first):
cmake_install.cmake:37 (INCLUDE)


make: *** [install] Error 1

We use cmake-2.6.
Any suggestion?

Thank you,
Susanna and Lia
Re: cmake error in pandaroot installation [message #7528 is a reply to message #7526] Thu, 13 November 2008 11:54 Go to previous messageGo to next message
Florian Uhlig is currently offline  Florian Uhlig
Messages: 424
Registered: May 2007
first-grade participant
From: *gsi.de
Hi

Sorry i forgot to mention this in my last submission to the forum and i don't update the INSTALL file.
You don't need a
make install
anymore. The libraries are copied to the lib directory during the compile and link process. If you try to install the libraries the system tries to copy a file onto itself.

Ciao

Florian
Re: cmake error in pandaroot installation [message #7535 is a reply to message #7523] Fri, 14 November 2008 11:03 Go to previous messageGo to next message
Sverre Dørheim is currently offline  Sverre Dørheim
Messages: 23
Registered: October 2008
Location: Munich
occasional visitor
From: *adsl.alicedsl.de
I found a solution. It was as follows:
In /fairsoft/tools/root/include there were a broken link to:
/graf3d/eve/inc/TEveEventManager.h
I had to change this to link to ../graf3d/eve/inc/TEveEventManager.h.
In addition i made links to all the other .h files in root/graf3d/eve/inc/

This could be a bug in the external packages install script, or something i've done wrong.

At least now it compiled.

Thanks for all your help

Regards
Sverre
Re: cmake error in pandaroot installation [message #7536 is a reply to message #7535] Fri, 14 November 2008 11:11 Go to previous messageGo to next message
Mohammad Al-Turany is currently offline  Mohammad Al-Turany
Messages: 518
Registered: April 2004
Location: GSI, Germany
first-grade participant
From: *gsi.de
Hi,

These includes are copied or linked if the package is build! it seems that in your system Eve (Root package for event display ) was not build during the root compilation this can be due to missing GL libraries. So can you please check in $ROOTSYS/lib if a shared library libEve.so exist? if not and yyou do not need the event display in pandaroot just take it out from the main CMakeList.txt. Otherwise you have to look in root why it did not build Eve.


regards

Mohammad
Re: cmake error in pandaroot installation [message #7537 is a reply to message #7536] Fri, 14 November 2008 11:25 Go to previous messageGo to next message
Sverre Dørheim is currently offline  Sverre Dørheim
Messages: 23
Registered: October 2008
Location: Munich
occasional visitor
From: *adsl.alicedsl.de
The shared library libEve.so does not exist. As to finding out why this library did not compile i do not know what to do.
It was installed as a part of the external packages with the configure.sh script.


Regards Sverre
Re: cmake error in pandaroot installation [message #7538 is a reply to message #7537] Fri, 14 November 2008 11:46 Go to previous message
Mohammad Al-Turany is currently offline  Mohammad Al-Turany
Messages: 518
Registered: April 2004
Location: GSI, Germany
first-grade participant
From: *gsi.de
Hi,

The external packages installation call the root configuration with some setting, one of these is the flag to compile Eve, but if root find out that your system does not have GL or GLU libraries it will skip this! and configure without it!

so if you look in $ROOTSYS/config/Makfile.config in this file there should be something like:

BUILDGL := yes
OPENGLLIBDIR := -L/usr/X11R6/lib
OPENGLULIB := -lGLU
OPENGLLIB := - dylib_file /usr/X11R6/lib/libGL.dylib:/usr/X11R6/lib/libGL.dylib
OPENGLINCDIR := $(filter-out /usr/include, /usr/X11/include)

(in your case it look different so insted of dylib)

if in the first line no insted of yes or there is no paths to GL and GLU then you know that your GL installation is not ok or not seen by root!

regards

Mohammad
Previous Topic: Problems compiling external packages on ubuntu 8.10
Next Topic: New PandaRoot release is out: nov08
Goto Forum:
  


Current Time: Wed Nov 27 17:05:24 CET 2024

Total time taken to generate the page: 0.01189 seconds