Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.9.0: H5Vol w/ HDF5 1.14.0 Fails Compile on Win #3649

Closed
ax3l opened this issue Jun 1, 2023 · 4 comments
Closed

2.9.0: H5Vol w/ HDF5 1.14.0 Fails Compile on Win #3649

ax3l opened this issue Jun 1, 2023 · 4 comments

Comments

@ax3l
Copy link
Contributor

ax3l commented Jun 1, 2023

Describe the bug
HDF5 with h5Vol does not compile on Windows with:

  • ADIOS 2.9.0
  • HDF5 1.14.0

To Reproduce
See conda-forge/adios2-feedstock#71

Errors:

D:\bld\adios2-split_1685654832661\work\source\h5vol\H5VolUtil.h(40): error C2146: syntax error: missing ')' before identifier 'ndims'
D:\bld\adios2-split_1685654832661\work\source\h5vol\H5VolUtil.h(40): error C2081: 'uint': name in formal parameter list illegal
D:\bld\adios2-split_1685654832661\work\source\h5vol\H5VolUtil.h(40): error C2061: syntax error: identifier 'ndims'
D:\bld\adios2-split_1685654832661\work\source\h5vol\H5VolUtil.h(40): error C2059: syntax error: ';'
D:\bld\adios2-split_1685654832661\work\source\h5vol\H5VolUtil.h(40): error C2059: syntax error: ')'
D:\bld\adios2-split_1685654832661\work\source\h5vol\H5VolUtil.h(42): error C2146: syntax error: missing ')' before identifier 'ndims'
D:\bld\adios2-split_1685654832661\work\source\h5vol\H5VolUtil.h(42): error C2081: 'uint': name in formal parameter list illegal
D:\bld\adios2-split_1685654832661\work\source\h5vol\H5VolUtil.h(42): error C2061: syntax error: identifier 'ndims'
D:\bld\adios2-split_1685654832661\work\source\h5vol\H5VolUtil.h(42): error C2059: syntax error: ';'
D:\bld\adios2-split_1685654832661\work\source\h5vol\H5VolUtil.h(42): error C2059: syntax error: ')'
D:\bld\adios2-split_1685654832661\work\source\h5vol\H5VolReadWrite.c(19): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
NMAKE : fatal error U1077: 'D:\bld\adios2-split_1685654832661\_build_env\Library\bin\cmake.exe' : return code '0x2'

Expected behavior
Compile.

Desktop (please complete the following information):

  • OS/Platform: Windows
  • Build: MSVC 19.29.30148.0 w/ latest CMake and NMake

Additional context
Needed to unblock our 2.9.0 release on conda-forge: conda-forge/adios2-feedstock#71

The issue here has higher priority than #3648.

cc @guj

@ax3l
Copy link
Contributor Author

ax3l commented Jun 1, 2023

@ax3l
Copy link
Contributor Author

ax3l commented Jun 1, 2023

In https://github.com/ornladios/ADIOS2/blob/v2.9.0/source/h5vol/H5VolReadWrite.c#L19

D:\bld\adios2-split_1685654832661\work\source\h5vol\H5VolReadWrite.c(19): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory

aka

#include <unistd.h> // sleep

is not portable. You can try
https://stackoverflow.com/a/8764595

or something ISO C++11 and newer such as https://en.cppreference.com/w/cpp/thread/sleep_for

@pnorbert
Copy link
Contributor

pnorbert commented Jun 6, 2023

@vicentebolea Can we please have HDF5 on for the win tests?

@ax3l
Copy link
Contributor Author

ax3l commented Jul 25, 2023

Fixed via #3652.

Follow-up task (CI coverage) in #3662

@ax3l ax3l closed this as completed Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants