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

[BUG] cannot build static build with 1.13.2 #2102

Closed
chacha21 opened this issue Sep 15, 2022 · 3 comments
Closed

[BUG] cannot build static build with 1.13.2 #2102

chacha21 opened this issue Sep 15, 2022 · 3 comments

Comments

@chacha21
Copy link

chacha21 commented Sep 15, 2022

Windows 7 64 bits, latest Visual Studio 2019

I used to build HDF5 1.12.2 without any issue with CMake GUI.
I updated to 1.13.2 and now the static build fails with errors :

...\HDF5\1.13.2\build\vs2019\x64\src\H5Tinit.c(165,35): error C2065: 'H5T_NATIVE_SCHAR_COMP_ALIGN_g' : undeclared identifier
 ...\HDF5\1.13.2\build\vs2019\x64\src\H5Tinit.c(206,35): error C2065: 'H5T_NATIVE_SHORT_COMP_ALIGN_g' : undeclared identifier
 ...\HDF5\1.13.2\build\vs2019\x64\src\H5Tinit.c(247,33): error C2065: 'H5T_NATIVE_INT_COMP_ALIGN_g' : undeclared identifier
 ...\HDF5\1.13.2\build\vs2019\x64\src\H5Tinit.c(288,34): error C2065: 'H5T_NATIVE_LONG_COMP_ALIGN_g' : undeclared identifier
 ...\HDF5\1.13.2\build\vs2019\x64\src\H5Tinit.c(823,35): error C2065: 'H5T_NATIVE_LLONG_COMP_ALIGN_g' : undeclared identifier
 ...\HDF5\1.13.2\build\vs2019\x64\src\H5Tinit.c(874,35): error C2065: 'H5T_NATIVE_FLOAT_COMP_ALIGN_g' : undeclared identifier
 ...\HDF5\1.13.2\build\vs2019\x64\src\H5Tinit.c(905,36): error C2065: 'H5T_NATIVE_DOUBLE_COMP_ALIGN_g' : undeclared identifier
 ...\HDF5\1.13.2\build\vs2019\x64\src\H5Tinit.c(936,37): error C2065: 'H5T_NATIVE_LDOUBLE_COMP_ALIGN_g' : undeclared identifier
 ...\HDF5\1.13.2\build\vs2019\x64\src\H5Tinit.c(942,30): error C2065: 'H5T_POINTER_COMP_ALIGN_g' : undeclared identifier
 ...\HDF5\1.13.2\build\vs2019\x64\src\H5Tinit.c(943,26): error C2065: 'H5T_HVL_COMP_ALIGN_g' : undeclared identifier
 ...\HDF5\1.13.2\build\vs2019\x64\src\H5Tinit.c(944,30): error C2065: 'H5T_HOBJREF_COMP_ALIGN_g' : undeclared identifier
 ...\HDF5\1.13.2\build\vs2019\x64\src\H5Tinit.c(945,34): error C2065: 'H5T_HDSETREGREF_COMP_ALIGN_g' : undeclared identifier
 ...\HDF5\1.13.2\build\vs2019\x64\src\H5Tinit.c(946,26): error C2065: 'H5T_REF_COMP_ALIGN_g' : undeclared identifier

Indeed, in 1.13.2, the H5T.c file does not contain those symbols any more (#1400 ?)

@chacha21 chacha21 added the bug label Sep 15, 2022
@chacha21 chacha21 changed the title [BUG] cannot build static build since 1.13.2 [BUG] cannot build static build with 1.13.2 Sep 15, 2022
@byrnHDF
Copy link
Contributor

byrnHDF commented Sep 15, 2022

Which CMake version and can you describe which options you changed from the default values.

@chacha21
Copy link
Author

Problem solved.

I tried to repeat the whole process, and wiped out the entire CMake output build folder, instead of "Deleting cache" only. The problem does not occur any more, whatever the set of options I use.

I can't explain what happened first, the "H5Tinit.c" file now looks different.
I wonder if I could have initially messed up in with the build folder containing remains of a previous 1.12.2 build.

@byrnHDF
Copy link
Contributor

byrnHDF commented Sep 15, 2022

Problem solved.

I tried to repeat the whole process, and wiped out the entire CMake output build folder, instead of "Deleting cache" only. The problem does not occur any more, whatever the set of options I use.

I can't explain what happened first, the "H5Tinit.c" file now looks different. I wonder if I could have initially messed up in with the build folder containing remains of a previous 1.12.2 build.

It happens, no worries.

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