RhysU / ESIO

The ExaScale IO (ESIO) library provides simple, high throughput input and output of structured data sets using parallel HDF5. ESIO is designed to support reading and writing turbulence simulation restart files within C, C++, and modern Fortran applications.
https://rhysu.github.io/ESIO/
GNU Lesser General Public License v2.1
11 stars 2 forks source link

Compile error on multiple machines #4

Closed moprak closed 7 years ago

moprak commented 7 years ago

I get a bunch of errors similar to the lines below when compiling esio with gcc 6 or 7. I'm not exactly sure what's causing the error, if it is because of the gcc version or how it can be fixed. Any ideas? I've also attached my config.log and make error output if that helps.

layout.c:170:20: error: conflicting types for 'esio_field_layout2_field_reader'
 #define METHODNAME esio_field_layout2_field_reader
RhysU commented 7 years ago

I will take a look this evening.

moprak commented 7 years ago

I think this might be a case of pre-built mpich/hdf5 from the repositories on arch linux and ubuntu doing something weird. I don't see this error when I compile my own versions of those two.

moprak commented 7 years ago

Have tested this against both gcc 6 and gcc 7 now, not sure which of the system mpich or hdf5 is the problem but it doesn't seem like an esio bug.

RhysU commented 7 years ago

Sorry I didn't get the chance to look for you. Glad you got it solved.

moprak commented 7 years ago

Oh no worries, I was too lazy to setup lmod on my machines, this forced me to do it.