ornladios / ADIOS

The old ADIOS 1.x code repository. Look for ADIOS2 for new repo
https://csmd.ornl.gov/adios
Other
54 stars 40 forks source link

fix cmake compile #108

Closed psychocoderHPC closed 7 years ago

psychocoderHPC commented 7 years ago

close #103

Test

pnorbert commented 7 years ago

This branch does not build with my standard MPI settings on Ubuntu 16.04 LTS + openmpi. The -I option with many paths concatenated with ; throws off the compile command.

[ 3%] Building C object src/CMakeFiles/adios_internal_nompi.dir/core/mpidummy.c.o cd /home/adios/work/ADIOS/build.cmake/src && /usr/bin/mpicc -I/home/adios/work/ADIOS -I/home/adios/work/ADIOS/src/zfp/zfp-0.5.0/inc -I/home/adios/work/ADIOS/build.cmake -I/home/adios/work/ADIOS/src -I/home/adios/work/ADIOS/src/core -I/home/adios/work/ADIOS/src/core/transforms -I/home/adios/work/ADIOS/build.cmake/src -I/home/adios/work/ADIOS/build.cmake/src/public -I/home/adios/work/ADIOS/src/mxml/mxml-2.9 -g -O0 -fPIC -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast -D_INTERNAL -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -DMPICH_IGNORE_CXX_SEEK -D_NOMPI -I/opt/netcdf-4.4.0/include -I/opt/hdf5-1.8.17/include -DZLIB -I/usr/include -DBZIP2 -I/usr/include -DSZIP -I/opt/szip/include -DISOBAR -I/opt/isobar/include -DALACRITY -I/opt/alacrity/include -DZFP -I/home/adios/work/ADIOS/src/zfp/zfp-0.5.0/inc -DFASTBIT -I/opt/fastbit/include/fastbit -I/usr/lib/openmpi/include/openmpi/opal/mca/event/libevent2021/libevent;/usr/lib/openmpi/include/openmpi/opal/mca/event/libevent2021/libevent/include;/usr/lib/openmpi/include;/usr/lib/openmpi/include/openmpi -I/opt/chaos/include -I/opt/hdf5-1.8.17-parallel/include -DZLIB -I/usr/include -DBZIP2 -I/usr/include -DSZIP -I/opt/szip/include -DISOBAR -I/opt/isobar/include -DALACRITY -I/opt/alacrity/include -DZFP -I/home/adios/work/ADIOS/src/zfp/zfp-0.5.0/inc -DFASTBIT -I/opt/fastbit/include/fastbit -o CMakeFiles/adios_internal_nompi.dir/core/mpidummy.c.o -c /home/adios/work/ADIOS/src/core/mpidummy.c gcc: fatal error: no input files compilation terminated. /bin/sh: 1: /usr/lib/openmpi/include/openmpi/opal/mca/event/libevent2021/libevent/include: Permission denied /bin/sh: 1: /usr/lib/openmpi/include: Permission denied /bin/sh: 1: /usr/lib/openmpi/include/openmpi: Permission denied src/CMakeFiles/adios_internal_nompi.dir/build.make:62: recipe for target 'src/CMakeFiles/adios_internal_nompi.dir/core/mpidummy.c.o' failed make[2]: *** [src/CMakeFiles/adios_internal_nompi.dir/core/mpidummy.c.o] Error 126

pnorbert commented 7 years ago

The settings for configuration for the above build are coming from ./cmake_init for adiosVM.

psychocoderHPC commented 7 years ago

it looks like this line is the reason for the crash. I will fix it

psychocoderHPC commented 7 years ago

I updated the branch and removed the ;

I tested only the C build, because I have no mpi for fortran avail.

psychocoderHPC commented 7 years ago

Where can I find the adiosVM image?

pnorbert commented 7 years ago

The cmake build has been fixed for 1.12, so these commits don't need to be merged. Let us know if you still have any issues with cmake build of the master branch.