HDFGroup / HDFGroup/hdf5-iotest
spack spec generated does not included needed g++ compiler dependency
Nobody has claimed this yet.
- Dominant language
- Jupyter Notebook
- Stars
- 13
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
Follow the spack install commands on a brand-new fresh Ubuntu 22.04 system and the spack install fails.
==> Installing berkeley-db-18.1.40-jw4pptioy6o3tcaiz46z7ze6bv3zhfvu
==> No binary for berkeley-db-18.1.40-jw4pptioy6o3tcaiz46z7ze6bv3zhfvu found: installing from source
==> Fetching https://mirror.spack.io/_source-cache/archive/0c/0cecb2ef0c67b166de93732769abdeba0555086d51de1090df325e18ee8da9c8.tar.gz
==> Applied patch /home/noah/spack/var/spack/repos/builtin/packages/berkeley-db/drop-docs.patch
==> Applied patch /home/noah/spack/var/spack/repos/builtin/packages/berkeley-db/tls.patch
==> Ran patch() for berkeley-db
==> berkeley-db: Executing phase: 'autoreconf'
==> berkeley-db: Executing phase: 'configure'
==> Error: ProcessError: Command exited with status 1:
'/tmp/noah/spack-stage/spack-stage-berkeley-db-18.1.40-jw4pptioy6o3tcaiz46z7ze6bv3zhfvu/spack-src/dist/configure' '--prefix=/home/noah/spack/opt/spack/linux-ubuntu22.04-icelake/gcc-12.1.0/berkeley-db-18.1.40-jw4pptioy6o3tcaiz46z7ze6bv3zhfvu' '--disable-static' '--enable-dbm' '--enable-compat185' '--with-repmgr-ssl=no' '--enable-cxx' '--enable-stl'
1 error found in build log:
131 checking if libtool supports shared libraries... yes
132 checking whether to build shared libraries... yes
133 checking whether to build static libraries... no
134 checking SOSUFFIX from libtool... .so
135 checking MODSUFFIX from libtool... .so
136 checking JMODSUFFIX from libtool... .so
>> 137 checking whether the C++ compiler supports templates for STL... configure: error: no
berkeley-db was the third dependency spack attempted to build. Fifteen dependencies are then skipped because berkeley-db failed. Naive googling around suggests to me that something (probably berkeley-db) is not properly declaring a dependency on g++ so it wasn't installed.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the Spack install on a fresh Ubuntu 22.04 system and inspect the berkeley-db build output, especially the C++ compiler template check. Review the generated spec and the berkeley-db package referenced under var/spack/repos/builtin/packages/berkeley-db; done means the required compiler dependency is represented and the install proceeds past berkeley-db.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100