Conda Paraview MPI Build Issue

I am working on updating paraview-feedstock from conda-forge for OpenMPI and MPICH support. I followed patterns from mpi4py and hdf5/h5py to see how to incorporate the correct MPI libraries. Following that, I added -DPARAVIEW_USE_MPI=ON option to cmake command.

See https://github.com/bhermanmit/paraview-feedstock/commit/a278d7fef1ff6a820e4120e7f02e93f23efabb92.

Each of my parallel builds failed with an error when building vtkIceTCore. The error is:

2020-03-01T20:15:10.7206664Z Scanning dependencies of target vtkIceTCore
2020-03-01T20:15:10.7214071Z make[2]: Leaving directory '$SRC_DIR/build'
2020-03-01T20:15:10.7248512Z make[2]: Entering directory '$SRC_DIR/build'
2020-03-01T20:15:10.7511213Z In file included from /home/conda/feedstock_root/build_artifacts/paraview_1583093264546/work/ThirdParty/IceT/vtkicet/src/include/IceT.h:15:0,
2020-03-01T20:15:10.7512592Z                  from /home/conda/feedstock_root/build_artifacts/paraview_1583093264546/work/ThirdParty/IceT/vtkicet/src/include/IceTDevPorting.h:13,
2020-03-01T20:15:10.7514139Z                  from /home/conda/feedstock_root/build_artifacts/paraview_1583093264546/work/ThirdParty/IceT/vtkicet/src/ice-t/porting.c:13:
2020-03-01T20:15:10.7515456Z /home/conda/feedstock_root/build_artifacts/paraview_1583093264546/_build_env/x86_64-conda_cos6-linux-gnu/sysroot/usr/include/stdlib.h:513:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
2020-03-01T20:15:10.7516239Z  static inline void* aligned_alloc (size_t al, size_t sz)
2020-03-01T20:15:10.7516618Z                ^~~~
2020-03-01T20:15:10.7693947Z make[2]: *** [ThirdParty/IceT/vtkicet/src/ice-t/CMakeFiles/vtkIceTCore.dir/build.make:59: ThirdParty/IceT/vtkicet/src/ice-t/CMakeFiles/vtkIceTCore.dir/porting.c.o] Error 1
2020-03-01T20:15:10.7695372Z make[2]: Leaving directory '$SRC_DIR/build'
2020-03-01T20:15:10.7696290Z make[1]: *** [CMakeFiles/Makefile2:28045: ThirdParty/IceT/vtkicet/src/ice-t/CMakeFiles/vtkIceTCore.dir/all] Error 2

The entire build can be found at: https://dev.azure.com/conda-forge/84710dde-1620-425b-80d0-4cf5baca359d/_apis/build/builds/126672/logs/145

Any ideas how I can fix this?

@ben.boeckel

It looks like something is doing #define inline to something invalid. Could you please provide the preprocessed output for the file in question?

Hello, did you solve your problem??

I have the same problem.

Felipe