Skip to content

4.1.6: test suite fails with -Wincompatible-pointer-types  #12466

@kloczek

Description

@kloczek

When is used aatest glibc snapshot and in $CFLAGS is passed -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 some pragmas in glibs headers turns some warnings into errors

Here is test output:
make[4]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/threads'
Making check in datatype
/usr/bin/make  opal_datatype_test unpack_hetero checksum position position_noncontig ddt_test ddt_raw ddt_raw2 unpack_ooo ddt_pack external32 large_data partial to_self reduce_local
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I../../opal/include -I../../ompi/include -I../../oshmem/include -I../../opal/mca/hwloc/hwloc201/hwloc/include/private/autogen -I../../opal/mca/hwloc/hwloc201/hwloc/include/hwloc/autogen -I../../ompi/mpiext/cuda/c   -I../.. -I../../orte/include     -I/usr/local/include -I/usr/local/include  -DNDEBUG -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -finline-functions -fno-strict-aliasing -mcx16  -c -o unpack_hetero.o unpack_hetero.c
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I../../opal/include -I../../ompi/include -I../../oshmem/include -I../../opal/mca/hwloc/hwloc201/hwloc/include/private/autogen -I../../opal/mca/hwloc/hwloc201/hwloc/include/hwloc/autogen -I../../ompi/mpiext/cuda/c   -I../.. -I../../orte/include     -I/usr/local/include -I/usr/local/include  -DNDEBUG -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -finline-functions -fno-strict-aliasing -mcx16  -c -o large_data.o large_data.c
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I../../opal/include -I../../ompi/include -I../../oshmem/include -I../../opal/mca/hwloc/hwloc201/hwloc/include/private/autogen -I../../opal/mca/hwloc/hwloc201/hwloc/include/hwloc/autogen -I../../ompi/mpiext/cuda/c   -I../.. -I../../orte/include     -I/usr/local/include -I/usr/local/include  -DNDEBUG -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -finline-functions -fno-strict-aliasing -mcx16  -c -o opal_ddt_lib.o opal_ddt_lib.c
opal_ddt_lib.c:466:16: warning: ‘opal_datatype_create_hvector’ defined but not used [-Wunused-function]
  466 | static int32_t opal_datatype_create_hvector( int count, int bLength, ptrdiff_t stride,
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
opal_ddt_lib.c:322:16: warning: ‘opal_datatype_create_hindexed’ defined but not used [-Wunused-function]
  322 | static int32_t opal_datatype_create_hindexed( int count, const int* pBlockLength, const ptrdiff_t* pDisp,
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I../../opal/include -I../../ompi/include -I../../oshmem/include -I../../opal/mca/hwloc/hwloc201/hwloc/include/private/autogen -I../../opal/mca/hwloc/hwloc201/hwloc/include/hwloc/autogen -I../../ompi/mpiext/cuda/c   -I../.. -I../../orte/include     -I/usr/local/include -I/usr/local/include  -DNDEBUG -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -finline-functions -fno-strict-aliasing -mcx16  -c -o position_noncontig.o position_noncontig.c
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I../../opal/include -I../../ompi/include -I../../oshmem/include -I../../opal/mca/hwloc/hwloc201/hwloc/include/private/autogen -I../../opal/mca/hwloc/hwloc201/hwloc/include/hwloc/autogen -I../../ompi/mpiext/cuda/c   -I../.. -I../../orte/include     -I/usr/local/include -I/usr/local/include  -DNDEBUG -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -finline-functions -fno-strict-aliasing -mcx16  -c -o partial.o partial.c
partial.c: In function ‘main’:
partial.c:89:55: error: passing argument 3 of ‘ompi_datatype_create_contiguous’ from incompatible pointer type [-Wincompatible-pointer-types]
   89 |     ompi_datatype_create_contiguous(CONT_COUNT, base, &vector);
      |                                                       ^~~~~~~
      |                                                       |
      |                                                       opal_datatype_t **
In file included from partial.c:17:
../../ompi/datatype/ompi_datatype.h:190:117: note: expected ‘ompi_datatype_t **’ but argument is of type ‘opal_datatype_t **’
  190 | OMPI_DECLSPEC int32_t ompi_datatype_create_contiguous( int count, const ompi_datatype_t* oldType, ompi_datatype_t** newType );
      |                                                                                                   ~~~~~~~~~~~~~~~~~~^~~~~~~
partial.c:93:24: error: passing argument 1 of ‘ompi_datatype_dump’ from incompatible pointer type [-Wincompatible-pointer-types]
   93 |     ompi_datatype_dump(vector);
      |                        ^~~~~~
      |                        |
      |                        opal_datatype_t *
../../ompi/datatype/ompi_datatype.h:124:63: note: expected ‘const ompi_datatype_t *’ but argument is of type ‘opal_datatype_t *’
  124 | OMPI_DECLSPEC void ompi_datatype_dump (const ompi_datatype_t* pData);
      |                                        ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
partial.c:97:31: error: passing argument 1 of ‘opal_datatype_type_extent’ from incompatible pointer type [-Wincompatible-pointer-types]
   97 |     opal_datatype_type_extent(base, &base_extent);
      |                               ^~~~
      |                               |
      |                               ompi_datatype_t *
In file included from ../../opal/datatype/opal_convertor.h:35,
                 from partial.c:16:
../../opal/datatype/opal_datatype.h:293:51: note: expected ‘const opal_datatype_t *’ but argument is of type ‘ompi_datatype_t *’
  293 | opal_datatype_type_extent( const opal_datatype_t* pData, ptrdiff_t* extent )
      |                            ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
make[3]: *** [Makefile:2275: partial.o] Error 1
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
make[3]: *** Waiting for unfinished jobs....
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I../../opal/include -I../../ompi/include -I../../oshmem/include -I../../opal/mca/hwloc/hwloc201/hwloc/include/private/autogen -I../../opal/mca/hwloc/hwloc201/hwloc/include/hwloc/autogen -I../../ompi/mpiext/cuda/c   -I../.. -I../../orte/include     -I/usr/local/include -I/usr/local/include  -DNDEBUG -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -finline-functions -fno-strict-aliasing -mcx16  -c -o checksum.o checksum.c
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I../../opal/include -I../../ompi/include -I../../oshmem/include -I../../opal/mca/hwloc/hwloc201/hwloc/include/private/autogen -I../../opal/mca/hwloc/hwloc201/hwloc/include/hwloc/autogen -I../../ompi/mpiext/cuda/c   -I../.. -I../../orte/include     -I/usr/local/include -I/usr/local/include  -DNDEBUG -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -finline-functions -fno-strict-aliasing -mcx16  -c -o external32.o external32.c
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I../../opal/include -I../../ompi/include -I../../oshmem/include -I../../opal/mca/hwloc/hwloc201/hwloc/include/private/autogen -I../../opal/mca/hwloc/hwloc201/hwloc/include/hwloc/autogen -I../../ompi/mpiext/cuda/c   -I../.. -I../../orte/include     -I/usr/local/include -I/usr/local/include  -DNDEBUG -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -finline-functions -fno-strict-aliasing -mcx16  -c -o to_self.o to_self.c
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I../../opal/include -I../../ompi/include -I../../oshmem/include -I../../opal/mca/hwloc/hwloc201/hwloc/include/private/autogen -I../../opal/mca/hwloc/hwloc201/hwloc/include/hwloc/autogen -I../../ompi/mpiext/cuda/c   -I../.. -I../../orte/include     -I/usr/local/include -I/usr/local/include  -DNDEBUG -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -finline-functions -fno-strict-aliasing -mcx16  -c -o position.o position.c
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I../../opal/include -I../../ompi/include -I../../oshmem/include -I../../opal/mca/hwloc/hwloc201/hwloc/include/private/autogen -I../../opal/mca/hwloc/hwloc201/hwloc/include/hwloc/autogen -I../../ompi/mpiext/cuda/c   -I../.. -I../../orte/include     -I/usr/local/include -I/usr/local/include  -DNDEBUG -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -finline-functions -fno-strict-aliasing -mcx16  -c -o ddt_raw2.o ddt_raw2.c
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I../../opal/include -I../../ompi/include -I../../oshmem/include -I../../opal/mca/hwloc/hwloc201/hwloc/include/private/autogen -I../../opal/mca/hwloc/hwloc201/hwloc/include/hwloc/autogen -I../../ompi/mpiext/cuda/c   -I../.. -I../../orte/include     -I/usr/local/include -I/usr/local/include  -DNDEBUG -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -finline-functions -fno-strict-aliasing -mcx16  -c -o ddt_raw.o ddt_raw.c
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I../../opal/include -I../../ompi/include -I../../oshmem/include -I../../opal/mca/hwloc/hwloc201/hwloc/include/private/autogen -I../../opal/mca/hwloc/hwloc201/hwloc/include/hwloc/autogen -I../../ompi/mpiext/cuda/c   -I../.. -I../../orte/include     -I/usr/local/include -I/usr/local/include  -DNDEBUG -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -finline-functions -fno-strict-aliasing -mcx16  -c -o ddt_lib.o ddt_lib.c
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I../../opal/include -I../../ompi/include -I../../oshmem/include -I../../opal/mca/hwloc/hwloc201/hwloc/include/private/autogen -I../../opal/mca/hwloc/hwloc201/hwloc/include/hwloc/autogen -I../../ompi/mpiext/cuda/c   -I../.. -I../../orte/include     -I/usr/local/include -I/usr/local/include  -DNDEBUG -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -finline-functions -fno-strict-aliasing -mcx16  -c -o unpack_ooo.o unpack_ooo.c
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I../../opal/include -I../../ompi/include -I../../oshmem/include -I../../opal/mca/hwloc/hwloc201/hwloc/include/private/autogen -I../../opal/mca/hwloc/hwloc201/hwloc/include/hwloc/autogen -I../../ompi/mpiext/cuda/c   -I../.. -I../../orte/include     -I/usr/local/include -I/usr/local/include  -DNDEBUG -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -finline-functions -fno-strict-aliasing -mcx16  -c -o opal_datatype_test.o opal_datatype_test.c
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I../../opal/include -I../../ompi/include -I../../oshmem/include -I../../opal/mca/hwloc/hwloc201/hwloc/include/private/autogen -I../../opal/mca/hwloc/hwloc201/hwloc/include/hwloc/autogen -I../../ompi/mpiext/cuda/c   -I../.. -I../../orte/include     -I/usr/local/include -I/usr/local/include  -DNDEBUG -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -finline-functions -fno-strict-aliasing -mcx16  -c -o ddt_test.o ddt_test.c
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I../../opal/include -I../../ompi/include -I../../oshmem/include -I../../opal/mca/hwloc/hwloc201/hwloc/include/private/autogen -I../../opal/mca/hwloc/hwloc201/hwloc/include/hwloc/autogen -I../../ompi/mpiext/cuda/c   -I../.. -I../../orte/include     -I/usr/local/include -I/usr/local/include  -DNDEBUG -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -finline-functions -fno-strict-aliasing -mcx16  -c -o ddt_pack.o ddt_pack.c
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
/bin/sh ../../libtool  --tag=CC   --mode=link /usr/bin/gcc  -DNDEBUG -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -finline-functions -fno-strict-aliasing -mcx16   -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-plugin    -o unpack_hetero unpack_hetero.o ../../opal/libopen-pal.la -lm  -lz  -lhwloc  -levent_core -levent_pthreads
libtool: link: /usr/bin/gcc -DNDEBUG -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -finline-functions -fno-strict-aliasing -mcx16 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z -Wl,pack-relative-relocs -flto=auto -fuse-linker-plugin -o .libs/unpack_hetero unpack_hetero.o  ../../opal/.libs/libopen-pal.so -lm -lz -lhwloc -levent_core -levent_pthreads
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I../../opal/include -I../../ompi/include -I../../oshmem/include -I../../opal/mca/hwloc/hwloc201/hwloc/include/private/autogen -I../../opal/mca/hwloc/hwloc201/hwloc/include/hwloc/autogen -I../../ompi/mpiext/cuda/c   -I../.. -I../../orte/include     -I/usr/local/include -I/usr/local/include  -DNDEBUG -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -finline-functions -fno-strict-aliasing -mcx16  -c -o reduce_local.o reduce_local.c
reduce_local.c: In function ‘main’:
reduce_local.c:282:5: warning: ignoring return value of ‘posix_memalign’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  282 |     posix_memalign( &in_buf,          64, (upper + op1_alignment) * sizeof(double));
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
reduce_local.c:283:5: warning: ignoring return value of ‘posix_memalign’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  283 |     posix_memalign( &inout_buf,       64, (upper + res_alignment) * sizeof(double));
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
reduce_local.c:284:5: warning: ignoring return value of ‘posix_memalign’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  284 |     posix_memalign( &inout_check_buf, 64, upper * sizeof(double));
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
/bin/sh ../../libtool  --tag=CC   --mode=link /usr/bin/gcc  -DNDEBUG -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -finline-functions -fno-strict-aliasing -mcx16   -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-plugin    -o large_data large_data.o ../../ompi/libmpi.la ../../opal/libopen-pal.la -lm  -lz  -lhwloc  -levent_core -levent_pthreads
libtool: link: /usr/bin/gcc -DNDEBUG -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -finline-functions -fno-strict-aliasing -mcx16 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z -Wl,pack-relative-relocs -flto=auto -fuse-linker-plugin -o .libs/large_data large_data.o  ../../ompi/.libs/libmpi.so /home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/orte/.libs/libopen-rte.so /home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/opal/.libs/libopen-pal.so ../../opal/.libs/libopen-pal.so -lm -lz -lhwloc -levent_core -levent_pthreads
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
/bin/sh ../../libtool  --tag=CC   --mode=link /usr/bin/gcc  -DNDEBUG -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -finline-functions -fno-strict-aliasing -mcx16   -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-plugin    -o position_noncontig position_noncontig.o ../../ompi/libmpi.la ../../opal/libopen-pal.la -lm  -lz  -lhwloc  -levent_core -levent_pthreads
libtool: link: /usr/bin/gcc -DNDEBUG -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -finline-functions -fno-strict-aliasing -mcx16 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z -Wl,pack-relative-relocs -flto=auto -fuse-linker-plugin -o .libs/position_noncontig position_noncontig.o  ../../ompi/.libs/libmpi.so /home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/orte/.libs/libopen-rte.so /home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/opal/.libs/libopen-pal.so ../../opal/.libs/libopen-pal.so -lm -lz -lhwloc -levent_core -levent_pthreads
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ompi-4.1.6/test/datatype'
make[2]: *** [Makefile:2631: check-am] Error 2
make[1]: *** [Makefile:1771: check-recursive] Error 1
make: *** [Makefile:1909: check-recursive] Error 1

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