Skip to content

Adding clang, gcc9, and other developers' tools into spack externals

Pengfei Ding edited this page May 3, 2022 · 2 revisions

Start up docker container

On np04-srv-014.cern.ch, where spack-externals had been prepared under $LOCAL_CVMFS_DUNEDAQ.

# if you are not the owner of `/scratch/dingpf` directory. :)
export LOCAL_CVMFS_DUNEDAQ=/scratch/dingpf/docker-scratch/cvmfs_dunedaq

docker run --rm -it --net=host \
-v $LOCAL_CVMFS_DUNEDAQ:/cvmfs/dunedaq.opensciencegrid.org \
dunedaq/sl7-minimal:spack

setup existing spack-externals instance

export http_proxy=http://np04-web-proxy.cern.ch:3128
export https_proxy=http://np04-web-proxy.cern.ch:3128

export SPACK_EXTERNALS=/cvmfs/dunedaq.opensciencegrid.org/spack-externals
cd $SPACK_EXTERNALS
source spack-0.17.1/share/spack/setup-env.sh
spack install --reuse llvm%[email protected]
spack install --reuse cppcheck%[email protected]