serac: Problem with building serac
I’m trying to build serac on my computer. I get the following Checksum error both in building developer’s tools and dependencies.
Error: ChecksumError: sha256 checksum failed for /home/saman/serac/uberenv_libs/builds/spack-stage-rz4d952n/4075.patch
and follows by
Expected 3387faf4a71efe81c0fa17410b270ca7d352081ac88d2322df3da9bb6a6a3f2d but got 42d8b2163a2f37a745800ec13a96c08a3a20d5e67af51031e51f63313d0dedd1
/home/saman/serac/uberenv_libs/spack/lib/spack/spack/package.py:1088, in do_fetch:
1085
1086 self.stage.cache_local()
1087
>> 1088 for patch in self.spec.patches:
1089 patch.fetch(self.stage)
1090 if patch.cache():
1091 patch.cache().cache_local()
anyone knows how to resolve this? Thanks.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 17 (11 by maintainers)
You don’t have to build mfem through our suggested way but this is the way we have vetted and recommend. If you wish to do everything yourself you can just point your already built mfem to our cmake system with defining MFEM_DIR. This can be done with either ./config-build.py or running cmake directly with -DMFEM_DIR=<path/to/mfem/install>.
If you go this way you will need to define other cmake variables that are output by the serac spack package in our host-configs. You can see examples of them in host-configs/
@samuelpmish Yes that is correct I had the
cmake
problem. I did try bunch of these things and it seems to be working now! I’ll build it in my other machine (also ubuntu 18.04) again to make sure this is resolved. My question is why there is a need to pull aspack
instance for serac seperately? I already havespack
(for buildingmfem
with bunch of its libraries). I have two spacks and two mfems now and so many other libraries. What am I missing here?@samuelpmish It must have been, a long time ago 😅.
spack clean
replaced it indeed.On my machine, your error comes from trying to install cmake@3.15.5:
but after checking out a more recent version of spack (from bump_spack_version branch project.json)
it can handle cmake@3.15.5 successfully
What worked for me was to delete the old version of spack, use the project.json with a more recent version and try building again.
@adrienbernede ‘purge’ doesn’t seem to be a spack command, is
clean
the same thing?