Skip to content

GCC 7.0.1, OpenCoarrays 1.8.10 build failure on FreeBSD #388

Closed
@mexas

Description

@mexas

full build log: http://eis.bris.ac.uk/~mexas/build.log
The error:

cd /usr/ports/lang/opencoarrays/work/.build/src/mpi && /usr/bin/cc -DGCC_GE_7 -DMPI_WORKING_MODULE -DPREFIX_NAME=_gfortran_caf_ -I/usr/local/include -I/usr/ports/lang/opencoarrays/work/OpenCoarrays-1.8.10/src -I/usr/ports/lang/opencoarrays/work/.build/mod -O2 -pipe  -fstack-protector -fno-strict-aliasing -O2 -pipe  -fstack-protector -fno-strict-aliasing -o CMakeFiles/caf_mpi.dir/mpi_caf.c.o   -c /usr/ports/lang/opencoarrays/work/OpenCoarrays-1.8.10/src/mpi/mpi_caf.c
/usr/ports/lang/opencoarrays/work/OpenCoarrays-1.8.10/src/mpi/mpi_caf.c:3239:11: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
  switch (GFC_DTYPE_TYPE_SIZE (desc))
          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libcaf-gfortran-descriptor.h:73:52: note: expanded from macro 'GFC_DTYPE_TYPE_SIZE'
#define GFC_DTYPE_TYPE_SIZE(desc) ((desc)->dtype & GFC_DTYPE_TYPE_SIZE_MASK)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libcaf-gfortran-descriptor.h:71:35: note: expanded from macro 'GFC_DTYPE_TYPE_SIZE_MASK'
#define GFC_DTYPE_TYPE_SIZE_MASK (GFC_DTYPE_SIZE_MASK | GFC_DTYPE_TYPE_MASK)
                                  ^~~~~~~~~~~~~~~~~~~
/usr/local/include/libcaf-gfortran-descriptor.h:70:47: note: expanded from macro 'GFC_DTYPE_SIZE_MASK'
  ((~((ptrdiff_t) 0) >> GFC_DTYPE_SIZE_SHIFT) << GFC_DTYPE_SIZE_SHIFT)
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/usr/ports/lang/opencoarrays/work/OpenCoarrays-1.8.10/src/mpi/mpi_caf.c:3291:9: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
  if ( (GFC_DTYPE_TYPE_SIZE(desc)-GFC_DTYPE_CHARACTER)%64==0 )
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libcaf-gfortran-descriptor.h:73:52: note: expanded from macro 'GFC_DTYPE_TYPE_SIZE'
#define GFC_DTYPE_TYPE_SIZE(desc) ((desc)->dtype & GFC_DTYPE_TYPE_SIZE_MASK)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libcaf-gfortran-descriptor.h:71:35: note: expanded from macro 'GFC_DTYPE_TYPE_SIZE_MASK'
#define GFC_DTYPE_TYPE_SIZE_MASK (GFC_DTYPE_SIZE_MASK | GFC_DTYPE_TYPE_MASK)
                                  ^~~~~~~~~~~~~~~~~~~
/usr/local/include/libcaf-gfortran-descriptor.h:70:47: note: expanded from macro 'GFC_DTYPE_SIZE_MASK'
  ((~((ptrdiff_t) 0) >> GFC_DTYPE_SIZE_SHIFT) << GFC_DTYPE_SIZE_SHIFT)
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/usr/ports/lang/opencoarrays/work/OpenCoarrays-1.8.10/src/mpi/mpi_caf.c:3301:67: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
  caf_runtime_error ("Unsupported data type in collective: %ld\n",GFC_DTYPE_TYPE_SIZE (desc));
                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libcaf-gfortran-descriptor.h:73:52: note: expanded from macro 'GFC_DTYPE_TYPE_SIScript started on Fri May 19 17:35:13 2017
Command: make
===>  License BSD3CLAUSE accepted by the user
define GFC_DTYPE_TYPE_SIZE_MASK (GFC_DTYPE_SIZE_MASK | GFC_DTYPE_TYPE_MASK)
                                  ^~~~~~~~~~~~~~~~~~~
/usr/local/include/libcaf-gfortran-descriptor.h:70:47: note: expanded from macro 'GFC_DTYPE_SIZE_MA
SK'
  ((~((ptrdiff_t) 0) >> GFC_DTYPE_SIZE_SHIFT) << GFC_DTYPE_SIZE_SHIFT)
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/usr/ports/lang/opencoarrays/work/OpenCoarrays-1.8.10/src/mpi/mpi_caf.c:3291:9: warning: shifting a
 negative signed value is undefined [-Wshift-negative-value]
  if ( (GFC_DTYPE_TYPE_SIZE(desc)-GFC_DTYPE_CHARACTER)%64==0 )
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libcaf-gfortran-descriptor.h:73:52: note: expanded from macro 'GFC_DTYPE_TYPE_SI
ZE'
#define GFC_DTYPE_TYPE_SIZE(desc) ((desc)->dtype & GFC_DTYPE_TYPE_SIZE_MASK)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libcaf-gfortran-descriptor.h:71:35: note: expanded from macro 'GFC_DTYPE_TYPE_SI
ZE_MASK'
#define GFC_DTYPE_TYPE_SIZE_MASK (GFC_DTYPE_SIZE_MASK | GFC_DTYPE_TYPE_MASK)
                                  ^~~~~~~~~~~~~~~~~~~
/usr/local/include/libcaf-gfortran-descriptor.h:70:47: note: expanded from macro 'GFC_DTYPE_SIZE_MA
SK'
  ((~((ptrdiff_t) 0) >> GFC_DTYPE_SIZE_SHIFT) << GFC_DTYPE_SIZE_SHIFT)
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/usr/ports/lang/opencoarrays/work/OpenCoarrays-1.8.10/src/mpi/mpi_caf.c:3301:67: warning: shifting
a negative signed value is undefined [-Wshift-negative-value]
  caf_runtime_error ("Unsupported data type in collective: %ld\n",GFC_DTYPE_TYPE_SIZE (desc));
                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libcaf-gfortran-descriptor.h:73:52: note: expanded from macro 'GFC_DTYPE_TYPE_SI
ZE'
#define GFC_DTYPE_TYPE_SIZE(desc) ((desc)->dtype & GFC_DTYPE_TYPE_SIZE_MASK)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libcaf-gfortran-descriptor.h:71:35: note: expanded from macro 'GFC_DTYPE_TYPE_SI
ZE_MASK'
#define GFC_DTYPE_TYPE_SIZE_MASK (GFC_DTYPE_SIZE_MASK | GFC_DTYPE_TYPE_MASK)
                                  ^~~~~~~~~~~~~~~~~~~
/usr/local/include/libcaf-gfortran-descriptor.h:70:47: note: expanded from macro 'GFC_DTYPE_SIZE_MA
SK'
  ((~((ptrdiff_t) 0) >> GFC_DTYPE_SIZE_SHIFT) << GFC_DTYPE_SIZE_SHIFT)
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/usr/ports/lang/opencoarrays/work/OpenCoarrays-1.8.10/src/mpi/mpi_caf.c:3510:24: error: use of unde
clared identifier 'GFC_CAF_ARG_VALUE'
      if ((opr_flags & GFC_CAF_ARG_VALUE) > 0)
                       ^
/usr/ports/lang/opencoarrays/work/OpenCoarrays-1.8.10/src/mpi/mpi_caf.c:3528:21: error: use of unde
clared identifier 'GFC_CAF_ARG_VALUE'
          if ((opr_flags & GFC_CAF_ARG_VALUE) > 0)
                           ^
/usr/ports/lang/opencoarrays/work/OpenCoarrays-1.8.10/src/mpi/mpi_caf.c:3543:21: error: use of unde
clared identifier 'GFC_CAF_ARG_VALUE'
          if ((opr_flags & GFC_CAF_ARG_VALUE) > 0)
                           ^
3 warnings and 3 errors generated.
*** [src/mpi/CMakeFiles/caf_mpi.dir/mpi_caf.c.o] Error code 1

make[4]: stopped in /usr/ports/lang/opencoarrays/work/.build

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions