Spack error while installing HPCToolkit

92 views
Skip to first unread message

Mohit Singh

unread,
Aug 19, 2021, 6:18:57 AM8/19/21
to Spack

Hello,
I am working on HPC linux-based x86_64 centos 7 system.

$spack compiler list

 Available compilers
-- gcc centos7-x86_64 -------------------------------------------
g...@8.3.0  g...@4.8.5

-- intel centos7-x86_64 -----------------------------------------
in...@19.1.2.254  in...@18.0.5

$ spack compiler info intel

Output:-

in...@18.0.5:
    paths:
        cc = /opt/ohpc/pub/apps/intel/2018/compilers_and_libraries_2018.5.274/linux/bin/intel64/icc
        cxx = /opt/ohpc/pub/apps/intel/2018/compilers_and_libraries_2018.5.274/linux/bin/intel64/icpc
        f77 = /opt/ohpc/pub/apps/intel/2018/compilers_and_libraries_2018.5.274/linux/bin/intel64/ifort
        fc = /opt/ohpc/pub/apps/intel/2018/compilers_and_libraries_2018.5.274/linux/bin/intel64/ifort
    modules  = []
    operating system  = centos7
in...@19.1.2.254:
    paths:
        cc = /opt/ohpc/pub/apps/intel/2020/compilers_and_libraries_2020.2.254/linux/bin/intel64/icc
        cxx = /opt/ohpc/pub/apps/intel/2020/compilers_and_libraries_2020.2.254/linux/bin/intel64/icpc
        f77 = /opt/ohpc/pub/apps/intel/2020/compilers_and_libraries_2020.2.254/linux/bin/intel64/ifort
        fc = /opt/ohpc/pub/apps/intel/2020/compilers_and_libraries_2020.2.254/linux/bin/intel64/ifort
    modules  = []
    operating system  = centos7

spack compiler info gcc
 
Output:-
g...@4.8.5:
    paths:
        cc = /usr/bin/gcc
        cxx = /usr/bin/g++
        f77 = /usr/bin/gfortran
        fc = /usr/bin/gfortran
    modules  = []
    operating system  = centos7
g...@8.3.0:
    paths:
        cc = /opt/ohpc/pub/compiler/gcc/8.3.0/bin/gcc
        cxx = /opt/ohpc/pub/compiler/gcc/8.3.0/bin/g++
        f77 = /opt/ohpc/pub/compiler/gcc/8.3.0/bin/gfortran
        fc = /opt/ohpc/pub/compiler/gcc/8.3.0/bin/gfortran
    modules  = []
    operating system  = centos7


So, when I try to install hpctoolkit
1. $ spack install --only dependencies hpctoolkit%g...@8.3.0 ,it works fine.

2. $ spack install --only dependencies hpctoolkit%in...@19.1.2254, it gives error:

Error: Conflicts in concretized spec "hpcto...@2021.05.15%in...@19.1.2.254~all-static~cray~cuda~debug~mpi+papi~rocm+viewer arch=linux-centos7-cascadelake/r6cwvlq"
List of matching conflicts for spec:

    dyn...@11.0.1%in...@19.1.2.254~ipo+openmp~stat_dysect~static build_type=RelWithDebInfo arch=linux-centos7-cascadelake
        ^bo...@1.72.0%in...@19.1.2.254+atomic+chrono~clanglibcpp~container~context~coroutine+date_time~debug+exception~fiber+filesystem+graph~icu~iostreams+locale+log+math~mpi+multithreaded~numpy~pic+program_options~python+random+regex+serialization+shared+signals~singlethreaded+system~taggedlayout+test+thread+timer~versionedlayout+wave cxxstd=98 patches=e13cca1cfad7dcce9ed3d4ef989c14e464c4ea00caaf335f762e3677b35cab61 visibility=global arch=linux-centos7-cascadelake
        ^cm...@3.21.1%in...@19.1.2.254~doc+ncurses+openssl+ownlibs~qt build_type=Release arch=linux-centos7-cascadelake
            ^ncurses@6.2%in...@19.1.2.254~symlinks+termlib abi=none arch=linux-centos7-cascadelake
                ^pkg...@1.7.4%in...@19.1.2.254 arch=linux-centos7-cascadelake
            ^ope...@1.1.1k%in...@19.1.2.254~docs+systemcerts arch=linux-centos7-cascadelake
                ^pe...@5.34.0%in...@19.1.2.254+cpanm+shared+threads arch=linux-centos7-cascadelake
                    ^berke...@18.1.40%in...@19.1.2.254+cxx~docs+stl patches=b231fcc4d5cff05e5c3a4814f6a5af0e9a966428dc2176540d2c05aff41de522 arch=linux-centos7-cascadelake
                    ^bz...@1.0.8%in...@19.1.2.254~debug~pic+shared arch=linux-centos7-cascadelake
                        ^diffutils@3.7%in...@19.1.2.254 arch=linux-centos7-cascadelake
                            ^libi...@1.16%in...@19.1.2.254 libs=shared,static arch=linux-centos7-cascadelake
                    ^gd...@1.19%in...@19.1.2.254 arch=linux-centos7-cascadelake
                        ^readline@8.1%in...@19.1.2.254 arch=linux-centos7-cascadelake
                    ^zl...@1.2.11%in...@19.1.2.254+optimize+pic+shared arch=linux-centos7-cascadelake
        ^elfu...@0.185%in...@19.1.2.254+bzip2~debuginfod~nls+xz arch=linux-centos7-cascadelake
            ^m...@1.4.19%in...@19.1.2.254+sigsegv arch=linux-centos7-cascadelake
                ^libsi...@2.13%in...@19.1.2.254 arch=linux-centos7-cascadelake
            ^x...@5.2.5%in...@19.1.2.254+pic libs=shared,static arch=linux-centos7-cascadelake
        ^intel-tbb@2020.3%in...@19.1.2.254+shared+tm cxxstd=default patches=62ba015ebd1819c45bef47411540b789b493e31ca668c4ff4cb2afcbc306b476,ce1fb16fb932ce86a82ca87cf0431d1a8c83652af9f552b264213b2ff2945d73,d62cb666de4010998c339cde6f41c7623a07e9fc69e498f2e149821c0c2c6dd0 arch=linux-centos7-cascadelake
        ^libi...@2.33.1%in...@19.1.2.254+pic arch=linux-centos7-cascadelake

1. "%intel" conflicts with "dyninst"


Please help me regarding this matter , how to install hpctoolkit by using intel compiler.

Thanks,
Mohit Kumar

Marc Mengel

unread,
Aug 19, 2021, 9:50:35 AM8/19/21
to Mohit Singh, Spack
So if you look at the recipe for dyninst; (spack edit dyninst) it says:
    # We currently only build with gcc
    conflicts('%clang')
    conflicts('%arm')
    conflicts('%cce')
    conflicts('%fj')
    conflicts('%intel')
    conflicts('%pgi')
    conflicts('%xl')
    conflicts('%xl_r')

You could try telling it specifically to build dyninst with gcc and everything else with intel; you would need to
list the dependencies of dyinst (boost, libiberty, elfutils/libelf, libdwarf...) to do this:

 spack install --only dependencies hpctoolkit%in...@19.1.2254 \
            ^dyninst%gcc \
            ^boost%in...@19.1.2254 \
            ^libiberty%in...@19.1.2254 \
            ...
Marc


--
You received this message because you are subscribed to the Google Groups "Spack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spack+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/spack/cf32c70d-19e1-47f2-96b5-bdfa64a1fbcdn%40googlegroups.com.

Marc Mengel

unread,
Aug 19, 2021, 9:57:49 AM8/19/21
to Mohit Singh, Spack
Although.. if you look at the docs:

"Building HPCToolkit requires GNU gcc/g++ version 7.3 or later. "  

So I don't know if even a mixed build will work.

Mohit Singh

unread,
Aug 19, 2021, 10:09:47 AM8/19/21
to Spack
Thanks marc for helping me out. I will post whether the following works or not in couple of hours.


Mohit
Reply all
Reply to author
Forward
0 new messages