Repository: spack/spack

Issue:
Installation issue: umpire@develop build failure (RADIUSS Cloud CI)
### Steps to reproduce the issue

RADIUSS Cloud CI is encountering CAMP resource-related failures (building tutorial examples) during the build of umpire@develop%gcc@7.5.0 arch=linux-ubuntu18.04-x86_64.  See https://cdash.spack.io/viewBuildError.php?buildid=162995.

```
...
     180    [ 25%] Building CXX object src/umpire/util/CMakeFiles/umpire_util.d
            ir/MPI.cpp.o
     181    cd /tmp/root/spack-stage/spack-stage-umpire-develop-iqlz5ubwevprvwc
            avmuimbinaa6bqljh/spack-build-iqlz5ub/src/umpire/util && /builds/sp
            ack/spack/lib/spack/env/gcc/g++  -I/home/software/radiuss/__spack_p
            ath_placeholder__/__spack_path_placeholder__/__spack_path_placehold
            er__/__spack_path_placeholder__/__spack_path_placeholder__/__spack_
            path_placeholder__/__spack_path_placeholder__/__spack_path_placehol
            der__/__spack_path_placeholder__/__spack_path_placeholder__/__spack
            _path_placeholder__/__spack_path_placeholder__/__spack_path_placeho
            lder__/__spack_path_placeholder__/__spack_path_placeholder__/__spac
            k_path_placeholder__/__spack_path_placeholder__/__spack_path_placeh
            older__/__s/linux-ubuntu18.04-x86_64/gcc-7.5.0/camp-0.1.0-kblcdklsc
            vi7fnwcght5dhyjq5omzu5v/include -I/tmp/root/spack-stage/spack-stage
            -umpire-develop-iqlz5ubwevprvwcavmuimbinaa6bqljh/spack-src/src -I/t
            mp/root/spack-stage/spack-stage-umpire-develop-iqlz5ubwevprvwcavmui
            mbinaa6bqljh/spack-build-iqlz5ub/include -Wpedantic       -Wall -We
            xtra  -O2 -g -DNDEBUG -fPIC -std=c++11 -MD -MT src/umpire/util/CMak
            eFiles/umpire_util.dir/MPI.cpp.o -MF CMakeFiles/umpire_util.dir/MPI
            .cpp.o.d -o CMakeFiles/umpire_util.dir/MPI.cpp.o -c /tmp/root/spack
            -stage/spack-stage-umpire-develop-iqlz5ubwevprvwcavmuimbinaa6bqljh/
            spack-src/src/umpire/util/MPI.cpp
     182    /tmp/root/spack-stage/spack-stage-umpire-develop-iqlz5ubwevprvwcavm
            uimbinaa6bqljh/spack-src/src/umpire/op/MemoryOperation.cpp: In memb
            er function 'virtual camp::resources::v1::EventProxy<camp::resource
            s::v1::Resource> umpire::op::MemoryOperation::transform_async(void*
            , void**, umpire::util::AllocationRecord*, umpire::util::Allocation
            Record*, std::size_t, camp::resources::v1::Resource&)':
  >> 183    /tmp/root/spack-stage/spack-stage-umpire-develop-iqlz5ubwevprvwcavm
            uimbinaa6bqljh/spack-src/src/umpire/op/MemoryOperation.cpp:29:68: e
            rror: no matching function for call to 'camp::resources::v1::EventP
            roxy<camp::resources::v1::Resource>::EventProxy(<brace-enclosed ini
            tializer list>)'
     184       return camp::resources::EventProxy<camp::resources::Resource>{ct
            x};
     185                                                                       
             ^
     186    In file included from /tmp/root/spack-stage/spack-stage-umpire-deve
            lop-iqlz5ubwevprvwcavmuimbinaa6bqljh/spack-src/src/umpire/op/Memory
            Operation.hpp:12:0,
     187                     from /tmp/root/spack-stage/spack-stage-umpire-deve
            lop-iqlz5ubwevprvwcavmuimbinaa6bqljh/spack-src/src/umpire/op/Memory
            Operation.cpp:7:
     188    /home/software/radiuss/__spack_path_placeholder__/__spack_path_plac
            eholder__/__spack_path_placeholder__/__spack_path_placeholder__/__s
            pack_path_placeholder__/__spack_path_placeholder__/__spack_path_pla
            ceholder__/__spack_path_placeholder__/__spack_path_placeholder__/__
            spack_path_placeholder__/__spack_path_placeholder__/__spack_path_pl
            aceholder__/__spack_path_placeholder__/__spack_path_placeholder__/_
            _spack_path_placeholder__/__spack_path_placeholder__/__spack_path_p
            laceholder__/__spack_path_placeholder__/__s/linux-ubuntu18.04-x86_6
            4/gcc-7.5.0/camp-0.1.0-kblcdklscvi7fnwcght5dhyjq5omzu5v/include/cam
            p/resource.hpp:165:5: note: candidate: camp::resources::v1::EventPr
            oxy<Res>::EventProxy(Res*) [with Res = camp::resources::v1::Resourc
            e]
     189         EventProxy(Res* r) :

     ...

     191    /home/software/radiuss/__spack_path_placeholder__/__spack_path_plac
            eholder__/__spack_path_placeholder__/__spack_path_placeholder__/__s
            pack_path_placeholder__/__spack_path_placeholder__/__spack_path_pla
            ceholder__/__spack_path_placeholder__/__spack_path_placeholder__/__
            spack_path_placeholder__/__spack_path_placeholder__/__spack_path_pl
            aceholder__/__spack_path_placeholder__/__spack_path_placeholder__/_
            _spack_path_placeholder__/__spack_path_placeholder__/__spack_path_p
            laceholder__/__spack_path_placeholder__/__s/linux-ubuntu18.04-x86_6
            4/gcc-7.5.0/camp-0.1.0-kblcdklscvi7fnwcght5dhyjq5omzu5v/include/cam
            p/resource.hpp:165:5: note:   no known conversion for argument 1 fr
            om 'camp::resources::v1::Resource' to 'camp::resources::v1::Resourc
            e*'
     192    /home/software/radiuss/__spack_path_placeholder__/__spack_path_plac
            eholder__/__spack_path_placeholder__/__spack_path_placeholder__/__s
            pack_path_placeholder__/__spack_path_placeholder__/__spack_path_pla
            ceholder__/__spack_path_placeholder__/__spack_path_placeholder__/__
            spack_path_placeholder__/__spack_path_placeholder__/__spack_path_pl
            aceholder__/__spack_path_placeholder__/__spack_path_placeholder__/_
            _spack_path_placeholder__/__spack_path_placeholder__/__spack_path_p
            laceholder__/__spack_path_placeholder__/__s/linux-ubuntu18.04-x86_6
            4/gcc-7.5.0/camp-0.1.0-kblcdklscvi7fnwcght5dhyjq5omzu5v/include/cam
            p/resource.hpp:160:5: note: candidate: constexpr camp::resources::v
            1::EventProxy<Res>::EventProxy(camp::resources::v1::EventProxy<Res>
            &&) [with Res = camp::resources::v1::Resource]
     193         EventProxy(EventProxy &&) = default;
     194         ^~~~~~~~~~
...
```


### Information on your system

Reporting results from Spack Cloud CI so see above snippets for a bit more information, which ran on the `uo-delphi` runner. Hopefully the links will stay around a while.

### Additional information

@davidbeckingsale 

[spack-build-out.txt](https://github.com/spack/spack/files/6958332/spack-build-out.txt)
[umpire.yaml.txt](https://github.com/spack/spack/files/6958334/umpire.yaml.txt)

Note: I am selecting check boxes in "General Information" where the roughly equivalent information is (hopefully) provided by alternative file(s)/links.

### General information

- [X] I have run `spack debug report` and reported the version of Spack/Python/Platform
- [X] I have run `spack maintainers <name-of-the-package>` and **@mentioned** any maintainers
- [X] I have uploaded the build log and environment files
- [X] I have searched the issues of this repo and believe this is not a duplicate


Discussion:
This should work building against `camp@master`.

Resolving patch:
diff --git a/var/spack/repos/builtin/packages/umpire/package.py b/var/spack/repos/builtin/packages/umpire/package.py
--- a/var/spack/repos/builtin/packages/umpire/package.py
+++ b/var/spack/repos/builtin/packages/umpire/package.py
@@ -74,6 +74,7 @@ class Umpire(CMakePackage, CudaPackage, ROCmPackage):
         depends_on('camp amdgpu_target=%s' % val, when='amdgpu_target=%s' % val)
 
     depends_on('camp')
+    depends_on('camp@master', when='@develop')
     depends_on('camp+cuda', when='+cuda')
     for sm_ in CudaPackage.cuda_arch_values:
         depends_on('camp cuda_arch={0}'.format(sm_),


Test patch: