Skip to content

Instantly share code, notes, and snippets.

mac setup
https://medium.com/crowdbotics/a-complete-one-by-one-guide-to-install-docker-on-your-mac-os-using-homebrew-e818eb4cfc3
brew install docker docker-machine
brew cask install virtualbox
-> need password
-> possibly need to address System Preference setting
# first time
docker-machine create --driver virtualbox default
Command for CondFormats
/cvmfs/cms-ib.cern.ch/nweek-02642/slc7_amd64_gcc820/lcg/root/6.23.01-ninmko2/bin/rootcling -reflex -f tmp/slc7_amd64_gcc820/src/CondFormats/SiPhase2TrackerObjects/src/CondFormatsSiPhase2TrackerObjects/a/CondFormatsSiPhase2TrackerObjects_xr.cc -s tmp/slc7_amd64_gcc820/src/CondFormats/SiPhase2TrackerObjects/src/CondFormatsSiPhase2TrackerObjects/a/libCondFormatsSiPhase2TrackerObjects.so -cxxmodule -failOnWarnings -DCMS_DICT_IMPL -D_REENTRANT -DGNUSOURCE -D__STRICT_ANSI__ -moduleMapFile=/build/dlange/CMSSW_11_2_CXXMODULE_X_2020-08-20-2300/include/slc7_amd64_gcc820/cxxmodules/module.modulemap -moduleMapFile=/cvmfs/cms-ib.cern.ch/nweek-02642/slc7_amd64_gcc820/external/clhep/2.4.1.3-ninmko/include/module.modulemap -moduleMapFile=/cvmfs/cms-ib.cern.ch/nweek-02642/slc7_amd64_gcc820/external/boost/1.72.0-ninmko/include/boost/boost.modulemap -DGNU_GCC -D_GNU_SOURCE -DEIGEN_DONT_PARALLELIZE -DTBB_USE_GLIBCXX_VERSION=80400 -DTBB_SUPPRESS_DEPRECATED_MESSAGES -DBOOST_SPIRIT_THREADSAFE -DPHOENIX_THRE
>> Building LCG reflex dict from header file src/DataFormats/L1TCorrelator/src/classes.h
/build/dlange/slc7_amd64_gcc820/lcg/root/6.23.01-ninmko2/bin/genreflex src/DataFormats/L1TCorrelator/src/classes.h -s src/DataFormats/L1TCorrelator/src/classes_def.xml -o tmp/slc7_amd64_gcc820/src/DataFormats/L1TCorrelator/src/DataFormatsL1TCorrelator/a/DataFormatsL1TCorrelator_xr.cc --fail_on_warnings --rootmap=tmp/slc7_amd64_gcc820/src/DataFormats/L1TCorrelator/src/DataFormatsL1TCorrelator/a/DataFormatsL1TCorrelator_xr.rootmap --rootmap-lib=libDataFormatsL1TCorrelator.so -DCMS_DICT_IMPL -D_REENTRANT -DGNUSOURCE -D__STRICT_ANSI__ -DGNU_GCC -D_GNU_SOURCE -DEIGEN_DONT_PARALLELIZE -DTBB_USE_GLIBCXX_VERSION=80400 -DTBB_SUPPRESS_DEPRECATED_MESSAGES -DBOOST_SPIRIT_THREADSAFE -DPHOENIX_THREADSAFE -DBOOST_MATH_DISABLE_STD_FPCLASSIFY -DBOOST_UUID_RANDOM_PROVIDER_FORCE_POSIX -DCMSSW_GIT_HASH="CMSSW_11_2_CXXMODULE_X_2020-07-30-2300" -DPROJECT_NAME="CMSSW" -DPROJECT_VERSION="CMSSW_11_2_CXXMODULE_X_2020-07-30-2300-cms" -I/build/dlang
===========================================================
There was a crash (kSigSegmentationViolation).
This is the entire stack trace of all threads:
===========================================================
#0 0x00007fd144ec446c in waitpid () from /lib64/libc.so.6
#1 0x00007fd144e41f62 in do_system () from /lib64/libc.so.6
#2 0x00007fd14498a3e4 in TUnixSystem::Exec (this=0x18b7fd0, shellcmd=0x2eabd40 "/build/dlange/200723t2/slc7_amd64_gcc820/lcg/root/6.23.01-cms3/etc/gdb-backtrace.sh 27557 1>&2") at /build/dlange/200723t2/BUILD/slc7_amd64_gcc820/lcg/root/6.23.01-cms3/root-6.23.01/core/unix/src/TUnixSystem.cxx:2120
#3 0x00007fd14498ac3d in TUnixSystem::StackTrace (this=0x18b7fd0) at /build/dlange/200723t2/BUILD/slc7_amd64_gcc820/lcg/root/6.23.01-cms3/root-6.23.01/core/unix/src/TUnixSystem.cxx:2411
#4 0x00007fd14498e51a in TUnixSystem::DispatchSignals (this=0x18b7fd0, sig=kSigSegmentationViolation) at /build/dlange/200723t2/BUILD/slc7_amd64_gcc820/lcg/root/6.23.01-cms3/root-6.23.01/core/unix/src/TUn
Turning on the module for PhysicsTools/Utilities gives these messages. PhysicsTools/Utils/interface/Selector.h is used no where in CMSSW (eg, its just an include file in the interface directory)
/data/cmsbld/jenkins/workspace/build-any-ib/w/slc7_amd64_gcc820/lcg/root/6.23.01-ninmko/bin/rootcling -reflex -f tmp/slc7_amd64_gcc820/src/PhysicsTools/Utilities/src/PhysicsToolsUtilities/a/PhysicsToolsUtilities_xr.cc -s tmp/slc7_amd64_gcc820/src/PhysicsTools/Utilities/src/PhysicsToolsUtilities/a/libPhysicsToolsUtilities.so -cxxmodule -failOnWarnings -DCMS_DICT_IMPL -D_REENTRANT -DGNUSOURCE -D__STRICT_ANSI__ -moduleMapFile=/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/59e2175581acb89be2c636234dc6bc40/opt/cmssw/slc7_amd64_gcc820/cms/cmssw/CMSSW_11_2_CXXMODULE_X_2020-07-22-2300/include/slc7_amd64_gcc820/cxxmodules/module.modulemap -moduleMapFile=/data/cmsbld/jenkins/workspace/build-any-ib/w/slc7_amd64_gcc820/external/clhep/2.4.1.3-ninmko/include/module.modulemap -DGNU_GCC -D_GNU_SOURCE -DEIGEN_DONT_PARALL
wait4(31695, Info in <TROOT::InitSystem>: running with gDebug = 3
dynpath = /build/dlange/200717/slc7_amd64_gcc820/lcg/root/6.23.01-cms/lib:/build/dlange/200717/tmp/BUILDROOT/706025cd8180617bcb4d83e050e52bd1/opt/cmssw/slc7_amd64_gcc820/cms/cmssw/CMSSW_11_2_CXXMODULE_X_2020-07-16-2300-cms3/biglib/slc7_amd64_gcc820:/build/dlange/200717/tmp/BUILDROOT/706025cd8180617bcb4d83e050e52bd1/opt/cmssw/slc7_amd64_gcc820/cms/cmssw/CMSSW_11_2_CXXMODULE_X_2020-07-16-2300-cms3/lib/slc7_amd64_gcc820:/build/dlange/200717/tmp/BUILDROOT/706025cd8180617bcb4d83e050e52bd1/opt/cmssw/slc7_amd64_gcc820/cms/cmssw/CMSSW_11_2_CXXMODULE_X_2020-07-16-2300-cms3/external/slc7_amd64_gcc820/lib:/build/dlange/200717/slc7_amd64_gcc820/external/llvm/10.0.0-ghbfee/lib64:/build/dlange/200717/slc7_amd64_gcc820/external/gcc/8.2.0-bcolbf/lib64:/build/dlange/200717/slc7_amd64_gcc820/external/gcc/8.2.0-bcolbf/lib:/build/dlange/200717/slc7_amd64_gcc820/external/cuda/11.0.1/drivers:.:/build/dlange/200717/slc7_amd64_gcc820/lcg/root/6.23.01-cms/lib:/lib64/tl
setenv ARCH slc7_amd64_gcc820
setenv PKGTOOLS_TAG V00-32-XX
setenv CMSDIST_TAG IB/CMSSW_11_2_X/rootmodule
git clone -b $CMSDIST_TAG git@github.com:cms-sw/cmsdist.git CMSDIST ; git clone -b $PKGTOOLS_TAG git@github.com:cms-sw/pkgtools.git PKGTOOLS
add this patch
--- a/boost-toolfile.spec
+++ b/boost-toolfile.spec
#!/usr/bin/env python
# usage
# edm_pset_tweak.py --input_pkl RunPromptRecoCfg.pkl --output_pkl ouput.pkl --json tweaks.json
#
# tweaks.json can be
# [{ "process.maxEvents.input" : 100}]
# or
# { "process.maxEvents.input" : 100}
# or
# [{ "maxEvents.input" : 100}]
>> Local Products Rules ..... started
>> Local Products Rules ..... done
>> Building CMSSW version CMSSW_11_2_CXXMODULE_X_2020-07-06-2300 ----
>> Entering Package DataFormats/TrackerRecHit2D
>> Creating project symlinks
>> Compiling /build/dlange/200706/CMSSW_11_2_CXXMODULE_X_2020-07-06-2300/src/DataFormats/TrackerRecHit2D/test/mayown_t.cpp
Entering library rule at DataFormats/TrackerRecHit2D
>> Searching already included headers in src/DataFormats/TrackerRecHit2D/src/classes.h
>> Searching all header under DataFormats/TrackerRecHit2D/interface
>> Adding remaining headers in src/DataFormats/TrackerRecHit2D/src/classes.h
>> Checking EDM Class Version for src/FWCore/MessageLogger/src/classes_def.xml in libFWCoreMessageLogger.so
Error in <TCling::RegisterModule>: Dictionary trigger function for libCore not found
cling::DynamicLibraryManager::loadLibrary(): libtbb.so.2: cannot open shared object file: No such file or directory
Error in <TCling__LazyFunctionCreatorAutoloadForModule>: Failed to load library /build/dlange/200706/tmp/BUILDROOT/3f2f69dc0032496dbf039f4e72d960a9/opt/cmssw/slc7_amd64_gcc820/cms/cmssw/CMSSW_11_2_CXXMODULE_X_2020-07-06-2300/lib/slc7_amd64_gcc820/libFWCoreMessageLogger.so
python: /data/cmsbld/jenkins/workspace/build-any-ib/w/BUILD/slc7_amd64_gcc820/lcg/root/6.23.01-ninmko3/root-6.23.01/interpreter/cling/lib/Interpreter/DynamicLibraryManagerSymbol.cpp:745: std::__cxx11::string cling::Dyld::searchLibrariesForSymbol(const string&, bool): Assertion `!llvm::sys::DynamicLibrary::SearchForAddressOfSymbol(mangledName) && "Library already loaded, please use dlsym!"' failed.
*** Break *** abort
=================