Skip to content

fs:lustre component fails to compile on several systems with Lustre present #12181

Closed
@hppritcha

Description

@hppritcha

It appears that commit c6a6c25 introduced a regression and the lustre fs component no longer builds on at least NERSC perlmutter system:

ake[2]: Entering directory '/global/u2/h/hpp/ompi/ompi/mca/fs/lustre'
depbase=`echo fs_lustre_file_open.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ../../../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../../opal/include -I../../../../ompi/include -I../../../../oshmem/include -I../../../../ompi/mpiext/cuda/c -I../../../../ompi/mpiext/rocm/c   -iquote../../../..  -I/global/homes/h/hpp/ompi/3rd-party/openpmix/include -I/global/homes/h/hpp/ompi/3rd-party/openpmix/include -I/global/homes/h/hpp/ompi/3rd-party/openpmix/ -I/global/homes/h/hpp/ompi/3rd-party/openpmix/  -O3 -DNDEBUG  -Wundef -Wno-long-long -Wsign-compare -Wmissing-prototypes -Wstrict-prototypes -Wcomment -Wshadow -Werror-implicit-function-declaration -fno-strict-aliasing -pedantic -Wall -Wformat-truncation=0 -finline-functions -mcx16 -MT fs_lustre_file_open.lo -MD -MP -MF $depbase.Tpo -c -o fs_lustre_file_open.lo fs_lustre_file_open.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../../opal/include -I../../../../ompi/include -I../../../../oshmem/include -I../../../../ompi/mpiext/cuda/c -I../../../../ompi/mpiext/rocm/c -iquote../../../.. -I/global/homes/h/hpp/ompi/3rd-party/openpmix/include -I/global/homes/h/hpp/ompi/3rd-party/openpmix/include -I/global/homes/h/hpp/ompi/3rd-party/openpmix/ -I/global/homes/h/hpp/ompi/3rd-party/openpmix/ -O3 -DNDEBUG -Wundef -Wno-long-long -Wsign-compare -Wmissing-prototypes -Wstrict-prototypes -Wcomment -Wshadow -Werror-implicit-function-declaration -fno-strict-aliasing -pedantic -Wall -Wformat-truncation=0 -finline-functions -mcx16 -MT fs_lustre_file_open.lo -MD -MP -MF .deps/fs_lustre_file_open.Tpo -c fs_lustre_file_open.c  -fPIC -DPIC -o .libs/fs_lustre_file_open.o
In file included from /usr/include/linux/fs.h:19,
                 from /usr/include/linux/lustre/lustre_user.h:44,
                 from /usr/include/lustre/lustreapi.h:46,
                 from fs_lustre.h:37,
                 from fs_lustre_file_open.c:25:
/usr/include/sys/mount.h:35:3: error: expected identifier before numeric constant
   35 |   MS_RDONLY = 1,                /* Mount read-only.  */
      |   ^~~~~~~~~

This system is running

NAME="SLES"
VERSION="15-SP4"
VERSION_ID="15.4"

Lustre version

hpp@login34:~/ompi> (main)cat /proc/fs/lustre/version
lustre: 2.15.0.7_rc2_cray_51_ga1c30e9

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