Issues with spack on centos 7

Hi,

I was trying to install precice using spack on centOS7. This is a better option as I don’t have sudo rights on this machine. I get following error when I use spack install precice

==> Warning: gcc@4.8.5 cannot build optimized binaries for “broadwell”. Using best target possible: “haswell”
==> Error: Conflicts in concretized spec “precice@2.1.1%gcc@4.8.5~ipo+mpi+petsc~python+shared build_type=RelWithDebInfo arch=linux-centos7-haswell/ad3eidj”
List of matching conflicts for spec:

precice@2.1.1%gcc@4.8.5~ipo+mpi+petsc~python+shared build_type=RelWithDebInfo arch=linux-centos7-haswell
    ^boost@1.74.0%gcc@4.8.5+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 visibility=hidden arch=linux-centos7-haswell
        ^bzip2@1.0.6%gcc@4.8.5+shared arch=linux-centos7-haswell
        ^zlib@1.2.11%gcc@4.8.5+optimize+pic+shared arch=linux-centos7-haswell
    ^cmake@3.18.4%gcc@4.8.5~doc+ncurses+openssl+ownlibs~qt patches=bf695e3febb222da2ed94b3beea600650e4318975da90e4a71d6f31a6d5d8c3d arch=linux-centos7-haswell
    ^eigen@3.3.8%gcc@4.8.5~ipo build_type=RelWithDebInfo patches=62590e9b33a8f72b608a72b87147a306e7cb20766ea53c6b8e0a183fa6cb7635 arch=linux-centos7-haswell
    ^libxml2@2.9.10%gcc@4.8.5~python arch=linux-centos7-haswell
        ^libiconv@1.16%gcc@4.8.5 arch=linux-centos7-haswell
        ^pkg-config@0.27.1%gcc@4.8.5+internal_glib patches=49ffcd644e190dc5efcb2fab491177811ea746c1a526f75d77118c2706574358 arch=linux-centos7-haswell
        ^xz@5.2.2%gcc@4.8.5~pic arch=linux-centos7-haswell
    ^openmpi@3.1.6%gcc@4.8.5~atomics~cuda~cxx~cxx_exceptions+gpfs~java~legacylaunchers~lustre~memchecker~pmi~singularity~sqlite3+static~thread_multiple+vt+wrapper-rpath fabrics=none schedulers=none arch=linux-centos7-haswell
        ^hwloc@1.11.11%gcc@4.8.5~cairo~cuda~gl~libudev+libxml2~netloc~nvml+pci+shared arch=linux-centos7-haswell
            ^libpciaccess@0.16%gcc@4.8.5 arch=linux-centos7-haswell
                ^libtool@2.4.2%gcc@4.8.5 arch=linux-centos7-haswell
                ^util-macros@1.19.1%gcc@4.8.5 arch=linux-centos7-haswell
            ^numactl@2.0.14%gcc@4.8.5 patches=4e1d78cbbb85de625bad28705e748856033eaafab92a66dffd383a3d7e00cc94 arch=linux-centos7-haswell
                ^autoconf@2.69%gcc@4.8.5 arch=linux-centos7-haswell
                ^automake@1.13.4%gcc@4.8.5 arch=linux-centos7-haswell
                ^m4@1.4.16%gcc@4.8.5+sigsegv arch=linux-centos7-haswell
    ^petsc@3.14.1%gcc@4.8.5~X~batch~cgns~complex~cuda~debug+double~exodusii~fftw~giflib+hdf5+hypre~int64~jpeg~knl~libpng~libyaml~memkind+metis~moab~mpfr+mpi~mumps~p4est~random123~saws+shared~suite-sparse+superlu-dist~trilinos~valgrind clanguage=C arch=linux-centos7-haswell
        ^diffutils@3.3%gcc@4.8.5 arch=linux-centos7-haswell
        ^hdf5@1.10.7%gcc@4.8.5~cxx~debug~fortran~hl~java+mpi+pic+shared~szip~threadsafe api=none arch=linux-centos7-haswell
        ^hypre@2.20.0%gcc@4.8.5~complex~debug~int64~internal-superlu~mixedint+mpi~openmp+shared~superlu-dist patches=6e3336b1d62155f6350dfe42b0f9ea25d4fa0af60c7e540959139deb93a26059 arch=linux-centos7-haswell
            ^openblas@0.3.12%gcc@4.8.5~consistent_fpcsr~ilp64+pic+shared threads=none arch=linux-centos7-haswell
        ^metis@5.1.0%gcc@4.8.5~gdb~int64~real64+shared build_type=Release patches=4991da938c1d3a1d3dea78e49bbebecba00273f98df2a656e38b83d55b281da1 arch=linux-centos7-haswell
        ^parmetis@4.0.3%gcc@4.8.5~gdb~int64~ipo+shared build_type=RelWithDebInfo patches=4f892531eb0a807eb1b82e683a416d3e35154a455274cf9b162fb02054d11a5b,50ed2081bc939269689789942067c58b3e522c269269a430d5d34c00edbc5870,704b84f7c7444d4372cb59cca6e1209df4ef3b033bc4ee3cf50f369bce972a9d arch=linux-centos7-haswell
        ^python@3.6.6%gcc@4.8.5~bz2+ctypes+dbm~debug+libxml2~lzma+nis~optimizations+pic+pyexpat+pythoncmd+readline+shared~sqlite3+ssl+tix+tkinter~ucs4+uuid+zlib arch=linux-centos7-haswell
        ^superlu-dist@6.4.0%gcc@4.8.5~cuda~int64~ipo~openmp+shared build_type=RelWithDebInfo cuda_arch=none arch=linux-centos7-haswell
  1. “%gcc@:4” conflicts with “precice”

If I avoid non-essential dependencies as mentioned in the website, then I get following error:
==> Error: trying to set variants “fftw, metis, mpfr, scotch, or suitesparse” in package “eigen”, but the package has no such variants [happened during concretization of precice ^boost@1.65.1~atomic~chrono~date_time~exception~graph~iostreams~locale~math~random~regex~serialization~signals~timer~wave ^cmake@3.5: ^eigen@3.3.1~fftw~metis~mpfr~scotch~suitesparse]

I am unable to comprehend anything from these error messages.
I would appreciate if you can help me by providing a list of things I am supposed to check and do for successful installation.

Thanks,
T

Spack is trying to build preCICE with (your default?) GCC 4.8.5. This compiler is too old to support all the C++ features that preCICE needs. preCICE requires at least GCC 5 (full C++11 support, to be raised to C++14 in preCICE v2.2).

Do you maybe have any other compilers to try?

Thanks for your prompt reply @MakisH.
Unfortunately, there are no other compilers to try on that workstation.

Just a suggestion if it helps.
The information on GCC and C++ requirements for precice installation via spack may be included in the website?

Regards,
T

If there are no newer compilers and if your administrators cannot install a newer compiler for you (GCC 4.8.5 is really old by now), you can always ask Spack to add a new compiler or to let it build the compiler for you: https://spack.readthedocs.io/en/latest/getting_started.html#compiler-configuration

Such suggestions indeed help! I am not adding something right now because we will very soon finish porting our documentation to another system. But I will keep this in mind and try to improve it. :slight_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.