Installing on Fedora 43

When I try spack install chapel %llvm@20 I get the following error:
`1 error found in build log:

80 CMake Error at /usr/lib64/cmake/ZLIB/ZLIB.cmake:84 (message):
81 The imported target "ZLIB::zlibstatic" references the file
82
83 "/usr/lib64/libz.a"
84
85 but this file does not exist. Possible reasons include:
86`

I do have /usr/lib64/libz.so. Any advice would be appreciated. Thanks.

–shiv–

Can you provide more output from the build log? Its not clear to me where in the build process this error is occurring.

-Jade

Hi Jade,
Thanks for getting back to me. I have attached the build log that had the
error that I referenced. (Looks like it came from llvm20 to me.).
--shiv--

(attachments)

spack-build-out.txt (10.1 KB)

Yeah this appears to be a build error with spack and LLVM. Do you get the same error with just spack install llvm@20?

Something seems incorrectly configured, because spack should be using the zlib it build itself. Did you configure external packages?

-Jade

spack install llvm@20 gives the same error.

I am new to spack, so I did the bare minimum to try and install chapel. So
I don't think I configured external packages?
Thanks.
--shiv--
PS: I might just try and install chapel from source.

If spack install llvm@20 fails, this indicates a problem with either the LLVM 20 formula or your spack setup. Given you did the bare minimum with spack, I suspect an issue with the LLVM 20 formula, I would try reporting this to either GitHub - spack/spack-packages: Spack's community package recipes or GitHub - spack/spack: A flexible package manager that supports multiple versions, configurations, platforms, and compilers.

As far as building Chapel, if you are really committed to building Chapel with spack, you could try spack install chapel llvm=none which will build Chapel without LLVM support. Or you can try and have spack use an externally installed LLVM (which will also speed up your build A LOT). See Package Settings (packages.yaml) - Spack 1.2.0.dev0 documentation for how to do that.

Although, if you just want Chapel to work I would build from source or use one of other distribution formats

-Jade

1 Like

Hi shiv —

I want to tag onto Jade's response and encourage you to file a bug against
spack for the llvm@20 build failure, as it'd be good to make them aware of
that and I wasn't able to find an existing issue for the situation. My
understanding is that such bugs should now be opened on:

https://github.com/spack/spack-packages

(since they are specific to a given package).

-Brad

Just did. Thanks for the link to report it.

–shiv–