conan-io / conan-center-index

Recipes for the ConanCenter repository
https://conan.io/center
MIT License
961 stars 1.77k forks source link

[package] hdf5/1.12.0: Fails to build using MinGW-w64 toolchain #7879

Open hli-luna opened 3 years ago

hli-luna commented 3 years ago

Attempting to build the library using the MinGW64 toolchain results in the build freezing during the generation of certain files.

Package and Environment Details (include every applicable attribute)

Conan profile

[settings]
os=Windows
os_build=Windows
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=10
compiler.libcxx=libstdc++11
build_type=Release
[options]
[conf]
[build_requires]
[env]

Steps to reproduce (Include if Applicable)

Run the following command in console conan install hdf5/1.12.0@ --build

Logs (Include/Attach if Applicable)

Click to expand log ``` hdf5/1.12.0: Copying sources to build folder hdf5/1.12.0: Building your package in C:\Users\HLI\.conan\data\hdf5\1.12.0\_\_\build\18b00d1611285ff956b2ab768c3982c1d7552473 hdf5/1.12.0: Generator cmake created conanbuildinfo.cmake hdf5/1.12.0: Aggregating env generators hdf5/1.12.0: Calling build() -- The C compiler identification is GNU 10.3.0 -- The CXX compiler identification is GNU 10.3.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/msys64/mingw64/bin/gcc.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/msys64/mingw64/bin/g++.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Conan: called by CMake conan helper -- Conan: called inside local cache -- Conan: Adjusting output directories -- Conan: Using cmake targets configuration -- Library zlib found C:/Users/HLI/.conan/data/zlib/1.2.11/_/_/package/c6817f477abe7e9a917b102f37dc1fd0c2d95f50/lib/libzlib.a -- Conan: Adjusting default RPATHs Conan policies -- Conan: Adjusting language standard -- Conan: Compiler GCC>=5, checking major version 10 -- Conan: Checking correct version: 10 -- Conan: C++ stdlib: libstdc++11 -- SOVERSION: 200.0.0 -- SOVERSION_TOOLS: 200.0.0 -- SOVERSION_CXX: 200.0.0 -- SOVERSION_F: 200.0.0 -- SOVERSION_HL: 200.0.0 -- SOVERSION_HL_CXX: 200.0.0 -- SOVERSION_HL_F: 200.0.0 -- SOVERSION_JAVA: 200.0.0 -- Looking for include file sys/file.h -- Looking for include file sys/file.h - found -- Looking for include files sys/file.h, sys/ioctl.h -- Looking for include files sys/file.h, sys/ioctl.h - not found -- Looking for include files sys/file.h, sys/resource.h -- Looking for include files sys/file.h, sys/resource.h - not found -- Looking for include files sys/file.h, sys/socket.h -- Looking for include files sys/file.h, sys/socket.h - not found -- Looking for include files sys/file.h, sys/stat.h -- Looking for include files sys/file.h, sys/stat.h - found -- Looking for 3 include files sys/file.h, ..., sys/time.h -- Looking for 3 include files sys/file.h, ..., sys/time.h - found -- Looking for 4 include files sys/file.h, ..., sys/types.h -- Looking for 4 include files sys/file.h, ..., sys/types.h - found -- Looking for 5 include files sys/file.h, ..., features.h -- Looking for 5 include files sys/file.h, ..., features.h - not found -- Looking for 5 include files sys/file.h, ..., dirent.h -- Looking for 5 include files sys/file.h, ..., dirent.h - found -- Looking for 6 include files sys/file.h, ..., setjmp.h -- Looking for 6 include files sys/file.h, ..., setjmp.h - found -- Looking for 7 include files sys/file.h, ..., stddef.h -- Looking for 7 include files sys/file.h, ..., stddef.h - found -- Looking for 8 include files sys/file.h, ..., stdint.h -- Looking for 8 include files sys/file.h, ..., stdint.h - found -- Looking for 9 include files sys/file.h, ..., unistd.h -- Looking for 9 include files sys/file.h, ..., unistd.h - found -- Looking for 10 include files sys/file.h, ..., mach/mach_time.h -- Looking for 10 include files sys/file.h, ..., mach/mach_time.h - not found -- Looking for 10 include files sys/file.h, ..., io.h -- Looking for 10 include files sys/file.h, ..., io.h - found -- Looking for 12 include files sys/file.h, ..., sys/timeb.h -- Looking for 12 include files sys/file.h, ..., sys/timeb.h - found -- Looking for 13 include files sys/file.h, ..., globus/common.h -- Looking for 13 include files sys/file.h, ..., globus/common.h - not found -- Looking for 13 include files sys/file.h, ..., pdb.h -- Looking for 13 include files sys/file.h, ..., pdb.h - not found -- Looking for 13 include files sys/file.h, ..., pthread.h -- Looking for 13 include files sys/file.h, ..., pthread.h - found -- Looking for 14 include files sys/file.h, ..., srbclient.h -- Looking for 14 include files sys/file.h, ..., srbclient.h - not found -- Looking for 14 include files sys/file.h, ..., string.h -- Looking for 14 include files sys/file.h, ..., string.h - found -- Looking for 15 include files sys/file.h, ..., strings.h -- Looking for 15 include files sys/file.h, ..., strings.h - found -- Looking for 16 include files sys/file.h, ..., stdlib.h -- Looking for 16 include files sys/file.h, ..., stdlib.h - found -- Looking for 17 include files sys/file.h, ..., memory.h -- Looking for 17 include files sys/file.h, ..., memory.h - found -- Looking for 18 include files sys/file.h, ..., dlfcn.h -- Looking for 18 include files sys/file.h, ..., dlfcn.h - not found -- Looking for 18 include files sys/file.h, ..., inttypes.h -- Looking for 18 include files sys/file.h, ..., inttypes.h - found -- Looking for 19 include files sys/file.h, ..., netinet/in.h -- Looking for 19 include files sys/file.h, ..., netinet/in.h - not found -- Looking for 19 include files sys/file.h, ..., stdbool.h -- Looking for 19 include files sys/file.h, ..., stdbool.h - found -- Looking for include file quadmath.h -- Looking for include file quadmath.h - found -- Looking for dlopen in dl;m -- Looking for dlopen in dl;m - not found -- Looking for gethostname in ucb;m;ws2_32;wsock32 -- Looking for gethostname in ucb;m;ws2_32;wsock32 - not found -- Performing Other Test STDC_HEADERS - Success -- Performing TEST_LFS_WORKS... yes -- Performing Other Test HAVE_OFF64_T - Success -- Looking for lseek64 -- Looking for lseek64 - found -- Looking for fseeko -- Looking for fseeko - found -- Performing Other Test HAVE_STAT64_STRUCT - Success -- Looking for stat64 -- Looking for stat64 - not found -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of char -- Check size of char - done -- Check size of short -- Check size of short - done -- Check size of int -- Check size of int - done -- Check size of unsigned -- Check size of unsigned - done -- Check size of long -- Check size of long - done -- Check size of long long -- Check size of long long - done -- Check size of __int64 -- Check size of __int64 - done -- Check size of float -- Check size of float - done -- Check size of double -- Check size of double - done -- Check size of long double -- Check size of long double - done -- Check size of int8_t -- Check size of int8_t - done -- Check size of uint8_t -- Check size of uint8_t - done -- Check size of int_least8_t -- Check size of int_least8_t - done -- Check size of uint_least8_t -- Check size of uint_least8_t - done -- Check size of int_fast8_t -- Check size of int_fast8_t - done -- Check size of uint_fast8_t -- Check size of uint_fast8_t - done -- Check size of int16_t -- Check size of int16_t - done -- Check size of uint16_t -- Check size of uint16_t - done -- Check size of int_least16_t -- Check size of int_least16_t - done -- Check size of uint_least16_t -- Check size of uint_least16_t - done -- Check size of int_fast16_t -- Check size of int_fast16_t - done -- Check size of uint_fast16_t -- Check size of uint_fast16_t - done -- Check size of int32_t -- Check size of int32_t - done -- Check size of uint32_t -- Check size of uint32_t - done -- Check size of int_least32_t -- Check size of int_least32_t - done -- Check size of uint_least32_t -- Check size of uint_least32_t - done -- Check size of int_fast32_t -- Check size of int_fast32_t - done -- Check size of uint_fast32_t -- Check size of uint_fast32_t - done -- Check size of int64_t -- Check size of int64_t - done -- Check size of uint64_t -- Check size of uint64_t - done -- Check size of int_least64_t -- Check size of int_least64_t - done -- Check size of uint_least64_t -- Check size of uint_least64_t - done -- Check size of int_fast64_t -- Check size of int_fast64_t - done -- Check size of uint_fast64_t -- Check size of uint_fast64_t - done -- Check size of size_t -- Check size of size_t - done -- Check size of ssize_t -- Check size of ssize_t - done -- Check size of ptrdiff_t -- Check size of ptrdiff_t - done -- Check size of off_t -- Check size of off_t - done -- Check size of off64_t -- Check size of off64_t - done -- Check size of time_t -- Check size of time_t - done -- Check size of _Bool -- Check size of _Bool - done -- Performing Other Test DEV_T_IS_SCALAR - Success -- Looking for CLOCK_MONOTONIC -- Looking for CLOCK_MONOTONIC - not found -- Performing Other Test HAVE_TM_GMTOFF - Failed -- Performing Other Test HAVE___TM_GMTOFF - Failed -- Performing Other Test HAVE_STRUCT_TIMEZONE - Success -- Performing Other Test TIME_WITH_SYS_TIME - Success -- Performing Other Test HAVE_TM_ZONE - Failed -- Performing Other Test HAVE_STRUCT_TM_TM_ZONE - Failed -- Performing Other Test HAVE_STAT_ST_BLOCKS - Failed -- Looking for ioctl -- Looking for ioctl - not found -- Performing Other Test HAVE_STRUCT_VIDEOCONFIG - Failed -- Performing Other Test HAVE_STRUCT_TEXT_INFO - Failed -- Looking for _getvideoconfig -- Looking for _getvideoconfig - not found -- Looking for gettextinfo -- Looking for gettextinfo - not found -- Looking for _scrsize -- Looking for _scrsize - not found -- Looking for TIOCGWINSZ -- Looking for TIOCGWINSZ - not found -- Looking for TIOCGETD -- Looking for TIOCGETD - not found -- Looking for alarm -- Looking for alarm - found -- Looking for fcntl -- Looking for fcntl - not found -- Looking for flock -- Looking for flock - not found -- Looking for fork -- Looking for fork - not found -- Looking for frexpf -- Looking for frexpf - found -- Looking for frexpl -- Looking for frexpl - found -- Looking for gethostname -- Looking for gethostname - not found -- Looking for getrusage -- Looking for getrusage - not found -- Looking for llround -- Looking for llround - found -- Looking for llroundf -- Looking for llroundf - found -- Looking for lround -- Looking for lround - found -- Looking for lroundf -- Looking for lroundf - found -- Looking for lstat -- Looking for lstat - not found -- Looking for pread -- Looking for pread - not found -- Looking for pwrite -- Looking for pwrite - not found -- Looking for rand_r -- Looking for rand_r - not found -- Looking for random -- Looking for random - not found -- Looking for round -- Looking for round - found -- Looking for roundf -- Looking for roundf - found -- Looking for setsysinfo -- Looking for setsysinfo - not found -- Looking for signal -- Looking for signal - found -- Looking for setjmp -- Looking for setjmp - found -- Looking for siglongjmp -- Looking for siglongjmp - not found -- Looking for sigsetjmp -- Looking for sigsetjmp - not found -- Looking for sigprocmask -- Looking for sigprocmask - not found -- Looking for snprintf -- Looking for snprintf - found -- Looking for srandom -- Looking for srandom - not found -- Looking for strtoll -- Looking for strtoll - found -- Looking for strtoull -- Looking for strtoull - found -- Looking for symlink -- Looking for symlink - not found -- Looking for tmpfile -- Looking for tmpfile - found -- Looking for asprintf -- Looking for asprintf - found -- Looking for vasprintf -- Looking for vasprintf - found -- Looking for waitpid -- Looking for waitpid - not found -- Looking for vsnprintf -- Looking for vsnprintf - found -- Performing Other Test VSNPRINTF_WORKS - Success -- Looking for sigsetjmp -- Looking for sigsetjmp - not found -- Performing Other Test HAVE_ATTRIBUTE - Success -- Performing Other Test HAVE_C99_FUNC - Success -- Performing Other Test HAVE_FUNCTION - Success -- Performing Other Test HAVE_C99_DESIGNATED_INITIALIZER - Success -- Performing Other Test SYSTEM_SCOPE_THREADS - Success -- Performing Other Test HAVE_SOCKLEN_T - Failed -- Checking for InitOnceExecuteOnce: -- Performing Test InitOnceExecuteOnce - Success -- Performing Other Test HAVE_INLINE - Success -- Performing Other Test HAVE___INLINE__ - Success -- Performing Other Test HAVE___INLINE - Success -- Checking for appropriate format for 64 bit long: -- Checking for appropriate format for 64 bit long: found "I64" -- Looking for difftime -- Looking for difftime - found -- Looking for clock_gettime -- Looking for clock_gettime - found -- Looking for clock_gettime in rt -- Looking for clock_gettime in rt - not found -- Looking for clock_gettime in posix4 -- Looking for clock_gettime in posix4 - not found -- Check size of __float128 -- Check size of __float128 - done -- Check size of _Quad -- Check size of _Quad - failed -- Checking IF your system converts long double to (unsigned) long values with special algorithm... no -- Checking IF your system can convert (unsigned) long to long double values with special algorithm... no -- Checking IF correctly converting long double to (unsigned) long long values... yes -- Checking IF correctly converting (unsigned) long long to long double values... yes -- Checking IF the cpu is power9 and cannot correctly converting long double values... no -- Checking IF alignment restrictions are strictly enforced... yes -- Warnings Configuration: default: -std=c99 -m64 : -m64 -- CMAKE_C_FLAGS_GENERAL= -Wall -Wcast-qual -Wconversion -Wextra -Wfloat-equal -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-include-dirs -Wno-c++-compat -Wno-format-nonliteral -Wshadow -Wundef -Wwrite-strings -pedantic -- H5_CFLAGS0= -Wbad-function-cast -Wcast-align -Wdeclaration-after-statement -Wdisabled-optimization -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpacked -Wredundant-decls -Wstrict-prototypes -Wswitch-enum -Wswitch-default -Wunused-macros -Wunsafe-loop-optimizations -finline-functions -- Could NOT find ZLIB (missing: ZLIB_DIR) -- Found ZLIB: C:/Users/HLI/.conan/data/zlib/1.2.11/_/_/package/c6817f477abe7e9a917b102f37dc1fd0c2d95f50/lib/libzlib.a (found version "1.2.11") -- Filter ZLIB is ON -- Found Perl: C:/msys64/usr/bin/perl.exe (found version "5.32.1") -- Generating 'H5Epubgen.h' Generating 'H5Einit.h' Generating 'H5Eterm.h' Generating 'H5Edefin.h' -- Generating 'C:/Users/HLI/.conan/data/hdf5/1.12.0/_/_/build/18b00d1611285ff956b2ab768c3982c1d7552473/source_subfolder/src/H5version.h' -- Generating 'H5overflow.h' -- Check for STD namespace -- Check for STD namespace - found -- Looking for C++ include stdint.h -- Looking for C++ include stdint.h - found -- Performing CXX Test OLD_HEADER_FILENAME - Failed -- Performing CXX Test HDF_NO_NAMESPACE - Failed -- Performing CXX Test HDF_NO_STD - Failed -- Performing CXX Test BOOL_NOTDEFINED - Failed -- Performing CXX Test NO_STATIC_CAST - Failed -- Performing CXX Test CXX_HAVE_OFFSETOF - Failed -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project: CMAKE_EXPORT_NO_PACKAGE_REGISTRY CMAKE_INSTALL_BINDIR CMAKE_INSTALL_DATAROOTDIR CMAKE_INSTALL_INCLUDEDIR CMAKE_INSTALL_LIBDIR CMAKE_INSTALL_LIBEXECDIR CMAKE_INSTALL_OLDINCLUDEDIR CMAKE_INSTALL_SBINDIR -- Build files have been written to: C:/Users/HLI/.conan/data/hdf5/1.12.0/_/_/build/18b00d1611285ff956b2ab768c3982c1d7552473/build_subfolder [ 0%] Building C object source_subfolder/src/CMakeFiles/H5detect.dir/H5detect.c.obj [ 0%] Building C object source_subfolder/src/CMakeFiles/H5make_libsettings.dir/H5make_libsettings.c.obj In file included from In file included from 2c1d7552473\source_subfolder\src\H5private.h:638 c3982c1d7552473\source_subfolder\src\H5private.h:638 from , from folder\src\H5detect.c:45 ubfolder\src\H5make_libsettings.c:37 : .h:45:6: in32defs.h:45:6: "_MSC_VER" is not defined, evaluates to 0 [ 45 | #if (] 45 | #if ( | <= 1700) | [ 1%] Linking C executable ..\..\bin\H5make_libsettings.exe [ 1%] Built target H5make_libsettings [ 1%] Linking C executable ..\..\bin\H5detect.exe [ 1%] Built target H5detect [ 1%] Generating ../H5Tinit.c, ../gen_SRCS.stamp1 [ 1%] Generating ../H5lib_settings.c, ../gen_SRCS.stamp2 ```
perseoGI commented 1 month ago

Hi there, I was reviewing old issues and I have come across this one. Could you add updated traces of your problem using conan v2?

Thank you in advance!