Skip to content

romio fails to build due to missing stdatomic.h #10373

Closed
@naughtont3

Description

@naughtont3

when building an ompi-5.0.x snapshot i get errors about building romio due to missing stdatomic.h.

This seems like a new dependency/build require. Should this have been caught during configure phase?

Background information

What version of Open MPI are you using? (e.g., v3.0.5, v4.0.2, git branch name and hash, etc.)

  • openmpi-5.0.0 nightly tarball 12-may-2022

Describe how Open MPI was installed (e.g., from a source/distribution tarball, from a git clone, from an operating system distribution package, etc.)

  • nightly tarball
  • gcc/g++ 4.8.5 (i know it is old)

Please describe the system on which you are running

  • Operating system/version: Linux
  • Computer hardware: x86-64
  • Network type:

Details of the problem

A build of openmpi fails during compile phase due to missing stdatomic.h while building 3rd-party/romio341.

./configure \
       --enable-debug \
       --with-devel-headers \
    --enable-mpirun-prefix-by-default \
    --prefix=${OMPI_INSTALL_DIR} \

 ...<snip>...

make[2]: Entering directory `/home/3t4/projects/ompi-x/scratch/CLOUDY-FALCON/openmpi-v5.0.x-202205120246-ef29ef7/build2/3rd-party/romio341'
Making all in mpl
make[3]: Entering directory `/home/3t4/projects/ompi-x/scratch/CLOUDY-FALCON/openmpi-v5.0.x-202205120246-ef29ef7/build2/3rd-party/romio341/mpl'
  CC       src/atomic/mpl_atomic.lo
  CC       src/bt/mpl_bt.lo
  CC       src/env/mpl_env.lo
  CC       src/dbg/mpl_dbg.lo
In file included from ../../../../3rd-party/romio341/mpl/include/mpl_atomic.h:101:0,
                 from ../../../../3rd-party/romio341/mpl/src/atomic/mpl_atomic.c:11:
../../../../3rd-party/romio341/mpl/include/mpl_atomic_c11.h:20:23: fatal error:stdatomic.h: No such file or directory
 #include <stdatomic.h>
                       ^
compilation terminated.
In file included from ../../../../3rd-party/romio341/mpl/include/mpl_atomic.h:101:0,
                 from ../../../../3rd-party/romio341/mpl/include/mpl.h:15,
                 from ../../../../3rd-party/romio341/mpl/src/env/mpl_env.c:6:
../../../../3rd-party/romio341/mpl/include/mpl_atomic_c11.h:20:23: fatal error:stdatomic.h: No such file or directory
 #include <stdatomic.h>
                       ^
compilation terminated.
In file included from ../../../../3rd-party/romio341/mpl/include/mpl_atomic.h:101:0,
                 from ../../../../3rd-party/romio341/mpl/include/mpl.h:15,
                 from ../../../../3rd-party/romio341/mpl/src/dbg/mpl_dbg.c:12:
../../../../3rd-party/romio341/mpl/include/mpl_atomic_c11.h:20:23: fatal error:stdatomic.h: No such file or directory
 #include <stdatomic.h>
                       ^
compilation terminated.
In file In file In file included from ../../../../3rd-party/romio341/mpl/include/mpl_atomic.h:101:0,
                 from ../../../../3rd-party/romio341/mpl/include/mpl.h:15,
                 from ../../../../3rd-party/romio341/mpl/src/bt/mpl_bt.c:6:
../../../../3rd-party/romio341/mpl/include/mpl_atomic_c11.h:20:23: fatal error:stdatomic.h: No such file or directory
 #include <stdatomic.h>
                       ^
compilation terminated.
make[3]: *** [src/atomic/mpl_atomic.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [src/env/mpl_env.lo] Error 1
make[3]: *** [src/dbg/mpl_dbg.lo] Error 1
make[3]: *** [src/bt/mpl_bt.lo] Error 1
make[3]: Leaving directory `/home/3t4/projects/ompi-x/scratch/CLOUDY-FALCON/openmpi-v5.0.x-202205120246-ef29ef7/build2/3rd-party/romio341/mpl'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/3t4/projects/ompi-x/scratch/CLOUDY-FALCON/openmpi-v5.0.x-202205120246-ef29ef7/build2/3rd-party/romio341'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/3t4/projects/ompi-x/scratch/CLOUDY-FALCON/openmpi-v5.0.x-202205120246-ef29ef7/build2/3rd-party'
make: *** [all-recursive] Error 1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions