Skip to content

Commit

Permalink
make compatible with centos7/EL7
Browse files Browse the repository at this point in the history
  - add  scripts/use_gcc82_cvmfs_el7.sh
  • Loading branch information
gaede committed Nov 29, 2019
1 parent f8afedf commit 653211a
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 6 deletions.
3 changes: 3 additions & 0 deletions ilcsoft-install
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ ilcsoft_afs_path['gcc44_64bit'] = os.path.normpath( os.path.join( ilcsoft_afs_pa
ilcsoft_afs_path['gcc48_64bit'] = os.path.normpath( os.path.join( ilcsoft_afs_path['base'] , 'x86_64_gcc48_sl6' ))
ilcsoft_afs_path['gcc49_64bit'] = os.path.normpath( os.path.join( ilcsoft_afs_path['base'] , 'x86_64_gcc49_sl6' ))
ilcsoft_afs_path['gcc82_64bit'] = os.path.normpath( os.path.join( ilcsoft_afs_path['base'] , 'x86_64_gcc82_sl6' ))
ilcsoft_afs_path['gcc82_64bit_centos7'] = os.path.normpath( os.path.join( ilcsoft_afs_path['base'] , 'x86_64_gcc82_centos7' ))
ilcsoft_afs_path['gcc46_64bit'] = os.path.normpath( os.path.join( ilcsoft_afs_path['base'] , 'x86_64_gcc46_ub1204' ))
ilcsoft_afs_path['gcc48_64bit_ub1404'] = os.path.normpath( os.path.join( ilcsoft_afs_path['base'] , 'x86_64_gcc48_ub1404' ))
ilcsoft_afs_path['gcc54_64bit_ub1604'] = os.path.normpath( os.path.join( ilcsoft_afs_path['base'] , 'x86_64_gcc54_ub1604' ))
Expand All @@ -88,6 +89,8 @@ try:
arch += "_ub1604"
if( platf.find("bionic")>0):
arch += "_ub1804"
if( platf.find("centos-7")>0):
arch += "_centos7"
ilcPath = ilcsoft_afs_path[ arch ] + '/'
gcccheck = platform.python_compiler()
print gcccheck
Expand Down
2 changes: 1 addition & 1 deletion ilcsoft/bbq.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def compile(self):
if( self.rebuild ):
tryunlink( "CMakeCache.txt" )

if( os.system( self.genCMakeCmd() + " 2>&1 | tee -a " + self.logfile ) != 0 ):
if( os.system( ". ../build_env.sh ; " + self.genCMakeCmd() + " 2>&1 | tee -a " + self.logfile ) != 0 ):
self.abort( "failed to configure!!" )

if( os.system( "make ${MAKEOPTS} 2>&1 | tee -a " + self.logfile ) != 0 ):
Expand Down
2 changes: 1 addition & 1 deletion ilcsoft/kaltest.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def compile(self):
if( self.rebuild ):
tryunlink( "CMakeCache.txt" )

if( os.system( self.genCMakeCmd() + " 2>&1 | tee -a " + self.logfile ) != 0 ):
if( os.system( ". ../build_env.sh ; " + self.genCMakeCmd() + " 2>&1 | tee -a " + self.logfile ) != 0 ):
self.abort( "failed to configure!!" )

if( os.system( "make ${MAKEOPTS} 2>&1 | tee -a " + self.logfile ) != 0 ):
Expand Down
2 changes: 2 additions & 0 deletions releases/HEAD/release-ilcsoft.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ ilcPath = os.path.normpath( ilcPath ) + '/' # make sure there it ends with /
if not ncores:
ncores = 4

print "Using %s cores" % ncores

ilcsoft.env["MAKEOPTS"]="-j" + str(ncores)
ilcsoft.env["CXX"]="g++"
ilcsoft.env["CC"]="gcc"
Expand Down
4 changes: 0 additions & 4 deletions scripts/use_gcc82_cvmfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ export LD_LIBRARY_PATH=/cvmfs/sft.cern.ch/lcg/releases/tbb/2019_U1-5939b/x86_64-

export MYSQL_DIR=/cvmfs/sft.cern.ch/lcg/releases/mysql/5.7.26-c3e26/x86_64-slc6-gcc8-opt


# --- use a recent version of cmake
export PATH=/afs/desy.de/project/ilcsoft/sw/x86_64_gcc82_sl6/CMake/3.15.1/bin:$PATH

# --- use a recent version of git
export PATH=/cvmfs/sft.cern.ch/lcg/contrib/git/2.17.0/x86_64-slc6/bin:$PATH

Expand Down
17 changes: 17 additions & 0 deletions scripts/use_gcc82_cvmfs_el7.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#---- use gcc and python from SFT in cvmfs
source /cvmfs/sft.cern.ch/lcg/releases/gcc/8.2.0/x86_64-centos7/setup.sh
export PATH=/cvmfs/sft.cern.ch/lcg/releases/LCG_96/Python/2.7.16/x86_64-centos7-gcc8-opt/bin:$PATH
export LD_LIBRARY_PATH=/cvmfs/sft.cern.ch/lcg/releases/LCG_96/Python/2.7.16/x86_64-centos7-gcc8-opt/lib:$LD_LIBRARY_PATH

# --- use correct tbb for ROOT
export LD_LIBRARY_PATH=/cvmfs/sft.cern.ch/lcg/releases/tbb/2019_U1-5939b/x86_64-centos7-gcc8-opt/lib/:$LD_LIBRARY_PATH


# --- use a suitable mysql

export MYSQL_DIR=/cvmfs/sft.cern.ch/lcg/releases/mysql/5.7.26-c3e26/x86_64-centos7-gcc8-opt

# --- use a recent version of git
export PATH=/cvmfs/sft.cern.ch/lcg/contrib/git/2.17.0/x86_64-centos7/bin:$PATH


0 comments on commit 653211a

Please sign in to comment.