Skip to content

[email protected] +rocm fails: _hypre_utilities.hpp:116:10: fatal error: 'rocsparse.h' file not found #32194

@eugeneswalker

Description

@eugeneswalker

Steps to reproduce the issue

Reproducible using:

  • spack@develop (4c2f357 from Mon Aug 15 18:00:33 2022 -0700)
  • ecpe4s/ubuntu22.04-runner-x86_64:2022-08-01
  • %[email protected]
  • ROCm 5.2.0

Concrete spec: hypre.spec.json.txt

Concretization
  -   [email protected]%[email protected]~complex~cuda~debug+fortran~gptune~int64~internal-superlu~mixedint+mpi~openmp+rocm+shared~superlu-dist~unified-memory amdgpu_target=gfx90a arch=linux-ubuntu22.04-x86_64
[+]      ^[email protected]%[email protected]~ipo build_type=Release patches=959d1fe arch=linux-ubuntu22.04-x86_64
[+]          ^[email protected]%[email protected]~doc+ncurses+ownlibs~qt build_type=Release arch=linux-ubuntu22.04-x86_64
[+]              ^[email protected]%[email protected]~symlinks+termlib abi=none arch=linux-ubuntu22.04-x86_64
[+]                  ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]              ^[email protected]%[email protected]~docs~shared certs=mozilla patches=3fdcf2d arch=linux-ubuntu22.04-x86_64
[+]                  ^ca-certificates-mozilla@2022-07-19%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                  ^[email protected]%[email protected]+cpanm+shared+threads arch=linux-ubuntu22.04-x86_64
[+]                      ^[email protected]%[email protected]+cxx~docs+stl patches=b231fcc arch=linux-ubuntu22.04-x86_64
[+]                      ^[email protected]%[email protected]~debug~pic+shared arch=linux-ubuntu22.04-x86_64
[+]                          ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                              ^[email protected]%[email protected] libs=shared,static arch=linux-ubuntu22.04-x86_64
[+]                      ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                          ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                      ^[email protected]%[email protected]+optimize+pic+shared patches=0d38234 arch=linux-ubuntu22.04-x86_64
[+]          ^[email protected]%[email protected]~ipo build_type=Release arch=linux-ubuntu22.04-x86_64
[+]              ^[email protected]%[email protected]~ipo~link_llvm_dylib~llvm_dylib~openmp+rocm-device-libs build_type=Release patches=a08bbe1 arch=linux-ubuntu22.04-x86_64
[+]                  ^[email protected]%[email protected]+bz2+ctypes+dbm~debug+ensurepip+libxml2+lzma~nis~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tix~tkinter~ucs4+uuid+zlib patches=0d98e93,4c24573,f2fd060 arch=linux-ubuntu22.04-x86_64
[+]                      ^[email protected]%[email protected]+libbsd arch=linux-ubuntu22.04-x86_64
[+]                          ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                              ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                      ^[email protected]%[email protected]+bzip2+curses+git~libunistring+libxml2+tar+xz arch=linux-ubuntu22.04-x86_64
[+]                          ^[email protected]%[email protected]~python arch=linux-ubuntu22.04-x86_64
[+]                              ^[email protected]%[email protected]+pic libs=shared,static arch=linux-ubuntu22.04-x86_64
[+]                          ^[email protected]%[email protected] zip=pigz arch=linux-ubuntu22.04-x86_64
[+]                              ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                              ^[email protected]%[email protected]+programs compression=none libs=shared,static arch=linux-ubuntu22.04-x86_64
[+]                      ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                      ^[email protected]%[email protected]+column_metadata+dynamic_extensions+fts~functions+rtree arch=linux-ubuntu22.04-x86_64
[+]                      ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                  ^[email protected]%[email protected]~gmp~ipo~python build_type=RelWithDebInfo arch=linux-ubuntu22.04-x86_64
[+]              ^[email protected]%[email protected]~ipo build_type=Release arch=linux-ubuntu22.04-x86_64
[+]          ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]              ^[email protected]%[email protected]+glx+llvm+opengl~opengles+osmesa~strip buildtype=release default_library=shared patches=ada85be arch=linux-ubuntu22.04-x86_64
[+]                  ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                      ^[email protected]%[email protected]+sigsegv patches=9dc5fbd,bfdffa7 arch=linux-ubuntu22.04-x86_64
[+]                          ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                  ^[email protected]%[email protected]+lex~nls arch=linux-ubuntu22.04-x86_64
[+]                      ^[email protected]%[email protected] patches=440b954 arch=linux-ubuntu22.04-x86_64
[+]                  ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                      ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                  ^[email protected]%[email protected]~block_signals~conservative_checks~cxx_exceptions~debug~debug_frame+docs+pic+tests+weak_backtrace+xz~zlib components=none libs=shared,static arch=linux-ubuntu22.04-x86_64
[+]                  ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                      ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                      ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                      ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                          ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                          ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                              ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                          ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                          ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                      ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                      ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                  ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                  ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                      ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                      ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                  ^[email protected]%[email protected] patches=9c87472,aa6c50d arch=linux-ubuntu22.04-x86_64
[+]                      ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                      ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                      ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                      ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                  ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                      ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                  ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                      ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                          ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                              ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                          ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]          ^[email protected]%[email protected]+image~ipo+shared build_type=Release patches=71e6851 arch=linux-ubuntu22.04-x86_64
[+]              ^[email protected]%[email protected]+bzip2~debuginfod~nls+xz arch=linux-ubuntu22.04-x86_64
[+]              ^[email protected]%[email protected]~ipo+shared build_type=Release patches=f926273 arch=linux-ubuntu22.04-x86_64
[+]                  ^[email protected]%[email protected]~docs arch=linux-ubuntu22.04-x86_64
[+]                      ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                          ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]                  ^[email protected]%[email protected] patches=4e1d78c,62fc8a8,ff37630 arch=linux-ubuntu22.04-x86_64
[+]                      ^[email protected]%[email protected] patches=35c4492,7793209,a49dd5b arch=linux-ubuntu22.04-x86_64
[+]                      ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]              ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]          ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]          ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]              ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]          ^[email protected]%[email protected]~ipo build_type=Release arch=linux-ubuntu22.04-x86_64
[+]          ^[email protected]%[email protected] arch=linux-ubuntu22.04-x86_64
[+]      ^[email protected]%[email protected]~argobots~cuda+fortran+hwloc+hydra+libxml2+pci~rocm+romio~slurm~two_level_namespace~vci~verbs~wrapperrpath datatype-engine=auto device=ch4 netmod=ofi pmi=pmi arch=linux-ubuntu22.04-x86_64
[+]          ^[email protected]%[email protected]~cairo~cuda~gl~libudev+libxml2~netloc~nvml~oneapi-level-zero~opencl+pci~rocm+shared arch=linux-ubuntu22.04-x86_64
[+]          ^[email protected]%[email protected]~debug~kdreg fabrics=rxm,sockets,tcp,udp arch=linux-ubuntu22.04-x86_64
[+]          ^[email protected]%[email protected]~cuda~rocm arch=linux-ubuntu22.04-x86_64
[+]      ^[email protected]%[email protected]~bignuma~consistent_fpcsr~ilp64+locking+pic+shared symbol_suffix=none threads=openmp arch=linux-ubuntu22.04-x86_64

Install error:

$> spack install -f ./hypre.spec.json
...
==> Installing hypre-2.25.0-6rsc2fdt7na5sqleojg3uug6klohx2f6
==> No binary for hypre-2.25.0-6rsc2fdt7na5sqleojg3uug6klohx2f6 found: installing from source
==> Using cached archive: /spack/var/spack/cache/_source-cache/archive/f9/f9fc8371d91239fca694284dab17175bfda3821d7b7a871fd2e8f9d5930f303c.tar.gz
==> No patches needed for hypre
==> hypre: Executing phase: 'autoreconf'
==> hypre: Executing phase: 'configure'
==> hypre: Executing phase: 'build'
==> Error: ProcessError: Command exited with status 2:
    'make' '-j16'

11 errors found in build log:
     186    hipcc --amdgpu-target=gfx90a -fPIC -O2 -x hip -std=c++14   -DHAVE_CONFIG_H -I.. -I./.. -I./../struct_mv -I.   -I/spack/opt/spack/linux-ubuntu22.04-x86_64/gcc-11.2.0/hip-5.2.0-ow
            pe5je3fhes7ivmri3nbrw6l44qe3ak/rocthrust/include -I/spack/opt/spack/linux-ubuntu22.04-x86_64/gcc-11.2.0/hip-5.2.0-owpe5je3fhes7ivmri3nbrw6l44qe3ak/rocprim/include -I/spack/opt/s
            pack/linux-ubuntu22.04-x86_64/gcc-11.2.0/hip-5.2.0-owpe5je3fhes7ivmri3nbrw6l44qe3ak/rocsparse/include -I/spack/opt/spack/linux-ubuntu22.04-x86_64/gcc-11.2.0/hip-5.2.0-owpe5je3fh
            es7ivmri3nbrw6l44qe3ak/rocrand/include      -I/spack/opt/spack/linux-ubuntu22.04-x86_64/gcc-11.2.0/mpich-4.0.2-gpzf75yhrekurnz3v63fmevfjez2x2q2/include  -c handle.c -o handle.ob
            j
     187    hipcc --amdgpu-target=gfx90a -fPIC -O2 -x hip -std=c++14   -DHAVE_CONFIG_H -I.. -I./.. -I./../struct_mv -I.   -I/spack/opt/spack/linux-ubuntu22.04-x86_64/gcc-11.2.0/hip-5.2.0-ow
            pe5je3fhes7ivmri3nbrw6l44qe3ak/rocthrust/include -I/spack/opt/spack/linux-ubuntu22.04-x86_64/gcc-11.2.0/hip-5.2.0-owpe5je3fhes7ivmri3nbrw6l44qe3ak/rocprim/include -I/spack/opt/s
            pack/linux-ubuntu22.04-x86_64/gcc-11.2.0/hip-5.2.0-owpe5je3fhes7ivmri3nbrw6l44qe3ak/rocsparse/include -I/spack/opt/spack/linux-ubuntu22.04-x86_64/gcc-11.2.0/hip-5.2.0-owpe5je3fh
            es7ivmri3nbrw6l44qe3ak/rocrand/include      -I/spack/opt/spack/linux-ubuntu22.04-x86_64/gcc-11.2.0/mpich-4.0.2-gpzf75yhrekurnz3v63fmevfjez2x2q2/include  -c int_array.c -o int_ar
            ray.obj
     188    hipcc --amdgpu-target=gfx90a -fPIC -O2 -x hip -std=c++14   -DHAVE_CONFIG_H -I.. -I./.. -I./../struct_mv -I.   -I/spack/opt/spack/linux-ubuntu22.04-x86_64/gcc-11.2.0/hip-5.2.0-ow
            pe5je3fhes7ivmri3nbrw6l44qe3ak/rocthrust/include -I/spack/opt/spack/linux-ubuntu22.04-x86_64/gcc-11.2.0/hip-5.2.0-owpe5je3fhes7ivmri3nbrw6l44qe3ak/rocprim/include -I/spack/opt/s
            pack/linux-ubuntu22.04-x86_64/gcc-11.2.0/hip-5.2.0-owpe5je3fhes7ivmri3nbrw6l44qe3ak/rocsparse/include -I/spack/opt/spack/linux-ubuntu22.04-x86_64/gcc-11.2.0/hip-5.2.0-owpe5je3fh
            es7ivmri3nbrw6l44qe3ak/rocrand/include      -I/spack/opt/spack/linux-ubuntu22.04-x86_64/gcc-11.2.0/mpich-4.0.2-gpzf75yhrekurnz3v63fmevfjez2x2q2/include  -c memory.c -o memory.ob
            j
     189    hipcc --amdgpu-target=gfx90a -fPIC -O2 -x hip -std=c++14   -DHAVE_CONFIG_H -I.. -I./.. -I./../struct_mv -I.   -I/spack/opt/spack/linux-ubuntu22.04-x86_64/gcc-11.2.0/hip-5.2.0-ow
            pe5je3fhes7ivmri3nbrw6l44qe3ak/rocthrust/include -I/spack/opt/spack/linux-ubuntu22.04-x86_64/gcc-11.2.0/hip-5.2.0-owpe5je3fhes7ivmri3nbrw6l44qe3ak/rocprim/include -I/spack/opt/s
            pack/linux-ubuntu22.04-x86_64/gcc-11.2.0/hip-5.2.0-owpe5je3fhes7ivmri3nbrw6l44qe3ak/rocsparse/include -I/spack/opt/spack/linux-ubuntu22.04-x86_64/gcc-11.2.0/hip-5.2.0-owpe5je3fh
            es7ivmri3nbrw6l44qe3ak/rocrand/include      -I/spack/opt/spack/linux-ubuntu22.04-x86_64/gcc-11.2.0/mpich-4.0.2-gpzf75yhrekurnz3v63fmevfjez2x2q2/include  -c omp_device.c -o omp_d
            evice.obj
     190    hipcc --amdgpu-target=gfx90a -fPIC -O2 -x hip -std=c++14   -DHAVE_CONFIG_H -I.. -I./.. -I./../struct_mv -I.   -I/spack/opt/spack/linux-ubuntu22.04-x86_64/gcc-11.2.0/hip-5.2.0-ow
            pe5je3fhes7ivmri3nbrw6l44qe3ak/rocthrust/include -I/spack/opt/spack/linux-ubuntu22.04-x86_64/gcc-11.2.0/hip-5.2.0-owpe5je3fhes7ivmri3nbrw6l44qe3ak/rocprim/include -I/spack/opt/s
            pack/linux-ubuntu22.04-x86_64/gcc-11.2.0/hip-5.2.0-owpe5je3fhes7ivmri3nbrw6l44qe3ak/rocsparse/include -I/spack/opt/spack/linux-ubuntu22.04-x86_64/gcc-11.2.0/hip-5.2.0-owpe5je3fh
            es7ivmri3nbrw6l44qe3ak/rocrand/include      -I/spack/opt/spack/linux-ubuntu22.04-x86_64/gcc-11.2.0/mpich-4.0.2-gpzf75yhrekurnz3v63fmevfjez2x2q2/include  -c nvtx.c -o nvtx.obj
     191    In file included from device_utils.c:10:
  >> 192    ./_hypre_utilities.hpp:116:10: fatal error: 'rocsparse.h' file not found
     193    #include <rocsparse.h>
     194             ^~~~~~~~~~~~~
     195    In file included from general.c:9:
  >> 196    ./_hypre_utilities.hpp:116:10: fatal error: 'rocsparse.h' file not found
     197    #include <rocsparse.h>
     198             ^~~~~~~~~~~~~
     199    In file included from handle.c:15:
  >> 200    ./_hypre_utilities.hpp:116:10: fatal error: 'rocsparse.h' file not found
     201    #include <rocsparse.h>
     202             ^~~~~~~~~~~~~
     203    1 error generated when compiling for gfx90a.
     204    1 error generated when compiling for gfx90a.
     205    In file included from int_array.c:9:
  >> 206    ./_hypre_utilities.hpp:116:10: fatal error: 'rocsparse.h' file not found
     207    #include <rocsparse.h>
     208             ^~~~~~~~~~~~~
     209    1 error generated when compiling for gfx90a.
  >> 210    make[1]: *** [../config/Makefile.config:66: general.obj] Error 1
     211    make[1]: *** Waiting for unfinished jobs....
  >> 212    make[1]: *** [../config/Makefile.config:66: device_utils.obj] Error 1
     213    1 error generated when compiling for gfx90a.
  >> 214    make[1]: *** [../config/Makefile.config:66: handle.obj] Error 1
  >> 215    make[1]: *** [../config/Makefile.config:66: int_array.obj] Error 1
     216    In file included from memory.c:15:
  >> 217    ./_hypre_utilities.hpp:116:10: fatal error: 'rocsparse.h' file not found
     218    #include <rocsparse.h>
     219             ^~~~~~~~~~~~~
     220    1 error generated when compiling for gfx90a.
  >> 221    make[1]: *** [../config/Makefile.config:66: memory.obj] Error 1
     222    make[1]: Leaving directory '/tmp/root/spack-stage/spack-stage-hypre-2.25.0-6rsc2fdt7na5sqleojg3uug6klohx2f6/spack-src/src/utilities'
  >> 223    make: *** [Makefile:86: all] Error 1

Error message

Error message
... see above

Information on your system

  • Spack: 0.19.0.dev0 (9d5375a)
  • Python: 3.10.4
  • Platform: linux-ubuntu22.04-zen2
  • Concretizer: clingo

Additional information

spack-build-out.txt
spack-build-env.txt

@balay @osborn9 @ulrikeyang @wspear

General information

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions