spack: Cannot Install Charm With Spack 0.10.0

Hi

I cannot get charm to install.

The error:

==> Installing charm
==> Using cached archive: /pbtech_mounts/softlib001/apps/EL6/spack/var/spack/cache/charm/charm-6.7.1.tar.gz
==> Already staged charm-6.7.1-jhvopm2ldu3fi7xzinba4b2zbm472feo in /pbtech_mounts/softlib001/apps/EL6/spack/var/spack/stage/charm-6.7.1-jhvopm2ldu3fi7xzinba4b2zbm472feo
==> Already patched charm
==> Building charm [Package]
==> Executing phase : 'install'
==> Error: InstallError: Exactly one communication mechanism (+mpi, +multicore, +net, +netlrts, or +verbs) must be enabled

Though I am doing

spack install charm -smp -mpi +multicore %gcc@6.3.0

Which seems correct given

[god@heavenl ~]# spack info charm
Package:    charm
Homepage:   http://charmplusplus.org

Safe versions:  
    6.7.1    http://charm.cs.illinois.edu/distrib/charm-6.7.1.tar.gz
    6.7.0    http://charm.cs.illinois.edu/distrib/charm-6.7.0.tar.gz
    6.6.1    http://charm.cs.illinois.edu/distrib/charm-6.6.1.tar.gz
    6.6.0    http://charm.cs.illinois.edu/distrib/charm-6.6.0.tar.gz
    6.5.1    http://charm.cs.illinois.edu/distrib/charm-6.5.1.tar.gz

Variants:
    Name         Default   Description

    mpi          on        Use MPI as communication mechanism
    multicore    off       Disable inter-node communication
    net          off       Use net communication mechanism
    netlrts      on        Use netlrts communication mechanism
    papi         off       Enable PAPI integration
    smp          on        Enable SMP parallelism (does not work with +multicore)
    tcp          off       Use TCP as transport mechanism (requires +net)
    verbs        off       Use Infiniband as communication mechanism

Installation Phases:
    install

Build Dependencies:
    mpi  papi

Link Dependencies:
    mpi  papi

Run Dependencies:
    None

Virtual Packages: 
    None

Description:
    Charm++ is a parallel programming framework in C++ supported by an
    adaptive runtime system, which enhances user productivity and allows
    programs to run portably from small multicore computers (your laptop) to
    the largest supercomputers.

Any ideas?

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 24 (24 by maintainers)

Most upvoted comments

Thanks for the tip. I now have gcc 6.3.0 back after following your steps and rebuilding the global compilers.yml under /softlib/apps/EL6/spack/etc/spack/defaults.

Moreover, I was able to install charm with multicore!

Thanks so much for being patient!

@adamjstewart This does not work

[user@theserverl ~]# spack install charm -smp backend=multicore %gcc@6.3.0
==> Error: Package charm has no variant backend!

The variants for charm recently changed in #3865. The correct syntax is now:

$ spack install charm -smp backend=multicore %gcc@6.3.0