There might be conflicts between dependencies. If conflicts are detected, Spack prints a large error message starting with Error: Conflicts in concretized spec
when attempting to execute spack install
or spack spec
. This can likely be remedied by removing optional extensions of dependency packages.
Example:
The following error message was generated both on Ubuntu 18.04 LTS and 19.04 using the command spack spec precice
(Find a solution to the problem below):
Input spec
--------------------------------
precice
Concretized
--------------------------------
==> Error: Conflicts in concretized spec "precice@develop%gcc@7.3.0 build_type=RelWithDebInfo +mpi~petsc~python+shared arch=linux-ubuntu18.04-x86_64 /qhatpnl"
List of matching conflicts for spec:
flex@2.6.4%gcc@7.3.0+lex arch=linux-ubuntu18.04-x86_64
^bison@3.0.5%gcc@7.3.0 arch=linux-ubuntu18.04-x86_64
^diffutils@3.6%gcc@7.3.0 arch=linux-ubuntu18.04-x86_64
^help2man@1.47.4%gcc@7.3.0 arch=linux-ubuntu18.04-x86_64
^gettext@0.19.8.1%gcc@7.3.0+bzip2+curses+git~libunistring+libxml2 patches=9acdb4e73f67c241b5ef32505c9ddf7cf6884ca8ea661692f21dca28483b04b8 +tar+xz arch=linux-ubuntu18.04-x86_64
^bzip2@1.0.6%gcc@7.3.0+shared arch=linux-ubuntu18.04-x86_64
^libxml2@2.9.8%gcc@7.3.0~python arch=linux-ubuntu18.04-x86_64
^pkgconf@1.4.2%gcc@7.3.0 arch=linux-ubuntu18.04-x86_64
^xz@5.2.4%gcc@7.3.0 arch=linux-ubuntu18.04-x86_64
^zlib@1.2.11%gcc@7.3.0+optimize+pic+shared arch=linux-ubuntu18.04-x86_64
^ncurses@6.1%gcc@7.3.0~symlinks~termlib arch=linux-ubuntu18.04-x86_64
^tar@1.30%gcc@7.3.0 arch=linux-ubuntu18.04-x86_64
^perl@5.26.2%gcc@7.3.0+cpanm patches=0eac10ed90aeb0459ad8851f88081d439a4e41978e586ec743069e8b059370ac +shared+threads arch=linux-ubuntu18.04-x86_64
^gdbm@1.14.1%gcc@7.3.0 arch=linux-ubuntu18.04-x86_64
^readline@7.0%gcc@7.3.0 arch=linux-ubuntu18.04-x86_64
^m4@1.4.18%gcc@7.3.0 patches=3877ab548f88597ab2327a2230ee048d2d07ace1062efe81fc92e91b7f39cd00,c0a408fbffb7255fcc75e26bd8edab116fc81d216bfd18b473668b7739a4158e,fc9b61654a3ba1a8d6cd78ce087e7c96366c290bc8d2c299f09828d793b853c8 +sigsegv arch=linux-ubuntu18.04-x86_64
^libsigsegv@2.11%gcc@7.3.0 arch=linux-ubuntu18.04-x86_64
1. "%gcc@7.2.0:" conflicts with "flex@2.6.4"
Solution: The install succeeds when disabling the scotch
option of the eigen
package:
spack install precice ^eigen@3.3.1 -scotch