Skip to content

Installation issue: ior@4.0.0 cflags=-std=gnu17 ^openmpi+cuda #7759

Open

Description

@brandongc

Steps to reproduce the issue

$ spack spec -I ior@4.0.0 cflags=-std=gnu17 ^openmpi+cuda
 -   ior@4.0.0 cflags='-std=gnu17' ~aio~daos~hdf5~lustre~ncmpi build_system=autotools platform=linux os=sles15 target=zen3 %c=gcc@14.3.0
...
[+]      ^openmpi@5.0.11+atomics+cuda~debug+fortran ... %c,cxx,fortran=gcc@14.3.0
[+]          ^cuda@13.4.2~allow-unsupported-compilers~dev build_system=generic platform=linux os=sles15 target=zen3
...
$ spack install ior@4.0.0 cflags=-std=gnu17 ^openmpi+cuda

Error message

Error message
checking for cufile.h... yes
checking for library containing cuFileDriverOpen... -lcufile
...
utilities.c:100: undefined reference to `update_write_memory_pattern_gpu'
utilities.c:140: undefined reference to `generate_memory_pattern_gpu'
utilities.c:186: undefined reference to `verify_memory_pattern_gpu'
make[3]: *** [Makefile:1033: ior] Error 1

spack-build-out.txt
spack-build-env.txt
config.log

Information on your system

(gcc 14.3.0, cuda 13.4.2, openmpi 5.0.11)

Additional information

4.0.0 defaults to --with-cuda=check and --with-gpuDirect=check. Detection defines HAVE_GPU_DIRECT, but the
automake conditional that compiles utilities-gpu.cu requires an explicit yes, so the GPU functions are called
but never built (hpc/ior#486; the value must be plain yes, see #494). Fixed on ior main (#539, #546), but there
has been no release since 4.0.0.

ior@develop ^openmpi+cuda also fails: CUDA is still autodetected, and the link fails on __cxa_guard_acquire
(libstdc++ not linked).

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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